cordova-plugin-custom-proguard
v1.0.3
Published
custom proguard plugin
Downloads
8
Maintainers
Readme
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 yourbuild.gradle
file and copyproguard-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