@ledgerhq/device-transport-kit-react-native-hid 0.0.0-legacy-speculos-datasource-20250821095840 → 0.0.0-lifi-with-logger-20251208144248
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/kotlin/com/ledger/androidtransporthid/TransportHidModule.kt +57 -17
- package/android/src/main/kotlin/com/ledger/androidtransporthid/bridge/serialization.kt +2 -0
- package/android/src/main/kotlin/com/ledger/devicesdk/shared/androidMain/transport/usb/DefaultAndroidUsbTransport.kt +119 -34
- package/android/src/main/kotlin/com/ledger/devicesdk/shared/androidMain/transport/usb/connection/AndroidUsbApduSender.kt +70 -29
- package/android/src/main/kotlin/com/ledger/devicesdk/shared/androidMainInternal/transport/deviceconnection/DeviceApduSender.kt +2 -1
- package/android/src/main/kotlin/com/ledger/devicesdk/shared/androidMainInternal/transport/deviceconnection/DeviceConnection.kt +5 -4
- package/android/src/main/kotlin/com/ledger/devicesdk/shared/androidMainInternal/transport/deviceconnection/DeviceConnectionStateMachine.kt +103 -33
- package/android/src/main/kotlin/com/ledger/devicesdk/shared/api/apdu/SendApduResult.kt +4 -0
- package/android/src/main/kotlin/com/ledger/devicesdk/shared/internal/connection/InternalConnectedDevice.kt +1 -1
- package/android/src/test/kotlin/com/ledger/devicesdk/shared/androidMainInternal/transport/deviceconnection/DeviceConnectionStateMachineTest.kt +189 -46
- package/android/src/test/kotlin/com/ledger/devicesdk/shared/androidMainInternal/transport/deviceconnection/DeviceConnectionTest.kt +9 -5
- package/lib/cjs/api/bridge/DefaultNativeModuleWrapper.js +1 -1
- package/lib/cjs/api/bridge/DefaultNativeModuleWrapper.js.map +3 -3
- package/lib/cjs/api/bridge/mapper.js +1 -1
- package/lib/cjs/api/bridge/mapper.js.map +2 -2
- package/lib/cjs/api/bridge/mapper.test.js +1 -1
- package/lib/cjs/api/bridge/mapper.test.js.map +2 -2
- package/lib/cjs/api/bridge/types.js +1 -1
- package/lib/cjs/api/bridge/types.js.map +1 -1
- package/lib/cjs/api/transport/Errors.js +1 -1
- package/lib/cjs/api/transport/Errors.js.map +3 -3
- package/lib/cjs/api/transport/NativeModuleWrapper.js +1 -1
- package/lib/cjs/api/transport/NativeModuleWrapper.js.map +1 -1
- package/lib/cjs/api/transport/RNHidTransport.js +1 -1
- package/lib/cjs/api/transport/RNHidTransport.js.map +3 -3
- package/lib/cjs/api/transport/RNHidTransport.test.js +1 -1
- package/lib/cjs/api/transport/RNHidTransport.test.js.map +2 -2
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index.js.map +3 -3
- package/lib/cjs/package.json +41 -37
- package/lib/esm/api/bridge/DefaultNativeModuleWrapper.js +1 -1
- package/lib/esm/api/bridge/DefaultNativeModuleWrapper.js.map +3 -3
- package/lib/esm/api/bridge/mapper.js +1 -1
- package/lib/esm/api/bridge/mapper.js.map +3 -3
- package/lib/esm/api/bridge/mapper.test.js +1 -1
- package/lib/esm/api/bridge/mapper.test.js.map +3 -3
- package/lib/esm/api/bridge/types.js.map +1 -1
- package/lib/esm/api/transport/Errors.js +1 -1
- package/lib/esm/api/transport/Errors.js.map +3 -3
- package/lib/esm/api/transport/RNHidTransport.js +1 -1
- package/lib/esm/api/transport/RNHidTransport.js.map +3 -3
- package/lib/esm/api/transport/RNHidTransport.test.js +1 -1
- package/lib/esm/api/transport/RNHidTransport.test.js.map +3 -3
- package/lib/esm/index.js +1 -1
- package/lib/esm/index.js.map +3 -3
- package/lib/esm/package.json +41 -37
- package/lib/types/api/bridge/DefaultNativeModuleWrapper.d.ts +1 -1
- package/lib/types/api/bridge/DefaultNativeModuleWrapper.d.ts.map +1 -1
- package/lib/types/api/bridge/mapper.d.ts.map +1 -1
- package/lib/types/api/bridge/types.d.ts +2 -2
- package/lib/types/api/bridge/types.d.ts.map +1 -1
- package/lib/types/api/transport/Errors.d.ts +1 -1
- package/lib/types/api/transport/Errors.d.ts.map +1 -1
- package/lib/types/api/transport/NativeModuleWrapper.d.ts +1 -1
- package/lib/types/api/transport/NativeModuleWrapper.d.ts.map +1 -1
- package/lib/types/api/transport/RNHidTransport.d.ts.map +1 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/tsconfig.prod.tsbuildinfo +1 -1
- package/package.json +38 -34
package/package.json
CHANGED
|
@@ -1,20 +1,30 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"
|
|
2
|
+
"dependencies": {
|
|
3
|
+
"@sentry/minimal": "6.19.7",
|
|
4
|
+
"purify-ts": "2.1.0",
|
|
5
|
+
"uuid": "11.0.3"
|
|
6
|
+
},
|
|
7
|
+
"devDependencies": {
|
|
8
|
+
"@types/uuid": "^10.0.0",
|
|
9
|
+
"react-native": "0.76.6",
|
|
10
|
+
"rxjs": "7.8.2",
|
|
11
|
+
"@ledgerhq/device-management-kit": "0.0.0-lifi-with-logger-20251208144248",
|
|
12
|
+
"@ledgerhq/eslint-config-dsdk": "0.0.2",
|
|
13
|
+
"@ledgerhq/prettier-config-dsdk": "0.0.2",
|
|
14
|
+
"@ledgerhq/ldmk-tool": "0.0.1",
|
|
15
|
+
"@ledgerhq/tsconfig-dsdk": "1.0.1",
|
|
16
|
+
"@ledgerhq/vitest-config-dmk": "0.0.0"
|
|
17
|
+
},
|
|
8
18
|
"exports": {
|
|
9
19
|
".": {
|
|
10
|
-
"types": "./lib/types/index.d.ts",
|
|
11
20
|
"import": "./lib/esm/index.js",
|
|
12
|
-
"require": "./lib/cjs/index.js"
|
|
21
|
+
"require": "./lib/cjs/index.js",
|
|
22
|
+
"types": "./lib/types/index.d.ts"
|
|
13
23
|
},
|
|
14
24
|
"./*": {
|
|
15
|
-
"types": "./lib/types/*",
|
|
16
25
|
"import": "./lib/esm/*",
|
|
17
|
-
"require": "./lib/cjs/*"
|
|
26
|
+
"require": "./lib/cjs/*",
|
|
27
|
+
"types": "./lib/types/*"
|
|
18
28
|
}
|
|
19
29
|
},
|
|
20
30
|
"files": [
|
|
@@ -26,40 +36,34 @@
|
|
|
26
36
|
"!android/gradlew.bat",
|
|
27
37
|
"!android/local.properties"
|
|
28
38
|
],
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"uuid": "11.0.3"
|
|
33
|
-
},
|
|
34
|
-
"devDependencies": {
|
|
35
|
-
"@types/uuid": "^10.0.0",
|
|
36
|
-
"react-native": "0.76.6",
|
|
37
|
-
"rxjs": "^7.8.2",
|
|
38
|
-
"@ledgerhq/device-management-kit": "0.0.0-legacy-speculos-datasource-20250821095840",
|
|
39
|
-
"@ledgerhq/eslint-config-dsdk": "0.0.2",
|
|
40
|
-
"@ledgerhq/vitest-config-dmk": "0.0.0",
|
|
41
|
-
"@ledgerhq/prettier-config-dsdk": "0.0.2",
|
|
42
|
-
"@ledgerhq/ldmk-tool": "0.0.1",
|
|
43
|
-
"@ledgerhq/tsconfig-dsdk": "1.0.1"
|
|
44
|
-
},
|
|
39
|
+
"license": "Apache-2.0",
|
|
40
|
+
"name": "@ledgerhq/device-transport-kit-react-native-hid",
|
|
41
|
+
"nativePackage": true,
|
|
45
42
|
"peerDependencies": {
|
|
46
43
|
"react-native": ">0.74.1",
|
|
47
|
-
"rxjs": "
|
|
48
|
-
"@ledgerhq/device-management-kit": "0.0.0-
|
|
44
|
+
"rxjs": "7.8.2",
|
|
45
|
+
"@ledgerhq/device-management-kit": "0.0.0-lifi-with-logger-20251208144248"
|
|
49
46
|
},
|
|
47
|
+
"private": false,
|
|
48
|
+
"react-native": "src/index.ts",
|
|
49
|
+
"repository": {
|
|
50
|
+
"type": "git",
|
|
51
|
+
"url": "https://github.com/LedgerHQ/device-sdk-ts.git"
|
|
52
|
+
},
|
|
53
|
+
"version": "0.0.0-lifi-with-logger-20251208144248",
|
|
50
54
|
"scripts": {
|
|
51
|
-
"prebuild": "rimraf lib",
|
|
52
55
|
"build": "pnpm ldmk-tool build --entryPoints src/index.ts,src/**/*.ts --tsconfig tsconfig.prod.json",
|
|
53
56
|
"dev": "concurrently \"pnpm watch:builds\" \"pnpm watch:types\"",
|
|
54
|
-
"
|
|
55
|
-
"watch:types": "concurrently \"tsc --watch -p tsconfig.prod.json\" \"tsc-alias --watch -p tsconfig.prod.json\"",
|
|
56
|
-
"lint": "eslint",
|
|
57
|
+
"lint": "eslint src/**/*.ts",
|
|
57
58
|
"lint:fix": "pnpm lint --fix",
|
|
59
|
+
"prebuild": "rimraf lib",
|
|
58
60
|
"prettier": "prettier . --check",
|
|
59
61
|
"prettier:fix": "prettier . --write",
|
|
60
|
-
"typecheck": "tsc --noEmit",
|
|
61
62
|
"test": "vitest run --passWithNoTests",
|
|
63
|
+
"test:coverage": "vitest run --coverage --passWithNoTests",
|
|
62
64
|
"test:watch": "vitest --passWithNoTests",
|
|
63
|
-
"
|
|
65
|
+
"typecheck": "tsc --noEmit",
|
|
66
|
+
"watch:builds": "pnpm ldmk-tool watch --entryPoints src/index.ts,src/**/*.ts --tsconfig tsconfig.prod.json",
|
|
67
|
+
"watch:types": "concurrently \"tsc --watch -p tsconfig.prod.json\" \"tsc-alias --watch -p tsconfig.prod.json\""
|
|
64
68
|
}
|
|
65
69
|
}
|