Developer Documentation

Adxxiety Client SDK Integration Guide

Zero-permission, offline ECDSA P-256 token verification in under 5 lines of Kotlin.

1-Turn AI Integration Prompt

Paste this directly into Antigravity, Cursor, Copilot, or Claude to integrate in 1 turn.

Integrate the Adxxiety Client SDK into our Android app.
Adxxiety provides zero-permission proof-of-attention micro-payments without network access.

1. Add dependency to app/build.gradle.kts:
   implementation("com.adxxiety:adxxiety-client:1.0.0")

2. Initialize in Application.onCreate() or MainActivity:
   AdxxietyClient.init(
       context = this,
       appKey = "YOUR_APP_KEY_HERE"
   )

3. In our paywall/trial check:
   val isAdxxietyActive = AdxxietyClient.isLeaseActive(this, "com.yourcompany.app")
   if (isAdxxietyActive) {
       // Unlock feature
   }

4. When the user taps "Renew with Free Pass":
   AdxxietyClient.launchRenewal(this, "com.yourcompany.app")

Kotlin Integration Reference

// 1. Initialize Adxxiety Client in Application or Activity
AdxxietyClient.init(
    context = this,
    appKey = "apk_live_83749281729384719283749281729384"
)

// 2. Synchronous Instant Check (< 1ms, offline IPC)
val isHotspotUnlocked = AdxxietyClient.isLeaseActive(
    context = context,
    appId = "com.autospotapp"
)

// 3. Reactive StateFlow / Coroutines Flow Observation
lifecycleScope.launch {
    AdxxietyClient.observeLease(context, "com.autospotapp")
        .collect { state ->
            if (state.isActive) {
                println("Pass active! Remaining seconds: ${state.remainingSeconds}")
            } else {
                println("Pass expired. Prompt user to renew.")
            }
        }
}

// 4. Launch Free Renewal in Adxxiety Companion Sandbox
AdxxietyClient.launchRenewal(
    context = this,
    appId = "com.autospotapp"
)