@shenai/react-native-sdk 3.1.1 → 3.1.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
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# @shenai/react-native-sdk
|
|
2
|
+
|
|
3
|
+
React Native wrapper for the Shen.AI SDK.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @shenai/react-native-sdk
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
For iOS projects, install CocoaPods dependencies after changing packages:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
cd ios
|
|
15
|
+
pod install
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
The package resolves the native Shen.AI SDK through Maven Central on Android and CocoaPods on iOS.
|
|
19
|
+
|
|
20
|
+
## Documentation
|
|
21
|
+
|
|
22
|
+
Integration guidance and platform-specific setup details live in the Shen.AI developer portal:
|
|
23
|
+
|
|
24
|
+
https://developer.shen.ai/platforms/react-native
|
package/android/build.gradle
CHANGED
|
@@ -98,6 +98,9 @@ public class ShenaiSdkModule extends ReactContextBaseJavaModule {
|
|
|
98
98
|
if (settings.hasKey("offlineProcessing")) {
|
|
99
99
|
shenaiSettings.offlineProcessing = settings.getBoolean("offlineProcessing");
|
|
100
100
|
}
|
|
101
|
+
if (settings.hasKey("localMemoryEnabled")) {
|
|
102
|
+
shenaiSettings.localMemoryEnabled = settings.getBoolean("localMemoryEnabled");
|
|
103
|
+
}
|
|
101
104
|
if (settings.hasKey("showFacePositioningOverlay")) {
|
|
102
105
|
shenaiSettings.showFacePositioningOverlay = settings.getBoolean("showFacePositioningOverlay");
|
|
103
106
|
}
|
|
@@ -84,6 +84,9 @@ RCT_EXPORT_METHOD(initialize
|
|
|
84
84
|
if (settings[@"offlineProcessing"]) {
|
|
85
85
|
initSettings.offlineProcessing = [settings[@"offlineProcessing"] boolValue];
|
|
86
86
|
}
|
|
87
|
+
if (settings[@"localMemoryEnabled"]) {
|
|
88
|
+
initSettings.localMemoryEnabled = [settings[@"localMemoryEnabled"] boolValue];
|
|
89
|
+
}
|
|
87
90
|
if (settings[@"showUserInterface"]) {
|
|
88
91
|
initSettings.showUserInterface = [settings[@"showUserInterface"] boolValue];
|
|
89
92
|
}
|
|
@@ -137,6 +137,7 @@ export interface InitializationSettings {
|
|
|
137
137
|
onboardingMode?: OnboardingMode;
|
|
138
138
|
initializationMode?: InitializationMode;
|
|
139
139
|
offlineProcessing?: boolean;
|
|
140
|
+
localMemoryEnabled?: boolean;
|
|
140
141
|
showUserInterface?: boolean;
|
|
141
142
|
showFacePositioningOverlay?: boolean;
|
|
142
143
|
showVisualWarnings?: boolean;
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ Pod::Spec.new do |s|
|
|
|
13
13
|
s.platforms = { :ios => "14.0" }
|
|
14
14
|
s.source = { :path => "." }
|
|
15
15
|
s.source_files = "ios/**/*.{h,m,mm}"
|
|
16
|
-
s.dependency "ShenaiSDK", "3.1.
|
|
16
|
+
s.dependency "ShenaiSDK", "3.1.3"
|
|
17
17
|
|
|
18
18
|
if respond_to?(:install_modules_dependencies, true)
|
|
19
19
|
install_modules_dependencies(s)
|