mirror of
https://github.com/cmclark00/mintris.git
synced 2025-05-18 09:55:21 +01:00
Improve code quality, performance, and Google Play compliance
This commit is contained in:
parent
5cf8aec02a
commit
f5f135ff27
14 changed files with 778 additions and 6 deletions
33
app/proguard-rules.pro
vendored
33
app/proguard-rules.pro
vendored
|
@ -8,6 +8,39 @@
|
|||
# Keep models intact
|
||||
-keep class com.mintris.model.** { *; }
|
||||
|
||||
# Keep game classes intact to prevent issues
|
||||
-keep class com.mintris.game.** { *; }
|
||||
|
||||
# Preserve critical classes that might be used through reflection
|
||||
-keep class com.mintris.audio.GameMusic { *; }
|
||||
-keep class com.mintris.ui.** { *; }
|
||||
|
||||
# Keep all public methods in the MainActivity
|
||||
-keepclassmembers class com.mintris.MainActivity {
|
||||
public *;
|
||||
}
|
||||
|
||||
# Keep serializable and parcelable classes for proper game state saving
|
||||
-keepnames class * implements java.io.Serializable
|
||||
-keepclassmembers class * implements java.io.Serializable {
|
||||
static final long serialVersionUID;
|
||||
private static final java.io.ObjectStreamField[] serialPersistentFields;
|
||||
!static !transient <fields>;
|
||||
private void writeObject(java.io.ObjectOutputStream);
|
||||
private void readObject(java.io.ObjectInputStream);
|
||||
java.lang.Object writeReplace();
|
||||
java.lang.Object readResolve();
|
||||
}
|
||||
|
||||
# Preserve line number information for debugging stack traces
|
||||
-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
# Keep Gson usage intact
|
||||
-keep class com.google.gson.** { *; }
|
||||
-keep class * implements com.google.gson.TypeAdapterFactory
|
||||
-keep class * implements com.google.gson.JsonSerializer
|
||||
-keep class * implements com.google.gson.JsonDeserializer
|
||||
|
||||
# Uncomment this to preserve the line number information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue