@usercentrics/react-native-sdk 2.15.5 → 2.16.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 +13 -0
- package/android/build.gradle +1 -1
- package/android/src/androidTest/java/com/usercentrics/reactnativemodule/RNUsercentricsModuleTest.kt +2 -0
- package/android/src/main/java/com/usercentrics/reactnativeusercentrics/extensions/UserOptionsExtensions.kt +4 -0
- package/ios/Extensions/UsercentricsOptions+Dict.swift +4 -0
- package/lib/models/UsercentricsOptions.d.ts +3 -1
- package/lib/models/UsercentricsOptions.js +2 -1
- package/lib/models/UsercentricsOptions.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
[Release Notes](https://docs.usercentrics.com/cmp_in_app_sdk/latest/about/history/)
|
|
2
2
|
|
|
3
|
+
### 2.16.0 - September 4, 2024
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
* New timeout mode - In this version, you are able to customize the global timeout for the maximum amount of time that the SDK should take to fully initialize, just set the new parameter on the [UsercentricsOptions](https://usercentrics.com/docs/apps/api/core-api/#usercentricsoptions)
|
|
8
|
+
|
|
9
|
+
### 2.15.6 - August 14, 2024
|
|
10
|
+
|
|
11
|
+
## Other Fixes
|
|
12
|
+
|
|
13
|
+
* Toggle visibility of Deny Button on Second Layer for TVs
|
|
14
|
+
* Stability improvements when initializing the SDK
|
|
15
|
+
|
|
3
16
|
### 2.15.5 - July 31, 2024
|
|
4
17
|
|
|
5
18
|
## Improvements
|
package/android/build.gradle
CHANGED
package/android/src/androidTest/java/com/usercentrics/reactnativemodule/RNUsercentricsModuleTest.kt
CHANGED
|
@@ -41,6 +41,7 @@ class RNUsercentricsModuleTest {
|
|
|
41
41
|
putInt("timeoutMillis", 1000)
|
|
42
42
|
putString("version", "1.2.3")
|
|
43
43
|
putInt("networkMode", 1)
|
|
44
|
+
putInt("initTimeoutMillis", 10000)
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
private val bannerSettingsMap = mapOf(
|
|
@@ -125,6 +126,7 @@ class RNUsercentricsModuleTest {
|
|
|
125
126
|
assertEquals(1000L, usercentricsProxy.initializeOptionsArgument?.timeoutMillis)
|
|
126
127
|
assertEquals("1.2.3", usercentricsProxy.initializeOptionsArgument?.version)
|
|
127
128
|
assertEquals(NetworkMode.EU, usercentricsProxy.initializeOptionsArgument?.networkMode)
|
|
129
|
+
assertEquals(10000L, usercentricsProxy.initializeOptionsArgument?.initTimeoutMillis)
|
|
128
130
|
}
|
|
129
131
|
|
|
130
132
|
@Test
|
|
@@ -36,6 +36,10 @@ public extension UsercentricsOptions {
|
|
|
36
36
|
if let consentMediationValue = dictionary["networkMode"] as? Bool {
|
|
37
37
|
options.consentMediation = consentMediationValue
|
|
38
38
|
}
|
|
39
|
+
|
|
40
|
+
if let initTimeoutMillis = dictionary["initTimeoutMillis"] as? Int {
|
|
41
|
+
options.initTimeoutMillis = Int64(initTimeoutMillis)
|
|
42
|
+
}
|
|
39
43
|
|
|
40
44
|
return options
|
|
41
45
|
}
|
|
@@ -8,7 +8,8 @@ export declare class UsercentricsOptions {
|
|
|
8
8
|
version?: string;
|
|
9
9
|
networkMode?: NetworkMode;
|
|
10
10
|
consentMediation?: Boolean;
|
|
11
|
-
|
|
11
|
+
initTimeoutMillis?: number;
|
|
12
|
+
constructor({ settingsId, ruleSetId, defaultLanguage, loggerLevel, timeoutMillis, version, networkMode, consentMediation, initTimeoutMillis }: {
|
|
12
13
|
settingsId?: string;
|
|
13
14
|
ruleSetId?: string;
|
|
14
15
|
defaultLanguage?: string;
|
|
@@ -17,5 +18,6 @@ export declare class UsercentricsOptions {
|
|
|
17
18
|
version?: string;
|
|
18
19
|
networkMode?: NetworkMode;
|
|
19
20
|
consentMediation?: Boolean;
|
|
21
|
+
initTimeoutMillis?: number;
|
|
20
22
|
});
|
|
21
23
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export class UsercentricsOptions {
|
|
2
|
-
constructor({ settingsId = "", ruleSetId = "", defaultLanguage = undefined, loggerLevel = undefined, timeoutMillis = undefined, version = undefined, networkMode = undefined, consentMediation = undefined }) {
|
|
2
|
+
constructor({ settingsId = "", ruleSetId = "", defaultLanguage = undefined, loggerLevel = undefined, timeoutMillis = undefined, version = undefined, networkMode = undefined, consentMediation = undefined, initTimeoutMillis = undefined }) {
|
|
3
3
|
this.settingsId = settingsId;
|
|
4
4
|
this.ruleSetId = ruleSetId;
|
|
5
5
|
this.defaultLanguage = defaultLanguage;
|
|
@@ -8,6 +8,7 @@ export class UsercentricsOptions {
|
|
|
8
8
|
this.version = version;
|
|
9
9
|
this.networkMode = networkMode;
|
|
10
10
|
this.consentMediation = consentMediation;
|
|
11
|
+
this.initTimeoutMillis = initTimeoutMillis;
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
//# sourceMappingURL=UsercentricsOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsercentricsOptions.js","sourceRoot":"","sources":["../../src/models/UsercentricsOptions.tsx"],"names":[],"mappings":"AAEA,MAAM,OAAO,mBAAmB;
|
|
1
|
+
{"version":3,"file":"UsercentricsOptions.js","sourceRoot":"","sources":["../../src/models/UsercentricsOptions.tsx"],"names":[],"mappings":"AAEA,MAAM,OAAO,mBAAmB;IAW5B,YAAY,EACI,UAAU,GAAG,EAAE,EACf,SAAS,GAAG,EAAE,EACd,eAAe,GAAG,SAAS,EAC3B,WAAW,GAAG,SAAS,EACvB,aAAa,GAAG,SAAS,EACzB,OAAO,GAAG,SAAS,EACnB,WAAW,GAAG,SAAS,EACvB,gBAAgB,GAAG,SAAS,EAC5B,iBAAiB,GAAG,SAAS,EAW5C;QACG,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAA;QACtC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;QAC9B,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;QAC9B,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAA;QACxC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAA;IAC9C,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.16.0",
|
|
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.16.0",
|
|
11
11
|
"license": "SEE LICENSE IN LICENSE",
|
|
12
12
|
"files": [
|
|
13
13
|
"android",
|