SDK
Overview

SDK Overview

AgentWallie provides native SDKs for iOS and Android that handle:

  • Config sync: Fetch and cache the compiled project config
  • Placement evaluation: Match users to campaigns and audiences
  • Paywall rendering: Render paywall schemas as native UI (SwiftUI / Jetpack Compose)
  • Purchase handling: StoreKit 2 (iOS) or Google Play Billing (Android)
  • Event tracking: Batch and send telemetry events to the API

SDK Comparison

FeatureiOSAndroid
PackageAgentWallieKit (SPM)com.agentwallie.sdk (Gradle)
Min versioniOS 16+API 26+
UI frameworkSwiftUIJetpack Compose
Purchase libraryStoreKit 2Google Play Billing v7+
LanguageSwiftKotlin

How the SDK Works

App Launch


AgentWallie.configure(apiKey:)


Fetch config from API ──► Cache in memory + disk


register(placement: "feature_gate")


Evaluate campaigns with this placement


Match audiences top-to-bottom (filters)


Check experiment assignment


Render paywall schema natively


Handle purchase ──► Track events ──► POST /v1/events

Choose Your Platform

  • iOS SDK -- Swift/SwiftUI integration guide
  • Android SDK -- Kotlin/Jetpack Compose integration guide