aboutsummaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-03 21:47:07 -0700
committerAllan Wang <me@allanwang.ca>2017-06-03 21:47:07 -0700
commitc2b74571d5361a6ac3e038fd3a1320053b1cc5d6 (patch)
tree11f1350120b92e1525ab5079e39d22137d817695 /app/build.gradle
parent610df8c6d772324095b1c3d2cc17f9c243be6c06 (diff)
downloadfrost-c2b74571d5361a6ac3e038fd3a1320053b1cc5d6.tar.gz
frost-c2b74571d5361a6ac3e038fd3a1320053b1cc5d6.tar.bz2
frost-c2b74571d5361a6ac3e038fd3a1320053b1cc5d6.zip
test crashlytics 2
Diffstat (limited to 'app/build.gradle')
-rw-r--r--app/build.gradle11
1 files changed, 7 insertions, 4 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 281799ef..80895f6e 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -2,11 +2,14 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'io.fabric'
-def fabricProps = new Properties()
-file("../fabric.properties").withInputStream {
- stream -> fabricProps.load(stream)
+def FABRIC_API_KEY = System.env.FABRIC_API_KEY
+if (FABRIC_API_KEY == null) {
+ def fabricProps = new Properties()
+ file("../fabric.properties").withInputStream {
+ stream -> fabricProps.load(stream)
+ }
+ FABRIC_API_KEY = fabricProps.getProperty('FABRIC_API_KEY', 'empty')
}
-def FABRIC_API_KEY = System.env.FABRIC_API_KEY ?: fabricProps.getProperty('FABRIC_API_KEY', 'empty')
println 'Fabric ' + FABRIC_API_KEY
android {
compileSdkVersion Integer.parseInt(project.TARGET_SDK)