woosmap-sdk
Configure Gradle to install our SDK
The path to our maven's repository is https://native-sdk.woosmap.com/android/
In settings.gradle.kts
file add the path to our maven's repository like this
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven {
url = uri("https://native-sdk.woosmap.com/android/")
}
}
}
Content copied to clipboard
Then you can add the dependency to our SDK in your gradle's build.gradle.kts
module-level file
dependencies {
//...
implementation("com.woosmap:sdk:0.0.7")
//...
}
Content copied to clipboard
How to use
In order to authenticate your application you will need to add a meta-data information to specify your private key in the AndroidManifest.xml in your application's tag like so:
<application>
<!-- ... -->
<meta-data android:name="com.woosmap.sdk.privateKey" android:value="YOUR PRIVATE KEY HERE" />
</application>
Content copied to clipboard
Once done if you wish to use directly any of the API clients classes you'll need to make sure you have the library initialized before hand in your code (a single call in the MainActivity is enough)
Woosmap.initialize(applicationContext)
Content copied to clipboard
Packages
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard