@ledgerhq/device-transport-kit-react-native-ble 0.0.0-wip-20250214170223 → 0.0.0-wrong-error-when-in-experimental-provider-20251021162636

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 (90) hide show
  1. package/README.md +121 -0
  2. package/lib/cjs/api/index.js +1 -1
  3. package/lib/cjs/api/index.js.map +3 -3
  4. package/lib/cjs/api/model/Const.js +1 -1
  5. package/lib/cjs/api/model/Const.js.map +3 -3
  6. package/lib/cjs/api/model/Errors.js +1 -1
  7. package/lib/cjs/api/model/Errors.js.map +3 -3
  8. package/lib/cjs/api/permissions/AndroidPermissionsService.js +2 -0
  9. package/lib/cjs/api/permissions/AndroidPermissionsService.js.map +7 -0
  10. package/lib/cjs/api/permissions/AndroidPermissionsService.test.js +2 -0
  11. package/lib/cjs/api/permissions/AndroidPermissionsService.test.js.map +7 -0
  12. package/lib/cjs/api/permissions/DefaultPermissionsService.js +2 -0
  13. package/lib/cjs/api/permissions/DefaultPermissionsService.js.map +7 -0
  14. package/lib/cjs/api/permissions/IOSPermissionsService.test.js +2 -0
  15. package/lib/cjs/api/permissions/IOSPermissionsService.test.js.map +7 -0
  16. package/lib/cjs/api/permissions/PermissionsAndroidNarrowedType.js +2 -0
  17. package/lib/cjs/api/permissions/PermissionsAndroidNarrowedType.js.map +7 -0
  18. package/lib/cjs/api/permissions/PermissionsService.js +2 -0
  19. package/lib/cjs/api/permissions/PermissionsService.js.map +7 -0
  20. package/lib/cjs/api/transport/RNBleApduSender.js +1 -1
  21. package/lib/cjs/api/transport/RNBleApduSender.js.map +3 -3
  22. package/lib/cjs/api/transport/RNBleApduSender.test.js +2 -0
  23. package/lib/cjs/api/transport/RNBleApduSender.test.js.map +7 -0
  24. package/lib/cjs/api/transport/RNBleTransport.js +1 -1
  25. package/lib/cjs/api/transport/RNBleTransport.js.map +3 -3
  26. package/lib/cjs/api/transport/RNBleTransport.test.js +2 -0
  27. package/lib/cjs/api/transport/RNBleTransport.test.js.map +7 -0
  28. package/lib/cjs/api/transport/RNBleTransportFactory.js +2 -0
  29. package/lib/cjs/api/transport/RNBleTransportFactory.js.map +7 -0
  30. package/lib/cjs/index.js.map +1 -1
  31. package/lib/cjs/package.json +22 -20
  32. package/lib/esm/api/index.js +1 -1
  33. package/lib/esm/api/index.js.map +3 -3
  34. package/lib/esm/api/model/Const.js +1 -1
  35. package/lib/esm/api/model/Const.js.map +3 -3
  36. package/lib/esm/api/model/Errors.js +1 -1
  37. package/lib/esm/api/model/Errors.js.map +3 -3
  38. package/lib/esm/api/permissions/AndroidPermissionsService.js +2 -0
  39. package/lib/esm/api/permissions/AndroidPermissionsService.js.map +7 -0
  40. package/lib/esm/api/permissions/AndroidPermissionsService.test.js +2 -0
  41. package/lib/esm/api/permissions/AndroidPermissionsService.test.js.map +7 -0
  42. package/lib/esm/api/permissions/DefaultPermissionsService.js +2 -0
  43. package/lib/esm/api/permissions/DefaultPermissionsService.js.map +7 -0
  44. package/lib/esm/api/permissions/IOSPermissionsService.test.js +2 -0
  45. package/lib/esm/api/permissions/IOSPermissionsService.test.js.map +7 -0
  46. package/lib/esm/api/permissions/PermissionsAndroidNarrowedType.js +1 -0
  47. package/lib/esm/api/permissions/PermissionsAndroidNarrowedType.js.map +7 -0
  48. package/lib/esm/api/permissions/PermissionsService.js +1 -0
  49. package/lib/esm/api/permissions/PermissionsService.js.map +7 -0
  50. package/lib/esm/api/transport/RNBleApduSender.js +1 -1
  51. package/lib/esm/api/transport/RNBleApduSender.js.map +3 -3
  52. package/lib/esm/api/transport/RNBleApduSender.test.js +2 -0
  53. package/lib/esm/api/transport/RNBleApduSender.test.js.map +7 -0
  54. package/lib/esm/api/transport/RNBleTransport.js +1 -1
  55. package/lib/esm/api/transport/RNBleTransport.js.map +3 -3
  56. package/lib/esm/api/transport/RNBleTransport.test.js +2 -0
  57. package/lib/esm/api/transport/RNBleTransport.test.js.map +7 -0
  58. package/lib/esm/api/transport/RNBleTransportFactory.js +2 -0
  59. package/lib/esm/api/transport/RNBleTransportFactory.js.map +7 -0
  60. package/lib/esm/package.json +22 -20
  61. package/lib/types/api/index.d.ts +2 -1
  62. package/lib/types/api/index.d.ts.map +1 -1
  63. package/lib/types/api/model/Const.d.ts +3 -2
  64. package/lib/types/api/model/Const.d.ts.map +1 -1
  65. package/lib/types/api/model/Errors.d.ts +36 -1
  66. package/lib/types/api/model/Errors.d.ts.map +1 -1
  67. package/lib/types/api/permissions/AndroidPermissionsService.d.ts +12 -0
  68. package/lib/types/api/permissions/AndroidPermissionsService.d.ts.map +1 -0
  69. package/lib/types/api/permissions/AndroidPermissionsService.test.d.ts +2 -0
  70. package/lib/types/api/permissions/AndroidPermissionsService.test.d.ts.map +1 -0
  71. package/lib/types/api/permissions/DefaultPermissionsService.d.ts +6 -0
  72. package/lib/types/api/permissions/DefaultPermissionsService.d.ts.map +1 -0
  73. package/lib/types/api/permissions/IOSPermissionsService.test.d.ts +2 -0
  74. package/lib/types/api/permissions/IOSPermissionsService.test.d.ts.map +1 -0
  75. package/lib/types/api/permissions/PermissionsAndroidNarrowedType.d.ts +20 -0
  76. package/lib/types/api/permissions/PermissionsAndroidNarrowedType.d.ts.map +1 -0
  77. package/lib/types/api/permissions/PermissionsService.d.ts +5 -0
  78. package/lib/types/api/permissions/PermissionsService.d.ts.map +1 -0
  79. package/lib/types/api/transport/RNBleApduSender.d.ts +7 -9
  80. package/lib/types/api/transport/RNBleApduSender.d.ts.map +1 -1
  81. package/lib/types/api/transport/RNBleApduSender.test.d.ts +2 -0
  82. package/lib/types/api/transport/RNBleApduSender.test.d.ts.map +1 -0
  83. package/lib/types/api/transport/RNBleTransport.d.ts +49 -73
  84. package/lib/types/api/transport/RNBleTransport.d.ts.map +1 -1
  85. package/lib/types/api/transport/RNBleTransport.test.d.ts +2 -0
  86. package/lib/types/api/transport/RNBleTransport.test.d.ts.map +1 -0
  87. package/lib/types/api/transport/RNBleTransportFactory.d.ts +3 -0
  88. package/lib/types/api/transport/RNBleTransportFactory.d.ts.map +1 -0
  89. package/lib/types/tsconfig.prod.tsbuildinfo +1 -1
  90. package/package.json +24 -22
@@ -1,28 +1,33 @@
1
- import { type ApduReceiverServiceFactory, type ApduSenderServiceFactory, type ConnectError, type DeviceId, type DeviceModelDataSource, type DisconnectHandler, type DmkError, type LoggerPublisherService, type Transport, TransportConnectedDevice, type TransportDiscoveredDevice, type TransportFactory, type TransportIdentifier } from "@ledgerhq/device-management-kit";
2
- import { type Either } from "purify-ts";
3
- import { Observable } from "rxjs";
1
+ import { Platform } from "react-native";
2
+ import { type BleManager, State } from "react-native-ble-plx";
3
+ import { type ApduReceiverServiceFactory, type ApduSenderServiceFactory, type ConnectError, DeviceConnectionStateMachine, type DeviceConnectionStateMachineParams, type DeviceId, type DeviceModelDataSource, type DisconnectHandler, type DmkError, type LoggerPublisherService, type Transport, TransportConnectedDevice, type TransportDiscoveredDevice, type TransportIdentifier } from "@ledgerhq/device-management-kit";
4
+ import { Either } from "purify-ts";
5
+ import { type Observable } from "rxjs";
6
+ import { type PermissionsService } from "../permissions/PermissionsService";
7
+ import { RNBleApduSender, type RNBleApduSenderConstructorArgs, type RNBleApduSenderDependencies } from "../transport/RNBleApduSender";
4
8
  export declare const rnBleTransportIdentifier = "RN_BLE";
5
9
  export declare class RNBleTransport implements Transport {
6
10
  private readonly _deviceModelDataSource;
7
11
  private readonly _loggerServiceFactory;
8
12
  private readonly _apduSenderFactory;
9
13
  private readonly _apduReceiverFactory;
14
+ private readonly _manager;
15
+ private readonly _platform;
16
+ private readonly _permissionsService;
17
+ private readonly _scanThrottleDelayMs;
18
+ private readonly _deviceConnectionStateMachineFactory;
19
+ private readonly _deviceApduSenderFactory;
10
20
  private _logger;
11
- private _isSupported;
12
- private _internalDevicesById;
13
21
  private _deviceConnectionsById;
14
- private readonly _manager;
15
22
  private readonly identifier;
16
- constructor(_deviceModelDataSource: DeviceModelDataSource, _loggerServiceFactory: (tag: string) => LoggerPublisherService, _apduSenderFactory: ApduSenderServiceFactory, _apduReceiverFactory: ApduReceiverServiceFactory);
23
+ private _reconnectionSubscription;
24
+ private readonly _bleStateSubject;
25
+ constructor(_deviceModelDataSource: DeviceModelDataSource, _loggerServiceFactory: (tag: string) => LoggerPublisherService, _apduSenderFactory: ApduSenderServiceFactory, _apduReceiverFactory: ApduReceiverServiceFactory, _manager: BleManager, _platform: Platform, _permissionsService: PermissionsService, _scanThrottleDelayMs?: number, _deviceConnectionStateMachineFactory?: (args: DeviceConnectionStateMachineParams<RNBleApduSenderDependencies>) => DeviceConnectionStateMachine<RNBleApduSenderDependencies>, _deviceApduSenderFactory?: (args: RNBleApduSenderConstructorArgs, loggerFactory: (tag: string) => LoggerPublisherService) => RNBleApduSender);
26
+ /** Exposed for testing purposes */
27
+ observeBleState(): Observable<State>;
17
28
  /**
18
- * Starts the discovery process to find Bluetooth devices that match specific criteria.
19
- *
20
- * This method clears the internal device cache and requests necessary permissions
21
- * before initiating the discovery of both known and new devices. If the Bluetooth
22
- * Low Energy (BLE) feature is not supported, an error is thrown.
23
- *
24
- * @return {Observable<TransportDiscoveredDevice>} An observable emitting discovered devices
25
- * that match the specified Bluetooth services.
29
+ * Not implemented for now as the return signature is not really usable.
30
+ * Use listenToAvailableDevices instead.
26
31
  */
27
32
  startDiscovering(): Observable<TransportDiscoveredDevice>;
28
33
  /**
@@ -31,6 +36,29 @@ export declare class RNBleTransport implements Transport {
31
36
  * @return {Promise<void>} A promise that resolves once the device scanning has been successfully stopped.
32
37
  */
33
38
  stopDiscovering(): Promise<void>;
39
+ private _scannedDevicesSubject;
40
+ private _startedScanningSubscriber;
41
+ /**
42
+ * Returns an observable that emits a value when the prerequisites for scanning are met.
43
+ * The prerequisites are:
44
+ * - BLE should be supported. If not, it will throw an error.
45
+ * - Permissions should be granted. If not, it request them, if it fails, it will throw an error.
46
+ * - BLE state should be PoweredOn.
47
+ * - If BLE state is undetermined (Unknown or Resetting), it will wait for the state to be updated.
48
+ * - For other states, it will throw an error.
49
+ */
50
+ private _waitForScanningPrerequisites;
51
+ private _startScanning;
52
+ private _stopScanning;
53
+ /**
54
+ * Listens to known devices and emits updates when new devices are discovered or when properties of existing devices are updated.
55
+ *
56
+ * @return {Observable<TransportDiscoveredDevice[]>} An observable stream of discovered devices, containing device information as an array of TransportDiscoveredDevice objects.
57
+ */
58
+ listenToAvailableDevices(): Observable<TransportDiscoveredDevice[]>;
59
+ private _mapServicesUUIDsToBluetoothDeviceInfo;
60
+ private _mapServicesUUIDsToDeviceModel;
61
+ private _mapDeviceToTransportDiscoveredDevice;
34
62
  /**
35
63
  * Establishes a connection to a device and configures the necessary parameters for communication.
36
64
  *
@@ -52,13 +80,6 @@ export declare class RNBleTransport implements Transport {
52
80
  disconnect(params: {
53
81
  connectedDevice: TransportConnectedDevice;
54
82
  }): Promise<Either<DmkError, void>>;
55
- private _isDiscoveredDeviceLost;
56
- /**
57
- * Listens to known devices and emits updates when new devices are discovered or when properties of existing devices are updated.
58
- *
59
- * @return {Observable<TransportDiscoveredDevice[]>} An observable stream of discovered devices, containing device information as an array of TransportDiscoveredDevice objects.
60
- */
61
- listenToKnownDevices(): Observable<TransportDiscoveredDevice[]>;
62
83
  /**
63
84
  * Determines if the feature or permission is supported.
64
85
  *
@@ -77,55 +98,9 @@ export declare class RNBleTransport implements Transport {
77
98
  */
78
99
  getIdentifier(): TransportIdentifier;
79
100
  /**
80
- * Requests the necessary permissions based on the operating system.
81
- * For iOS, it automatically sets the permissions as granted.
82
- * For Android, it checks and requests location, Bluetooth scan, and Bluetooth connect permissions, depending on the API level.
83
- * If permissions are granted, updates the internal support state and logs the result.
84
- *
85
- * @return {Promise<boolean>} A promise that resolves to true if the required permissions are granted, otherwise false.
86
- */
87
- requestPermission(): Promise<boolean>;
88
- /**
89
- * Retrieves a discovered device and its BLE device information, if available, from the provided input.
90
- *
91
- * @param {Device} rnDevice - The Bluetooth device to analyze for discovery.
92
- * @param {string[]} ledgerUuids - A list of UUIDs associated with the target Ledger devices.
93
- * @return {Maybe<{ bleDeviceInfos: BleDeviceInfos; discoveredDevice: TransportDiscoveredDevice }>} A Maybe object containing the discovered device and its BLE information, or Nothing if the device or information cannot be determined.
94
- */
95
- private _getDiscoveredDeviceFrom;
96
- /**
97
- * Handles the processing of devices that have been determined to be "lost" by iterating
98
- * through a collection of internal devices, identifying lost devices, updating their status,
99
- * and notifying a subscriber about the change.
100
- *
101
- * @param {Subscriber<TransportDiscoveredDevice>} subscriber - The observer that will be notified
102
- * when a device is marked as lost, including updated device information with its availability set to false.
103
- * @return {void} This method does not return a value.
104
- */
105
- private _handleLostDiscoveredDevices;
106
- /**
107
- * Emits a discovered device to the provided subscriber and manages internal state
108
- * for the discovered device, including handling its availability status and disconnection events.
109
- *
110
- * @param {Subscriber<TransportDiscoveredDevice>} subscriber The subscriber to emit the discovered device to.
111
- * @param {BleDeviceInfos} bleDeviceInfos The BLE device information associated with the discovered device.
112
- * @param {TransportDiscoveredDevice} discoveredDevice The newly discovered device to be emitted.
113
- * @return {void} Does*/
114
- private _emitDiscoveredDevice;
115
- /**
116
- * Discovers new devices by scanning for BLE devices and filtering them based on the provided ledger UUIDs.
117
- *
118
- * @param {string[]} ledgerUuids - An array of UUIDs used to identify relevant ledger devices.
119
- * @return {Observable<TransportDiscoveredDevice>} An observable that emits discovered devices matching the provided UUIDs.
120
- */
121
- private _discoverNewDevices;
122
- /**
123
- * Discovers and emits known ledger devices based on the provided UUIDs.
124
- *
125
- * @param {string[]} ledgerUuids - An array of UUIDs representing the target ledger devices to discover.
126
- * @return {Observable<TransportDiscoveredDevice>} An Observable that emits discovered devices matching the provided UUIDs.
101
+ * Checks if the necessary permissions are granted and requests them if not.
127
102
  */
128
- private _discoverKnownDevices;
103
+ checkAndRequestPermissions(): Promise<boolean>;
129
104
  /**
130
105
  * Handles the event when a Bluetooth device gets disconnected. This method attempts
131
106
  * to reconnect to the device, retries a certain number of times on failure, and
@@ -133,22 +108,23 @@ export declare class RNBleTransport implements Transport {
133
108
  *
134
109
  * @param {BleError | null} error - The error object representing the reason for the disconnection, or null if no error occurred.
135
110
  * @param {Device | null} device - The Bluetooth device that was disconnected, or null if no device is provided.
136
- * @param {DisconnectHandler} onDisconnect - A callback function to be called if the reconnection attempts fail completely.
137
111
  * @return {void}
138
112
  */
139
113
  private _handleDeviceDisconnected;
114
+ private _listenToDeviceDisconnected;
115
+ private tryToReconnect;
140
116
  /**
141
117
  * Handles the reconnection of a device. Configures the device connection and its corresponding
142
118
  * internal device upon reconnection, including updating the connection state, registering
143
119
  * callbacks for write and monitor operations, and initiating a reconnect operation.
144
120
  *
145
- * @param {Device} device - The device object that has been reconnected. Contains device details,
121
+ * @param {Device} device - The ddevice object that has been reconnected. Contains device details,
146
122
  * such as the device ID.
147
123
  * @return {Promise<Either<DeviceConnectionNotFound | InternalDeviceNotFound, void>>} A promise that completes when the device reconnection has been fully
148
124
  * configured. Resolves with no value or rejects if an error occurs during
149
125
  * the reconnection process.
150
126
  */
151
127
  private _handleDeviceReconnected;
128
+ private _safeCancel;
152
129
  }
153
- export declare const RNBleTransportFactory: TransportFactory;
154
130
  //# sourceMappingURL=RNBleTransport.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RNBleTransport.d.ts","sourceRoot":"","sources":["../../../../src/api/transport/RNBleTransport.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAE7B,KAAK,YAAY,EAEjB,KAAK,QAAQ,EACb,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAE3B,KAAK,SAAS,EACd,wBAAwB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EAEzB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,MAAM,EAAsC,MAAM,WAAW,CAAC;AAC5E,OAAO,EAGL,UAAU,EAIX,MAAM,MAAM,CAAC;AAiBd,eAAO,MAAM,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AIG;IACG,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAItC,OAAO,CAAC,sBAAsB,CACqB;IACnD,OAAO,CAAC,0BAA0B,CAAuC;IAEzE;;;;;;;;OAQG;IACH,OAAO,CAAC,6BAA6B;IA0CrC,OAAO,CAAC,cAAc;YAkGR,aAAa;IAc3B;;;;OAIG;IACH,wBAAwB,IAAI,UAAU,CAAC,yBAAyB,EAAE,CAAC;IA4EnE,OAAO,CAAC,sCAAsC;IAgB9C,OAAO,CAAC,8BAA8B;IAQtC,OAAO,CAAC,qCAAqC;IAc7C;;;;;;;OAOG;IACG,OAAO,CAAC,MAAM,EAAE;QACpB,QAAQ,EAAE,QAAQ,CAAC;QACnB,YAAY,EAAE,iBAAiB,CAAC;KACjC,GAAG,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,wBAAwB,CAAC,CAAC;IAsJ3D;;;;;OAKG;IACG,UAAU,CAAC,MAAM,EAAE;QACvB,eAAe,EAAE,wBAAwB,CAAC;KAC3C,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAcnC;;;;;;;;;OASG;IACH,WAAW,IAAI,OAAO;IAItB;;;;OAIG;IACH,aAAa,IAAI,mBAAmB;IAIpC;;OAEG;IACG,0BAA0B,IAAI,OAAO,CAAC,OAAO,CAAC;IAYpD;;;;;;;;OAQG;IACH,OAAO,CAAC,yBAAyB;IA2BjC,OAAO,CAAC,2BAA2B;YAWrB,cAAc;IA0E5B;;;;;;;;;;OAUG;YACW,wBAAwB;YAgDxB,WAAW;CAuB1B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=RNBleTransport.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RNBleTransport.test.d.ts","sourceRoot":"","sources":["../../../../src/api/transport/RNBleTransport.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import type { TransportFactory } from "@ledgerhq/device-management-kit";
2
+ export declare const RNBleTransportFactory: TransportFactory;
3
+ //# sourceMappingURL=RNBleTransportFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RNBleTransportFactory.d.ts","sourceRoot":"","sources":["../../../../src/api/transport/RNBleTransportFactory.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAQxE,eAAO,MAAM,qBAAqB,EAAE,gBAmBjC,CAAC"}