cordova-plugin-onetrust-cmp 202404.1.0 → 202405.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 +6 -0
- package/package.json +1 -1
- package/plugin.xml +3 -3
- package/src/android/OneTrust.java +7 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cordova-plugin-onetrust-cmp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "202405.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="
|
|
2
|
+
<plugin id="cordova-plugin-onetrust-cmp" version="202405.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="~>
|
|
21
|
+
<pod name="OneTrust-CMP-XCFramework" spec="~> 202405.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:
|
|
26
|
+
<framework src="com.onetrust.cmp:native-sdk:202405.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">
|
|
@@ -4,6 +4,7 @@ import android.content.BroadcastReceiver;
|
|
|
4
4
|
import android.content.Context;
|
|
5
5
|
import android.content.Intent;
|
|
6
6
|
import android.content.IntentFilter;
|
|
7
|
+
import android.os.Build;
|
|
7
8
|
|
|
8
9
|
import com.onetrust.otpublishers.headless.Public.DataModel.OTProfileSyncParams;
|
|
9
10
|
import com.onetrust.otpublishers.headless.Public.Keys.OTBroadcastServiceKeys;
|
|
@@ -228,7 +229,12 @@ public class OneTrust extends CordovaPlugin{
|
|
|
228
229
|
}
|
|
229
230
|
|
|
230
231
|
private void observeChanges(String catId){
|
|
231
|
-
|
|
232
|
+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
|
|
233
|
+
cordova.getActivity().registerReceiver(consentStatusChanged, new IntentFilter(catId), Context.RECEIVER_NOT_EXPORTED);
|
|
234
|
+
} else {
|
|
235
|
+
cordova.getActivity().registerReceiver(consentStatusChanged, new IntentFilter(catId));
|
|
236
|
+
}
|
|
237
|
+
|
|
232
238
|
}
|
|
233
239
|
|
|
234
240
|
private void getCachedIdentifier(CallbackContext callbackContext){
|