Android Studio
Update your Gradle Dependencies (Required)
Gradle version 7.0 and above
In your root-level (project-level) Gradle settings file (<project>/settings.gradle), add the following repository to your dependencyResolutionManagement block:
dependencyResolutionManagement {
repositories {
// Other repositories...
maven {
url "https://mobile-sdks.forter.com/android"
credentials {
username "forter-android-sdk"
password "HvYumAfjVQYQFyoGsmNAefGdR84Esqig"
}
}
}
}Earlier gradle versions
In your module (app-level) Gradle file (usually <project>/<app-module>/build.gradle.kts or <project>/<app-module>/build.gradle), add the following repository to your repositories block:
repositories {
// Other repositories...
maven {
url "https://mobile-sdks.forter.com/android"
credentials {
username "forter-android-sdk"
password "HvYumAfjVQYQFyoGsmNAefGdR84Esqig"
}
}
}These credentials should be included in your version control (i.e. Git) since they are non-sensitive and used primarily to restrict bot and search engine access to the repository.
Add the ForterSDK as a dependency
In your module (app-level) Gradle file (usually <project>/<app-module>/build.gradle.kts or <project>/<app-module>/build.gradle), add the following dependency:
implementation 'com.forter.mobile:fortersdk:3.0.20'