From f7c004e003897d116a935d88b5c31a400e083043 Mon Sep 17 00:00:00 2001 From: Mattia Iavarone Date: Tue, 5 Sep 2017 02:37:04 +0200 Subject: [PATCH] Update build.gradle --- cameraview/build.gradle | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cameraview/build.gradle b/cameraview/build.gradle index 7face5d3..c7a691fd 100644 --- a/cameraview/build.gradle +++ b/cameraview/build.gradle @@ -90,9 +90,13 @@ install { } } -def bintrayUser = System.getenv("BINTRAY_USER") -def bintrayKey = System.getenv("BINTRAY_KEY") -if (bintrayKey == null) { +def bintrayUser +def bintrayKey +def travis = System.getenv("TRAVIS") +if (travis) { + bintrayUser = System.getenv("BINTRAY_USER") + bintrayKey = System.getenv("BINTRAY_KEY") +} else { Properties props = new Properties() props.load(project.rootProject.file('local.properties').newDataInputStream()) bintrayUser = props.getProperty('bintray.user')