Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Mobile Protect builds are served from the following git repository: <httpshttps://mobile-protect-repos.securetheorem.com/mobileprotect-ios.>

Access via SPM and CocoaPods, or Clone the Repo

...

Code Block
languagesh
git clone <httpshttps://any:{REPO_API_KEY}@mobile-protect-repos.securetheorem.com/mobileprotect-ios>ios

You can avoid the need for directly referencing the Repo API Key by adding it to your environment's .netrc file. Add the following to ~/.netrc (create the file if it doesn't already exist):

...

Enter the following URL in Xcode, FileAdd Package Dependencies…Enter Package URL:

Code Block
<httpshttps://spm:{REPO_API_KEY}@mobile-protect-repos.securetheorem.com/mobileprotect-ios>ios

Replace {REPO_API_KEY} with your real Repo API Key. If the Repo API Key has already been added to your environment's .netrc file, spm:{REPO_API_KEY}@ can be omitted from the URL.

...

Code Block
languagegroovy
allprojects {
    repositories {
        mavenCentral()
        google()
        
        // Mobile Protect Maven Repository
        maven {
            credentials {
                // Leave the username as "MAVEN"
                username "MAVEN"
                password "$MOBILEPROTECT_REPO_API_KEY"
            }
            url "<httpshttps://mobile-protect-repos.securetheorem.com/mobileprotect-android>android"
        }
    }
}

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.

...