cordova-plugin-onetrust-cmp 202606.1.0 → 202606.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,7 @@
1
+ ## 202606.2.0
2
+ * Adds support for OneTrust 202606.2.0
3
+ * Added clearOTSDKData method
4
+
1
5
  ## 202606.1.0
2
6
  * Adds support for OneTrust 202606.1.0
3
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordova-plugin-onetrust-cmp",
3
- "version": "202606.1.0",
3
+ "version": "202606.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="202606.1.0"
2
+ <plugin id="cordova-plugin-onetrust-cmp" version="202606.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,12 +18,12 @@
18
18
  <config>
19
19
  </config>
20
20
  <pods use-frameworks="true">
21
- <pod name="OneTrust-CMP-XCFramework" spec="~> 202606.1.1.0" />
21
+ <pod name="OneTrust-CMP-XCFramework" spec="~> 202606.2.0.0" />
22
22
  </pods>
23
23
  </podspec>
24
24
  </platform>
25
25
  <platform name="android">
26
- <framework src="com.onetrust.cmp:native-sdk:202606.1.0.0" />
26
+ <framework src="com.onetrust.cmp:native-sdk:202606.2.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">
@@ -109,6 +109,9 @@ public class OneTrust extends CordovaPlugin{
109
109
  String toIdentifier = args.getString(1);
110
110
  renameProfile(fromIdentifier, toIdentifier, callbackContext);
111
111
  return true;
112
+ case "clearOTSDKData":
113
+ clearOTSDKData();
114
+ return true;
112
115
  default:
113
116
  callbackContext.error("Unimplemented method called");
114
117
  break;
@@ -488,4 +491,9 @@ public class OneTrust extends CordovaPlugin{
488
491
  };
489
492
  runInThreadPool(runnable);
490
493
  }
494
+
495
+ private void clearOTSDKData(){
496
+ Log.i("ot_log", "Clear OT SDK data method called.");
497
+ ot.clearOTSDKData();
498
+ }
491
499
  }
@@ -353,6 +353,12 @@ import AppTrackingTransparency
353
353
  self.returnToCordova(pluginResult: pluginResult, command: command)
354
354
  }
355
355
  }
356
+
357
+ @objc(clearOTSDKData:)
358
+ func clearOTSDKData(_ command: CDVInvokedUrlCommand){
359
+ OTPublishersHeadlessSDK.shared.clearOTSDKData()
360
+ self.returnToCordova(pluginResult: CDVPluginResult(status: CDVCommandStatus_OK), command: command)
361
+ }
356
362
  }
357
363
 
358
364
  extension OneTrust:OTEventListener{
package/www/OneTrust.js CHANGED
@@ -75,6 +75,10 @@ var exports = {
75
75
  exec(success, error, pluginName, 'renameProfile', [fromIdentifier, toIdentifier])
76
76
  },
77
77
 
78
+ clearOTSDKData: () =>{
79
+ exec(null, null, pluginName, 'clearOTSDKData')
80
+ },
81
+
78
82
  devicePermission: Object.freeze({idfa:0})
79
83
  }
80
84