R8 configuration fixed for marshalling Preset values to/from XML

This commit is contained in:
Aleksander Nowakowski
2025-10-06 23:17:46 +02:00
committed by Himali Aryal
parent 22c01e77c4
commit 96fe90a2d1
2 changed files with 13 additions and 33 deletions

View File

@@ -1,20 +1,6 @@
# Simple XML
-dontwarn javax.xml.**
-keep public class org.simpleframework.**{ *; }
-keep class org.simpleframework.xml.**{ *; }
-keep class org.simpleframework.xml.core.**{ *; }
-keep class org.simpleframework.xml.util.**{ *; }
-keepattributes Signature
-keepattributes *Annotation*
# Ignore our XML Serialization classes
-keep public class your.annotated.pojo.models.*{
public protected private *;
}
# Crashlytics
-keepattributes SourceFile,LineNumberTable # Keep file names and line numbers.
-keep public class * extends java.lang.Exception # Optional: Keep custom exceptions.

View File

@@ -1,21 +1,15 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Simple XML
-dontwarn javax.xml.**
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
-keep public class org.simpleframework.**{ *; }
-keep class org.simpleframework.xml.**{ *; }
-keep class org.simpleframework.xml.core.**{ *; }
-keep class org.simpleframework.xml.util.**{ *; }
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
# Ignore our XML Serialization classes
-keep public class no.nordicsemi.android.toolbox.profile.repository.uartXml.XmlConfiguration {
public protected private *;
}
-keep public class no.nordicsemi.android.toolbox.profile.repository.uartXml.XmlMacro {
public protected private *;
}