aboutsummaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
authorYuutaW <17158086+Trumeet@users.noreply.github.com>2019-02-24 13:57:18 -0800
committerYuutaW <17158086+Trumeet@users.noreply.github.com>2019-02-24 13:57:18 -0800
commit6ec68733e0f1c6a2bbbbb4735e9c1f2de8cf6b8c (patch)
tree8910595b4d1310ca99d4a0d0bf4b74578e1ce341 /app/build.gradle
parent100068c5622162d3c3dcd752c0fca565378ac01d (diff)
downloadWorkMode-6ec68733e0f1c6a2bbbbb4735e9c1f2de8cf6b8c.tar
WorkMode-6ec68733e0f1c6a2bbbbb4735e9c1f2de8cf6b8c.tar.gz
WorkMode-6ec68733e0f1c6a2bbbbb4735e9c1f2de8cf6b8c.tar.bz2
WorkMode-6ec68733e0f1c6a2bbbbb4735e9c1f2de8cf6b8c.zip
feat(app): implement Fabric
Signed-off-by: YuutaW <17158086+Trumeet@users.noreply.github.com>
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'
}