From fcd076067ff1b779a25d5296aa47230938358d8a Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Tue, 24 Mar 2020 19:09:15 +0800 Subject: [PATCH] update android script --- doric-android/scripts/upload.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doric-android/scripts/upload.gradle b/doric-android/scripts/upload.gradle index 77ce4531..db95ea3e 100644 --- a/doric-android/scripts/upload.gradle +++ b/doric-android/scripts/upload.gradle @@ -3,7 +3,10 @@ apply plugin: 'maven' Properties properties = new Properties() properties.load(project.rootProject.file('scripts/maven.properties').newDataInputStream()) properties.load(new FileInputStream("${projectDir}/pom.properties")) -properties.load(project.rootProject.file('local.properties').newDataInputStream()) + +if (new File("local.properties").exists()) { + properties.load(project.rootProject.file('local.properties').newDataInputStream()) +} def user = System.getenv("BINTARY_USER") def apiKey = System.getenv("BINTARY_APIKEY")