@glassly/bluetooth-sdk 0.3.0-dev.491 → 0.3.1-beta.514

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.
Files changed (35) hide show
  1. package/android/src/main/java/com/glassly/bluetoothsdk/GeneratedChangelogCatalog.kt +1 -0
  2. package/android/src/main/java/com/glassly/bluetoothsdk/GeneratedReleaseMetadata.kt +4 -4
  3. package/android/src/main/java/com/glassly/bluetoothsdk/sgcs/G1.kt +0 -3
  4. package/android/src/main/java/com/glassly/bluetoothsdk/sgcs/G1TextSanitizer.kt +9 -13
  5. package/android/src/main/java/com/glassly/bluetoothsdk/sgcs/G2.kt +14 -1
  6. package/android/src/test/java/com/glassly/bluetoothsdk/sgcs/G1TextSanitizerTest.kt +15 -9
  7. package/build/BluetoothSdk.types.d.ts +10 -0
  8. package/build/BluetoothSdk.types.d.ts.map +1 -1
  9. package/build/BluetoothSdk.types.js.map +1 -1
  10. package/build/_private/BluetoothSdkModule.d.ts +5 -1
  11. package/build/_private/BluetoothSdkModule.d.ts.map +1 -1
  12. package/build/_private/BluetoothSdkModule.js.map +1 -1
  13. package/build/generated/changelogCatalog.d.ts +3 -0
  14. package/build/generated/changelogCatalog.d.ts.map +1 -1
  15. package/build/generated/changelogCatalog.js +4 -0
  16. package/build/generated/changelogCatalog.js.map +1 -1
  17. package/build/generated/releaseMetadata.js +4 -4
  18. package/build/generated/releaseMetadata.js.map +1 -1
  19. package/build/index.d.ts.map +1 -1
  20. package/build/index.js +4 -0
  21. package/build/index.js.map +1 -1
  22. package/ios/BluetoothSdkModule.swift +18 -0
  23. package/ios/GlasslyBluetoothSDK.podspec +2 -0
  24. package/ios/Source/BluetoothSdkDefaults.swift +1 -1
  25. package/ios/Source/GeneratedChangelogCatalog.swift +1 -0
  26. package/ios/Source/GeneratedReleaseMetadata.swift +4 -4
  27. package/ios/Source/sgcs/G2.swift +14 -2
  28. package/ios/Source/translation/OfflineTranslator.swift +224 -0
  29. package/ios/Source/utils/G1Text.swift +13 -15
  30. package/package.json +1 -1
  31. package/src/BluetoothSdk.types.ts +10 -0
  32. package/src/_private/BluetoothSdkModule.ts +8 -0
  33. package/src/generated/changelogCatalog.ts +4 -0
  34. package/src/generated/releaseMetadata.ts +4 -4
  35. package/src/index.ts +4 -0
@@ -2,6 +2,8 @@ import {NativeModule, requireNativeModule} from "expo"
2
2
 
3
3
  import {CAMERA_FOV_DEFAULT, CAMERA_FOV_MAX, CAMERA_FOV_MIN} from "../BluetoothSdk.types"
4
4
  import type {
5
+ OfflineTranslationLanguage,
6
+ OfflineTranslationStatus,
5
7
  BluetoothSettingsUpdate,
6
8
  BluetoothSdkModuleEvents,
7
9
  BluetoothStatus,
@@ -280,6 +282,12 @@ declare class BluetoothSdkNativeModule extends NativeModule<BluetoothSdkModuleEv
280
282
  validateSttModel(path: string): Promise<boolean>
281
283
  extractTarBz2(sourcePath: string, destinationPath: string): Promise<boolean>
282
284
 
285
+ // Offline translation (iOS 26+; rejects elsewhere)
286
+ getOfflineTranslationLanguages(source: string): Promise<OfflineTranslationLanguage[]>
287
+ getOfflineTranslationStatus(source: string, target: string): Promise<OfflineTranslationStatus>
288
+ downloadOfflineTranslation(source: string, target: string): Promise<OfflineTranslationStatus>
289
+ translateOffline(text: string, source: string, target: string): Promise<string>
290
+
283
291
  // Speaker Identification (on-device; see SpeakerIdEngine)
284
292
  setSpeakerIdEnabled(enabled: boolean): Promise<void>
285
293
  setSpeakerIdModelPath(path: string): Promise<void>
@@ -9,6 +9,10 @@ export const GENERATED_RELEASE_CHANGELOGS = Object.freeze(
9
9
  "version": "3.1.0",
10
10
  "markdown": "Software updates are more reliable, with clearer progress and recovery when the glasses restart.\n\n- Glassly, Glassly Engine, the Bluetooth SDK, and the glasses client now share one coordinated release version.\n- Mentra Live updates can continue across APK, system, and firmware restarts without asking the user to start the same update again.\n- Bluetooth photo capture and transfer diagnostics are more precise and less disruptive to normal glasses traffic."
11
11
  },
12
+ {
13
+ "version": "0.3.1",
14
+ "markdown": "This release is under active development. User-facing changes will be documented as they land."
15
+ },
12
16
  {
13
17
  "version": "0.3.0",
14
18
  "markdown": "This release is under active development. User-facing changes will be documented as they land."
@@ -11,10 +11,10 @@ export interface BluetoothSdkReleaseMetadata {
11
11
 
12
12
  export const BLUETOOTH_SDK_RELEASE_METADATA: Readonly<BluetoothSdkReleaseMetadata> = Object.freeze({
13
13
  "schemaVersion": 1,
14
- "familyBaseVersion": "0.3.0",
15
- "releaseIdentity": "0.3.0-dev.491",
16
- "releaseSetId": "glassly-0.3.0-dev.491",
17
- "sourceCommit": "812cb2a6d9edb30e137eea9ecc9727bec0e00df3",
14
+ "familyBaseVersion": "0.3.1",
15
+ "releaseIdentity": "0.3.1-beta.514",
16
+ "releaseSetId": "glassly-0.3.1-beta.514",
17
+ "sourceCommit": "3777078a83528c6db9812e0e95cac3fa8faa5284",
18
18
  "otaManifestUrl": null,
19
19
  "otaManifestSha256": null
20
20
  })
package/src/index.ts CHANGED
@@ -192,6 +192,10 @@ export const BluetoothSdk: BluetoothSdkPublicModule = Object.freeze({
192
192
  validateSttModel: bindPublicMethod("validateSttModel"),
193
193
  extractTarBz2: bindPublicMethod("extractTarBz2"),
194
194
  restartTranscriber: bindPublicMethod("restartTranscriber"),
195
+ getOfflineTranslationLanguages: bindPublicMethod("getOfflineTranslationLanguages"),
196
+ getOfflineTranslationStatus: bindPublicMethod("getOfflineTranslationStatus"),
197
+ downloadOfflineTranslation: bindPublicMethod("downloadOfflineTranslation"),
198
+ translateOffline: bindPublicMethod("translateOffline"),
195
199
  setTtsModelDetails: bindPublicMethod("setTtsModelDetails"),
196
200
  getTtsModelPath: bindPublicMethod("getTtsModelPath"),
197
201
  getTtsModelLanguage: bindPublicMethod("getTtsModelLanguage"),