cordova-plugin-onetrust-cmp 202510.2.0 → 202510.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/plugin.xml +3 -3
- package/src/android/OneTrust.java +1 -8
- package/src/ios/OneTrust.swift +0 -1
- package/www/OneTrust.js +0 -8
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cordova-plugin-onetrust-cmp",
|
|
3
|
-
"version": "202510.2.
|
|
3
|
+
"version": "202510.2.4",
|
|
4
4
|
"description": "OneTrust is the leading Consent Management solution provider. This plugin exposes OneTrust's native CMP functionality to Cordova and Ionic environments.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="cordova-plugin-onetrust-cmp" version="202510.2.
|
|
2
|
+
<plugin id="cordova-plugin-onetrust-cmp" version="202510.2.4"
|
|
3
3
|
xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
|
4
4
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
5
5
|
<name>OneTrust</name>
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
<config>
|
|
19
19
|
</config>
|
|
20
20
|
<pods use-frameworks="true">
|
|
21
|
-
<pod name="OneTrust-CMP-XCFramework" spec="~> 202510.2.
|
|
21
|
+
<pod name="OneTrust-CMP-XCFramework" spec="~> 202510.2.4.0" />
|
|
22
22
|
</pods>
|
|
23
23
|
</podspec>
|
|
24
24
|
</platform>
|
|
25
25
|
<platform name="android">
|
|
26
|
-
<framework src="com.onetrust.cmp:native-sdk:
|
|
26
|
+
<framework src="com.onetrust.cmp:native-sdk:202510.2.4.0" />
|
|
27
27
|
<framework src="androidx.appcompat:appcompat:1.2.0" />
|
|
28
28
|
<config-file parent="/*" target="res/xml/config.xml">
|
|
29
29
|
<feature name="OneTrust">
|
|
@@ -106,8 +106,6 @@ public class OneTrust extends CordovaPlugin{
|
|
|
106
106
|
|
|
107
107
|
if(initParams != null){
|
|
108
108
|
sdkParams = generateSDKParams(initParams);
|
|
109
|
-
} else {
|
|
110
|
-
sdkParams = generateSDKParams(new JSONObject());
|
|
111
109
|
}
|
|
112
110
|
|
|
113
111
|
ot.startSDK(storageLocation, domainId, languageCode, sdkParams, new OTCallback() {
|
|
@@ -163,9 +161,6 @@ public class OneTrust extends CordovaPlugin{
|
|
|
163
161
|
apiVersion = initParams.optString(API_VERSION);
|
|
164
162
|
Log.i("ot_log", "api version = " + apiVersion);
|
|
165
163
|
sdkParamsBuilder.setAPIVersion(apiVersion);
|
|
166
|
-
} else {
|
|
167
|
-
Log.i("ot_log", "setting api version 202510.2.0 ");
|
|
168
|
-
sdkParamsBuilder.setAPIVersion("202510.2.0");
|
|
169
164
|
}
|
|
170
165
|
|
|
171
166
|
/*If sync params are present in the payload, add them to the object.
|
|
@@ -198,9 +193,7 @@ public class OneTrust extends CordovaPlugin{
|
|
|
198
193
|
}
|
|
199
194
|
|
|
200
195
|
private void showPreferenceCenterUI(){
|
|
201
|
-
|
|
202
|
-
startCMPActivity(1);
|
|
203
|
-
}
|
|
196
|
+
startCMPActivity(1);
|
|
204
197
|
}
|
|
205
198
|
|
|
206
199
|
private void shouldShowBanner(CallbackContext callbackContext){
|
package/src/ios/OneTrust.swift
CHANGED
|
@@ -31,7 +31,6 @@ import AppTrackingTransparency
|
|
|
31
31
|
initParams = buildSDKParams(withParamsObject: paramsData)
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
OTPublishersHeadlessSDK.shared.setupUsingCmpApi(false)
|
|
35
34
|
OTPublishersHeadlessSDK.shared.startSDK(storageLocation: storageLocation,
|
|
36
35
|
domainIdentifier: domainIdentifier,
|
|
37
36
|
languageCode: languageCode,
|
package/www/OneTrust.js
CHANGED
|
@@ -6,14 +6,6 @@ var exports = {
|
|
|
6
6
|
startSDK:(storageLocation, appId, languageCode, params, success, error) => {
|
|
7
7
|
exec(success, error, pluginName, 'startSDK', [storageLocation, appId, languageCode, params])
|
|
8
8
|
},
|
|
9
|
-
initOTSDKData: (storageLocation, appId, languageCode, success, error) => {
|
|
10
|
-
console.warn("initOTSDKData is deprecated. Use startSDK instead.")
|
|
11
|
-
exec(success, error, pluginName, 'initOTSDKData', [storageLocation, appId, languageCode])
|
|
12
|
-
},
|
|
13
|
-
//Styling
|
|
14
|
-
addCustomStylesAndroid: (jsonObject) => {
|
|
15
|
-
console.warn("addCustomStylesAndroid is deprecated. Pass the JSON into the params argument of startSDK with the key androidUXParams.")
|
|
16
|
-
},
|
|
17
9
|
//UI Methods
|
|
18
10
|
showBannerUI: () => {
|
|
19
11
|
exec(null, null, pluginName, 'showBannerUI')
|