First Steps
1. Gradle setup
Add the Mobbeel repository to access the dependency. Assuming Kotlin DSL is being used, you should edit the settings.gradle.kts file:
dependencyResolutionManagement {
...
repositories {
// ... other repositories
maven {
url = uri("https://repository.mobbeel.com/repository/release/")
credentials {
username = "[YOUR_USERAME]"
password = "[YOUR_PASSWORD]"
}
}
}
}
MobbScan Gateway Android SDK, along with other necessary libraries, is hosted in the following Maven repository: https://repository.mobbeel.com/repository/release/. To access it, you will need a username and password provided to you by Mobbeel as a client.
Add the MobbScan Gateway Android dependency to the Version Catalogs:
[versions]
mga = "[CURRENT_VERSION]"
[libraries]
mobbeel-mobbscan-gateway = { group = "com.mobbeel", name = "mobbscan-gateway-android", version.ref = "mga" }
Add the dependency
dependencies {
implementation(libs.mobbeel.mobbscan.gateway)
}
dependencies {
implementation("com.mobbeel:mobbscan-gateway-android:[CURRENT_VERSION]")
}
Replace [CURRENT_VERSION] with the current version of the library. You can check it in the Changelog section.
2. Sync Project with Gradle Files
Once the repository is configured and the dependency is added, you need to sync the project so that Gradle downloads the dependency from the repository. You can do this by going to File → Sync Project with Gradle Files.
3. Usage
Now you are ready to use the MobbScan Gateway Android sdk. Check Usage section for additional info.
