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
.
- Download the latest release: https://storage.googleapis.com/de73e410-context-sdk-releases/latest/ContextSDK.zip
- Drag & Drop the
ContextSDK.xcframework
folder into the Xcode file list - Go to your project settings, scroll down to
Frameworks, Libraries, and Embedded Content
, addContextSDK.xcframework
, and selectEmbed & 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
:
And run a Gradle sync to install the latest version of ContextSDK.
React Native
Unity
- Download the latest version of ContextSDK: https://storage.googleapis.com/de73e410-context-sdk-releases/latest/ContextSDK.zip
- Drag & drop the ContextSDK.xcframework into the
Assets/Plugins/iOS
folder of your Unity project - Add the
ContextSDKBinding.cs
script next to it
Flutter
- Update the
context_sdk
version in your pubspec.yaml to the latest version. - Run
flutter pub get
- Run
pod update
in theios/
directory
Validate the installation
Please take a minute to go through the release checklist again, to ensure the ContextSDK 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.