@capacitor/android 8.3.6 → 8.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,11 +15,24 @@
15
15
 
16
16
  -keep public class * extends com.getcapacitor.Plugin { *; }
17
17
 
18
+ # The annotation types are read at runtime via reflection. If they are not kept, R8 full mode
19
+ # treats them as never instantiated and optimizes the annotation cached in PluginHandle to null,
20
+ # even with -keepattributes *Annotation*.
21
+ -keep @interface com.getcapacitor.annotation.** { *; }
22
+ -keep @interface com.getcapacitor.PluginMethod { *; }
23
+
24
+ # Callback methods are found by reflection, including on non-public base classes.
25
+ -keepclassmembers class * extends com.getcapacitor.Plugin {
26
+ @com.getcapacitor.annotation.ActivityCallback <methods>;
27
+ @com.getcapacitor.annotation.PermissionCallback <methods>;
28
+ }
29
+
18
30
  # Rules for Capacitor v2 plugins and annotations
19
31
  # These are deprecated but can still be used with Capacitor for now
20
32
  -keep @com.getcapacitor.NativePlugin public class * {
21
33
  @com.getcapacitor.PluginMethod public <methods>;
22
34
  }
35
+ -keep @interface com.getcapacitor.NativePlugin { *; }
23
36
 
24
37
  # Rules for Cordova plugins
25
38
  -keep public class * extends org.apache.cordova.* {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/android",
3
- "version": "8.3.6",
3
+ "version": "8.3.7",
4
4
  "description": "Capacitor: Cross-platform apps with JavaScript and the web",
5
5
  "homepage": "https://capacitorjs.com",
6
6
  "author": "Ionic Team <hi@ionic.io> (https://ionic.io)",