@usercentrics/react-native-sdk 2.7.1 → 2.7.3
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
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
[Release Notes](https://docs.usercentrics.com/cmp_in_app_sdk/latest/about/history/)
|
|
2
|
+
# 2.7.3
|
|
3
|
+
|
|
4
|
+
## Improvements
|
|
5
|
+
|
|
6
|
+
* General bug fixes.
|
|
7
|
+
* Huge performance improvement.
|
|
8
|
+
|
|
9
|
+
# 2.7.2
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
|
|
13
|
+
* **[Compliance]** You may now enable a close button in the First Layer, to "Continue without accepting".
|
|
14
|
+
|
|
15
|
+
## Improvements
|
|
16
|
+
|
|
17
|
+
* Improve legal link customization via our Programmatic API.
|
|
18
|
+
* Upgrade Error logs to help you debug the SDK's behaviour.
|
|
19
|
+
|
|
20
|
+
## Resolved Issues
|
|
21
|
+
|
|
22
|
+
* [TCF 2.0] Solve issue where shouldCollectConsent was always true.
|
|
2
23
|
|
|
3
24
|
# 2.7.1
|
|
4
25
|
|
package/android/build.gradle
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
def usercentrics_version = "2.7.
|
|
1
|
+
def usercentrics_version = "2.7.3"
|
|
2
2
|
version usercentrics_version
|
|
3
3
|
|
|
4
4
|
buildscript {
|
|
5
|
-
ext.kotlin_version = '1.
|
|
5
|
+
ext.kotlin_version = '1.7.10'
|
|
6
6
|
|
|
7
7
|
ext.safeExtGet = { prop, fallback ->
|
|
8
8
|
return rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
@@ -14,7 +14,7 @@ buildscript {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
dependencies {
|
|
17
|
-
classpath 'com.android.tools.build:gradle:7.
|
|
17
|
+
classpath 'com.android.tools.build:gradle:7.1.3'
|
|
18
18
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -27,7 +27,7 @@ apply plugin: 'com.android.library'
|
|
|
27
27
|
apply plugin: 'kotlin-android'
|
|
28
28
|
|
|
29
29
|
android {
|
|
30
|
-
compileSdkVersion
|
|
30
|
+
compileSdkVersion 31
|
|
31
31
|
|
|
32
32
|
compileOptions {
|
|
33
33
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
@@ -3,7 +3,9 @@ import Foundation
|
|
|
3
3
|
extension UIColor {
|
|
4
4
|
convenience init?(unsafeHex: String?) {
|
|
5
5
|
guard let unsafeHex = unsafeHex else { return nil }
|
|
6
|
-
if unsafeHex.
|
|
6
|
+
if unsafeHex.isEmpty {
|
|
7
|
+
return nil
|
|
8
|
+
} else if unsafeHex.hasPrefix("#") {
|
|
7
9
|
self.init(hex: unsafeHex)
|
|
8
10
|
} else {
|
|
9
11
|
self.init(hex: "#\(unsafeHex)")
|
|
@@ -205,6 +205,10 @@ class RNUsercentricsModule: NSObject, RCTBridgeModule {
|
|
|
205
205
|
} else {
|
|
206
206
|
window = UIApplication.shared.windows.first { $0.isKeyWindow }
|
|
207
207
|
}
|
|
208
|
-
|
|
208
|
+
var viewController = window?.rootViewController
|
|
209
|
+
while viewController?.presentedViewController != nil {
|
|
210
|
+
viewController = viewController?.presentedViewController
|
|
211
|
+
}
|
|
212
|
+
return viewController
|
|
209
213
|
}
|
|
210
214
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usercentrics/react-native-sdk",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.3",
|
|
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.7.
|
|
10
|
+
"iosPackageVersion": "2.7.3",
|
|
11
11
|
"license": "SEE LICENSE IN LICENSE",
|
|
12
12
|
"files": [
|
|
13
13
|
"android",
|