SDK Setup

Integration Guide

Get up and running in under two minutes. Three simple steps.

1

Add the Dependency

Add the FlairCraft SDK to your app-level build.gradle file:

// app/build.gradle
dependencies {
    implementation 'net.flair-craft:android-sdk:1.0.2'
}

The SDK is hosted on Maven Central. No additional repositories needed.

2

Initialize in Your Application Class

Call FlairCraft.init() in your Application's onCreate method:

class MyApp : Application() {
    override fun onCreate() {
        super.onCreate()
        FlairCraft.init(this)
    }
}
Make sure your Application class is registered in your AndroidManifest.xml with android:name=".MyApp"
3

Verify and Ship

Build and run your app. Check Logcat for the initialization message:

FlairCraft SDK v1.0.2 initialized successfully

That's it. The SDK handles everything else automatically. It only uses bandwidth on WiFi and pauses on low battery. No additional configuration required.

Need help? Reach out at hey@flair-craft.net or visit the main site to get in touch.