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: Obtain Access Credentials
Before installing the SDK, obtain your access credentials from the Encore Dashboard.Don’t have credentials? Visit dashboard.encorekit.com to create an account, add your app, and receive your SDK access credentials automatically.
- Access Token: A GitHub Personal Access Token (starts with
ghp_...) provided through the Dashboard - API Key: Your public API key (starts with
pk_...) for SDK configuration
Step 1: Add the Dart Package
Add the Encore Flutter SDK to yourpubspec.yaml:
Step 2: iOS Setup
The plugin depends on theEncoreKit CocoaPod, which bundles the native Encore.xcframework.
Set Deployment Target and Add EncoreKit
In yourios/Podfile, set the platform to iOS 15.0 or higher and add the EncoreKit pod source:
Install Pods
Step 3: Android Setup
The plugin depends oncom.encorekit:encore, distributed as a private Maven package on GitHub Packages.
Add the Repository
Add the Encore Maven repository to your project-levelandroid/settings.gradle.kts:
Configure Authentication
Add your credentials to~/.gradle/gradle.properties (create the file if it doesn’t exist):
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