Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions android/capacitor/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
-keep @interface com.getcapacitor.annotation.** { *; }
-keep @interface com.getcapacitor.PluginMethod { *; }

# Callback methods are found by reflection, including on non-public base classes.
-keepclassmembers class * extends com.getcapacitor.Plugin {
@com.getcapacitor.annotation.ActivityCallback <methods>;
@com.getcapacitor.annotation.PermissionCallback <methods>;
}

# Rules for Capacitor v2 plugins and annotations
# These are deprecated but can still be used with Capacitor for now
-keep @com.getcapacitor.NativePlugin public class * {
Expand Down
Loading