Build(Release): Fix R8 minify
Fix application cannot start after enabling minify
This commit is contained in:
@@ -29,8 +29,8 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = false
|
||||
isShrinkResources = false
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = true
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-rules.pro"
|
||||
|
||||
5
app/proguard-rules.pro
vendored
5
app/proguard-rules.pro
vendored
@@ -12,6 +12,11 @@
|
||||
# public *;
|
||||
#}
|
||||
|
||||
# Keep DataStore fields
|
||||
-keepclassmembers class * extends com.google.protobuf.GeneratedMessageLite* {
|
||||
<fields>;
|
||||
}
|
||||
|
||||
# Uncomment this to preserve the line number information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
Reference in New Issue
Block a user