Skip to content

Commit 393b980

Browse files
committed
fix travis-ci build error
1 parent 60e0370 commit 393b980

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

layoutcompat/build.gradle

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ android {
1818
}
1919
}
2020

21-
Properties properties = new Properties()
22-
properties.load(project.rootProject.file('local.properties').newDataInputStream())
21+
def propFile = project.rootProject.file("local.properties")
22+
if(propFile.exists()) {
23+
Properties properties = new Properties()
24+
properties.load(propFile.newDataInputStream())
2325

24-
if(properties.containsKey("BINTRAY_USER") && properties.containsKey("BINTRAY_API_KEY")){
25-
apply from: 'bintray.gradle'
26+
if (properties.containsKey("BINTRAY_USER") && properties.containsKey("BINTRAY_API_KEY")) {
27+
apply from: 'bintray.gradle'
28+
}
2629
}
30+

0 commit comments

Comments
 (0)