This repository contains the OneTrust integration for the mParticle Apple SDK.
-
Add the kit dependencies to your app's Podfile or using SPM:
pod 'mParticle-OneTrust', '~> 8.0'
OR
Open your project and navigate to the project's settings. Select the tab named Swift Packages and click on the add button (+) at the bottom left. then, enter the URL of OneTrust Kit GitHub repository - https://github.com/mparticle-integrations/mparticle-apple-integration-onetrust and click Next.
Note: OneTrust does not support Carthage at this moment
-
Add the OneTrust SDK following their documentation and ensure you pin to the correct version of the OneTrust SDK as you specified in the OneTrust UI on app.onetrust.com.
Note: OneTrust is unique in their versioning and in that you must specify your version used from a constrained list in their UI. This necessitates that we cannot pin the version of the OneTrust SDK in this kit. Therefore you must pin the correct version in the podspec or package.swift of your application
-
Follow the mParticle iOS SDK quick-start, then rebuild and launch your app, and verify that you see
"Included kits: { OneTrust }"
in your Xcode console
- (This requires your mParticle log level to be at least Debug)
- Reference mParticle's integration docs below to enable the integration.
mParticle Docs: OneTrust integration
OneTrust Developer SDK Portal: Getting Started with Native SDK (iOS)