> ## Documentation Index
> Fetch the complete documentation index at: https://docs.encorekit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Install the SDK

> Add the Encore Flutter SDK to your project. The plugin bridges to the native iOS and Android SDKs via platform channels.

## 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.

<Note>
  **Don't have an API key?** Visit [dashboard.encorekit.com](https://dashboard.encorekit.com) to create an account, add your app, and receive your API key automatically.
</Note>

***

## Step 1: Add the Dart Package

Add the Encore Flutter SDK to your `pubspec.yaml`:

```yaml theme={null}
dependencies:
  encore_flutter: ^1.0.0
```

Then fetch dependencies:

```bash theme={null}
flutter pub get
```

***

## 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:

```ruby theme={null}
platform :ios, '15.0'
```

### Install Pods

```bash theme={null}
cd ios && pod install && cd ..
```

***

## 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:

```kotlin theme={null}
android {
    defaultConfig {
        minSdk = 26
    }
}
```

***

## Step 4: Verify Installation

After completing the platform setup, verify the SDK is available:

```dart theme={null}
import 'package:encore_flutter/encore_flutter.dart';
```

Build and run your app to confirm everything compiles:

```bash theme={null}
flutter run
```

**Installation complete!**

***

## Next Steps

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

* **[Configure the SDK](./configure)** — Set up your API key and initialize Encore
* **[Identify Users](./user-management)** — Associate user identity for offer tracking

***

## Already Installed?

If you've already installed the SDK and need to update to a newer version, see [Updating the SDK](/publishers/flutter/guides/updating-sdk).
