@usercentrics/react-native-sdk 2.20.3 → 2.21.1
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 +14 -0
- package/android/build.gradle +1 -1
- package/android/src/androidTest/java/com/usercentrics/reactnativemodule/RNUsercentricsModuleTest.kt +2 -1
- package/android/src/androidTest/java/com/usercentrics/reactnativemodule/mock/GetConsentsMock.kt +4 -2
- package/android/src/androidTest/java/com/usercentrics/reactnativemodule/mock/SaveDecisionsForTCFMock.kt +4 -2
- package/android/src/main/java/com/usercentrics/reactnativeusercentrics/extensions/UsercentricsServiceConsentExtensions.kt +1 -0
- package/ios/Extensions/UsercentricsServiceConsents+Dict.swift +2 -1
- package/lib/models/UsercentricsServiceConsent.d.ts +2 -1
- package/lib/models/UsercentricsServiceConsent.js +2 -1
- package/lib/models/UsercentricsServiceConsent.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
[Release Notes](https://docs.usercentrics.com/cmp_in_app_sdk/latest/about/history/)
|
|
2
2
|
|
|
3
|
+
### 2.21.1 - Jul 25, 2025
|
|
4
|
+
## Improvement
|
|
5
|
+
## Android/iOS Bug Fixes:
|
|
6
|
+
* Fixed crashes related to the UI
|
|
7
|
+
|
|
8
|
+
### 2.21.0 - Jun 18, 2025
|
|
9
|
+
## Feature - Consent Mediation
|
|
10
|
+
* Added support for AppsFlyer SDK
|
|
11
|
+
* Added support for Singular SDK
|
|
12
|
+
## Improvement - Exposing `category` field in `UsercentricsServiceConsent` object
|
|
13
|
+
## iOS Bug Fixes:
|
|
14
|
+
* Accessibility improvements with VoiceOver and keyboard focus
|
|
15
|
+
* Fixed button sizes when expanding font size
|
|
16
|
+
|
|
3
17
|
### 2.20.3 - May 30, 2025
|
|
4
18
|
## Improvement: Accessibility Enhancements
|
|
5
19
|
* iOS: Enhanced VoiceOver support when expanding cards across all compliance frameworks.
|
package/android/build.gradle
CHANGED
package/android/src/androidTest/java/com/usercentrics/reactnativemodule/RNUsercentricsModuleTest.kt
CHANGED
|
@@ -82,7 +82,8 @@ class RNUsercentricsModuleTest {
|
|
|
82
82
|
type = UsercentricsConsentType.EXPLICIT,
|
|
83
83
|
version = "1.0.1",
|
|
84
84
|
isEssential = false,
|
|
85
|
-
history = usercentricsConsentHistoryEntries
|
|
85
|
+
history = usercentricsConsentHistoryEntries,
|
|
86
|
+
category = "marketing",
|
|
86
87
|
)
|
|
87
88
|
),
|
|
88
89
|
geolocationRuleset = GeolocationRuleset(
|
package/android/src/androidTest/java/com/usercentrics/reactnativemodule/mock/GetConsentsMock.kt
CHANGED
|
@@ -21,7 +21,8 @@ internal class GetConsentsMock {
|
|
|
21
21
|
123
|
|
22
22
|
)
|
|
23
23
|
),
|
|
24
|
-
isEssential = false
|
|
24
|
+
isEssential = false,
|
|
25
|
+
category = "marketing",
|
|
25
26
|
)
|
|
26
27
|
)
|
|
27
28
|
|
|
@@ -39,7 +40,8 @@ internal class GetConsentsMock {
|
|
|
39
40
|
"type" to 0,
|
|
40
41
|
"status" to false
|
|
41
42
|
)
|
|
42
|
-
)
|
|
43
|
+
),
|
|
44
|
+
"category" to "marketing"
|
|
43
45
|
)
|
|
44
46
|
)
|
|
45
47
|
}
|
|
@@ -27,7 +27,8 @@ internal class SaveDecisionsForTCFMock {
|
|
|
27
27
|
123
|
|
28
28
|
)
|
|
29
29
|
),
|
|
30
|
-
isEssential = false
|
|
30
|
+
isEssential = false,
|
|
31
|
+
category = "marketing",
|
|
31
32
|
)
|
|
32
33
|
)
|
|
33
34
|
|
|
@@ -84,7 +85,8 @@ internal class SaveDecisionsForTCFMock {
|
|
|
84
85
|
"type" to 0,
|
|
85
86
|
"status" to false
|
|
86
87
|
)
|
|
87
|
-
)
|
|
88
|
+
),
|
|
89
|
+
"category" to "marketing"
|
|
88
90
|
)
|
|
89
91
|
)
|
|
90
92
|
}
|
|
@@ -15,7 +15,8 @@ public extension UsercentricsServiceConsent {
|
|
|
15
15
|
"version": self.version,
|
|
16
16
|
"dataProcessor": self.dataProcessor,
|
|
17
17
|
"isEssential": self.isEssential,
|
|
18
|
-
"history": self.history.toDictionary()
|
|
18
|
+
"history": self.history.toDictionary(),
|
|
19
|
+
"category": self.category
|
|
19
20
|
]
|
|
20
21
|
|
|
21
22
|
if let type = self.type?.ordinal {
|
|
@@ -7,7 +7,8 @@ export declare class UsercentricsServiceConsent {
|
|
|
7
7
|
type: UsercentricsConsentType;
|
|
8
8
|
isEssential: boolean;
|
|
9
9
|
history: UsercentricsConsentHistoryEntry[];
|
|
10
|
-
|
|
10
|
+
category: string;
|
|
11
|
+
constructor(templateId: string, status: boolean, dataProcessor: string, version: string, type: UsercentricsConsentType, isEssential: boolean, history: UsercentricsConsentHistoryEntry[], category: string);
|
|
11
12
|
}
|
|
12
13
|
export declare class UsercentricsConsentHistoryEntry {
|
|
13
14
|
status: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export class UsercentricsServiceConsent {
|
|
2
|
-
constructor(templateId, status, dataProcessor, version, type, isEssential, history) {
|
|
2
|
+
constructor(templateId, status, dataProcessor, version, type, isEssential, history, category) {
|
|
3
3
|
this.templateId = templateId;
|
|
4
4
|
this.status = status;
|
|
5
5
|
this.dataProcessor = dataProcessor;
|
|
@@ -7,6 +7,7 @@ export class UsercentricsServiceConsent {
|
|
|
7
7
|
this.type = type;
|
|
8
8
|
this.isEssential = isEssential;
|
|
9
9
|
this.history = history;
|
|
10
|
+
this.category = category;
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
export class UsercentricsConsentHistoryEntry {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsercentricsServiceConsent.js","sourceRoot":"","sources":["../../src/models/UsercentricsServiceConsent.tsx"],"names":[],"mappings":"AAEA,MAAM,OAAO,0BAA0B;
|
|
1
|
+
{"version":3,"file":"UsercentricsServiceConsent.js","sourceRoot":"","sources":["../../src/models/UsercentricsServiceConsent.tsx"],"names":[],"mappings":"AAEA,MAAM,OAAO,0BAA0B;IAWnC,YAAY,UAAkB,EAAE,MAAe,EAAE,aAAqB,EAAE,OAAe,EAAE,IAA6B,EAAE,WAAoB,EAAE,OAA0C,EAAE,QAAgB;QACtM,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;QAC9B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;CACJ;AAED,MAAM,OAAO,+BAA+B;IAMxC,YAAY,MAAe,EAAE,IAA6B,EAAE,iBAAyB;QACjF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usercentrics/react-native-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.21.1",
|
|
4
4
|
"description": "Usercentrics SDK",
|
|
5
5
|
"homepage": "https://usercentrics.com",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
8
8
|
"author": "Usercentrics <developer@usercentrics.com>",
|
|
9
9
|
"iosPackageName": "react-native-usercentrics",
|
|
10
|
-
"iosPackageVersion": "2.
|
|
10
|
+
"iosPackageVersion": "2.21.1",
|
|
11
11
|
"license": "SEE LICENSE IN LICENSE",
|
|
12
12
|
"files": [
|
|
13
13
|
"android",
|