@ledgerhq/device-transport-kit-react-native-ble 0.0.0-wip-20250214170223 → 1.0.0

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 (42) hide show
  1. package/README.md +89 -0
  2. package/lib/cjs/api/model/Const.js +1 -1
  3. package/lib/cjs/api/model/Const.js.map +3 -3
  4. package/lib/cjs/api/model/Errors.js +1 -1
  5. package/lib/cjs/api/model/Errors.js.map +3 -3
  6. package/lib/cjs/api/transport/RNBleApduSender.js +1 -1
  7. package/lib/cjs/api/transport/RNBleApduSender.js.map +3 -3
  8. package/lib/cjs/api/transport/RNBleApduSender.test.js +2 -0
  9. package/lib/cjs/api/transport/RNBleApduSender.test.js.map +7 -0
  10. package/lib/cjs/api/transport/RNBleTransport.js +1 -1
  11. package/lib/cjs/api/transport/RNBleTransport.js.map +3 -3
  12. package/lib/cjs/api/transport/RNBleTransport.test.js +2 -0
  13. package/lib/cjs/api/transport/RNBleTransport.test.js.map +7 -0
  14. package/lib/cjs/index.js.map +1 -1
  15. package/lib/cjs/package.json +23 -21
  16. package/lib/esm/api/model/Const.js +1 -1
  17. package/lib/esm/api/model/Const.js.map +3 -3
  18. package/lib/esm/api/model/Errors.js +1 -1
  19. package/lib/esm/api/model/Errors.js.map +3 -3
  20. package/lib/esm/api/transport/RNBleApduSender.js +1 -1
  21. package/lib/esm/api/transport/RNBleApduSender.js.map +3 -3
  22. package/lib/esm/api/transport/RNBleApduSender.test.js +2 -0
  23. package/lib/esm/api/transport/RNBleApduSender.test.js.map +7 -0
  24. package/lib/esm/api/transport/RNBleTransport.js +1 -1
  25. package/lib/esm/api/transport/RNBleTransport.js.map +3 -3
  26. package/lib/esm/api/transport/RNBleTransport.test.js +2 -0
  27. package/lib/esm/api/transport/RNBleTransport.test.js.map +7 -0
  28. package/lib/esm/package.json +23 -21
  29. package/lib/types/api/model/Const.d.ts +3 -2
  30. package/lib/types/api/model/Const.d.ts.map +1 -1
  31. package/lib/types/api/model/Errors.d.ts +26 -1
  32. package/lib/types/api/model/Errors.d.ts.map +1 -1
  33. package/lib/types/api/transport/RNBleApduSender.d.ts +7 -9
  34. package/lib/types/api/transport/RNBleApduSender.d.ts.map +1 -1
  35. package/lib/types/api/transport/RNBleApduSender.test.d.ts +2 -0
  36. package/lib/types/api/transport/RNBleApduSender.test.d.ts.map +1 -0
  37. package/lib/types/api/transport/RNBleTransport.d.ts +32 -64
  38. package/lib/types/api/transport/RNBleTransport.d.ts.map +1 -1
  39. package/lib/types/api/transport/RNBleTransport.test.d.ts +2 -0
  40. package/lib/types/api/transport/RNBleTransport.test.d.ts.map +1 -0
  41. package/lib/types/tsconfig.prod.tsbuildinfo +1 -1
  42. package/package.json +23 -21
@@ -1,14 +1,11 @@
1
- import { type BleManager, type Device, type Subscription as RNBleSubscription } from "react-native-ble-plx";
2
- import { type ApduReceiverServiceFactory, type ApduResponse, type ApduSenderServiceFactory, type BleDeviceInfos, type DeviceApduSender, type DeviceId, type DmkError, type LoggerPublisherService, type TransportDiscoveredDevice } from "@ledgerhq/device-management-kit";
3
- import { type Either, Maybe } from "purify-ts";
1
+ import { type BleManager, type Device } from "react-native-ble-plx";
2
+ import { type ApduReceiverServiceFactory, type ApduResponse, type ApduSenderServiceFactory, type BleDeviceInfos, type DeviceApduSender, type DeviceId, type DmkError, type LoggerPublisherService } from "@ledgerhq/device-management-kit";
3
+ import { type Either } from "purify-ts";
4
4
  export type RNBleInternalDevice = {
5
5
  id: DeviceId;
6
6
  bleDeviceInfos: BleDeviceInfos;
7
- discoveredDevice: TransportDiscoveredDevice;
8
- disconnectionSubscription: RNBleSubscription;
9
- lastDiscoveredTimeStamp: Maybe<number>;
10
7
  };
11
- type RNBleApduSenderConstructorArgs = {
8
+ export type RNBleApduSenderConstructorArgs = {
12
9
  dependencies: RNBleApduSenderDependencies;
13
10
  apduSenderFactory: ApduSenderServiceFactory;
14
11
  apduReceiverFactory: ApduReceiverServiceFactory;
@@ -26,6 +23,8 @@ export declare class RNBleApduSender implements DeviceApduSender<RNBleApduSender
26
23
  private readonly _apduSenderFactory;
27
24
  private readonly _apduReceiver;
28
25
  private _sendApduPromiseResolver;
26
+ private _writeCharacteristic;
27
+ private _characteristicSubscription;
29
28
  constructor({ apduSenderFactory, apduReceiverFactory, dependencies, }: RNBleApduSenderConstructorArgs, loggerServiceFactory: (tag: string) => LoggerPublisherService);
30
29
  private onReceiveSetupApduResponse;
31
30
  private receiveApdu;
@@ -34,8 +33,7 @@ export declare class RNBleApduSender implements DeviceApduSender<RNBleApduSender
34
33
  getDependencies(): RNBleApduSenderDependencies;
35
34
  setDependencies(dependencies: RNBleApduSenderDependencies): void;
36
35
  setupConnection(): Promise<void>;
37
- sendApdu(apdu: Uint8Array): Promise<Either<DmkError, ApduResponse>>;
36
+ sendApdu(apdu: Uint8Array, _triggersDisconnection?: boolean, abortTimeout?: number): Promise<Either<DmkError, ApduResponse>>;
38
37
  closeConnection(): void;
39
38
  }
40
- export {};
41
39
  //# sourceMappingURL=RNBleApduSender.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RNBleApduSender.d.ts","sourceRoot":"","sources":["../../../../src/api/transport/RNBleApduSender.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,UAAU,EAEf,KAAK,MAAM,EACX,KAAK,YAAY,IAAI,iBAAiB,EACvC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,YAAY,EAEjB,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EAEb,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC/B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,KAAK,MAAM,EAAQ,KAAK,EAAkB,MAAM,WAAW,CAAC;AAKrE,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,QAAQ,CAAC;IACb,cAAc,EAA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W/D,OAAO,CAAC,0BAA0B;IAclC,OAAO,CAAC,WAAW;IAmBnB,OAAO,CAAC,SAAS;IAajB,OAAO,CAAC,KAAK;IAQN,eAAe;IAIf,eAAe,CAAC,YAAY,EAAE,2BAA2B;IAYnD,eAAe;IAkFtB,QAAQ,CACZ,IAAI,EAAE,UAAU,EAChB,sBAAsB,CAAC,EAAE,OAAO,EAChC,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IAkDnC,eAAe;CAGvB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=RNBleApduSender.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RNBleApduSender.test.d.ts","sourceRoot":"","sources":["../../../../src/api/transport/RNBleApduSender.test.ts"],"names":[],"mappings":""}
@@ -1,28 +1,30 @@
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 { PermissionsAndroid, Platform } from "react-native";
2
+ import { BleManager } 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 TransportFactory, type TransportIdentifier } from "@ledgerhq/device-management-kit";
4
+ import { Either } from "purify-ts";
5
+ import { type Observable } from "rxjs";
6
+ import { RNBleApduSender, type RNBleApduSenderConstructorArgs, type RNBleApduSenderDependencies } from "../transport/RNBleApduSender";
4
7
  export declare const rnBleTransportIdentifier = "RN_BLE";
5
8
  export declare class RNBleTransport implements Transport {
6
9
  private readonly _deviceModelDataSource;
7
10
  private readonly _loggerServiceFactory;
8
11
  private readonly _apduSenderFactory;
9
12
  private readonly _apduReceiverFactory;
13
+ private readonly _manager;
14
+ private readonly _platform;
15
+ private readonly _permissionsAndroid;
16
+ private readonly _deviceConnectionStateMachineFactory;
17
+ private readonly _deviceApduSenderFactory;
10
18
  private _logger;
11
19
  private _isSupported;
12
- private _internalDevicesById;
13
20
  private _deviceConnectionsById;
14
- private readonly _manager;
15
21
  private readonly identifier;
16
- constructor(_deviceModelDataSource: DeviceModelDataSource, _loggerServiceFactory: (tag: string) => LoggerPublisherService, _apduSenderFactory: ApduSenderServiceFactory, _apduReceiverFactory: ApduReceiverServiceFactory);
22
+ private _reconnectionSubscription;
23
+ private readonly _bleStateSubject;
24
+ constructor(_deviceModelDataSource: DeviceModelDataSource, _loggerServiceFactory: (tag: string) => LoggerPublisherService, _apduSenderFactory: ApduSenderServiceFactory, _apduReceiverFactory: ApduReceiverServiceFactory, _manager: BleManager, _platform?: Platform, _permissionsAndroid?: PermissionsAndroid, _deviceConnectionStateMachineFactory?: (args: DeviceConnectionStateMachineParams<RNBleApduSenderDependencies>) => DeviceConnectionStateMachine<RNBleApduSenderDependencies>, _deviceApduSenderFactory?: (args: RNBleApduSenderConstructorArgs, loggerFactory: (tag: string) => LoggerPublisherService) => RNBleApduSender);
17
25
  /**
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.
26
+ * Not implemented for now as the return signature is not really usable.
27
+ * Use listenToAvailableDevices instead.
26
28
  */
27
29
  startDiscovering(): Observable<TransportDiscoveredDevice>;
28
30
  /**
@@ -31,6 +33,20 @@ export declare class RNBleTransport implements Transport {
31
33
  * @return {Promise<void>} A promise that resolves once the device scanning has been successfully stopped.
32
34
  */
33
35
  stopDiscovering(): Promise<void>;
36
+ private _maybeScanningSubject;
37
+ private _scannedDevicesSubject;
38
+ private _startedScanningSubscriber;
39
+ private _startScanning;
40
+ private _stopScanning;
41
+ /**
42
+ * Listens to known devices and emits updates when new devices are discovered or when properties of existing devices are updated.
43
+ *
44
+ * @return {Observable<TransportDiscoveredDevice[]>} An observable stream of discovered devices, containing device information as an array of TransportDiscoveredDevice objects.
45
+ */
46
+ listenToAvailableDevices(): Observable<TransportDiscoveredDevice[]>;
47
+ private _mapServicesUUIDsToBluetoothDeviceInfo;
48
+ private _mapServicesUUIDsToDeviceModel;
49
+ private _mapDeviceToTransportDiscoveredDevice;
34
50
  /**
35
51
  * Establishes a connection to a device and configures the necessary parameters for communication.
36
52
  *
@@ -52,13 +68,6 @@ export declare class RNBleTransport implements Transport {
52
68
  disconnect(params: {
53
69
  connectedDevice: TransportConnectedDevice;
54
70
  }): 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
71
  /**
63
72
  * Determines if the feature or permission is supported.
64
73
  *
@@ -85,47 +94,6 @@ export declare class RNBleTransport implements Transport {
85
94
  * @return {Promise<boolean>} A promise that resolves to true if the required permissions are granted, otherwise false.
86
95
  */
87
96
  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.
127
- */
128
- private _discoverKnownDevices;
129
97
  /**
130
98
  * Handles the event when a Bluetooth device gets disconnected. This method attempts
131
99
  * to reconnect to the device, retries a certain number of times on failure, and
@@ -133,7 +101,6 @@ export declare class RNBleTransport implements Transport {
133
101
  *
134
102
  * @param {BleError | null} error - The error object representing the reason for the disconnection, or null if no error occurred.
135
103
  * @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
104
  * @return {void}
138
105
  */
139
106
  private _handleDeviceDisconnected;
@@ -142,13 +109,14 @@ export declare class RNBleTransport implements Transport {
142
109
  * internal device upon reconnection, including updating the connection state, registering
143
110
  * callbacks for write and monitor operations, and initiating a reconnect operation.
144
111
  *
145
- * @param {Device} device - The device object that has been reconnected. Contains device details,
112
+ * @param {Device} device - The ddevice object that has been reconnected. Contains device details,
146
113
  * such as the device ID.
147
114
  * @return {Promise<Either<DeviceConnectionNotFound | InternalDeviceNotFound, void>>} A promise that completes when the device reconnection has been fully
148
115
  * configured. Resolves with no value or rejects if an error occurs during
149
116
  * the reconnection process.
150
117
  */
151
118
  private _handleDeviceReconnected;
119
+ private _safeCancel;
152
120
  }
153
121
  export declare const RNBleTransportFactory: TransportFactory;
154
122
  //# 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,wBAAwB,WAAW,CAAC;AAEjD,qBAAa,cAAe,YAAW,SAAS;IAY5C,OAAO,CAAC,QAAQ,CAAC,sBAAsB;IACvC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IAGtC,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,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AAO,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;IAuI3D;;;;;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;IAStB;;;;OAIG;IACH,aAAa,IAAI,mBAAmB;IAIpC;;;;;;;OAOG;IACG,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC;IAmD3C;;;;;;;;OAQG;IACH,OAAO,CAAC,yBAAyB;IAmFjC;;;;;;;;;;OAUG;YACW,wBAAwB;YAgDxB,WAAW;CAc1B;AAED,eAAO,MAAM,qBAAqB,EAAE,gBAYjC,CAAC"}
@@ -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":""}