fix: add proguard rules, avoid protobuf generated classes got obfuscated
This commit is contained in:
parent
6d8272472a
commit
e474b595ad
@ -93,6 +93,7 @@ android {
|
|||||||
// TODO: Add your own signing config for the release build.
|
// TODO: Add your own signing config for the release build.
|
||||||
// Signing with the debug keys for now, so `flutter run --release` works.
|
// Signing with the debug keys for now, so `flutter run --release` works.
|
||||||
signingConfig signingConfigs.release
|
signingConfig signingConfigs.release
|
||||||
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
4
flutter/android/app/proguard-rules
Normal file
4
flutter/android/app/proguard-rules
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Keep class members from protobuf generated code.
|
||||||
|
-keepclassmembers class * extends com.google.protobuf.GeneratedMessageLite {
|
||||||
|
<fields>;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user