Skip to content

appamap/cordova-support-android-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-support-android-plugin
NPM version NPM downloads

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 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

ReflectiveCordovaPlugin uses method names to match an appropriate action. Therefore you should keep names for methods with @CordovaMethod annotation:

-keepclassmembers class ** {
  @by.chemerisuk.cordova.support.CordovaMethod *;
}
-keep public enum by.chemerisuk.cordova.support.ReflectiveCordovaPlugin$** {
    **[] $VALUES;
    public *;
}

About

More convenient base CordovaPlugin class

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%