From 7543b054ae1795ec16bdf58a50f254c337b6797a Mon Sep 17 00:00:00 2001 From: shenyaqian Date: Sat, 23 Dec 2023 10:34:46 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=88=E5=AF=B9=E6=B7=B7=E7=BC=96=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E5=8F=AF=E4=BB=A5=E5=9C=A8Android=E5=8E=9F=E7=94=9F?= =?UTF-8?q?=E9=A1=B9=E7=9B=AEgradle.properties=E9=87=8C=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E5=8F=82=E6=95=B0yamlDir=E6=9D=A5?= =?UTF-8?q?=E6=8C=87=E5=AE=9Aflutter=E6=A8=A1=E5=9D=97=E7=9A=84=E7=9B=AE?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)