36 lines
1.3 KiB
Prolog
36 lines
1.3 KiB
Prolog
# Add project specific ProGuard rules here.
|
|
# You can control the set of applied configuration files using the
|
|
# proguardFiles setting in build.gradle.
|
|
|
|
# Disable symbol and name obfuscation while preserving R8 code shrinking and bytecode optimization
|
|
-dontobfuscate
|
|
|
|
# Preserve stack traces and line numbers for debugging
|
|
-keepattributes SourceFile,LineNumberTable
|
|
-keepattributes *Annotation*,Signature,InnerClasses,EnclosingMethod
|
|
|
|
# Keep Jackson annotations and reflection targets
|
|
-dontwarn com.fasterxml.jackson.**
|
|
|
|
-dontwarn feign.**
|
|
|
|
# Keep API interfaces and model classes used for serialization/reflection
|
|
-keep class com.mowesta.android.feign.model.** { *; }
|
|
-keep interface com.mowesta.android.feign.api.** { *; }
|
|
-keep class org.geojson.** { *; }
|
|
|
|
# Keep app data classes serialized with Jackson
|
|
-keep class com.mowesta.android.app.repository.UserCredentials { *; }
|
|
-keep class com.mowesta.android.app.arduino.ArduinoConfig { *; }
|
|
-keepclassmembers class * {
|
|
@com.fasterxml.jackson.annotation.* <fields>;
|
|
@com.fasterxml.jackson.annotation.* <methods>;
|
|
}
|
|
|
|
# Suppress warnings for optional/runtime dependencies
|
|
-dontwarn javax.validation.**
|
|
-dontwarn javax.xml.bind.**
|
|
-dontwarn org.bouncycastle.**
|
|
-dontwarn org.conscrypt.**
|
|
-dontwarn org.openjsse.**
|
|
-dontwarn org.slf4j.** |