mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2026-01-10 10:14:20 +01:00
Enable Crashlytics for release builds only.
This commit is contained in:
@@ -4,10 +4,14 @@ plugins {
|
||||
id 'kotlin-parcelize'
|
||||
id 'kotlin-kapt'
|
||||
id 'dagger.hilt.android.plugin'
|
||||
id 'com.google.firebase.crashlytics'
|
||||
}
|
||||
apply from: rootProject.file("gradle/git-tag-version.gradle")
|
||||
|
||||
if (getGradle().getStartParameter().getTaskRequests().toString().contains("Release")){
|
||||
apply plugin: 'com.google.gms.google-services'
|
||||
apply plugin: 'com.google.firebase.crashlytics'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'no.nordicsemi.android.nrftoolbox'
|
||||
|
||||
|
||||
4
app/proguard-rules.pro
vendored
4
app/proguard-rules.pro
vendored
@@ -12,3 +12,7 @@
|
||||
-keepclasseswithmembers class * {
|
||||
@org.simpleframework.xml.* <fields>;
|
||||
}
|
||||
|
||||
# Crashlytics
|
||||
-keepattributes SourceFile,LineNumberTable # Keep file names and line numbers.
|
||||
-keep public class * extends java.lang.Exception # Optional: Keep custom exceptions.
|
||||
Reference in New Issue
Block a user