aboutsummaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
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)