cordova-plugin-onetrust-cmp
Version:
OneTrust is the leading Consent Management solution provider. This plugin exposes OneTrust's native CMP functionality to Cordova and Ionic environments.
41 lines (40 loc) • 1.85 kB
text/xml
<plugin id="cordova-plugin-onetrust-cmp" version="202606.1.0"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>OneTrust</name>
<js-module name="OneTrust" src="www/OneTrust.js">
<clobbers target="OneTrust" />
<merges target="cordova.plugins.OneTrust" />
</js-module>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="OneTrust">
<param name="ios-package" value="OneTrust" />
</feature>
</config-file>
<source-file src="src/ios/OneTrust.swift" />
<podspec>
<config>
</config>
<pods use-frameworks="true">
<pod name="OneTrust-CMP-XCFramework" spec="~> 202606.1.1.0" />
</pods>
</podspec>
</platform>
<platform name="android">
<framework src="com.onetrust.cmp:native-sdk:202606.1.0.0" />
<framework src="androidx.appcompat:appcompat:1.2.0" />
<config-file parent="/*" target="res/xml/config.xml">
<feature name="OneTrust">
<param name="android-package" value="com.onetrust.cordova.OneTrust" />
</feature>
</config-file>
<config-file parent="/manifest/application" target="AndroidManifest.xml">
<activity android:launchMode="singleTop" android:name="com.onetrust.cordova.CMPActivity" android:theme="@style/Theme.AppCompat.Dialog" />
</config-file>
<source-file src="src/android/OneTrust.java" target-dir="src/com/onetrust/cordova/" />
<source-file src="src/android/CMPActivity.java" target-dir="src/com/onetrust/cordova" />
<source-file src="src/android/activity_c_m_p.xml" target-dir="res/layout" />
</platform>
</plugin>