@glassly/bluetooth-sdk 0.3.1-dev.497 → 0.3.1-dev.509
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/GeneratedReleaseMetadata.kt +3 -3
- package/android/src/main/java/com/glassly/bluetoothsdk/sgcs/G2.kt +14 -1
- 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/GeneratedReleaseMetadata.swift +3 -3
- package/ios/Source/sgcs/G2.swift +14 -2
- package/package.json +1 -1
- package/src/generated/releaseMetadata.ts +3 -3
|
@@ -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.1"
|
|
6
|
-
const val RELEASE_IDENTITY: String = "0.3.1-dev.
|
|
7
|
-
const val RELEASE_SET_ID: String = "glassly-0.3.1-dev.
|
|
8
|
-
const val SOURCE_COMMIT: String = "
|
|
6
|
+
const val RELEASE_IDENTITY: String = "0.3.1-dev.509"
|
|
7
|
+
const val RELEASE_SET_ID: String = "glassly-0.3.1-dev.509"
|
|
8
|
+
const val SOURCE_COMMIT: String = "d5a96789c4e1a089a7d3b5d9185cb71c21af27ec"
|
|
9
9
|
const val OTA_MANIFEST_URL: String = ""
|
|
10
10
|
const val OTA_MANIFEST_SHA256: String = ""
|
|
11
11
|
}
|
|
@@ -308,7 +308,10 @@ private enum class OsEventType(val value: Int) {
|
|
|
308
308
|
TAP_START(9), // press recognized (hold start)
|
|
309
309
|
TAP_END(10), // released
|
|
310
310
|
TAP_THEN_HOLD(11), // CFW extension: 2.2.9 tap-then-hold (stock Menu gesture)
|
|
311
|
-
//
|
|
311
|
+
// CFW extension: IMU head-tilt, forwarded while an EvenHub page is on
|
|
312
|
+
// screen. There is no head-down counterpart.
|
|
313
|
+
HEAD_UP(12),
|
|
314
|
+
// 13 is burned (experimental temple edge). 14 is
|
|
312
315
|
// the Glassly CFW's ring touch-down (R1 subtype 0x0d, GLASSLYCFW/37 on 2.3.0.24);
|
|
313
316
|
// only the ring produces it and the id itself marks ring provenance. Unknown
|
|
314
317
|
// ring wire types arrive as 127 and are dropped.
|
|
@@ -6761,6 +6764,15 @@ class G2 : SGCManager() {
|
|
|
6761
6764
|
}
|
|
6762
6765
|
}
|
|
6763
6766
|
|
|
6767
|
+
if (eventType == OsEventType.HEAD_UP) {
|
|
6768
|
+
Bridge.log("G2: HEAD_UP")
|
|
6769
|
+
// The firmware never reports the head coming back down, so
|
|
6770
|
+
// rearm the store or the next head-up would be an unchanged value.
|
|
6771
|
+
DeviceStore.store.set("glasses", "headUp", false)
|
|
6772
|
+
DeviceStore.apply("glasses", "headUp", true)
|
|
6773
|
+
return@let
|
|
6774
|
+
}
|
|
6775
|
+
|
|
6764
6776
|
val gestureName = mapEventTypeToGesture(eventType)
|
|
6765
6777
|
if (gestureName == null) {
|
|
6766
6778
|
Bridge.log("G2: no gesture mapping for $eventType $sysFields")
|
|
@@ -6831,6 +6843,7 @@ class G2 : SGCManager() {
|
|
|
6831
6843
|
OsEventType.TAP_THEN_HOLD -> "tap_then_hold"
|
|
6832
6844
|
OsEventType.RING_TOUCH_DOWN -> "touch_down"
|
|
6833
6845
|
OsEventType.IMU_DATA_REPORT -> null
|
|
6846
|
+
OsEventType.HEAD_UP -> null // head position, not a gesture
|
|
6834
6847
|
OsEventType.ABNORMAL_EXIT -> null // don't report abnormal exits as gestures
|
|
6835
6848
|
}
|
|
6836
6849
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export const BLUETOOTH_SDK_RELEASE_METADATA = Object.freeze({
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"familyBaseVersion": "0.3.1",
|
|
4
|
-
"releaseIdentity": "0.3.1-dev.
|
|
5
|
-
"releaseSetId": "glassly-0.3.1-dev.
|
|
6
|
-
"sourceCommit": "
|
|
4
|
+
"releaseIdentity": "0.3.1-dev.509",
|
|
5
|
+
"releaseSetId": "glassly-0.3.1-dev.509",
|
|
6
|
+
"sourceCommit": "d5a96789c4e1a089a7d3b5d9185cb71c21af27ec",
|
|
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,eAAe;IAClC,cAAc,EAAE,uBAAuB;IACvC,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.1\",\n \"releaseIdentity\": \"0.3.1-dev.
|
|
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,eAAe;IAClC,cAAc,EAAE,uBAAuB;IACvC,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.1\",\n \"releaseIdentity\": \"0.3.1-dev.509\",\n \"releaseSetId\": \"glassly-0.3.1-dev.509\",\n \"sourceCommit\": \"d5a96789c4e1a089a7d3b5d9185cb71c21af27ec\",\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.1-dev.
|
|
14
|
+
private static let swiftPackageSdkVersion = "0.3.1-dev.509"
|
|
15
15
|
private static let swiftPackageSdkVersionPlaceholder = "__GLASSLY" + "_BLUETOOTH_SDK_VERSION__"
|
|
16
16
|
|
|
17
17
|
private static func normalizedSdkVersion(_ value: String?) -> String? {
|
|
@@ -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.1"
|
|
6
|
-
static let releaseIdentity = "0.3.1-dev.
|
|
7
|
-
static let releaseSetId = "glassly-0.3.1-dev.
|
|
8
|
-
static let sourceCommit = "
|
|
6
|
+
static let releaseIdentity = "0.3.1-dev.509"
|
|
7
|
+
static let releaseSetId = "glassly-0.3.1-dev.509"
|
|
8
|
+
static let sourceCommit = "d5a96789c4e1a089a7d3b5d9185cb71c21af27ec"
|
|
9
9
|
static let otaManifestUrl = ""
|
|
10
10
|
static let otaManifestSha256 = ""
|
|
11
11
|
}
|
package/ios/Source/sgcs/G2.swift
CHANGED
|
@@ -132,8 +132,10 @@ private enum OsEventType: Int32 {
|
|
|
132
132
|
case tapStart = 9 // press recognized (hold start)
|
|
133
133
|
case tapEnd = 10 // released
|
|
134
134
|
case tapThenHold = 11 // CFW extension: 2.2.9 tap-then-hold (stock Menu gesture)
|
|
135
|
-
//
|
|
136
|
-
//
|
|
135
|
+
// CFW extension: IMU head-tilt, forwarded while an EvenHub page is on
|
|
136
|
+
// screen. There is no head-down counterpart.
|
|
137
|
+
case headUp = 12
|
|
138
|
+
// 13 was an experimental temple edge and is burned. 14 is the Glassly CFW's ring
|
|
137
139
|
// touch-down (R1 subtype 0x0d, GLASSLYCFW/37 on 2.3.0.24). Only the ring
|
|
138
140
|
// produces it and the stock sender leaves source 0, so the id itself is the
|
|
139
141
|
// ring marker. Unknown ring wire types arrive as 127 and are dropped.
|
|
@@ -7076,6 +7078,15 @@ final class G2: NSObject, SGCManager {
|
|
|
7076
7078
|
}
|
|
7077
7079
|
}
|
|
7078
7080
|
|
|
7081
|
+
if eventType == .headUp {
|
|
7082
|
+
Bridge.log("G2: HEAD_UP")
|
|
7083
|
+
// The firmware never reports the head coming back down, so
|
|
7084
|
+
// rearm the store or the next head-up would be an unchanged value.
|
|
7085
|
+
DeviceStore.shared.store.set("glasses", "headUp", false)
|
|
7086
|
+
DeviceStore.shared.apply("glasses", "headUp", true)
|
|
7087
|
+
return
|
|
7088
|
+
}
|
|
7089
|
+
|
|
7079
7090
|
guard let gestureName = mapEventTypeToGesture(eventType) else {
|
|
7080
7091
|
Bridge.log("G2: no gesture mapping for \(eventType) \(sysFields)")
|
|
7081
7092
|
return
|
|
@@ -7162,6 +7173,7 @@ final class G2: NSObject, SGCManager {
|
|
|
7162
7173
|
case .tapThenHold: return "tap_then_hold"
|
|
7163
7174
|
case .ringTouchDown: return "touch_down"
|
|
7164
7175
|
case .imuDataReport: return nil
|
|
7176
|
+
case .headUp: return nil // head position, not a gesture
|
|
7165
7177
|
case .abnormalExit: return nil // don't report abnormal exits as gestures
|
|
7166
7178
|
}
|
|
7167
7179
|
}
|
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.1",
|
|
15
|
-
"releaseIdentity": "0.3.1-dev.
|
|
16
|
-
"releaseSetId": "glassly-0.3.1-dev.
|
|
17
|
-
"sourceCommit": "
|
|
15
|
+
"releaseIdentity": "0.3.1-dev.509",
|
|
16
|
+
"releaseSetId": "glassly-0.3.1-dev.509",
|
|
17
|
+
"sourceCommit": "d5a96789c4e1a089a7d3b5d9185cb71c21af27ec",
|
|
18
18
|
"otaManifestUrl": null,
|
|
19
19
|
"otaManifestSha256": null
|
|
20
20
|
})
|