Skip to content

Commit

Permalink
Merge pull request #591 from Succi-c/dev_syq
Browse files Browse the repository at this point in the history
add param yamlDir
  • Loading branch information
JarvanMo authored Dec 23, 2023
2 parents 1218f66 + 7543b05 commit 7262755
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7262755

Please sign in to comment.