Skip to content

Commit

Permalink
Do not fail with no local.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
friederbluemle committed Apr 10, 2020
1 parent 31551a3 commit 08a512c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libsuperuser/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {
minSdkVersion 5
targetSdkVersion 26
}

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
Expand All @@ -32,7 +32,9 @@ group = "eu.chainfire"

bintray {
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
if (project.rootProject.file('local.properties').exists()) {
properties.load(project.rootProject.file('local.properties').newDataInputStream())
}
user = properties.getProperty('bintray.user')
key = properties.getProperty('bintray.apikey')

Expand Down

0 comments on commit 08a512c

Please sign in to comment.