@shenai/capacitor-sdk 3.1.1 → 3.1.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/CapacitorShenaiSdk.podspec +1 -1
- package/README.md +18 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/ai/mxlabs/shenai_sdk/plugins/capacitor/ShenaiSdkCapacitorPlugin.java +2 -0
- package/dist/docs.json +7 -0
- package/dist/esm/definitions.d.ts +1 -0
- package/ios/Sources/ShenaiSdkCapacitorPlugin/ShenaiSdkCapacitorPlugin.swift +3 -0
- package/package.json +2 -2
|
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
|
|
|
12
12
|
s.source = { :path => '.' }
|
|
13
13
|
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
14
14
|
s.ios.deployment_target = '14.0'
|
|
15
|
-
s.dependency 'ShenaiSDK', '3.1.
|
|
15
|
+
s.dependency 'ShenaiSDK', '3.1.2'
|
|
16
16
|
s.dependency 'Capacitor'
|
|
17
17
|
s.swift_version = '5.1'
|
|
18
18
|
end
|
package/README.md
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# @shenai/capacitor-sdk
|
|
2
|
+
|
|
3
|
+
Capacitor plugin for the Shen.AI SDK.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @shenai/capacitor-sdk
|
|
9
|
+
npx cap sync
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
The plugin resolves the native Shen.AI SDK through Maven Central on Android and CocoaPods on iOS.
|
|
13
|
+
|
|
14
|
+
## Documentation
|
|
15
|
+
|
|
16
|
+
Integration guidance and platform-specific setup details live in the Shen.AI developer portal:
|
|
17
|
+
|
|
18
|
+
https://developer.shen.ai/platforms/capacitor
|
package/android/build.gradle
CHANGED
|
@@ -49,7 +49,7 @@ repositories {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
dependencies {
|
|
52
|
-
implementation "ai.shen:shenai-sdk:3.1.
|
|
52
|
+
implementation "ai.shen:shenai-sdk:3.1.2"
|
|
53
53
|
implementation project(':capacitor-android')
|
|
54
54
|
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
55
55
|
implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
|
package/android/src/main/java/ai/mxlabs/shenai_sdk/plugins/capacitor/ShenaiSdkCapacitorPlugin.java
CHANGED
|
@@ -1187,6 +1187,8 @@ public void getFullPpgSignal(PluginCall call) {
|
|
|
1187
1187
|
settings.onboardingMode = ShenAIAndroidSDK.OnboardingMode.values()[obj.getInt("onboardingMode")];
|
|
1188
1188
|
if (obj.has("initializationMode"))
|
|
1189
1189
|
settings.initializationMode = ShenAIAndroidSDK.InitializationMode.values()[obj.getInt("initializationMode")];
|
|
1190
|
+
if (obj.has("localMemoryEnabled"))
|
|
1191
|
+
settings.localMemoryEnabled = obj.getBoolean("localMemoryEnabled");
|
|
1190
1192
|
|
|
1191
1193
|
if (obj.has("showUserInterface"))
|
|
1192
1194
|
settings.showUserInterface = obj.getBoolean("showUserInterface");
|
package/dist/docs.json
CHANGED
|
@@ -1192,6 +1192,13 @@
|
|
|
1192
1192
|
"complexTypes": [],
|
|
1193
1193
|
"type": "boolean | undefined"
|
|
1194
1194
|
},
|
|
1195
|
+
{
|
|
1196
|
+
"name": "localMemoryEnabled",
|
|
1197
|
+
"tags": [],
|
|
1198
|
+
"docs": "",
|
|
1199
|
+
"complexTypes": [],
|
|
1200
|
+
"type": "boolean | undefined"
|
|
1201
|
+
},
|
|
1195
1202
|
{
|
|
1196
1203
|
"name": "showUserInterface",
|
|
1197
1204
|
"tags": [],
|
|
@@ -141,6 +141,7 @@ export interface InitializationSettings {
|
|
|
141
141
|
onboardingMode?: OnboardingMode;
|
|
142
142
|
initializationMode?: InitializationMode;
|
|
143
143
|
offlineProcessing?: boolean;
|
|
144
|
+
localMemoryEnabled?: boolean;
|
|
144
145
|
showUserInterface?: boolean;
|
|
145
146
|
showFacePositioningOverlay?: boolean;
|
|
146
147
|
showVisualWarnings?: boolean;
|
|
@@ -222,6 +222,9 @@ public class ShenaiSdkCapacitorPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
222
222
|
if let v = bool("offlineProcessing") {
|
|
223
223
|
settings.offlineProcessing = v
|
|
224
224
|
}
|
|
225
|
+
if let v = bool("localMemoryEnabled") {
|
|
226
|
+
settings.localMemoryEnabled = v
|
|
227
|
+
}
|
|
225
228
|
|
|
226
229
|
if let v = bool("showUserInterface") { settings.showUserInterface = v }
|
|
227
230
|
if let v = bool("showFacePositioningOverlay") { settings.showFacePositioningOverlay = v }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shenai/capacitor-sdk",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "Shen.AI SDK for Capacitor.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "https://github.com/mxlaboratories/
|
|
21
|
+
"url": "https://github.com/mxlaboratories/mxlib"
|
|
22
22
|
},
|
|
23
23
|
"bugs": {
|
|
24
24
|
"url": "https://github.com/mxlaboratories/shenai-sdk/issues"
|