File tree Expand file tree Collapse file tree 4 files changed +49
-6
lines changed
Expand file tree Collapse file tree 4 files changed +49
-6
lines changed Original file line number Diff line number Diff line change 1919# If you keep the line number information, uncomment this to
2020# resetToOrigin the original source file name.
2121#-renamesourcefileattribute SourceFile
22+
23+ # Auto-generated rules to suppress warnings
24+ -dontwarn java.beans.BeanInfo
25+ -dontwarn java.beans.IntrospectionException
26+ -dontwarn java.beans.Introspector
27+ -dontwarn java.beans.PropertyDescriptor
28+ -dontwarn sun.nio.ch.DirectBuffer
29+
30+ # Your custom keep rules for Kryo
31+ -keep class com.esotericsoftware.kryo.** { *; }
32+ -keep class com.esotericsoftware.kryo.serializers.** { *; }
33+ -keepclassmembers class com.esotericsoftware.kryo.serializers.DefaultArraySerializers$* {
34+ public <init>();
35+ }
Original file line number Diff line number Diff line change @@ -74,19 +74,20 @@ android {
7474 }
7575
7676 buildTypes {
77+ debug {
78+ // minifyEnabled true
79+ // proguardFiles(getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro')
80+ }
7781 release {
78- postprocessing {
79- removeUnusedCode true
80- removeUnusedResources true
81- obfuscate false
82- optimizeCode true
83- }
82+ minifyEnabled true
83+
8484 proguardFiles(getDefaultProguardFile(' proguard-android-optimize.txt' ), ' proguard-rules.pro' )
8585 }
8686 signedRelease {
8787 initWith(release)
8888 signingConfig = signingConfigs. signedRelease
8989 }
90+
9091 }
9192
9293 publishing {
Original file line number Diff line number Diff line change 1919# If you keep the line number information, uncomment this to
2020# resetToOrigin the original source file name.
2121-renamesourcefileattribute SourceFile
22+
23+ # Auto-generated rules to suppress warnings
24+ -dontwarn java.beans.BeanInfo
25+ -dontwarn java.beans.IntrospectionException
26+ -dontwarn java.beans.Introspector
27+ -dontwarn java.beans.PropertyDescriptor
28+ -dontwarn sun.nio.ch.DirectBuffer
29+
30+ # Your custom keep rules for Kryo
31+ -keep class com.esotericsoftware.kryo.** { *; }
32+ -keep class com.esotericsoftware.kryo.serializers.** { *; }
33+ -keepclassmembers class com.esotericsoftware.kryo.serializers.DefaultArraySerializers$* {
34+ public <init>();
35+ }
Original file line number Diff line number Diff line change 1919# If you keep the line number information, uncomment this to
2020# hide the original source file name.
2121#-renamesourcefileattribute SourceFile
22+
23+ # Auto-generated rules to suppress warnings
24+ -dontwarn java.beans.BeanInfo
25+ -dontwarn java.beans.IntrospectionException
26+ -dontwarn java.beans.Introspector
27+ -dontwarn java.beans.PropertyDescriptor
28+ -dontwarn sun.nio.ch.DirectBuffer
29+
30+ # Your custom keep rules for Kryo
31+ -keep class com.esotericsoftware.kryo.** { *; }
32+ -keep class com.esotericsoftware.kryo.serializers.** { *; }
33+ -keepclassmembers class com.esotericsoftware.kryo.serializers.DefaultArraySerializers$* {
34+ public <init>();
35+ }
You can’t perform that action at this time.
0 commit comments