play console fixes: r8 obfuscation, 16kb page support, v1.3.1
This commit is contained in:
@@ -53,8 +53,12 @@ android {
|
||||
buildTypes {
|
||||
release {
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
isMinifyEnabled = false
|
||||
isShrinkResources = false
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = true
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-rules.pro",
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
# R8 keep rules for release builds. Keep these narrow: broad -keep rules defeat
|
||||
# obfuscation, and Play flags DEX obfuscation below 25 %.
|
||||
|
||||
# flutter_local_notifications stores scheduled notifications as JSON via Gson
|
||||
# (models are reflected on) and its receivers are declared in the manifest.
|
||||
-keep class com.dexterous.flutterlocalnotifications.** { *; }
|
||||
|
||||
# Gson: generic type info is needed for TypeToken deserialization.
|
||||
-keepattributes Signature, *Annotation*, EnclosingMethod, InnerClasses
|
||||
-keep class com.google.gson.reflect.TypeToken { *; }
|
||||
-keep class * extends com.google.gson.reflect.TypeToken
|
||||
-keep class * extends com.google.gson.TypeAdapter
|
||||
-keep class * implements com.google.gson.TypeAdapterFactory
|
||||
-keep class * implements com.google.gson.JsonSerializer
|
||||
-keep class * implements com.google.gson.JsonDeserializer
|
||||
-keepclassmembers,allowobfuscation class * {
|
||||
@com.google.gson.annotations.SerializedName <fields>;
|
||||
}
|
||||
|
||||
# TensorFlow Lite: the native runtime calls back into these classes via JNI.
|
||||
-keep class org.tensorflow.lite.** { *; }
|
||||
-dontwarn org.tensorflow.lite.gpu.**
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Resources referenced only by name from Dart; stop resource shrinking from removing them. -->
|
||||
<resources xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:keep="@drawable/ic_stat_icon_white" />
|
||||
Reference in New Issue
Block a user