@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.
- package/capacitor/proguard-rules.pro +13 -0
- package/package.json +1 -1
|
@@ -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