@glassly/bluetooth-sdk 0.3.0-dev.491 → 0.3.1-beta.522
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/android/src/main/java/com/glassly/bluetoothsdk/GeneratedChangelogCatalog.kt +1 -0
- package/android/src/main/java/com/glassly/bluetoothsdk/GeneratedReleaseMetadata.kt +4 -4
- package/android/src/main/java/com/glassly/bluetoothsdk/sgcs/G1.kt +0 -3
- package/android/src/main/java/com/glassly/bluetoothsdk/sgcs/G1TextSanitizer.kt +9 -13
- package/android/src/main/java/com/glassly/bluetoothsdk/sgcs/G2.kt +14 -1
- package/android/src/test/java/com/glassly/bluetoothsdk/sgcs/G1TextSanitizerTest.kt +15 -9
- package/build/BluetoothSdk.types.d.ts +10 -0
- package/build/BluetoothSdk.types.d.ts.map +1 -1
- package/build/BluetoothSdk.types.js.map +1 -1
- package/build/_private/BluetoothSdkModule.d.ts +5 -1
- package/build/_private/BluetoothSdkModule.d.ts.map +1 -1
- package/build/_private/BluetoothSdkModule.js.map +1 -1
- package/build/generated/changelogCatalog.d.ts +3 -0
- package/build/generated/changelogCatalog.d.ts.map +1 -1
- package/build/generated/changelogCatalog.js +4 -0
- package/build/generated/changelogCatalog.js.map +1 -1
- package/build/generated/releaseMetadata.js +4 -4
- package/build/generated/releaseMetadata.js.map +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +4 -0
- package/build/index.js.map +1 -1
- package/ios/BluetoothSdkModule.swift +18 -0
- package/ios/GlasslyBluetoothSDK.podspec +2 -0
- package/ios/Source/BluetoothSdkDefaults.swift +1 -1
- package/ios/Source/GeneratedChangelogCatalog.swift +1 -0
- package/ios/Source/GeneratedReleaseMetadata.swift +4 -4
- package/ios/Source/sgcs/G2.swift +14 -2
- package/ios/Source/translation/OfflineTranslator.swift +224 -0
- package/ios/Source/utils/G1Text.swift +13 -15
- package/package.json +1 -1
- package/src/BluetoothSdk.types.ts +10 -0
- package/src/_private/BluetoothSdkModule.ts +8 -0
- package/src/generated/changelogCatalog.ts +4 -0
- package/src/generated/releaseMetadata.ts +4 -4
- 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.
|
|
15
|
-
"releaseIdentity": "0.3.
|
|
16
|
-
"releaseSetId": "glassly-0.3.
|
|
17
|
-
"sourceCommit": "
|
|
14
|
+
"familyBaseVersion": "0.3.1",
|
|
15
|
+
"releaseIdentity": "0.3.1-beta.522",
|
|
16
|
+
"releaseSetId": "glassly-0.3.1-beta.522",
|
|
17
|
+
"sourceCommit": "53237492e99af76925a2ccdd64244153078c11c8",
|
|
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"),
|