react-native-usesense 2.3.3 → 2.3.4
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 +5 -21
- package/android/build.gradle +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -74,34 +74,18 @@ Add required permissions to your `AndroidManifest.xml`:
|
|
|
74
74
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
**
|
|
78
|
-
registration
|
|
79
|
-
|
|
77
|
+
**One Gradle setting is required** (auto-linking handles module
|
|
78
|
+
registration). The native SDK requires Android API 28 — set it in your
|
|
79
|
+
app's `android/build.gradle`:
|
|
80
80
|
|
|
81
81
|
```groovy
|
|
82
|
-
// 1. The native SDK requires Android API 28.
|
|
83
82
|
ext {
|
|
84
83
|
minSdkVersion = 28
|
|
85
84
|
}
|
|
86
|
-
|
|
87
|
-
// 2. The SDK is built with Kotlin 2.2; React Native's Kotlin 1.9
|
|
88
|
-
// toolchain can't read 2.2 metadata. Force kotlin-stdlib to a
|
|
89
|
-
// 1.9-readable version. (Not needed once RN ships Kotlin >= 2.2.)
|
|
90
|
-
allprojects {
|
|
91
|
-
configurations.all {
|
|
92
|
-
resolutionStrategy.eachDependency {
|
|
93
|
-
if (requested.group == 'org.jetbrains.kotlin' &&
|
|
94
|
-
requested.name.startsWith('kotlin-stdlib')) {
|
|
95
|
-
useVersion '2.0.21'
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
85
|
```
|
|
101
86
|
|
|
102
|
-
Without
|
|
103
|
-
(`minSdkVersion … cannot be smaller than 28`)
|
|
104
|
-
(`Class 'kotlin.Unit' was compiled with an incompatible version`).
|
|
87
|
+
Without it, a release build fails at manifest merge
|
|
88
|
+
(`minSdkVersion … cannot be smaller than 28`).
|
|
105
89
|
|
|
106
90
|
### New Architecture
|
|
107
91
|
|
package/android/build.gradle
CHANGED
|
@@ -44,7 +44,7 @@ dependencies {
|
|
|
44
44
|
// the iOS SDK 4.3.0 the plugin's podspec depends on). mavenCentral()
|
|
45
45
|
// is already in the `repositories` block above, so no custom
|
|
46
46
|
// repository declaration is needed.
|
|
47
|
-
implementation "ai.usesense:sdk:4.6.
|
|
47
|
+
implementation "ai.usesense:sdk:4.6.4"
|
|
48
48
|
|
|
49
49
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:${safeExtGet('kotlinVersion', '2.0.0')}"
|
|
50
50
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-usesense",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.4",
|
|
4
4
|
"description": "React Native plugin for human presence verification. Wraps the native UseSense iOS and Android SDKs.",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|