Note: The latest $VERSION
is 24.27.1
The Mobile Protect SDK for native Android apps is distributed via Maven. This document will take you through the steps to integrate SDK into your build system. For other guides, check out Mobile Protect Installation Guides
To fetch the Mobile Protect SDK for Android via Maven, an API key is needed. If you haven’t received an API key for Mobile ProtectYou can find it on our portal by going to active protection and clicking “protect mobile apps”. If you have issues getting that key, please contact us.
Stating with v23, we introduced a new Gradle plugin, available on our Maven repository. This plugin now automatically installs required dependencies and is applied at the project level. You no longer need to manually install a jar.
...
Now you're ready to initialize the SDK. Within your application's main Application class, preferably in the onCreate()
method, add the following initializing code:
Code Block |
---|
import com.datatheorem.mobileprotect.MobileProtect [...] class YourApplication : Application() { override fun onCreate() { [...] MobileProtect.init(this, R.xml.mobileprotect); [...] } [...] } |
Results
Please visit https://www.securetheorem.com/mobile/protect to see the list of your apps and the state of protection, along with the individual protection item details.
Optional: Enable Anti-fraud
To enable the anti-fraud feature of MobileProtect, you need to have at least version 24.5 installed, and then in your build.gradle
enable the anti-fraud feature like this:
Code Block |
---|
MobileProtectPluginConfiguration {
enableAntiFraud = true
} |
Optional: Add TrustKit certificate pinning
...