cordova-plugin-onetrust-cmp 202509.1.0 → 202510.2.0

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.0
2
+ * Adds support for OneTrust 202510.2.0
3
+
4
+ ## 202510.1.0
5
+ * Adds support for OneTrust 202510.1.0
6
+ * Fix data download failure when sdkParam is null.
7
+
1
8
  ## 202509.1.0
2
9
  * Adds support for OneTrust 202509.1.0
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordova-plugin-onetrust-cmp",
3
- "version": "202509.1.0",
3
+ "version": "202510.2.0",
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="202509.1.0"
2
+ <plugin id="cordova-plugin-onetrust-cmp" version="202510.2.0"
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,7 +18,7 @@
18
18
  <config>
19
19
  </config>
20
20
  <pods use-frameworks="true">
21
- <pod name="OneTrust-CMP-XCFramework" spec="~> 202509.1.0.0" />
21
+ <pod name="OneTrust-CMP-XCFramework" spec="~> 202510.2.0.0" />
22
22
  </pods>
23
23
  </podspec>
24
24
  </platform>
@@ -106,6 +106,8 @@ public class OneTrust extends CordovaPlugin{
106
106
 
107
107
  if(initParams != null){
108
108
  sdkParams = generateSDKParams(initParams);
109
+ } else {
110
+ sdkParams = generateSDKParams(new JSONObject());
109
111
  }
110
112
 
111
113
  ot.startSDK(storageLocation, domainId, languageCode, sdkParams, new OTCallback() {
@@ -162,8 +164,8 @@ public class OneTrust extends CordovaPlugin{
162
164
  Log.i("ot_log", "api version = " + apiVersion);
163
165
  sdkParamsBuilder.setAPIVersion(apiVersion);
164
166
  } else {
165
- Log.i("ot_log", "setting api version 202509.1.0 ");
166
- sdkParamsBuilder.setAPIVersion("202509.1.0");
167
+ Log.i("ot_log", "setting api version 202510.2.0 ");
168
+ sdkParamsBuilder.setAPIVersion("202510.2.0");
167
169
  }
168
170
 
169
171
  /*If sync params are present in the payload, add them to the object.