Skip to content

Commit 519845e

Browse files
2.18.2 (#137)
Release: 2.18.2
1 parent c8c6d64 commit 519845e

File tree

12 files changed

+37
-11
lines changed

12 files changed

+37
-11
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
[Release Notes](https://docs.usercentrics.com/cmp_in_app_sdk/latest/about/history/)
22

3+
### 2.18.2 - November 27, 2024
4+
5+
## Features
6+
* Added support for manual resurface in the mobile SDK, which can be trigged through Admin Interface.
7+
8+
## Improvements
9+
* Exposed `readLess` label in `UsercentricsLabels` object
10+
311
### 2.18.1 - November 20, 2024
412

513
## Improvements

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
def usercentrics_version = "2.18.1"
1+
def usercentrics_version = "2.18.2"
22
version usercentrics_version
33

44
buildscript {

android/src/androidTest/java/com/usercentrics/reactnativemodule/mock/GetCMPDataMock.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ internal object GetCMPDataMock {
154154
yes = "yes",
155155
storageInformationDescription = "Below you can see the longest potential duration for storage on a device, as set when using the cookie method of storage and if there are any other methods used.",
156156
btnBannerReadMore = "Read more",
157+
readLess = "Read less",
157158
btnMore = "more",
158159
more = "more",
159160
linkToDpaInfo = "Data Processing Agreement",
@@ -333,6 +334,7 @@ internal object GetCMPDataMock {
333334
publishedApps = listOf(
334335
PublishedApp(bundleId = "bundleId", platform = PublishedAppPlatform.ANDROID)
335336
),
337+
renewConsentsTimestamp = 1000L
336338
)
337339

338340
// From the debugger
@@ -411,6 +413,7 @@ internal object GetCMPDataMock {
411413
"yes" to "yes",
412414
"storageInformationDescription" to "Below you can see the longest potential duration for storage on a device, as set when using the cookie method of storage and if there are any other methods used.",
413415
"btnBannerReadMore" to "Read more",
416+
"readLess" to "Read less",
414417
"btnMore" to "more",
415418
"more" to "more",
416419
"linkToDpaInfo" to "Data Processing Agreement",
@@ -568,7 +571,8 @@ internal object GetCMPDataMock {
568571
"platform" to 0
569572
)
570573
),
571-
"reshowBanner" to 0
574+
"reshowBanner" to 0,
575+
"renewConsentsTimestamp" to 1000L
572576
)
573577

574578
val expectedCategories = listOf(

android/src/main/java/com/usercentrics/reactnativeusercentrics/extensions/UsercentricsCMPDataExtensions.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ private fun UsercentricsSettings.serialize(): WritableMap {
6262
"dpsDisplayFormat" to dpsDisplayFormat?.ordinal,
6363
"framework" to framework?.ordinal,
6464
"publishedApps" to publishedApps?.map { it.serialize() },
65+
"renewConsentsTimestamp" to renewConsentsTimestamp
6566
).toWritableMap()
6667
}
6768

@@ -127,6 +128,7 @@ private fun UsercentricsLabels.serialize(): Map<String, Any?> {
127128
"yes" to yes,
128129
"storageInformationDescription" to storageInformationDescription,
129130
"btnBannerReadMore" to btnBannerReadMore,
131+
"readLess" to readLess,
130132
"btnMore" to btnMore,
131133
"more" to more,
132134
"linkToDpaInfo" to linkToDpaInfo,

example/ios/Podfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ PODS:
208208
- React-jsinspector (0.65.3)
209209
- react-native-safe-area-context (3.4.1):
210210
- React-Core
211-
- react-native-usercentrics (2.18.1):
211+
- react-native-usercentrics (2.18.2):
212212
- React
213-
- UsercentricsUI (= 2.18.1)
213+
- UsercentricsUI (= 2.18.2)
214214
- react-native-webview (11.26.1):
215215
- React-Core
216216
- React-perflogger (0.65.3)
@@ -280,9 +280,9 @@ PODS:
280280
- RNScreens (3.20.0):
281281
- React-Core
282282
- React-RCTImage
283-
- Usercentrics (2.18.1)
284-
- UsercentricsUI (2.18.1):
285-
- Usercentrics (= 2.18.1)
283+
- Usercentrics (2.18.2)
284+
- UsercentricsUI (2.18.2):
285+
- Usercentrics (= 2.18.2)
286286
- Yoga (1.14.0)
287287

288288
DEPENDENCIES:

example/ios/exampleTests/Mock/CMPData+Mock.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ extension UsercentricsSettings {
4444
dpsDisplayFormat: .all,
4545
framework: .vcdpa,
4646
publishedApps: [.mock()],
47+
renewConsentsTimestamp: 1000,
4748
consentTemplates: [.mock()],
4849
categories: [.mock()])
4950
}
@@ -173,6 +174,7 @@ extension UsercentricsLabels {
173174
yes: "yes",
174175
storageInformationDescription: "storageInformationDescription",
175176
btnBannerReadMore: "btnBannerReadMore",
177+
readLess: "readLess",
176178
btnMore: "btnMore",
177179
more: "more",
178180
linkToDpaInfo: "linkToDpaInfo",

ios/Extensions/UsercentricsCMPData+Dict.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ extension UsercentricsSettings {
4343
"dpsDisplayFormat": (self.dpsDisplayFormat?.ordinal ?? nil) as Any,
4444
"framework": (self.framework?.ordinal ?? nil) as Any,
4545
"publishedApps": (self.publishedApps?.map { $0.toDictionary() } ?? nil) as Any,
46+
"renewConsentsTimestamp": self.renewConsentsTimestamp as Any,
4647
]
4748
}
4849
}
@@ -110,6 +111,7 @@ extension UsercentricsLabels {
110111
"yes" : self.yes,
111112
"storageInformationDescription" : self.storageInformationDescription,
112113
"btnBannerReadMore" : self.btnBannerReadMore,
114+
"readLess": self.readLess,
113115
"btnMore": self.btnMore,
114116
"more": self.more,
115117
"linkToDpaInfo" : self.linkToDpaInfo,

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "@usercentrics/react-native-sdk",
3-
"version": "2.18.1",
3+
"version": "2.18.2",
44
"description": "Usercentrics SDK",
55
"homepage": "https://usercentrics.com",
66
"main": "lib/index.js",
77
"types": "lib/index.d.ts",
88
"author": "Usercentrics <developer@usercentrics.com>",
99
"iosPackageName": "react-native-usercentrics",
10-
"iosPackageVersion": "2.18.1",
10+
"iosPackageVersion": "2.18.2",
1111
"license": "SEE LICENSE IN LICENSE",
1212
"files": [
1313
"android",

src/__tests__/mocks.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ const ucLabels: UsercentricsLabels = {
105105
yes: "yes",
106106
storageInformationDescription: "storageInformationDescription",
107107
btnBannerReadMore: "btnBannerReadMore",
108+
readLess: "readLess",
108109
btnMore: "btnMore",
109110
more: "more",
110111
linkToDpaInfo: "linkToDpaInfo",
@@ -249,7 +250,8 @@ const ucSettings: UsercentricsSettings = {
249250
variants: undefined,
250251
dpsDisplayFormat: DpsDisplayFormat.all,
251252
framework: USAFrameworks.cpa,
252-
publishedApps: undefined
253+
publishedApps: undefined,
254+
renewConsentsTimestamp: 1000
253255
}
254256

255257
const disclosure: ConsentDisclosure = {

src/models/UsercentricsLabels.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export class UsercentricsLabels {
6060
yes: string
6161
storageInformationDescription: string
6262
btnBannerReadMore: string
63+
readLess: string
6364
btnMore: string
6465
more: string
6566
linkToDpaInfo: string
@@ -152,6 +153,7 @@ export class UsercentricsLabels {
152153
yes: string,
153154
storageInformationDescription: string,
154155
btnBannerReadMore: string,
156+
readLess: string,
155157
btnMore: string,
156158
more: string,
157159
linkToDpaInfo: string,
@@ -241,6 +243,7 @@ export class UsercentricsLabels {
241243
this.yes = yes
242244
this.storageInformationDescription = storageInformationDescription
243245
this.btnBannerReadMore = btnBannerReadMore
246+
this.readLess = readLess
244247
this.btnMore = btnMore
245248
this.more = more
246249
this.linkToDpaInfo = linkToDpaInfo

src/models/UsercentricsSettings.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export class UsercentricsSettings {
2929
dpsDisplayFormat?: DpsDisplayFormat
3030
framework?: USAFrameworks
3131
publishedApps?: [PublishedApp]
32+
renewConsentsTimestamp?: number
3233

3334
constructor(
3435
labels: UsercentricsLabels,
@@ -57,6 +58,7 @@ export class UsercentricsSettings {
5758
dpsDisplayFormat?: DpsDisplayFormat,
5859
framework?: USAFrameworks,
5960
publishedApps?: [PublishedApp],
61+
renewConsentsTimestamp?: number,
6062
) {
6163
this.labels = labels
6264
this.version = version
@@ -84,6 +86,7 @@ export class UsercentricsSettings {
8486
this.dpsDisplayFormat = dpsDisplayFormat
8587
this.framework = framework
8688
this.publishedApps = publishedApps
89+
this.renewConsentsTimestamp = renewConsentsTimestamp
8790
}
8891
}
8992

0 commit comments

Comments
 (0)