Quickstart
Get from zero to displaying text on the glasses in 5 minutes.
What You'll Need
| Requirement | Details |
|---|---|
| Maverick AI / AI Pro glasses | Or use the Glasses Simulator for development without hardware |
| API key | sdk.key file - request one here |
| IDE | Android Studio (Android / KMP) or Xcode (iOS) |
| Platform | Android API 30 (Android 11) or iOS 16 |
BLE 5 is recommended for optimal performance.
Step 1 - Add the SDK
Provide credentials via ~/.gradle/gradle.properties:
Add the Maven repository and SDK dependency:
settings.gradle.kts
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven {
url = uri("https://maven.pkg.github.com/everysight-maverick-AI/mav-ai-android-maven")
credentials {
username = providers.gradleProperty("gpr.user").orNull
password = providers.gradleProperty("gpr.key").orNull
}
}
}
}
Add the SPM package in Xcode:
File → Add Package Dependencies → enter the mav-ai-ios-spm repository URL.
Step 2 - Initialize the SDK
Place your sdk.key file in the app resources:
- Native Android:
app/src/main/assets/sdk.key - Native iOS: at the iOS app bundle root (Xcode → "Copy Bundle Resources")
- KMP Compose:
composeApp/src/commonMain/composeResources/files/sdk.key
For the full picture (where every kind of resource goes, what build scripts you need, when a resolver is required) see the Resources guide.
Step 3 - Display Content on the Glasses
class HelloScreen : M2Screen(540f, 280f) {
override fun onCreate() {
val title = M2Text()
title.setFont(M2FontResource.fontMedium)
.setText("Hello Maverick AI!")
.setAlign(Align.CenterHorizontal)
.setX(width / 2f).setY(height / 2f)
.setColor(M2Color.White)
add(title)
}
}
Connect and display:
Next Steps
- See the Samples repository for complete working projects
- Read the full Starting Application Development guide for permissions, logging, and termination
- Explore the UI Kit for shapes, images, animations, and custom controls
- Set up the Simulator for development without hardware