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
- Navigate to Mobile App Consent > Integration > SDKs.
- Select an application from the list.
- Select the SDK tab.
- Select Native SDK, Unity SDK, or MAUI SDK.
- Click the Download SDK button.
What's in the Download Package?
Folder | Contents |
---|---|
OneTrust_CMP_DotNet7_DLL | The DLL file to be imported into your .Net7 based project |
OneTrust_CMP_DotNet8_DLL | The DLL file to be imported into your .Net8 based project |
MAUI-With-UI | This folder contains the implementation of the .NetDLL with a XAML based user interface. |
DotNet-Native_With-UI | This folder contains the implementation of the .NetDLL with native UI components. |
Apple Privacy Manifest | Contains 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
- Copy the PrivacyInfo.xcprivacy file to the Platforms / iOS folder in your .NET MAUI project.
- Open the .NET MAUI csproj project file and edit it.
- 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
- Navigate to Mobile App Consent > Integration > SDKs.
- Select an application from the list.
- Select the SDK tab.
- Select Unity SDK.
- Click the Download SDK button.
What's in the Download Package?
File Name |
---|
OTSDK_Unity2020LTS.unitypackage |
OTSDK_Unity2021LTS.unitypackage |
Updated 14 days ago