cordova-plugin-custom-proguard

1.0.3 • Public • Published

cordova-plugin-custom-proguard

Cordova plugin which activates ProGuard and minification for debug and release builds in your cordova mobile application.

What is ProGuard?

ProGuard is the open source optimizer for Java bytecode

You can read more about it on ProGuard official website and on android developer portal

How to use

  • ionic cordova plugin add cordova-plugin-custom-proguard - this command will configure your build.gradle file and copy proguard-custom.txt to ${androidPlatformDirectory}/assets/www/proguard-custom.txt

Customization

proguard-custom.txt file contains some basic rules for your cordova mobile app.

If you want to add rules to this proguard-custom.txt, please create your own proguard-custom.txt and add this to your projectroot folder. Upon installing the proguard-plugin, the rules will be added to your project. Example rules for various situations will be in the commented section in the plugin proguard-custom.txt.

ionic cordova platform rm android
ionic cordova platform add android

Package Sidebar

Install

npm i cordova-plugin-custom-proguard

Weekly Downloads

4

Version

1.0.3

License

ISC

Unpacked Size

11.4 kB

Total Files

9

Last publish

Collaborators

  • zghal