Native Android apps use the Maven artifact ai.glassly:bluetooth-sdk.
The Maven artifact is not available yet. Maven publishing is paused, and Maven Central has only old 0.1.0-dev builds, which do not match these docs. Use the React Native package, which installs from npm.

Requirements

  • Android min SDK 28 or newer.
  • Java 17.
  • Android Studio or Gradle.
  • A physical Android phone for Bluetooth, camera, microphone, direct phone photo, and direct phone WebRTC testing.

Gradle Setup

Keep google() and mavenCentral() configured. The SDK POM pulls in the companion ai.glassly:lc3Lib codec artifact automatically; do not add it manually unless you have a specific override reason. The packaging rule avoids duplicate libc++_shared.so conflicts when your app also includes native media or camera dependencies.

Permissions

Declare the platform permissions your app uses:
Request runtime permissions before scanning. Some Android 12+ devices require Location permission and Location services before BLE scan callbacks are delivered.

Basic Flow

Local SDK Override

This needs access to the Glassly source repository. Use it when testing SDK source changes from a local Glassly checkout. Run the publish command from the generated Expo Android project with its Gradle wrapper, then consume the Maven-local artifact from your app:
The artifacts use the version in mobile/modules/bluetooth-sdk/package.json. Set MAVEN_VERSION to publish another version. Then include mavenLocal() before mavenCentral() in the app’s repositories while testing the local artifact.