Fix proguard removing too much.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
This commit is contained in:
parent
5f77cf40dc
commit
52a5ceb5d6
|
@ -21,16 +21,19 @@ android {
|
|||
release {
|
||||
minifyEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'),
|
||||
'minify/proguard-main.pro',
|
||||
'minify/proguard-okhttp.pro',
|
||||
'minify/proguard-retrofit.pro',
|
||||
'minify/proguard-jackson.pro'
|
||||
'minify/proguard-jackson.pro',
|
||||
'minify/proguard-kotlin-reflect.pro',
|
||||
'minify/proguard-kotlin.pro'
|
||||
}
|
||||
debug {
|
||||
minifyEnabled false
|
||||
testCoverageEnabled true
|
||||
applicationIdSuffix ".debug"
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main.java.srcDirs += "${projectDir}/src/main/kotlin"
|
||||
test.java.srcDirs += "${projectDir}/src/test/kotlin"
|
||||
|
|
|
@ -9,3 +9,13 @@
|
|||
}
|
||||
-dontwarn com.fasterxml.jackson.databind.**
|
||||
-keep class org.codehaus.** { *; }
|
||||
-keepclassmembers class * extends com.fasterxml.jackson.databind.JsonDeserializer {
|
||||
*;
|
||||
}
|
||||
|
||||
-keepclassmembers public class * {
|
||||
@com.fasterxml.jackson.annotation.JsonCreator *;
|
||||
@com.fasterxml.jackson.annotation.JsonProperty *;
|
||||
@com.fasterxml.jackson.databind.annotation.JsonDeserialize *;
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
-keep class kotlin.Metadata { *; }
|
||||
-keep class kotlin.reflect.** { *; }
|
||||
|
||||
-keepclassmembers public class com.company[obfuscated].domain.api.models.** {
|
||||
public synthetic <methods>;
|
||||
}
|
||||
|
||||
-keep class org.jetbrains.kotlin.** { *; }
|
||||
-keep class org.jetbrains.annotations.** { *; }
|
||||
-keepclassmembers class ** {
|
||||
@org.jetbrains.annotations.ReadOnly public *;
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
-dontwarn kotlin.**
|
||||
-keepclassmembers class **$WhenMappings {
|
||||
<fields>;
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
-dontobfuscate
|
||||
|
||||
### Don't remove subsonic api serializers/entities
|
||||
-keep class org.moire.ultrasonic.api.subsonic.response.** { *; }
|
Loading…
Reference in New Issue