Skip to content
Snippets Groups Projects
Commit f498c391 authored by Felix Angelov's avatar Felix Angelov Committed by Eric Seidel
Browse files

refactor(flutter_tool): adjust flutter.gradle to support latest shorebird.yaml format (#7)

parent 47290f1b
No related merge requests found
......@@ -985,7 +985,7 @@ class FlutterPlugin implements Plugin<Project> {
def shorebirdYamlFile = new File("${outputDir}/flutter_assets/shorebird.yaml")
def flavor = variant.flavorName
def shorebirdYaml = new Yaml().load(shorebirdYamlFile.text)
def flavorAppId = shorebirdYaml['app_id'][flavor]
def flavorAppId = shorebirdYaml['flavors'][flavor]
if (flavorAppId == null) {
throw new GradleException("Cannot find app_id for ${flavor} in shorebird.yaml")
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment