Install and set up
The modules are on Maven Central under com.mountaya, at one version. Add the ones your build uses.
An Android app that shows a map adds the client and the elements:
A JVM server adds the admin package, which brings the client with it:
Keep mavenCentral() among the build's repositories. mountaya-geo comes with mountaya-elements; add it alone for the rules without a map.
On Android, apply the Compose compiler plugin and meet the floors:
Declare the network in AndroidManifest.xml, and the location permissions if the app locates the reader or navigates:
In a Kotlin Multiplatform project, the four multiplatform modules go in commonMain, and navigation in androidMain:
Keep the publishable key out of source control. Put it in an .env file beside the app's build script, listed in .gitignore:
Read it in Gradle from the environment, else from .env, the way the SDK's sample app Trail does, into BuildConfig:
The app then builds its client from BuildConfig:
A server reads its keys from environment variables:
Create keys under Organization → API keys in the Mountaya app.
Each module's API is one package named after it. Import the names you use:
The secret key and the admin package are for servers only. An app imports neither.