cordova-plugin-onetrust-cmp 202505.2.0 → 202507.1.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
+ ## 202507.1.0
2
+ * Adds support to build cordova/ionic sdk using non cmp android SDK
3
+ * Adds support for OneTrust 202507.1.0
4
+
5
+ # 202506.1.0
6
+ * Adds support for OneTrust 202506.1.0
7
+
1
8
  # 202505.2.0
2
9
  * Adds support for OneTrust 202505.2.0
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordova-plugin-onetrust-cmp",
3
- "version": "202505.2.0",
3
+ "version": "202507.1.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="202505.2.0"
2
+ <plugin id="cordova-plugin-onetrust-cmp" version="202507.1.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,12 +18,12 @@
18
18
  <config>
19
19
  </config>
20
20
  <pods use-frameworks="true">
21
- <pod name="OneTrust-CMP-XCFramework" spec="~> 202505.2.0.0" />
21
+ <pod name="OneTrust-CMP-XCFramework" spec="~> 202507.1.0.0" />
22
22
  </pods>
23
23
  </podspec>
24
24
  </platform>
25
25
  <platform name="android">
26
- <framework src="com.onetrust.cmp:native-sdk:202505.2.0.0" />
26
+ <framework src="com.onetrust.cmp:native-sdk:202506.1.0.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">
@@ -18,7 +18,7 @@ import com.onetrust.otpublishers.headless.gcm.consent.OTGoogleConsentModeData;
18
18
  import org.apache.cordova.CordovaInterface;
19
19
  import org.apache.cordova.CordovaPlugin;
20
20
  import org.apache.cordova.CallbackContext;
21
-
21
+ import android.util.Log;
22
22
  import org.apache.cordova.CordovaWebView;
23
23
  import org.json.JSONArray;
24
24
  import org.json.JSONException;
@@ -159,7 +159,11 @@ public class OneTrust extends CordovaPlugin{
159
159
 
160
160
  if(initParams.has(API_VERSION)){
161
161
  apiVersion = initParams.optString(API_VERSION);
162
+ Log.i("ot_log", "api version = " + apiVersion);
162
163
  sdkParamsBuilder.setAPIVersion(apiVersion);
164
+ } else {
165
+ Log.i("ot_log", "setting api version 202507.1.0 ");
166
+ sdkParamsBuilder.setAPIVersion("202507.1.0");
163
167
  }
164
168
 
165
169
  /*If sync params are present in the payload, add them to the object.