cordova-plugin-onetrust-cmp 202510.1.0 → 202510.2.2

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,5 +1,13 @@
1
+ ## 202510.2.2
2
+ * Adds support for OneTrust 202510.2.2
3
+ * Adds support to build cordova/ionic sdk using cmp android and ios SDK
4
+
5
+ ## 202510.2.0
6
+ * Adds support for OneTrust 202510.2.0
7
+
1
8
  ## 202510.1.0
2
9
  * Adds support for OneTrust 202510.1.0
10
+ * Fix data download failure when sdkParam is null.
3
11
 
4
12
  ## 202509.1.0
5
13
  * Adds support for OneTrust 202509.1.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordova-plugin-onetrust-cmp",
3
- "version": "202510.1.0",
3
+ "version": "202510.2.2",
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.1.0"
2
+ <plugin id="cordova-plugin-onetrust-cmp" version="202510.2.2"
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.1.0.0" />
21
+ <pod name="OneTrust-CMP-XCFramework" spec="~> 202510.2.2.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.2.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">
@@ -161,9 +161,6 @@ public class OneTrust extends CordovaPlugin{
161
161
  apiVersion = initParams.optString(API_VERSION);
162
162
  Log.i("ot_log", "api version = " + apiVersion);
163
163
  sdkParamsBuilder.setAPIVersion(apiVersion);
164
- } else {
165
- Log.i("ot_log", "setting api version 202510.1.0 ");
166
- sdkParamsBuilder.setAPIVersion("202510.1.0");
167
164
  }
168
165
 
169
166
  /*If sync params are present in the payload, add them to the object.
@@ -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')