...
Code Block | ||
---|---|---|
| ||
MobileProtect.init(this, R.xml.mobileprotect); |
If you don’t have an Application
object, you need to create one and register it in AndroidManifest.xml
5. Optional: configuration for static obfuscation
You can enable Mobile Protect obfuscation in the project build.gradle with:
Code Block |
---|
MobileProtectPluginConfiguration {
enableObfuscation = true
} |
If static obfuscation is enabled for a Cordova project then the following proguard rules must be added to your proguard-rules.pro
file in order to prevent plugins from breaking:
...