Update build.gradle

pull/23/head
Mattia Iavarone 7 years ago committed by GitHub
parent c72a566a93
commit f7c004e003
  1. 10
      cameraview/build.gradle

@ -90,9 +90,13 @@ install {
} }
} }
def bintrayUser = System.getenv("BINTRAY_USER") def bintrayUser
def bintrayKey = System.getenv("BINTRAY_KEY") def bintrayKey
if (bintrayKey == null) { def travis = System.getenv("TRAVIS")
if (travis) {
bintrayUser = System.getenv("BINTRAY_USER")
bintrayKey = System.getenv("BINTRAY_KEY")
} else {
Properties props = new Properties() Properties props = new Properties()
props.load(project.rootProject.file('local.properties').newDataInputStream()) props.load(project.rootProject.file('local.properties').newDataInputStream())
bintrayUser = props.getProperty('bintray.user') bintrayUser = props.getProperty('bintray.user')

Loading…
Cancel
Save