aboutsummaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'app/build.gradle')
-rw-r--r--app/build.gradle16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/build.gradle b/app/build.gradle
index e7ddaed..bd8cf7d 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -4,6 +4,14 @@ apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.google.android.gms.oss-licenses-plugin'
+def privateProperties = new Properties()
+def conf = project.file("private.properties")
+if (conf.exists()) privateProperties.load(conf.newDataInputStream())
+
+if (privateProperties['fabric.key'] != null) {
+ apply plugin: 'io.fabric'
+}
+
android {
compileSdkVersion 28
defaultConfig {
@@ -13,6 +21,13 @@ android {
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+
+ // Fabric
+ def fabricKey = privateProperties['fabric.key']
+ if (fabricKey == null) fabricKey = System.getenv("FABRIC_KEY")
+ if (fabricKey == null) fabricKey = "disabled"
+ buildConfigField "String", "FABRIC_KEY", "\"" + fabricKey + "\""
+ manifestPlaceholders.fabricKey = fabricKey
}
buildTypes {
release {
@@ -53,4 +68,5 @@ dependencies {
implementation 'com.google.android.material:material:1.1.0-alpha03'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'com.google.android.gms:play-services-oss-licenses:16.0.2'
+ implementation 'com.crashlytics.sdk.android:crashlytics:2.9.8'
}