...
Code Block |
---|
allprojects { repositories { mavenCentral() google() //Mobile Protect Maven Repository maven { credentials { //Leave the username as "MAVEN" username "MAVEN" password "$MOBILEPROTECT_REPO_API_KEY" } url "https://mobile-protect-repos.securetheorem.com/mobileprotect-android" } } } |
Security Note: To avoid a hard-coded credential within the build.gradle
file, which may be exposed in a VCS, it is recommended to set it up as an environment variable or use the local.properties
file.Note: If you use settings for dependency management (for ex. if you see the error “Build was configured to prefer settings repositories over project repositories”) the Data Theorem repository will need to be added in settings.gradle
under dependencyResolutionManagement->repositories
Step 2: Configure the Mobile Protect API Key
...