diff --git a/sentinel-no-op/proguard-rules.txt b/sentinel-no-op/proguard-rules.txt index 0674e77..3ce9626 100644 --- a/sentinel-no-op/proguard-rules.txt +++ b/sentinel-no-op/proguard-rules.txt @@ -1 +1,35 @@ --dontobfuscate \ No newline at end of file +-keeppackagenames +-keep public class com.infinum.sentinel.* { + public protected *; +} +-keep public class com.infinum.sentinel.Sentinel { + public protected *; +} +-keep public class com.infinum.sentinel.ui.tools.ChuckerTool { + public protected *; +} +-keep public class com.infinum.sentinel.ui.tools.CollarTool { + public protected *; +} +-keep public class com.infinum.sentinel.ui.tools.DbInspectorTool { + public protected *; +} +-keep public class com.infinum.sentinel.ui.tools.LeakCanaryTool { + public protected *; +} +-keep public class com.infinum.sentinel.ui.tools.AppGalleryTool { + public protected *; +} +-keep public class com.infinum.sentinel.ui.tools.GooglePlayTool { + public protected *; +} +-keep public class com.infinum.sentinel.ui.tools.ThimbleTool { + public protected *; +} +-keep public class com.infinum.sentinel.ui.tools.TimberTool { + public protected *; +} +-keep public class com.infinum.sentinel.ui.tools.CertificateTool { + public protected *; +} +-keep public class com.infinum.sentinel.databinding.** \ No newline at end of file diff --git a/sentinel/proguard-rules.txt b/sentinel/proguard-rules.txt index 0674e77..7bfc6c4 100644 --- a/sentinel/proguard-rules.txt +++ b/sentinel/proguard-rules.txt @@ -1 +1,39 @@ --dontobfuscate \ No newline at end of file +-keeppackagenames +-keep public class com.infinum.sentinel.* { + public protected *; +} +-keep public class com.infinum.sentinel.Sentinel { + public protected *; +} +-keep public class com.infinum.sentinel.ui.tools.CertificateTool { + public protected *; +} +-keep public class com.infinum.sentinel.databinding.** + +# KotlinX Serialization +-if @kotlinx.serialization.Serializable class ** +-keepclassmembers class <1> { + static <1>$Companion Companion; +} +-if @kotlinx.serialization.Serializable class ** { + static **$* *; +} +-keepclassmembers class <1>$<3> { + kotlinx.serialization.KSerializer serializer(...); +} +-if @kotlinx.serialization.Serializable class ** { + public static ** INSTANCE; +} +-keepclassmembers class <1> { + public static <1> INSTANCE; + kotlinx.serialization.KSerializer serializer(...); +} +-keepattributes RuntimeVisibleAnnotations,AnnotationDefault +-keepattributes InnerClasses # Needed for `getDeclaredClasses`. +-keepnames class <1>$$serializer { # -keepnames suffices; class is kept when serializer() is kept. + static <1>$$serializer INSTANCE; +} + +-keep class * extends androidx.room.RoomDatabase +-keep @androidx.room.Entity class * +-keep @androidx.room.TypeConverters class * \ No newline at end of file diff --git a/tool-appgallery/proguard-rules.txt b/tool-appgallery/proguard-rules.txt index 0674e77..8fedccd 100644 --- a/tool-appgallery/proguard-rules.txt +++ b/tool-appgallery/proguard-rules.txt @@ -1 +1,5 @@ --dontobfuscate \ No newline at end of file +-keeppackagenames +-keep public class com.infinum.sentinel.ui.tools.AppGalleryTool { + public protected *; +} +-keep public class com.infinum.sentinel.databinding.** diff --git a/tool-chucker/proguard-rules.txt b/tool-chucker/proguard-rules.txt index 0674e77..dff7c09 100644 --- a/tool-chucker/proguard-rules.txt +++ b/tool-chucker/proguard-rules.txt @@ -1 +1,5 @@ --dontobfuscate \ No newline at end of file +-keeppackagenames +-keep public class com.infinum.sentinel.ui.tools.ChuckerTool { + public protected *; +} +-keep public class com.infinum.sentinel.databinding.** diff --git a/tool-collar/proguard-rules.txt b/tool-collar/proguard-rules.txt index 0674e77..eab8714 100644 --- a/tool-collar/proguard-rules.txt +++ b/tool-collar/proguard-rules.txt @@ -1 +1,5 @@ --dontobfuscate \ No newline at end of file +-keeppackagenames +-keep public class com.infinum.sentinel.ui.tools.CollarTool { + public protected *; +} +-keep public class com.infinum.sentinel.databinding.** diff --git a/tool-dbinspector/proguard-rules.txt b/tool-dbinspector/proguard-rules.txt index 0674e77..b914121 100644 --- a/tool-dbinspector/proguard-rules.txt +++ b/tool-dbinspector/proguard-rules.txt @@ -1 +1,5 @@ --dontobfuscate \ No newline at end of file +-keeppackagenames +-keep public class com.infinum.sentinel.ui.tools.DbInspectorTool { + public protected *; +} +-keep public class com.infinum.sentinel.databinding.** \ No newline at end of file diff --git a/tool-googleplay/proguard-rules.txt b/tool-googleplay/proguard-rules.txt index 0674e77..ba10a08 100644 --- a/tool-googleplay/proguard-rules.txt +++ b/tool-googleplay/proguard-rules.txt @@ -1 +1,5 @@ --dontobfuscate \ No newline at end of file +-keeppackagenames +-keep public class com.infinum.sentinel.ui.tools.GooglePlayTool { + public protected *; +} +-keep public class com.infinum.sentinel.databinding.** diff --git a/tool-leakcanary/proguard-rules.txt b/tool-leakcanary/proguard-rules.txt index 0674e77..d35cf0f 100644 --- a/tool-leakcanary/proguard-rules.txt +++ b/tool-leakcanary/proguard-rules.txt @@ -1 +1,5 @@ --dontobfuscate \ No newline at end of file +-keeppackagenames +-keep public class com.infinum.sentinel.ui.tools.LeakCanaryTool { + public protected *; +} +-keep public class com.infinum.sentinel.databinding.** diff --git a/tool-thimble/proguard-rules.txt b/tool-thimble/proguard-rules.txt index 0674e77..81486b1 100644 --- a/tool-thimble/proguard-rules.txt +++ b/tool-thimble/proguard-rules.txt @@ -1 +1,5 @@ --dontobfuscate \ No newline at end of file +-keeppackagenames +-keep public class com.infinum.sentinel.ui.tools.ThimbleTool { + public protected *; +} +-keep public class com.infinum.sentinel.databinding.** diff --git a/tool-timber/proguard-rules.txt b/tool-timber/proguard-rules.txt index 0674e77..d6451db 100644 --- a/tool-timber/proguard-rules.txt +++ b/tool-timber/proguard-rules.txt @@ -1 +1,5 @@ --dontobfuscate \ No newline at end of file +-keeppackagenames +-keep public class com.infinum.sentinel.ui.tools.TimberTool { + public protected *; +} +-keep public class com.infinum.sentinel.databinding.**