| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- # Capacitor core
- -keep class com.getcapacitor.** { *; }
- -keep @com.getcapacitor.annotation.CapacitorPlugin class * { *; }
- -keep @com.getcapacitor.annotation.Permission class * { *; }
- -keepclassmembers class * extends com.getcapacitor.Plugin {
- @com.getcapacitor.annotation.CapacitorPlugin <methods>;
- @com.getcapacitor.PluginMethod <methods>;
- }
- # JavaScript Interface (WebView <-> Java bridge)
- -keepclassmembers class * {
- @android.webkit.JavascriptInterface <methods>;
- }
- # WebView
- -keepclassmembers class * extends android.webkit.WebViewClient {
- public void *(android.webkit.WebView, java.lang.String, android.graphics.Bitmap);
- public boolean *(android.webkit.WebView, java.lang.String);
- public void *(android.webkit.WebView, java.lang.String);
- }
- # Firebase
- -keep class com.google.firebase.** { *; }
- -keep class com.google.android.gms.** { *; }
- -dontwarn com.google.firebase.**
- -dontwarn com.google.android.gms.**
- # Google Maps
- -keep class com.google.android.libraries.maps.** { *; }
- -dontwarn com.google.android.libraries.maps.**
- # OkHttp (Capacitor HTTP plugin)
- -dontwarn okhttp3.**
- -dontwarn okio.**
- -keep class okhttp3.** { *; }
- -keep interface okhttp3.** { *; }
- # Kotlin
- -keep class kotlin.** { *; }
- -dontwarn kotlin.**
- -keepclassmembers class **$WhenMappings {
- <fields>;
- }
- # Preserve stack traces in crash reports
- -keepattributes SourceFile,LineNumberTable
- -renamesourcefileattribute SourceFile
- # Annotations
- -keepattributes *Annotation*
- -keepattributes Signature
- -keepattributes Exceptions
|