Adds proguard config.

This commit is contained in:
2021-08-04 10:28:00 -07:00
parent 837005965b
commit 7a63a11e93
2 changed files with 15 additions and 4 deletions

View File

@@ -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 {

View File

@@ -18,4 +18,15 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-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 * {
<fields>;
public static **[] values();
public static ** valueOf(java.lang.String);
}