We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbc2975 commit 99138f9Copy full SHA for 99138f9
example-app/build.gradle
@@ -39,10 +39,12 @@ android {
39
}
40
41
String getSubmissionUrl() {
42
- def propFile = rootProject.file("./local.properties")
+ if (!rootProject.file("./local.properties").exists()) {
43
+ return "null"
44
+ }
45
def properties = new Properties()
- properties.load(new FileInputStream(propFile))
- return properties.containsKey('BACKTRACE_SUBMISSION_URL') ? properties['BACKTRACE_SUBMISSION_URL'] : "null"
46
+ properties.load(rootProject.file("./local.properties").newDataInputStream())
47
+ return properties.containsKey('BACKTRACE_SUBMISSION_URL') ? properties['BACKTRACE_SUBMISSION_URL'] : "null"
48
49
50
dependencies {
0 commit comments