> For the complete documentation index, see [llms.txt](https://docs.amply.tools/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.amply.tools/developer-guide/installation.md).

# Installation

How to add Amply to your mobile app. One dependency, three platforms — pick the tab that matches your stack.

Installing Amply means adding a single package to your build config, then calling the SDK from your app's entry point. This page only covers the dependency step. Go to the platform-specific Quickstart once the package resolves.

{% hint style="info" %}
**Two ways to integrate Amply.** This guide is the **by-hand** path. The other is [**AI-assisted integration**](https://docs.amply.tools/getting-started/ai-assisted-integration.md): connect the Amply MCP and the `amply-integration` skill to your AI coding assistant (Claude Code or Codex CLI) and it installs the SDK, forwards the events Amply needs for targeting, and hands you a reviewable diff — the same result as the steps below, in one pass.
{% endhint %}

## Current versions

Other pages in this guide reference "the current version" — the table below is the single source of truth. When a new SDK ships, only this page needs updating.

| Package           | Version  |
| ----------------- | -------- |
| iOS / Android SDK | `0.18.0` |
| React Native SDK  | `0.19.0` |

## Requirements

| Platform     | Minimum OS                                              | Other                                                 |
| ------------ | ------------------------------------------------------- | ----------------------------------------------------- |
| iOS SDK      | iOS 15.0 (CocoaPods) · iOS 14.0 (Swift Package Manager) | Xcode 15+, Swift 5.9+                                 |
| Android SDK  | Android 5.0 (API 21)                                    | Kotlin 1.9+, AGP 8.0+                                 |
| React Native | RN 0.79+, Expo SDK 54+                                  | iOS 15.1+ / Android API 24+, New Architecture enabled |

## Credentials

You need three values from the Amply dashboard before the SDK will run:

* `appId` — your app's identifier (e.g., `com.acme.app`)
* `apiKeyPublic` — short key used to identify your app
* `apiKeySecret` — longer key used to sign requests

In the Amply dashboard, open your application from the Applications list, go to its **API Keys** tab, and copy them into the config shown in the Quickstarts.

## Install

{% tabs %}
{% tab title="iOS (Swift)" %}

### Swift Package Manager (recommended)

In Xcode: **File → Add Package Dependencies…** and enter:

```
https://github.com/amply-tools/amply-sdk-ios
```

Pick the version rule (recommended: *Up to Next Major Version* from `0.18.0`) and add `AmplySDK` to your target.

Or declare it in `Package.swift`:

```swift
dependencies: [
    .package(url: "https://github.com/amply-tools/amply-sdk-ios", from: "0.18.0")
]
```

### CocoaPods

The CocoaPods public catalog stops accepting new versions on December 2, 2026, so `pod 'AmplySDK', '~> X'` will not see newer releases. Point your `Podfile` at the podspec of the version you want instead:

```ruby
pod 'AmplySDK', :podspec => 'https://raw.githubusercontent.com/amply-tools/amply-sdk-ios/0.18.0/AmplySDK.podspec'
```

Then install, and open the generated `.xcworkspace` in Xcode:

```bash
pod install
```

To update later, change the version in that URL and run `pod install` again.

### Info.plist

No mandatory entries. If you plan to read the advertising identifier (IDFA) for attribution, add `NSUserTrackingUsageDescription` to `Info.plist` and call the App Tracking Transparency prompt yourself — the SDK will pick up the resulting status.

Continue with the [iOS Quickstart](https://docs.amply.tools/developer-guide/quickstart-ios.md) to wire the SDK into your `AppDelegate`.
{% endtab %}

{% tab title="Android (Kotlin)" %}

### Gradle (Kotlin DSL)

Add to your app module's `build.gradle.kts`:

```kotlin
dependencies {
    implementation("tools.amply:sdk-android:0.18.0")
}
```

### Gradle (Groovy)

```groovy
dependencies {
    implementation 'tools.amply:sdk-android:0.18.0'
}
```

### Repositories

The SDK ships to Maven Central. If your `settings.gradle.kts` already lists `mavenCentral()` (the default for new Android projects) you don't need to change anything:

```kotlin
dependencyResolutionManagement {
    repositories {
        google()
        mavenCentral()
    }
}
```

### Permissions

No permissions are required to initialize the SDK. `INTERNET` (already granted by default) is used to send events. The SDK does not add the `AD_ID` permission and does not collect the Google advertising ID by default. To collect it, see [Advertising ID](https://docs.amply.tools/developer-guide/android-integration.md#advertising-id-optional).

Continue with the [Android Quickstart](https://docs.amply.tools/developer-guide/quickstart-android.md) to wire the SDK into your `Application` class.
{% endtab %}

{% tab title="React Native" %}

### npm / yarn

```bash
yarn add @amplytools/react-native-amply-sdk
```

or

```bash
npm install @amplytools/react-native-amply-sdk
```

### Expo

Add the Amply config plugin to `app.json`:

```json
{
  "expo": {
    "plugins": ["@amplytools/react-native-amply-sdk"]
  }
}
```

Then run a prebuild, so the native projects are generated with the SDK in them:

```bash
npx expo prebuild
```

The native module links automatically. The plugin is what puts [built-in campaigns](https://docs.amply.tools/developer-guide/built-in-campaigns.md) into your build: at prebuild it copies the bundle files into the native projects. Without bundle files it changes nothing, so it is safe to add now. If an older guide told you to remove it, keep it.

### Bare React Native

Autolinking picks up the module after `yarn install`. On iOS, run `pod install` — it also brings in the native iOS SDK, so there is nothing to add to your `Podfile`:

```bash
cd ios && pod install
```

See [React Native integration → iOS](https://docs.amply.tools/developer-guide/react-native-integration.md#ios-run-pod-install) for how the native SDK arrives and what your CI needs.

No extra Gradle config is required on Android.

See the [Requirements](#requirements) table above for minimum versions.

Continue with the [React Native Quickstart](https://docs.amply.tools/developer-guide/quickstart-react-native.md) to initialize the SDK in your root component.
{% endtab %}
{% endtabs %}

## Related

* [iOS Quickstart](https://docs.amply.tools/developer-guide/quickstart-ios.md) — first tracked event from a Swift app
* [Android Quickstart](https://docs.amply.tools/developer-guide/quickstart-android.md) — first tracked event from a Kotlin app
* [React Native Quickstart](https://docs.amply.tools/developer-guide/quickstart-react-native.md) — first tracked event from TypeScript
* [iOS integration](https://docs.amply.tools/developer-guide/ios-integration.md) — deep links, session lifecycle, custom properties
* [Android integration](https://docs.amply.tools/developer-guide/android-integration.md) — deep links, custom properties, log levels
* [React Native integration](https://docs.amply.tools/developer-guide/react-native-integration.md) — listeners, snapshots, Expo specifics
* [Built-in campaigns](https://docs.amply.tools/developer-guide/built-in-campaigns.md) — ship campaigns inside your app build for an offline first launch
