tkyaji / cordova-plugin-crypt-file

This plugin to encrypt the source files.
Apache License 2.0
178 stars 116 forks source link

Feature request #47

Open SvenSiwek opened 7 years ago

SvenSiwek commented 7 years ago

Hi,

that plugin is really great!

During my debugging with my Android, it get's a bit annoying if that plugin is installed.

So my request is: Is it possible to turn of the cryptonize part if the app is build with --debug ?

Or the way round: Only activate the crypto-plugin if the app is build with --release ?

Sven

renandecarlo commented 7 years ago

That's actually a bad idea. That way we can't debug the encrypted app. Sometimes it might cause issues. The best way is to add the plugin only when you're releasing the app, or debugging its final version.

krinlyc commented 7 years ago

How often you have to debug the encrypted app? If you have to remove and add the plugin everytime, it easily happens that you forget to add the plugin where you actually have to. I think in your cases it would be better to implement an extra switch for debugging the app while encyrpted.