Skip to content

Repository files navigation

Connections SDK Android Sample

Minimal Android sample app demonstrating the Connections SDK for rowing machine integration.

What it shows

  • Module initialization with ConnectionsModule.create
  • Device scanning via DeviceListProvider
  • Connecting to a rowing machine via ConnectionManager
  • Live metrics via RowerDataSource: stroke rate, split, power, distance
  • Fake device support for running without hardware (debug builds)

Requirements

  • Android Studio Meerkat or newer
  • Android 8.0+ (API 26) device or emulator
  • MoveLab Nexus credentials (contact MoveLab to obtain)

Getting Started

  1. Clone this repo
  2. Add your credentials to ~/.gradle/gradle.properties (create if it doesn't exist):
    nexusUser=<your username>
    nexusPassword=<your password>
    
  3. Open the project in Android Studio
  4. Press Sync Project with Gradle Files
  5. Build and run the app configuration

In debug builds a simulated ("Fake") rowing machine appears automatically in the device list — no hardware required.

Authentication

The SDK is hosted on the MoveLab Nexus repository. Contact MoveLab to obtain credentials.

The gradle.properties file is gitignored to prevent accidentally committing credentials. Alternatively, you can set the NEXUS_USER and NEXUS_PASSWORD environment variables instead of using the properties file.

Key Files

FilePurpose
app/src/main/java/mls/connections/sample/ConnectionsViewModel.ktCore SDK integration
app/src/main/java/mls/connections/sample/ui/DeviceListScreen.ktDevice scanning UI
app/src/main/java/mls/connections/sample/ui/MetricsScreen.ktLive metrics display
app/src/main/java/mls/connections/sample/MainActivity.ktEntry point, screen routing
app/build.gradle.ktsSDK dependency declaration

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages