@usercentrics/react-native-sdk 2.26.1 โ 2.26.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/README.md +7 -7
- package/android/build-legacy.gradle +1 -1
- package/android/build.gradle.kts +1 -1
- package/android/src/main/java/com/usercentrics/reactnative/extensions/UsercentricsCMPDataExtensions.kt +2 -0
- package/ios/Extensions/UsercentricsCMPData+Dict.swift +2 -0
- package/ios/RNUsercentricsModule.xcodeproj/project.pbxproj +2 -2
- package/package.json +14 -8
package/README.md
CHANGED
|
@@ -61,9 +61,9 @@ In order to use and test the SDK, you will need a Usercentrics Account. Get [sta
|
|
|
61
61
|
|
|
62
62
|
Continue to our [documentation](https://usercentrics.com/docs/apps/intro/) for a step by step integration guide.
|
|
63
63
|
|
|
64
|
-
##
|
|
64
|
+
## Sample app
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
This repository includes a **`sample/`** app that demonstrates integrating the SDK. Use it as a reference and for local development.
|
|
67
67
|
|
|
68
68
|
## Quick Start
|
|
69
69
|
|
|
@@ -101,14 +101,14 @@ npm run ios
|
|
|
101
101
|
```sh
|
|
102
102
|
npm install --legacy-peer-deps
|
|
103
103
|
```
|
|
104
|
-
* From
|
|
104
|
+
* From `sample` folder:
|
|
105
105
|
```sh
|
|
106
106
|
npm install --legacy-peer-deps
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
### iOS (macOS only)
|
|
110
110
|
|
|
111
|
-
From
|
|
111
|
+
From `sample` folder:
|
|
112
112
|
```sh
|
|
113
113
|
npx pod-install
|
|
114
114
|
npx react-native run-ios
|
|
@@ -116,7 +116,7 @@ npx react-native run-ios
|
|
|
116
116
|
|
|
117
117
|
### Android
|
|
118
118
|
|
|
119
|
-
Make sure you have Android SDK configured, then from
|
|
119
|
+
Make sure you have Android SDK configured, then from `sample` folder:
|
|
120
120
|
```sh
|
|
121
121
|
npx react-native run-android
|
|
122
122
|
```
|
|
@@ -128,7 +128,7 @@ npx react-native run-android
|
|
|
128
128
|
| `npm run auto-setup` | ๐ค Automatically install all required dependencies |
|
|
129
129
|
| `npm run check-requirements` | ๐ Check development environment requirements |
|
|
130
130
|
| `npm run clean-all-caches` | ๐งน Clean all project and system caches |
|
|
131
|
-
| `npm run install-dependencies` | ๐ฆ Install dependencies in root and
|
|
131
|
+
| `npm run install-dependencies` | ๐ฆ Install dependencies in root and `sample/` |
|
|
132
132
|
| `npm run run-android` | ๐ค Kill conflicting ports and run Android app |
|
|
133
133
|
|
|
134
134
|
### ๐ง Troubleshooting
|
|
@@ -152,7 +152,7 @@ The project includes intelligent scripts that will:
|
|
|
152
152
|
|
|
153
153
|
## Consent Mediation
|
|
154
154
|
|
|
155
|
-
You can enable and run the Consent Mediation
|
|
155
|
+
You can enable and run the Consent Mediation flow in the sample app by following the [documentation](https://usercentrics.com/docs/apps/features/consent-mediation/#enable-mediation).
|
|
156
156
|
|
|
157
157
|
## Maintainers
|
|
158
158
|
- [Usercentrics](https://github.com/Usercentrics)
|
package/android/build.gradle.kts
CHANGED
|
@@ -326,6 +326,8 @@ private fun CustomizationColor.serialize(): WritableMap {
|
|
|
326
326
|
"toggleDisabledBackground" to toggleDisabledBackground,
|
|
327
327
|
"toggleDisabledIcon" to toggleDisabledIcon,
|
|
328
328
|
"secondLayerTab" to secondLayerTab,
|
|
329
|
+
"moreBtnBackground" to moreBtnBackground,
|
|
330
|
+
"moreBtnText" to moreBtnText,
|
|
329
331
|
).toWritableMap()
|
|
330
332
|
}
|
|
331
333
|
|
|
@@ -289,6 +289,8 @@ extension CustomizationColor {
|
|
|
289
289
|
"toggleDisabledBackground" : self.toggleDisabledBackground as Any,
|
|
290
290
|
"toggleDisabledIcon" : self.toggleDisabledIcon as Any,
|
|
291
291
|
"secondLayerTab" : self.secondLayerTab as Any,
|
|
292
|
+
"moreBtnBackground" : self.moreBtnBackground as Any,
|
|
293
|
+
"moreBtnText" : self.moreBtnText as Any,
|
|
292
294
|
]
|
|
293
295
|
}
|
|
294
296
|
}
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
CLANG_ENABLE_MODULES = YES;
|
|
349
349
|
HEADER_SEARCH_PATHS = (
|
|
350
350
|
"$(inherited)",
|
|
351
|
-
"$(SRCROOT)/../
|
|
351
|
+
"$(SRCROOT)/../sample/ios/Pods/Headers/Public/React-Core",
|
|
352
352
|
"$(SRCROOT)/../../../ios/Pods/Headers/Public/React-Core",
|
|
353
353
|
);
|
|
354
354
|
LD_RUNPATH_SEARCH_PATHS = (
|
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
CLANG_ENABLE_MODULES = YES;
|
|
373
373
|
HEADER_SEARCH_PATHS = (
|
|
374
374
|
"$(inherited)",
|
|
375
|
-
"$(SRCROOT)/../
|
|
375
|
+
"$(SRCROOT)/../sample/ios/Pods/Headers/Public/React-Core",
|
|
376
376
|
"$(SRCROOT)/../../../ios/Pods/Headers/Public/React-Core",
|
|
377
377
|
);
|
|
378
378
|
LD_RUNPATH_SEARCH_PATHS = (
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usercentrics/react-native-sdk",
|
|
3
|
-
"version": "2.26.
|
|
3
|
+
"version": "2.26.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.26.
|
|
10
|
+
"iosPackageVersion": "2.26.3",
|
|
11
11
|
"license": "SEE LICENSE IN LICENSE",
|
|
12
12
|
"files": [
|
|
13
13
|
"android",
|
|
@@ -46,25 +46,32 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@babel/core": "^7.25.10",
|
|
49
|
-
"@react-native-community/cli": "^
|
|
50
|
-
"@react-native-community/cli-platform-android": "
|
|
51
|
-
"@react-native-community/cli-platform-ios": "
|
|
49
|
+
"@react-native-community/cli": "^20.1.3",
|
|
50
|
+
"@react-native-community/cli-platform-android": "^20.1.3",
|
|
51
|
+
"@react-native-community/cli-platform-ios": "^20.1.3",
|
|
52
52
|
"@react-native-community/eslint-config": "^3.0.1",
|
|
53
53
|
"@react-native/babel-preset": "^0.81.1",
|
|
54
54
|
"@types/jest": "^29.5.2",
|
|
55
|
-
"@types/react-native": "^0.73.0",
|
|
56
55
|
"@types/react-test-renderer": "^19.0.0",
|
|
57
56
|
"babel-jest": "^29.5.0",
|
|
58
57
|
"eslint": "^8.44.0",
|
|
59
58
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
60
59
|
"jest": "^29.5.0",
|
|
61
|
-
"metro-react-native-babel-preset": "^0.77.0",
|
|
62
60
|
"react": "^19.1.0",
|
|
63
61
|
"react-native": "^0.79.6",
|
|
64
62
|
"react-native-codegen": "^0.0.7",
|
|
65
63
|
"react-test-renderer": "^19.1.0",
|
|
66
64
|
"typescript": "^5.8.3"
|
|
67
65
|
},
|
|
66
|
+
"overrides": {
|
|
67
|
+
"fast-xml-parser": ">=4.5.4",
|
|
68
|
+
"braces": ">=3.0.3",
|
|
69
|
+
"micromatch": ">=4.0.8",
|
|
70
|
+
"flatted": ">=3.4.2",
|
|
71
|
+
"lodash": ">=4.18.1",
|
|
72
|
+
"picomatch": ">=4.0.4",
|
|
73
|
+
"yaml": ">=2.8.3"
|
|
74
|
+
},
|
|
68
75
|
"peerDependencies": {
|
|
69
76
|
"react": "*",
|
|
70
77
|
"react-native": "*"
|
|
@@ -91,7 +98,6 @@
|
|
|
91
98
|
]
|
|
92
99
|
},
|
|
93
100
|
"directories": {
|
|
94
|
-
"example": "example",
|
|
95
101
|
"lib": "lib"
|
|
96
102
|
},
|
|
97
103
|
"repository": {
|