Adds proguard config.
This commit is contained in:
		| @@ -44,16 +44,16 @@ android { | |||||||
|         release { |         release { | ||||||
|             // Enables code shrinking, obfuscation, and optimization for only |             // Enables code shrinking, obfuscation, and optimization for only | ||||||
|             // your project's release build type. |             // your project's release build type. | ||||||
| //            minifyEnabled true |             minifyEnabled true | ||||||
|  |  | ||||||
|             // Enables resource shrinking, which is performed by the |             // Enables resource shrinking, which is performed by the | ||||||
|             // Android Gradle plugin. |             // Android Gradle plugin. | ||||||
| //            shrinkResources true |             shrinkResources true | ||||||
|  |  | ||||||
|             // Includes the default ProGuard rules files that are packaged with |             // Includes the default ProGuard rules files that are packaged with | ||||||
|             // the Android Gradle plugin. To learn more, go to the section about |             // the Android Gradle plugin. To learn more, go to the section about | ||||||
|             // R8 configuration files. |             // R8 configuration files. | ||||||
| //            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|     compileOptions { |     compileOptions { | ||||||
|   | |||||||
							
								
								
									
										13
									
								
								app/proguard-rules.pro
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								app/proguard-rules.pro
									
									
									
									
										vendored
									
									
								
							| @@ -18,4 +18,15 @@ | |||||||
|  |  | ||||||
| # If you keep the line number information, uncomment this to | # If you keep the line number information, uncomment this to | ||||||
| # hide the original source file name. | # 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); | ||||||
|  | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user