cordova-support-android-plugin
The plugin introduces new base class for Android Cordova plugins called ReflectiveCordovaPlugin
that extends CordovaPlugin
and allows to reduce boilerplate code. Please read links below to understand all new capabilities:
ProGuard notes
If you obfuscate app with ProGuard then proguard-rules.pro
usually contains rules:
-keep class org.apache.cordova.* { *; }
-keep class org.apache.cordova.engine.* { *; }
-keep public class * extends org.apache.cordova.CordovaPlugin
Because ReflectiveCordovaPlugin
uses method names to invoke appropriate action you should keep any methods marked with @CordovaMethod
:
-keepclassmembers class ** {
@by.chemerisuk.cordova.support.CordovaMethod *;
}