Download the SDK

Download Options

Once you have published the SDK, you can download the package for MAUI / .Net Native apps from the OneTrust application. This package contains a number of files you will need to extract in order to demo, test, and implement the SDK.

Download the MAUI / .Net SDK from the OneTrust Tenant

  1. Navigate to Mobile App Consent > Integration > SDKs.
  2. Select an application from the list.
  3. Select the SDK tab.
  4. Select Native SDK, Unity SDK, or MAUI SDK.
  5. Click the Download SDK button.

What's in the Download Package?

FolderContents
OneTrust_CMP_DotNet7_DLLThe DLL file to be imported into your .Net7 based project
OneTrust_CMP_DotNet8_DLLThe DLL file to be imported into your .Net8 based project
MAUI-With-UIThis folder contains the implementation of the .NetDLL with a XAML based user interface.
DotNet-Native_With-UIThis folder contains the implementation of the .NetDLL with native UI components.
Apple Privacy ManifestContains the Apple Privacy Manifest file.

📘

MAUI-With-UI and DotNet7-Native-With-UI are Sample Projects to test and familiarize yourself with.

OneTrust_CMP_DotNet7_DLL and OneTrust_CMP_DotNet8_DLL include the SDK's business logic and are used by both sample projects.

Apple Privacy Manifest

To add the manifest file to your app, follow these steps:

MAUI / .Net Native iOS

  1. Copy the PrivacyInfo.xcprivacy file to the Platforms / iOS folder in your .NET MAUI project.
  2. Open the .NET MAUI csproj project file and edit it.
  3. Add the following elements to the bottom of the root element: <ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'"> <BundleResource Include="Platforms\iOS\PrivacyInfo.xcprivacy" LogicalName="PrivacyInfo.xcprivacy" /> </ItemGroup>. This will package the file into the iOS app at the root of the bundle.

📘

Once added to your project, the PrivacyInfo.xcprivacy file will need to be updated if there are any additional API usages from additional categories or additional reasons for usage.

Download the Unity SDK from the OneTrust Tenant

  1. Navigate to Mobile App Consent > Integration > SDKs.
  2. Select an application from the list.
  3. Select the SDK tab.
  4. Select Unity SDK.
  5. Click the Download SDK button.

What's in the Download Package?

File Name
OTSDK_Unity2020LTS.unitypackage
OTSDK_Unity2021LTS.unitypackage