Skip to content

Update ContextSDK

The latest ContextSDK version: 4.8.0 released on 2024-12-03.

Swift

Run pod update, or if you specified a specific version in your Podfile, run pod update ContextSDK.

  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/4.1.1/ContextSDK.zip

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 (Right Click -> Update Package or Swift Packages -> Update to Latest Package Versions)
  • 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.

Android

Update the version specified in your module level build.gradle.kts:

dependencies {
    ...

    implementation("com.contextsdk:contextsdk:1.0.0")
}

And run a Gradle sync to install the latest version of ContextSDK.

React Native

npm install react-native-context-sdk@latest
yarn up react-native-context-sdk

Unity

  1. Download the latest version of ContextSDK: https://storage.googleapis.com/de73e410-context-sdk-releases/latest/ContextSDK.zip
  2. Drag & drop the ContextSDK.xcframework into the Assets/Plugins/iOS folder of your Unity project
  3. Add the ContextSDKBinding.cs script next to it

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