2026-06-23 13:44:19 +08:00
|
|
|
# sdk-core is the base dependency for all other SDK modules.
|
|
|
|
|
# Renaming its classes would break the cross-module class references at runtime
|
|
|
|
|
# (each module's R8 sees sdk-core's minified output as classpath).
|
|
|
|
|
# Strategy: dead-code elimination only, no renaming.
|
|
|
|
|
-keep class com.xuqm.sdk.** { *; }
|
2026-06-23 13:35:07 +08:00
|
|
|
|
2026-06-23 13:44:19 +08:00
|
|
|
# Kotlin & annotation metadata (required by kotlinx.serialization and Compose)
|
2026-06-23 13:35:07 +08:00
|
|
|
-keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod
|
|
|
|
|
|
|
|
|
|
# Kotlinx serialization
|
|
|
|
|
-keepclassmembers @kotlinx.serialization.Serializable class ** { *; }
|
|
|
|
|
-keep class kotlinx.serialization.** { *; }
|
|
|
|
|
|
2026-06-23 13:44:19 +08:00
|
|
|
# Gson field names in network models
|
2026-06-23 13:35:07 +08:00
|
|
|
-keepclassmembers class com.xuqm.sdk.** {
|
|
|
|
|
@com.google.gson.annotations.SerializedName <fields>;
|
|
|
|
|
}
|