# FreeExile R8 / ProGuard Optimization and Obfuscation Rules

# Keep WebKit JavaScript Interface methods
-keepattributes JavascriptInterface
-keepclassmembers class * {
    @android.webkit.JavascriptInterface <methods>;
}
-keep class com.freeexile.arpg.NativeBridgeInterface { *; }

# Google Play Billing Library 7.0+
-keep class com.android.billingclient.api.** { *; }
-dontwarn com.android.billingclient.api.**

# Google Play Integrity API 1.4+
-keep class com.google.android.play.core.integrity.** { *; }
-dontwarn com.google.android.play.core.integrity.**

# Kotlin Coroutines and Reflection
-keepclassmembers class kotlinx.coroutines.** { *; }
-dontwarn kotlinx.coroutines.**

# FreeExile Model serialization and bridges
-keepclassmembers class com.freeexile.arpg.** {
    public <methods>;
}
