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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## 202510.2.4
2
+ * Adds support for OneTrust 202510.2.4
3
+
4
+ ## 202510.2.2
5
+ * Adds support for OneTrust 202510.2.2
6
+ * Adds support to build cordova/ionic sdk using cmp android and ios SDK
7
+
1
8
  ## 202510.2.0
2
9
  * Adds support for OneTrust 202510.2.0
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordova-plugin-onetrust-cmp",
3
- "version": "202510.2.0",
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.0"
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.0.0" />
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:202506.1.0.0" />
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
- if(ot.getPreferenceCenterData() != null){ ////null check prevents starting blank activity if no PC data present
202
- startCMPActivity(1);
203
- }
196
+ startCMPActivity(1);
204
197
  }
205
198
 
206
199
  private void shouldShowBanner(CallbackContext callbackContext){
@@ -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')