Ionic obfuscation

#1

I have used ionic-voricles-obfuscate plugin to prevent reverse engineering of my app. It’s working fine as expected but it encrypted all js files. I want to exclude some files like vendor.js and polyfills.js. My configuration looks like below and while building app those files are not excluded








any one help me to resolve this issue? Thanks

#2

It looks like the obfuscation has worked!

#3

Yes it is working fine. But I want to exclude some files while building APK. I gave list of files to exclude in exclude section of config file that ignored when build.

#4

Hi Kumaresanp

How did you exclude vendor.js and polyfills.js. Can u give your exclude section here

#5

Hi

Are you able to exclude file?
I tried below section but does not work

<exclude>
        <file regex="\.(vendor|polyfills)$" />
        </exclude>

<exclude>
        <file regex="\.(vendor.js|polyfills.js)$" />
        </exclude>