Overview
The Encore Flutter SDK is a plugin that wraps the native iOS (Encore.xcframework) and Android (com.encorekit:encore AAR) SDKs. All offer UI, billing, analytics, and entitlement logic runs natively — the Flutter layer is a thin bridge via platform channels.
You’ll add the Dart package, then configure platform-specific dependencies for iOS and Android.
Prerequisites
Before installing the SDK, obtain your API Key (starts withpk_...) from the Encore Dashboard.
Don’t have an API key? Visit dashboard.encorekit.com to create an account, add your app, and receive your API key automatically.
Step 1: Add the Dart Package
Add the Encore Flutter SDK to yourpubspec.yaml:
Step 2: iOS Setup
TheEncoreKit CocoaPod is automatically included as a transitive dependency of the Flutter plugin — no manual pod configuration is needed.
Set Deployment Target
In yourios/Podfile, ensure the platform is set to iOS 15.0 or higher:
Install Pods
Step 3: Android Setup
Thecom.encorekit:encore AAR is automatically included as a transitive dependency of the Flutter plugin — no manual Gradle configuration is needed.
Set Min SDK Version
In yourandroid/app/build.gradle.kts, ensure minSdk is set to 26 or higher:
Step 4: Verify Installation
After completing the platform setup, verify the SDK is available:Next Steps
Now that the SDK is installed, continue with the integration:- Configure the SDK — Set up your API key and initialize Encore
- Identify Users — Associate user identity for offer tracking