Skip to content

Commit

Permalink
Enable mappingFileUploadEnabled for firebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
MewX committed Jul 30, 2024
1 parent 3d4276e commit d5d5ac4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
20 changes: 18 additions & 2 deletions studio-android/LightNovelLibrary/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,18 @@ android {
buildTypes {
debug {
debuggable true
minifyEnabled false
minifyEnabled true
// testCoverageEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt')
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
firebaseCrashlytics {
mappingFileUploadEnabled false
}
}
release {
debuggable false
minifyEnabled true

// See https://android.googlesource.com/platform/sdk/+/master/files/proguard-android-optimize.txt
testProguardFile 'proguard-rules-tests.pro' // FIXME - the rule does not work
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'

Expand All @@ -41,19 +46,30 @@ android {
alpha {
// 内测渠道,群分发
dimension "default"
// TODO: Get rid of those Umeng channel names.
manifestPlaceholders = [ UMENG_CHANNEL_NAME : "alpha"]
firebaseCrashlytics {
mappingFileUploadEnabled false
}
}

baidu {
// 百度/其他网盘分发
dimension "default"
manifestPlaceholders = [ UMENG_CHANNEL_NAME : "baidu"]
firebaseCrashlytics {
mappingFileUploadEnabled false
}
}

playstore {
// Google Play Store
dimension "default"
manifestPlaceholders = [ UMENG_CHANNEL_NAME : "playstore"]
firebaseCrashlytics {
// Only upload in one flavor.
mappingFileUploadEnabled true
}
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86' , 'x86_64'
debugSymbolLevel 'FULL'
Expand Down
2 changes: 2 additions & 0 deletions studio-android/LightNovelLibrary/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
-keepattributes SourceFile,LineNumberTable # Keep file names and line numbers.
-keep public class * extends java.lang.Exception # Optional: Keep custom exceptions.

0 comments on commit d5d5ac4

Please sign in to comment.