diff --git a/android/build.gradle b/android/build.gradle index bfdd736e..690fd734 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -66,7 +66,8 @@ android { } Map loadPubspec() { - def path = rootProject.projectDir.parent + File.separator + "pubspec.yaml" + def yamlDir = rootProject.hasProperty('yamlDir') ? rootProject.ext.yamlDir : '' + def path = rootProject.projectDir.parent + File.separator +yamlDir +"pubspec.yaml" InputStream input = new FileInputStream(new File(path)) Yaml yaml = new Yaml() Map projectConfig = yaml.load(input)