@shenai/capacitor-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.
@@ -7,12 +7,12 @@ Pod::Spec.new do |s|
7
7
  s.version = package['version']
8
8
  s.summary = package['description']
9
9
  s.license = { :file => 'LICENSE.md' }
10
- s.homepage = package['repository']['url']
10
+ s.homepage = package['homepage']
11
11
  s.author = package['author']
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.1'
15
+ s.dependency 'ShenaiSDK', '3.1.3'
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
@@ -49,7 +49,7 @@ repositories {
49
49
  }
50
50
 
51
51
  dependencies {
52
- implementation "ai.shen:shenai-sdk:3.1.1"
52
+ implementation "ai.shen:shenai-sdk:3.1.3"
53
53
  implementation project(':capacitor-android')
54
54
  implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
55
55
  implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
@@ -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.1",
3
+ "version": "3.1.3",
4
4
  "description": "Shen.AI SDK for Capacitor.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -20,6 +20,7 @@
20
20
  "type": "git",
21
21
  "url": "https://github.com/mxlaboratories/shenai-sdk"
22
22
  },
23
+ "homepage": "https://developer.shen.ai",
23
24
  "bugs": {
24
25
  "url": "https://github.com/mxlaboratories/shenai-sdk/issues"
25
26
  },