Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.18.2 #137

Merged
merged 7 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
[Release Notes](https://docs.usercentrics.com/cmp_in_app_sdk/latest/about/history/)

### 2.18.2 - November 27, 2024

## Features
* Added support for manual resurface in the mobile SDK, which can be trigged through Admin Interface.

## Improvements
* Exposed `readLess` label in `UsercentricsLabels` object

### 2.18.1 - November 20, 2024

## Improvements
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
def usercentrics_version = "2.18.1"
def usercentrics_version = "2.18.2"
version usercentrics_version

buildscript {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ internal object GetCMPDataMock {
yes = "yes",
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.",
btnBannerReadMore = "Read more",
readLess = "Read less",
btnMore = "more",
more = "more",
linkToDpaInfo = "Data Processing Agreement",
Expand Down Expand Up @@ -333,6 +334,7 @@ internal object GetCMPDataMock {
publishedApps = listOf(
PublishedApp(bundleId = "bundleId", platform = PublishedAppPlatform.ANDROID)
),
renewConsentsTimestamp = 1000L
)

// From the debugger
Expand Down Expand Up @@ -411,6 +413,7 @@ internal object GetCMPDataMock {
"yes" to "yes",
"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.",
"btnBannerReadMore" to "Read more",
"readLess" to "Read less",
"btnMore" to "more",
"more" to "more",
"linkToDpaInfo" to "Data Processing Agreement",
Expand Down Expand Up @@ -568,7 +571,8 @@ internal object GetCMPDataMock {
"platform" to 0
)
),
"reshowBanner" to 0
"reshowBanner" to 0,
"renewConsentsTimestamp" to 1000L
)

val expectedCategories = listOf(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ private fun UsercentricsSettings.serialize(): WritableMap {
"dpsDisplayFormat" to dpsDisplayFormat?.ordinal,
"framework" to framework?.ordinal,
"publishedApps" to publishedApps?.map { it.serialize() },
"renewConsentsTimestamp" to renewConsentsTimestamp
).toWritableMap()
}

Expand Down Expand Up @@ -127,6 +128,7 @@ private fun UsercentricsLabels.serialize(): Map<String, Any?> {
"yes" to yes,
"storageInformationDescription" to storageInformationDescription,
"btnBannerReadMore" to btnBannerReadMore,
"readLess" to readLess,
"btnMore" to btnMore,
"more" to more,
"linkToDpaInfo" to linkToDpaInfo,
Expand Down
10 changes: 5 additions & 5 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ PODS:
- React-jsinspector (0.65.3)
- react-native-safe-area-context (3.4.1):
- React-Core
- react-native-usercentrics (2.18.1):
- react-native-usercentrics (2.18.2):
- React
- UsercentricsUI (= 2.18.1)
- UsercentricsUI (= 2.18.2)
- react-native-webview (11.26.1):
- React-Core
- React-perflogger (0.65.3)
Expand Down Expand Up @@ -280,9 +280,9 @@ PODS:
- RNScreens (3.20.0):
- React-Core
- React-RCTImage
- Usercentrics (2.18.1)
- UsercentricsUI (2.18.1):
- Usercentrics (= 2.18.1)
- Usercentrics (2.18.2)
- UsercentricsUI (2.18.2):
- Usercentrics (= 2.18.2)
- Yoga (1.14.0)

DEPENDENCIES:
Expand Down
2 changes: 2 additions & 0 deletions example/ios/exampleTests/Mock/CMPData+Mock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ extension UsercentricsSettings {
dpsDisplayFormat: .all,
framework: .vcdpa,
publishedApps: [.mock()],
renewConsentsTimestamp: 1000,
consentTemplates: [.mock()],
categories: [.mock()])
}
Expand Down Expand Up @@ -173,6 +174,7 @@ extension UsercentricsLabels {
yes: "yes",
storageInformationDescription: "storageInformationDescription",
btnBannerReadMore: "btnBannerReadMore",
readLess: "readLess",
btnMore: "btnMore",
more: "more",
linkToDpaInfo: "linkToDpaInfo",
Expand Down
2 changes: 2 additions & 0 deletions ios/Extensions/UsercentricsCMPData+Dict.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ extension UsercentricsSettings {
"dpsDisplayFormat": (self.dpsDisplayFormat?.ordinal ?? nil) as Any,
"framework": (self.framework?.ordinal ?? nil) as Any,
"publishedApps": (self.publishedApps?.map { $0.toDictionary() } ?? nil) as Any,
"renewConsentsTimestamp": self.renewConsentsTimestamp as Any,
]
}
}
Expand Down Expand Up @@ -110,6 +111,7 @@ extension UsercentricsLabels {
"yes" : self.yes,
"storageInformationDescription" : self.storageInformationDescription,
"btnBannerReadMore" : self.btnBannerReadMore,
"readLess": self.readLess,
"btnMore": self.btnMore,
"more": self.more,
"linkToDpaInfo" : self.linkToDpaInfo,
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@usercentrics/react-native-sdk",
"version": "2.18.1",
"version": "2.18.2",
"description": "Usercentrics SDK",
"homepage": "https://usercentrics.com",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"author": "Usercentrics <developer@usercentrics.com>",
"iosPackageName": "react-native-usercentrics",
"iosPackageVersion": "2.18.1",
"iosPackageVersion": "2.18.2",
"license": "SEE LICENSE IN LICENSE",
"files": [
"android",
Expand Down
4 changes: 3 additions & 1 deletion src/__tests__/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ const ucLabels: UsercentricsLabels = {
yes: "yes",
storageInformationDescription: "storageInformationDescription",
btnBannerReadMore: "btnBannerReadMore",
readLess: "readLess",
btnMore: "btnMore",
more: "more",
linkToDpaInfo: "linkToDpaInfo",
Expand Down Expand Up @@ -249,7 +250,8 @@ const ucSettings: UsercentricsSettings = {
variants: undefined,
dpsDisplayFormat: DpsDisplayFormat.all,
framework: USAFrameworks.cpa,
publishedApps: undefined
publishedApps: undefined,
renewConsentsTimestamp: 1000
}

const disclosure: ConsentDisclosure = {
Expand Down
3 changes: 3 additions & 0 deletions src/models/UsercentricsLabels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export class UsercentricsLabels {
yes: string
storageInformationDescription: string
btnBannerReadMore: string
readLess: string
btnMore: string
more: string
linkToDpaInfo: string
Expand Down Expand Up @@ -152,6 +153,7 @@ export class UsercentricsLabels {
yes: string,
storageInformationDescription: string,
btnBannerReadMore: string,
readLess: string,
btnMore: string,
more: string,
linkToDpaInfo: string,
Expand Down Expand Up @@ -241,6 +243,7 @@ export class UsercentricsLabels {
this.yes = yes
this.storageInformationDescription = storageInformationDescription
this.btnBannerReadMore = btnBannerReadMore
this.readLess = readLess
this.btnMore = btnMore
this.more = more
this.linkToDpaInfo = linkToDpaInfo
Expand Down
3 changes: 3 additions & 0 deletions src/models/UsercentricsSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export class UsercentricsSettings {
dpsDisplayFormat?: DpsDisplayFormat
framework?: USAFrameworks
publishedApps?: [PublishedApp]
renewConsentsTimestamp?: number

constructor(
labels: UsercentricsLabels,
Expand Down Expand Up @@ -57,6 +58,7 @@ export class UsercentricsSettings {
dpsDisplayFormat?: DpsDisplayFormat,
framework?: USAFrameworks,
publishedApps?: [PublishedApp],
renewConsentsTimestamp?: number,
) {
this.labels = labels
this.version = version
Expand Down Expand Up @@ -84,6 +86,7 @@ export class UsercentricsSettings {
this.dpsDisplayFormat = dpsDisplayFormat
this.framework = framework
this.publishedApps = publishedApps
this.renewConsentsTimestamp = renewConsentsTimestamp
}
}

Expand Down
Loading