Socket
Socket
Sign inDemoInstall

cordova-plugin-proguard

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cordova-plugin-proguard

Cordova plugin for ProGuard


Version published
Weekly downloads
1.1K
increased by55.19%
Maintainers
1
Install size
17.4 kB
Created
Weekly downloads
 

Readme

Source

cordova-plugin-proguard

NPM version npm

Patreon

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

  • If you already have installed Android Studio then seems you already have installed ProGuard on your machine. If no, then you should download and install it manually from ProGuard official website.
  • cordova plugin add cordova-plugin-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. Feel free to fork this repo and modify it as you want.

You can also to check out some Android ProGuard snippets

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

History

  • v1.0.0 - supports Cordova version <7
  • v2.0.0 - supports Cordova version 7+ (thanks to @SujitSingh)

Why I've done this plugin?

https://alfilatov.com/posts/how-to-setup-proguard-in-cordova-application/

License

MIT © Aleksandr Filatov

Keywords

FAQs

Last updated on 28 Mar 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc