mirror of
https://github.com/cmclark00/mintris.git
synced 2025-05-18 00:35:21 +01:00
- Added necessary ProGuard rules to keep HighScore class, generic signatures, and annotations. - Fixed bug where music started on title screen instead of game start. - Fixed bug where session stats were blank on game over screen by ensuring stats are displayed correctly after high score entry. - Fixed bug where game music did not restart after playing again.
48 lines
No EOL
1.7 KiB
Prolog
48 lines
No EOL
1.7 KiB
Prolog
# Add project specific ProGuard rules here.
|
|
# By default, the flags in this file are appended to flags specified
|
|
# in /Users/coreyclark/Library/Android/sdk/tools/proguard/proguard-android.txt
|
|
# You can edit the include path and order by changing the proguardFiles
|
|
# directive in build.gradle.
|
|
#
|
|
# For more details, see
|
|
# http://developer.android.com/guide/developing/tools/proguard.html
|
|
|
|
# Add any project specific keep options here:
|
|
|
|
# If your project uses WebView with JS, uncomment the following
|
|
# and specify the fully qualified class name to the JavaScript interface
|
|
# class:
|
|
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
|
# public *;
|
|
#}
|
|
|
|
# Uncomment this to preserve the line number table for debugging exceptions.
|
|
#-keepattributes SourceFile,LineNumberTable
|
|
|
|
# Keep rule for Gson serialization of HighScore data class
|
|
-keep class com.pixelmintdrop.model.HighScore { *; }
|
|
-keepclassmembers class com.pixelmintdrop.model.HighScore { *; }
|
|
|
|
# Keep generic signatures for Gson TypeToken
|
|
-keepattributes Signature
|
|
|
|
# Keep annotations used by Gson (e.g., @SerializedName, @Expose)
|
|
-keepattributes *Annotation*
|
|
|
|
# Keep the anonymous inner class generated for the TypeToken in HighScoreManager
|
|
-keep class com.pixelmintdrop.model.HighScoreManager$* { *; }
|
|
|
|
# Keep Gson TypeToken related classes
|
|
-keep class com.google.gson.reflect.TypeToken { *; }
|
|
-keep class com.google.gson.reflect.** { *; }
|
|
|
|
# Keep models intact
|
|
-keep class com.pixelmintdrop.model.** { *; }
|
|
|
|
# Uncomment this to preserve the line number information for
|
|
# debugging stack traces.
|
|
#-keepattributes SourceFile,LineNumberTable
|
|
|
|
# If you keep the line number information, uncomment this to
|
|
# hide the original source file name.
|
|
#-renamesourcefileattribute SourceFile |