woosmap-sdk
Woosmap Android SDK purpose is to offer a full toolkit to ease the integration of Woosmap' services on an Android application. It provides a MapView that you can use to represent any geographical data. You can enrich this MapView with our renderers for various streamlined use-cases. It also contains a full client library to simplify querying our web services.
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/")
}
}
}
Then you can add the dependency to our SDK in your gradle's build.gradle.kts
module-level file
dependencies {
//...
implementation("com.woosmap:sdk:1.1.2")
//...
}
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>
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)
Changelog
v1.1.3
Add support for
IndoorOfflineVenue
Bump AGP to 8.5.0
Bump Kotlin to 2.0.0
v1.1.2
Add styling options for
DistanceRenderer
Add callback for the selected route of
DistanceRenderer
v1.1.1
Add
stylersJson
properties to support custom styles for a mapAdd callbacks on
MapView
when style is loaded, map is loaded or if it fails to do soAdd missing documentation for
size
andminSize
parameters ofDefaultStyleRule
v1.1.0
Change StoresService to support
autocomplete
,search
andbounds
Update
StoresAutocompleteTextView
to use the correct autocomplete APIAllow
StoresRenderer.select
to take null in order to unselectBump AGP to 8.2.2
Bump dependencies versions
Use C++17
v1.0.2
Change proguard.rules to avoid potential conflict with other dependencies
Upgrade AGP to 8.2.1
Upgrade to Kotlin and its plugins to 1.9.20
Update copyright notice
v1.0.1
Added support for the new default icons for IndoorRenderer
Added support for the new
list_sub_buildings
parameters of LocalitiesService