Skip to main content

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 with pk_...) 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 your pubspec.yaml:
Then fetch dependencies:

Step 2: iOS Setup

The EncoreKit CocoaPod is automatically included as a transitive dependency of the Flutter plugin — no manual pod configuration is needed.

Set Deployment Target

In your ios/Podfile, ensure the platform is set to iOS 15.0 or higher:

Install Pods


Step 3: Android Setup

The com.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 your android/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:
Build and run your app to confirm everything compiles:
Installation complete!

Next Steps

Now that the SDK is installed, continue with the integration:

Already Installed?

If you’ve already installed the SDK and need to update to a newer version, see Updating the SDK.