Before using any Workmate SDK methods, you need to add the Mappls repositories and the SDK dependency to your project's Gradle files. Follow the setup that matches your Android Studio and AGP version below.
Important
Starting from this version, password-based initialization has been removed from the SDK.
Please remove the password parameter from your codebase and migrate to the new initialization mechanism before upgrading.
allprojects {
repositories {
maven { url 'https://maven.mappls.com/repository/mappls/' }
maven { url 'https://maven.mappls.com/repository/workmate/' }
}
}dependencyResolutionManagement {
repositories {
mavenCentral()
maven { url 'https://maven.mappls.com/repository/mappls/' }
maven { url 'https://maven.mappls.com/repository/workmate/' }
}
}dependencyResolutionManagement {
repositories {
mavenCentral()
maven { url = uri("https://maven.mappls.com/repository/mappls/") }
maven { url = uri("https://maven.mappls.com/repository/workmate/") }
}
}In your app-level build.gradle, add the following dependency and sync your project:
implementation 'com.mappls.sdk:mappls-workmate:<replace with latest version>'Once the sync is complete, you are ready to initialize the SDK. Head over to Initialization to get started.
For any queries and support, please contact:
Email us at wmsupport@mapmyindia.com
Need support? Contact us