@usercentrics/react-native-sdk 2.7.1 → 2.7.2

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,5 +1,20 @@
1
1
  [Release Notes](https://docs.usercentrics.com/cmp_in_app_sdk/latest/about/history/)
2
2
 
3
+ # 2.7.2
4
+
5
+ ## Features
6
+
7
+ * **[Compliance]** You may now enable a close button in the First Layer, to "Continue without accepting".
8
+
9
+ ## Improvements
10
+
11
+ * Improve legal link customization via our Programmatic API.
12
+ * Upgrade Error logs to help you debug the SDK's behaviour.
13
+
14
+ ## Resolved Issues
15
+
16
+ * [TCF 2.0] Solve issue where shouldCollectConsent was always true.
17
+
3
18
  # 2.7.1
4
19
 
5
20
  ## Features
@@ -1,8 +1,8 @@
1
- def usercentrics_version = "2.7.1"
1
+ def usercentrics_version = "2.7.2"
2
2
  version usercentrics_version
3
3
 
4
4
  buildscript {
5
- ext.kotlin_version = '1.5.31'
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.0.3'
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
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.hasPrefix("#") {
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)")
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@usercentrics/react-native-sdk",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
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.1",
10
+ "iosPackageVersion": "2.7.2",
11
11
  "license": "SEE LICENSE IN LICENSE",
12
12
  "files": [
13
13
  "android",