Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we use Proguard in Ionic?

I am new in Ionic and don't know much about core plugins and facilities it provides. I have heard about Proguard that it can help to build secure android applications. So my question is, Is it possible to make Ionic app more secure by using Proguard?

like image 952
Hitesh Upadhyay Avatar asked Aug 03 '16 14:08

Hitesh Upadhyay


People also ask

What is ProGuard used for?

ProGuard is a tool to help minify, obfuscate, and optimize your code. It is not only especially useful for reducing the overall size of your Android application as well as removing unused classes and methods that contribute towards the intrinsic 64k method limit of Android applications.

Is ProGuard enabled by default?

Proguard is basically integrated into the Android Build System. And it runs only when the build of your application is in the release mode. You can choose to use Android Proguard as it is not compulsory but is highly recommended.

Where do I put ProGuard file?

You can manually create the file in the \StudioProjects\your_project\app folder and you can add the custom rules.


1 Answers

Proguard is used to shrinks, optimizes and obfuscates Java code.

You can use proguard in ionic only for android platform as ios don't use Java as native code.

You can use following plugin to use proguard in ionic android -

https://github.com/greybax/cordova-plugin-proguard

https://www.npmjs.com/package/cordova-plugin-proguard

like image 121
Avinash Rathod Avatar answered Sep 20 '22 07:09

Avinash Rathod