diff --git a/app/build.gradle b/app/build.gradle index 5625706..1d8cad7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -44,16 +44,16 @@ android { release { // Enables code shrinking, obfuscation, and optimization for only // your project's release build type. -// minifyEnabled true + minifyEnabled true // Enables resource shrinking, which is performed by the // Android Gradle plugin. -// shrinkResources true + shrinkResources true // Includes the default ProGuard rules files that are packaged with // the Android Gradle plugin. To learn more, go to the section about // R8 configuration files. -// proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 481bb43..08e4fd6 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -18,4 +18,15 @@ # If you keep the line number information, uncomment this to # hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file +#-renamesourcefileattribute SourceFile + +-keep enum com.majinnaibu.monstercards.data.enums.AbilityScore +-keep enum com.majinnaibu.monstercards.data.enums.ProficiencyType +-keep enum com.majinnaibu.monstercards.data.enums.AdvantageType +-keep enum com.majinnaibu.monstercards.data.enums.TraitType +-keep enum com.majinnaibu.monstercards.data.enums.StringType +-keepclassmembers,allowoptimization enum * { + ; + public static **[] values(); + public static ** valueOf(java.lang.String); +}