Skip to content

Commit

Permalink
MOBILE-3103 Update proguard rules for R8 full mode (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldrabik authored Sep 6, 2023
1 parent ae6e8ab commit 0f87b74
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 45 deletions.
14 changes: 1 addition & 13 deletions accounts/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
# kotlinx.serialization

-keepattributes *Annotation*, InnerClasses
-dontnote kotlinx.serialization.AnnotationsKt

-keep,includedescriptorclasses class eu.kevin.accounts.**$$serializer { *; }
-keepclassmembers class eu.kevin.accounts.** {
*** Companion;
}
-keepclasseswithmembers class eu.kevin.accounts.** {
kotlinx.serialization.KSerializer serializer(...);
}

-keep public class io.ktor.client.** {
public <methods>;
private <methods>;
}

-dontwarn org.slf4j.impl.StaticLoggerBinder
}
14 changes: 1 addition & 13 deletions common/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
# kotlinx.serialization

-keepattributes *Annotation*, InnerClasses
-dontnote kotlinx.serialization.AnnotationsKt

-keep,includedescriptorclasses class eu.kevin.common.**$$serializer { *; }
-keepclassmembers class eu.kevin.common.** {
*** Companion;
}
-keepclasseswithmembers class eu.kevin.common.** {
kotlinx.serialization.KSerializer serializer(...);
}

-keep public class io.ktor.client.** {
public <methods>;
private <methods>;
}

-dontwarn org.slf4j.impl.StaticLoggerBinder
}
27 changes: 21 additions & 6 deletions core/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# kotlinx.serialization

-keepattributes *Annotation*, InnerClasses
-dontnote kotlinx.serialization.AnnotationsKt

-keep,includedescriptorclasses class eu.kevin.core.**$$serializer { *; }
-keepclassmembers class eu.kevin.core.** {
*** Companion;
Expand All @@ -16,4 +11,24 @@
private <methods>;
}

-dontwarn org.slf4j.impl.StaticLoggerBinder
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation

-dontwarn org.slf4j.impl.StaticLoggerBinder
-dontwarn java.lang.management.ManagementFactory
-dontwarn javax.management.InstanceNotFoundException
-dontwarn javax.management.MBeanRegistrationException
-dontwarn javax.management.MBeanServer
-dontwarn javax.management.MalformedObjectNameException
-dontwarn javax.management.ObjectInstance
-dontwarn javax.management.ObjectName
-dontwarn javax.naming.Context
-dontwarn javax.naming.InitialContext
-dontwarn javax.naming.NamingException
-dontwarn javax.servlet.ServletContainerInitializer
-dontwarn org.codehaus.janino.ClassBodyEvaluator
-dontwarn sun.reflect.Reflection

# kotlinx.serialization

-keepattributes *Annotation*, InnerClasses
-dontnote kotlinx.serialization.AnnotationsKt
14 changes: 1 addition & 13 deletions in-app-payments/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
# kotlinx.serialization

-keepattributes *Annotation*, InnerClasses
-dontnote kotlinx.serialization.AnnotationsKt

-keep,includedescriptorclasses class eu.kevin.inapppayments.**$$serializer { *; }
-keepclassmembers class eu.kevin.inapppayments.** {
*** Companion;
}
-keepclasseswithmembers class eu.kevin.inapppayments.** {
kotlinx.serialization.KSerializer serializer(...);
}

-keep public class io.ktor.client.** {
public <methods>;
private <methods>;
}

-dontwarn org.slf4j.impl.StaticLoggerBinder
}

0 comments on commit 0f87b74

Please sign in to comment.