@onekeyfe/hd-transport-react-native 1.1.29-alpha.1 → 1.1.29-alpha.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.
package/dist/index.js CHANGED
@@ -495,9 +495,6 @@ class ReactNativeBleTransport {
495
495
  });
496
496
  getConnectedDeviceIds(getBluetoothServiceUuids()).then(devices => {
497
497
  for (const device of devices) {
498
- if (!hdShared.isOnekeyDevice(getBleIdentityName(device), device === null || device === void 0 ? void 0 : device.id)) {
499
- continue;
500
- }
501
498
  Log === null || Log === void 0 ? void 0 : Log.debug('search connected peripheral: ', device.id);
502
499
  addDevice(device);
503
500
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/hd-transport-react-native",
3
- "version": "1.1.29-alpha.1",
3
+ "version": "1.1.29-alpha.3",
4
4
  "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -19,11 +19,11 @@
19
19
  "lint:fix": "eslint . --fix"
20
20
  },
21
21
  "dependencies": {
22
- "@onekeyfe/hd-core": "1.1.29-alpha.1",
23
- "@onekeyfe/hd-shared": "1.1.29-alpha.1",
24
- "@onekeyfe/hd-transport": "1.1.29-alpha.1",
25
- "@onekeyfe/react-native-ble-utils": "^0.1.4",
22
+ "@onekeyfe/hd-core": "1.1.29-alpha.3",
23
+ "@onekeyfe/hd-shared": "1.1.29-alpha.3",
24
+ "@onekeyfe/hd-transport": "1.1.29-alpha.3",
25
+ "@onekeyfe/react-native-ble-utils": "^0.1.5",
26
26
  "react-native-ble-plx": "3.5.1"
27
27
  },
28
- "gitHead": "db793e686fecbecbfa72aab8fd35c70159a72e35"
28
+ "gitHead": "8bfaafd955401948065a944a4e3b92f7a72c6571"
29
29
  }
package/src/index.ts CHANGED
@@ -406,9 +406,9 @@ export default class ReactNativeBleTransport {
406
406
 
407
407
  getConnectedDeviceIds(getBluetoothServiceUuids()).then(devices => {
408
408
  for (const device of devices) {
409
- if (!isOnekeyDevice(getBleIdentityName(device), device?.id)) {
410
- continue;
411
- }
409
+ // Already filtered by the OneKey service UUID via getConnectedDeviceIds;
410
+ // no extra name-based filter (it would drop real OneKey devices that
411
+ // report a null name on iOS).
412
412
  Log?.debug('search connected peripheral: ', device.id);
413
413
  addDevice(device as unknown as Device);
414
414
  }