# Updating Your SDK

The latest ContextSDK version is 5.15.0 and was released on March 31, 2026.

{% tabs %}
{% tab title="iOS" %}
{% tabs %}
{% tab title="Swift Package Manager (SPM)" %}
SPM has a few issues when it comes to caching its dependencies, so please be sure to follow all the steps below:

* Trigger an update of SPM using your preferred method ( <kbd>Right Click</kbd> → <kbd>Update Package</kbd> or <kbd>Swift Packages</kbd> → <kbd>Update to Latest Package Versions</kbd>)
* Clear Derived Data
* Clean Build
* Run the app again, and verify `ContextManager.sdkVersion()` is the latest version.

Alternatively, you can also specify the specific version of ContextSDK you want to use in your `Package.swift` or Xcode SPM settings.
{% endtab %}

{% tab title="CocoaPods" %}
Run `pod update`, or if you specified a specific version in your `Podfile`, run `pod update ContextSDK`.
{% endtab %}

{% tab title="Manually" %}

1. Download the latest release: <https://storage.googleapis.com/de73e410-context-sdk-releases/latest/ContextSDK.zip>
2. Drag & Drop the `ContextSDK.xcframework` folder into the Xcode file list
3. Go to your project settings, scroll down to `Frameworks, Libraries, and Embedded Content`, add `ContextSDK.xcframework`, and select `Embed & Sign`

If you want to download a specific version, you can replace `latest` with the desired version number, e.g. [https://storage.googleapis.com/de73e410-context-sdk-releases/5.0.0/ContextSDK.zip](https://storage.googleapis.com/de73e410-context-sdk-releases/4.1.1/ContextSDK.zip)
{% endtab %}
{% endtabs %}
{% endtab %}

{% tab title="Android" %}
{% tabs %}
{% tab title="Kotlin" %}
Update the version specified in your module-level `build.gradle.kts`:

{% code title="build.gradle.kts" %}

```kotlin
dependencies {
    // …
    implementation("com.contextsdk:contextsdk:1.0.0")
    // …
}
```

{% endcode %}

And run a Gradle sync to install the latest version of ContextSDK.
{% endtab %}

{% tab title="Java" %}
Update the version specified in your module-level `build.gradle`:

{% code title="build.gradle" %}

```java
dependencies {
    // …
    implementation 'com.contextsdk:contextsdk:1.0.0'
    // …
}
```

{% endcode %}

And run a Gradle sync to install the latest version of ContextSDK.
{% endtab %}
{% endtabs %}
{% endtab %}

{% tab title="Flutter" %}

1. Update the `context_sdk` version in your `pubspec.yaml` to the latest version.
2. Run `flutter pub get`
3. Run `pod update` in the `ios/` directory
   {% endtab %}

{% tab title="Unity" %}

1. Download the latest version of ContextSDK: [ContextSDK.zip](https://storage.googleapis.com/de73e410-context-sdk-releases/latest/ContextSDK.zip).
2. In your Unity project, drag `ContextSDK.xcframework` into the `Assets/Plugins/iOS` folder.
3. Add the `ContextSDKBinding.cs` script in the same folder.

To download a specific version, replace `latest` in the download URL with the desired version number. For example, to download version 5.15.0:

<https://storage.googleapis.com/de73e410-context-sdk-releases/5.15.0/ContextSDK.zip>
{% endtab %}

{% tab title="React Native" %}
{% tabs %}
{% tab title="npm" %}

```sh
npm install react-native-context-sdk@latest
```

{% endtab %}

{% tab title="yarn" %}

```sh
yarn up react-native-context-sdk
```

{% endtab %}
{% endtabs %}
{% endtab %}
{% endtabs %}

### Validate the installation

After updating the SDK, please take a minute to go through the [release checklist](https://docs.contextsdk.com/context-decision/release-checklist) again, to ensure the SDK is correctly installed and configured, using the `validate` method. Just following the first step of the release checklist will prevent almost all potential integration errors.
