@glassly/bluetooth-sdk 0.3.0-beta.468 → 0.3.0-beta.470
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/DeviceStore.kt +2 -0
- package/android/src/main/java/com/glassly/bluetoothsdk/GeneratedReleaseMetadata.kt +3 -3
- package/android/src/main/java/com/glassly/bluetoothsdk/sgcs/G2.kt +9 -2
- package/build/generated/releaseMetadata.js +3 -3
- package/build/generated/releaseMetadata.js.map +1 -1
- package/ios/Source/BluetoothSdkDefaults.swift +1 -1
- package/ios/Source/DeviceStore.swift +2 -0
- package/ios/Source/GeneratedReleaseMetadata.swift +3 -3
- package/ios/Source/sgcs/G2.swift +10 -4
- package/package.json +1 -1
- package/src/generated/releaseMetadata.ts +3 -3
|
@@ -146,6 +146,8 @@ object DeviceStore {
|
|
|
146
146
|
store.set("bluetooth", "display_max_fps", DisplayPacer.DEFAULT_FPS)
|
|
147
147
|
// Debug: G2 CFW fast BLE link profile (off = stock connection behaviour).
|
|
148
148
|
store.set("bluetooth", "cfw_fast_ble", false)
|
|
149
|
+
// Debug: G2PERF display performance lines in the log (off = counted, not logged).
|
|
150
|
+
store.set("bluetooth", "g2_perf_logs", false)
|
|
149
151
|
store.set("bluetooth", "button_photo_size", "max")
|
|
150
152
|
store.set("bluetooth", "button_max_recording_time", 10)
|
|
151
153
|
store.set("bluetooth", "camera_fov", mapOf("fov" to 118, "roi_position" to 0))
|
|
@@ -3,9 +3,9 @@ package com.glassly.bluetoothsdk
|
|
|
3
3
|
/** Generated by release CI. Do not edit in a release checkout. */
|
|
4
4
|
internal object GeneratedReleaseMetadata {
|
|
5
5
|
const val FAMILY_BASE_VERSION: String = "0.3.0"
|
|
6
|
-
const val RELEASE_IDENTITY: String = "0.3.0-beta.
|
|
7
|
-
const val RELEASE_SET_ID: String = "glassly-0.3.0-beta.
|
|
8
|
-
const val SOURCE_COMMIT: String = "
|
|
6
|
+
const val RELEASE_IDENTITY: String = "0.3.0-beta.470"
|
|
7
|
+
const val RELEASE_SET_ID: String = "glassly-0.3.0-beta.470"
|
|
8
|
+
const val SOURCE_COMMIT: String = "5abdf2c55c0f8f25cf402afca85f7677c753443f"
|
|
9
9
|
const val OTA_MANIFEST_URL: String = ""
|
|
10
10
|
const val OTA_MANIFEST_SHA256: String = ""
|
|
11
11
|
}
|
|
@@ -2388,11 +2388,11 @@ class G2 : SGCManager() {
|
|
|
2388
2388
|
val wallTime = System.currentTimeMillis()
|
|
2389
2389
|
displayDiagnostics.session(now, wallTime, mapOf(
|
|
2390
2390
|
"platform" to "android", "cfw" to (cfwCapabilityString ?: "stock"),
|
|
2391
|
-
))?.let { Bridge.log("G2PERF " + JSONObject(it).toString()) }
|
|
2391
|
+
))?.let { if (perfLogsWanted) Bridge.log("G2PERF " + JSONObject(it).toString()) }
|
|
2392
2392
|
displayDiagnostics.sample(now, wallTime, mapOf(
|
|
2393
2393
|
"app" to (cfwLastFrame?.appId ?: ""), "seq" to (cfwLastFrame?.seq ?: 0),
|
|
2394
2394
|
"payloadQueue" to cfwPendingPayloads.size, "page" to pageCreated,
|
|
2395
|
-
), busy = cfwPendingPayloads.isNotEmpty())?.let { Bridge.log("G2PERF " + JSONObject(it).toString()) }
|
|
2395
|
+
), busy = cfwPendingPayloads.isNotEmpty())?.let { if (perfLogsWanted) Bridge.log("G2PERF " + JSONObject(it).toString()) }
|
|
2396
2396
|
signal.trySend(Unit)
|
|
2397
2397
|
}
|
|
2398
2398
|
}
|
|
@@ -7034,6 +7034,13 @@ class G2 : SGCManager() {
|
|
|
7034
7034
|
private val fastBleWanted: Boolean
|
|
7035
7035
|
get() = DeviceStore.get("bluetooth", "cfw_fast_ble") as? Boolean ?: false
|
|
7036
7036
|
|
|
7037
|
+
/**
|
|
7038
|
+
* The debug setting for G2PERF lines. The diagnostics keep counting and rolling their windows
|
|
7039
|
+
* either way, so a line logged right after it turns on covers one window, not the time it was off.
|
|
7040
|
+
*/
|
|
7041
|
+
private val perfLogsWanted: Boolean
|
|
7042
|
+
get() = DeviceStore.get("bluetooth", "g2_perf_logs") as? Boolean ?: false
|
|
7043
|
+
|
|
7037
7044
|
/** Last field-128 status seen, so only changes are logged. */
|
|
7038
7045
|
@Volatile private var lastBleLinkStatus: G2BleLink.Status? = null
|
|
7039
7046
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export const BLUETOOTH_SDK_RELEASE_METADATA = Object.freeze({
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"familyBaseVersion": "0.3.0",
|
|
4
|
-
"releaseIdentity": "0.3.0-beta.
|
|
5
|
-
"releaseSetId": "glassly-0.3.0-beta.
|
|
6
|
-
"sourceCommit": "
|
|
4
|
+
"releaseIdentity": "0.3.0-beta.470",
|
|
5
|
+
"releaseSetId": "glassly-0.3.0-beta.470",
|
|
6
|
+
"sourceCommit": "5abdf2c55c0f8f25cf402afca85f7677c753443f",
|
|
7
7
|
"otaManifestUrl": null,
|
|
8
8
|
"otaManifestSha256": null
|
|
9
9
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"releaseMetadata.js","sourceRoot":"","sources":["../../src/generated/releaseMetadata.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,8BAA8B,GAA0C,MAAM,CAAC,MAAM,CAAC;IACjG,eAAe,EAAE,CAAC;IAClB,mBAAmB,EAAE,OAAO;IAC5B,iBAAiB,EAAE,gBAAgB;IACnC,cAAc,EAAE,wBAAwB;IACxC,cAAc,EAAE,0CAA0C;IAC1D,gBAAgB,EAAE,IAAI;IACtB,mBAAmB,EAAE,IAAI;CAC1B,CAAC,CAAA","sourcesContent":["/** Generated by release CI. Do not edit in a release checkout. */\nexport interface BluetoothSdkReleaseMetadata {\n schemaVersion: 1\n familyBaseVersion: string | null\n releaseIdentity: string | null\n releaseSetId: string | null\n sourceCommit: string | null\n otaManifestUrl: string | null\n otaManifestSha256: string | null\n}\n\nexport const BLUETOOTH_SDK_RELEASE_METADATA: Readonly<BluetoothSdkReleaseMetadata> = Object.freeze({\n \"schemaVersion\": 1,\n \"familyBaseVersion\": \"0.3.0\",\n \"releaseIdentity\": \"0.3.0-beta.
|
|
1
|
+
{"version":3,"file":"releaseMetadata.js","sourceRoot":"","sources":["../../src/generated/releaseMetadata.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,8BAA8B,GAA0C,MAAM,CAAC,MAAM,CAAC;IACjG,eAAe,EAAE,CAAC;IAClB,mBAAmB,EAAE,OAAO;IAC5B,iBAAiB,EAAE,gBAAgB;IACnC,cAAc,EAAE,wBAAwB;IACxC,cAAc,EAAE,0CAA0C;IAC1D,gBAAgB,EAAE,IAAI;IACtB,mBAAmB,EAAE,IAAI;CAC1B,CAAC,CAAA","sourcesContent":["/** Generated by release CI. Do not edit in a release checkout. */\nexport interface BluetoothSdkReleaseMetadata {\n schemaVersion: 1\n familyBaseVersion: string | null\n releaseIdentity: string | null\n releaseSetId: string | null\n sourceCommit: string | null\n otaManifestUrl: string | null\n otaManifestSha256: string | null\n}\n\nexport const BLUETOOTH_SDK_RELEASE_METADATA: Readonly<BluetoothSdkReleaseMetadata> = Object.freeze({\n \"schemaVersion\": 1,\n \"familyBaseVersion\": \"0.3.0\",\n \"releaseIdentity\": \"0.3.0-beta.470\",\n \"releaseSetId\": \"glassly-0.3.0-beta.470\",\n \"sourceCommit\": \"5abdf2c55c0f8f25cf402afca85f7677c753443f\",\n \"otaManifestUrl\": null,\n \"otaManifestSha256\": null\n})\n"]}
|
|
@@ -11,7 +11,7 @@ enum BluetoothSdkDefaults {
|
|
|
11
11
|
static let voiceActivityDetectionEnabled = false
|
|
12
12
|
static let loudnessGateEnabled = true
|
|
13
13
|
private static let infoSdkVersionKey = "BluetoothSdkVersion"
|
|
14
|
-
private static let swiftPackageSdkVersion = "0.3.0-beta.
|
|
14
|
+
private static let swiftPackageSdkVersion = "0.3.0-beta.470"
|
|
15
15
|
private static let swiftPackageSdkVersionPlaceholder = "__GLASSLY" + "_BLUETOOTH_SDK_VERSION__"
|
|
16
16
|
|
|
17
17
|
private static func normalizedSdkVersion(_ value: String?) -> String? {
|
|
@@ -127,6 +127,8 @@ class DeviceStore {
|
|
|
127
127
|
store.set("bluetooth", "cfw_scene_renderer", true)
|
|
128
128
|
// Debug: G2 CFW fast BLE link profile (off = stock connection behaviour).
|
|
129
129
|
store.set("bluetooth", "cfw_fast_ble", false)
|
|
130
|
+
// Debug: G2PERF display performance lines in the log (off = counted, not logged).
|
|
131
|
+
store.set("bluetooth", "g2_perf_logs", false)
|
|
130
132
|
store.set("bluetooth", "display_max_fps", DisplayPacer.defaultFps)
|
|
131
133
|
}
|
|
132
134
|
|
|
@@ -3,9 +3,9 @@ import Foundation
|
|
|
3
3
|
/// Generated by release CI. Do not edit in a release checkout.
|
|
4
4
|
enum GeneratedReleaseMetadata {
|
|
5
5
|
static let familyBaseVersion = "0.3.0"
|
|
6
|
-
static let releaseIdentity = "0.3.0-beta.
|
|
7
|
-
static let releaseSetId = "glassly-0.3.0-beta.
|
|
8
|
-
static let sourceCommit = "
|
|
6
|
+
static let releaseIdentity = "0.3.0-beta.470"
|
|
7
|
+
static let releaseSetId = "glassly-0.3.0-beta.470"
|
|
8
|
+
static let sourceCommit = "5abdf2c55c0f8f25cf402afca85f7677c753443f"
|
|
9
9
|
static let otaManifestUrl = ""
|
|
10
10
|
static let otaManifestSha256 = ""
|
|
11
11
|
}
|
package/ios/Source/sgcs/G2.swift
CHANGED
|
@@ -2768,7 +2768,7 @@ final class G2: NSObject, SGCManager {
|
|
|
2768
2768
|
"fpsLimit": DeviceStore.shared.get("bluetooth", "display_max_fps") as? Int ?? 8,
|
|
2769
2769
|
"mtuL": leftPeripheral?.maximumWriteValueLength(for: .withoutResponse) ?? 0,
|
|
2770
2770
|
"mtuR": rightPeripheral?.maximumWriteValueLength(for: .withoutResponse) ?? 0,
|
|
2771
|
-
]) {
|
|
2771
|
+
]), perfLogsWanted {
|
|
2772
2772
|
Bridge.log(line)
|
|
2773
2773
|
}
|
|
2774
2774
|
let busy = !leftWriteQueue.isEmpty || !rightWriteQueue.isEmpty || !cfwPendingPayloads.isEmpty || cfwPendingFrame != nil
|
|
@@ -2782,7 +2782,7 @@ final class G2: NSObject, SGCManager {
|
|
|
2782
2782
|
"payloadQueue": cfwPendingPayloads.count, "pendingFrame": cfwPendingFrame != nil,
|
|
2783
2783
|
"mic": evenHubMicIntent,
|
|
2784
2784
|
"background": UIApplication.shared.applicationState != .active,
|
|
2785
|
-
], busy: busy) {
|
|
2785
|
+
], busy: busy), perfLogsWanted {
|
|
2786
2786
|
Bridge.log(line)
|
|
2787
2787
|
}
|
|
2788
2788
|
}
|
|
@@ -3432,6 +3432,12 @@ final class G2: NSObject, SGCManager {
|
|
|
3432
3432
|
DeviceStore.shared.get("bluetooth", "cfw_fast_ble") as? Bool ?? false
|
|
3433
3433
|
}
|
|
3434
3434
|
|
|
3435
|
+
/// The debug setting for G2PERF lines. The diagnostics keep counting and rolling their windows
|
|
3436
|
+
/// either way, so a line logged right after it turns on covers one window, not the time it was off.
|
|
3437
|
+
private var perfLogsWanted: Bool {
|
|
3438
|
+
DeviceStore.shared.get("bluetooth", "g2_perf_logs") as? Bool ?? false
|
|
3439
|
+
}
|
|
3440
|
+
|
|
3435
3441
|
/// Last field-128 status seen, so only changes are logged.
|
|
3436
3442
|
private var lastBleLinkStatus: G2BleLink.Status?
|
|
3437
3443
|
|
|
@@ -4357,7 +4363,7 @@ final class G2: NSObject, SGCManager {
|
|
|
4357
4363
|
if let line = displayDiagnostics.stall(fields: [
|
|
4358
4364
|
"session": sessionId, "fragment": fragmentIndex, "fragments": fragmentCount,
|
|
4359
4365
|
"bytes": fragment.count, "result": reason, "attempt": attempt, "page": pageCreated,
|
|
4360
|
-
]) {
|
|
4366
|
+
]), perfLogsWanted {
|
|
4361
4367
|
Bridge.log(line)
|
|
4362
4368
|
}
|
|
4363
4369
|
}
|
|
@@ -4438,7 +4444,7 @@ final class G2: NSObject, SGCManager {
|
|
|
4438
4444
|
"totalMs": Int(totalMs), "result": reason,
|
|
4439
4445
|
"written": trace.lastWrite != nil, "qL": leftWriteQueue.count, "qR": rightWriteQueue.count,
|
|
4440
4446
|
"page": pageCreated,
|
|
4441
|
-
]) {
|
|
4447
|
+
]), perfLogsWanted {
|
|
4442
4448
|
Bridge.log(line)
|
|
4443
4449
|
}
|
|
4444
4450
|
return ok
|
package/package.json
CHANGED
|
@@ -12,9 +12,9 @@ export interface BluetoothSdkReleaseMetadata {
|
|
|
12
12
|
export const BLUETOOTH_SDK_RELEASE_METADATA: Readonly<BluetoothSdkReleaseMetadata> = Object.freeze({
|
|
13
13
|
"schemaVersion": 1,
|
|
14
14
|
"familyBaseVersion": "0.3.0",
|
|
15
|
-
"releaseIdentity": "0.3.0-beta.
|
|
16
|
-
"releaseSetId": "glassly-0.3.0-beta.
|
|
17
|
-
"sourceCommit": "
|
|
15
|
+
"releaseIdentity": "0.3.0-beta.470",
|
|
16
|
+
"releaseSetId": "glassly-0.3.0-beta.470",
|
|
17
|
+
"sourceCommit": "5abdf2c55c0f8f25cf402afca85f7677c753443f",
|
|
18
18
|
"otaManifestUrl": null,
|
|
19
19
|
"otaManifestSha256": null
|
|
20
20
|
})
|