# 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 # 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 *; #} # 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 # --- Capacitor 6 --- # Plugins are discovered + invoked by reflection from the JS bridge. -keep class com.getcapacitor.** { *; } -keep @com.getcapacitor.annotation.CapacitorPlugin class * { *; } -keepclassmembers class * extends com.getcapacitor.Plugin { @com.getcapacitor.PluginMethod public *; } -keepclassmembers @com.getcapacitor.annotation.CapacitorPlugin class * { @com.getcapacitor.PluginMethod public *; } # --- Cordova compatibility layer (capacitor-cordova-android-plugins) --- -keep class org.apache.cordova.** { *; } -keep public class * extends org.apache.cordova.CordovaPlugin # --- WebView JS interface --- -keepclassmembers class * { @android.webkit.JavascriptInterface ; } # Helpful stack traces from release builds. -keepattributes SourceFile,LineNumberTable -renamesourcefileattribute SourceFile