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 +4 -0
- package/package.json +1 -1
- package/plugin.xml +3 -3
- package/src/android/OneTrust.java +8 -0
- package/src/ios/OneTrust.swift +6 -0
- package/www/OneTrust.js +4 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cordova-plugin-onetrust-cmp",
|
|
3
|
-
"version": "202606.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
}
|
package/src/ios/OneTrust.swift
CHANGED
|
@@ -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