Skip to content

mparticle-integrations/mparticle-android-integration-onetrust

Repository files navigation

OneTrust Kit Integration

See here for more information on how to use this example to write a new kit.

This repository contains the OneTrust integration for the mParticle Android SDK.

Adding the integration

  1. Add the kit dependency to your app's build.gradle:

    dependencies {
        implementation 'com.mparticle:android-onetrust-kit:5+'
        // Implement the SDK version that corresponds to the published version you're using'
        implementation 'com.onetrust.cmp:native-sdk:X.X.0.0'
    
        // Example: 
        implementation 'com.onetrust.cmp:native-sdk:202308.1.0.0'
    }

} ``` 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 build.gradle file of your application. For more information on this checkout this OneTrust Guide for Adding the SDK to an Android App

  1. Follow the mParticle Android SDK quick-start, then rebuild and launch your app, and verify that you see "<REPLACE ME> detected" in the output of adb logcat.
  2. Reference mParticle's integration docs below to enable the integration.

Documentation

OneTrust integration

License

Apache License 2.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages