@ledgerhq/device-transport-kit-react-native-hid 0.0.0-rn-hid-20250221115747 → 0.0.0-rnhid-transport-20250411151739
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/README.md +1 -1
- package/android/build.gradle +3 -1
- package/android/src/main/kotlin/com/ledger/devicesdk/shared/androidMain/transport/usb/DefaultAndroidUsbTransport.kt +16 -22
- package/android/src/main/kotlin/com/ledger/devicesdk/shared/androidMain/transport/usb/controller/UsbPermissionReceiver.kt +1 -1
- package/android/src/main/kotlin/com/ledger/devicesdk/shared/androidMain/transport/usb/utils/UsbDeviceMapper.kt +27 -36
- package/android/src/main/kotlin/com/ledger/devicesdk/shared/androidMainInternal/transport/UsbConst.android.kt +1 -1
- package/android/src/main/kotlin/com/ledger/devicesdk/shared/androidMainInternal/transport/deviceconnection/DeviceConnection.kt +6 -7
- package/android/src/main/kotlin/com/ledger/devicesdk/shared/androidMainInternal/transport/deviceconnection/DeviceConnectionStateMachine.kt +5 -2
- package/android/src/main/kotlin/com/ledger/devicesdk/shared/api/device/LedgerDevice.kt +64 -49
- package/android/src/main/kotlin/com/ledger/devicesdk/shared/api/device/UsbInfo.kt +4 -3
- package/android/src/test/kotlin/com/ledger/devicesdk/shared/androidMainInternal/transport/deviceconnection/DeviceConnectionStateMachineTest.kt +713 -0
- package/android/src/test/kotlin/com/ledger/devicesdk/shared/androidMainInternal/transport/deviceconnection/DeviceConnectionTest.kt +218 -0
- package/lib/cjs/package.json +1 -1
- package/lib/esm/package.json +1 -1
- package/lib/types/tsconfig.prod.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/android/.settings/org.eclipse.buildship.core.prefs +0 -13
- package/android/src/main/kotlin/com/ledger/devicesdk/shared/api/DeviceAction.kt +0 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/device-transport-kit-react-native-hid",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-rnhid-transport-20250411151739",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"react-native": "src/index.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@types/uuid": "^10.0.0",
|
|
31
31
|
"react-native": "^0.76.3",
|
|
32
32
|
"rxjs": "^7.8.1",
|
|
33
|
-
"@ledgerhq/device-management-kit": "0.0.0-
|
|
33
|
+
"@ledgerhq/device-management-kit": "0.0.0-rnhid-transport-20250411151739",
|
|
34
34
|
"@ledgerhq/esbuild-tools": "0.0.2",
|
|
35
35
|
"@ledgerhq/eslint-config-dsdk": "0.0.2",
|
|
36
36
|
"@ledgerhq/vitest-config-dmk": "0.0.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react-native": ">0.72",
|
|
42
42
|
"rxjs": "^7.8.1",
|
|
43
|
-
"@ledgerhq/device-management-kit": "0.0.0-
|
|
43
|
+
"@ledgerhq/device-management-kit": "0.0.0-rnhid-transport-20250411151739"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"prebuild": "rimraf lib",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"prettier": "prettier . --check",
|
|
54
54
|
"prettier:fix": "prettier . --write",
|
|
55
55
|
"typecheck": "tsc --noEmit",
|
|
56
|
-
"test": "vitest run --passWithNoTests",
|
|
56
|
+
"test": "vitest run --passWithNoTests && cd android && ./gradlew testDebugUnitTest --tests \"*\" --info",
|
|
57
57
|
"test:watch": "vitest --passWithNoTests",
|
|
58
58
|
"test:coverage": "vitest run --coverage --passWithNoTests"
|
|
59
59
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
arguments=--init-script /var/folders/2h/7q6yybvd5cn9h16j2wwkfs1m0000gq/T/db3b08fc4a9ef609cb16b96b200fa13e563f396e9bb1ed0905fdab7bc3bc513b.gradle --init-script /var/folders/2h/7q6yybvd5cn9h16j2wwkfs1m0000gq/T/52cde0cfcf3e28b8b7510e992210d9614505e0911af0c190bd590d7158574963.gradle
|
|
2
|
-
auto.sync=false
|
|
3
|
-
build.scans.enabled=false
|
|
4
|
-
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
|
|
5
|
-
connection.project.dir=
|
|
6
|
-
eclipse.preferences.version=1
|
|
7
|
-
gradle.user.home=
|
|
8
|
-
java.home=/opt/homebrew/Cellar/openjdk@17/17.0.12/libexec/openjdk.jdk/Contents/Home
|
|
9
|
-
jvm.arguments=
|
|
10
|
-
offline.mode=false
|
|
11
|
-
override.workspace.settings=true
|
|
12
|
-
show.console.view=true
|
|
13
|
-
show.executions.view=true
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* SPDX-FileCopyrightText: 2024 Ledger SAS
|
|
3
|
-
* SPDX-License-Identifier: LicenseRef-LEDGER
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
package com.ledger.devicesdk.shared.api
|
|
7
|
-
|
|
8
|
-
public sealed class DeviceAction {
|
|
9
|
-
public data object GetOsVersion : DeviceAction()
|
|
10
|
-
|
|
11
|
-
public data object GetAppAndVersion : DeviceAction()
|
|
12
|
-
|
|
13
|
-
public data class InstallApplication(
|
|
14
|
-
val appName: String,
|
|
15
|
-
) : DeviceAction()
|
|
16
|
-
|
|
17
|
-
public data object OsUpdate : DeviceAction()
|
|
18
|
-
|
|
19
|
-
// fixme will be uncommented once theses device actions be concretely implemented
|
|
20
|
-
// public data object OpenApplication : DeviceAction()
|
|
21
|
-
//
|
|
22
|
-
// public data object UpdateApplication : DeviceAction()
|
|
23
|
-
}
|