Skip to content

Commit 05886b3

Browse files
Updating values to check for kryo
1 parent 9d79f88 commit 05886b3

File tree

4 files changed

+49
-6
lines changed

4 files changed

+49
-6
lines changed

Paintroid/proguard-rules.pro

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,17 @@
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+
}

app/build.gradle

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff 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 {

app/proguard-rules.pro

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,17 @@
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+
}

colorpicker/proguard-rules.pro

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,17 @@
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+
}

0 commit comments

Comments
 (0)