Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(wallet-mobile): update react-native-hid #3614

Closed
wants to merge 5 commits into from
Closed

Conversation

jorbuedo
Copy link
Contributor

@jorbuedo jorbuedo commented Sep 10, 2024

Description / Change(s) / Related issue(s)

We've been using this fork from @v-almonacid https://github.com/v-almonacid/ledgerjs instead of the official https://github.com/LedgerHQ/ledger-live/tree/develop/libs/ledgerjs/packages/react-native-hid

This old piece is crashing due to new Android sdk v34 which forbids this: https://github.com/v-almonacid/ledgerjs/blob/036d2cfe12c2e13ae1b1a5f140bffca074612b05/packages/react-native-hid/android/src/main/java/com/ledgerwallet/hid/ReactHIDModule.java#L168

That's solved in the official source by properly using the PendingIntent flag: https://github.com/LedgerHQ/ledger-live/blob/develop/libs/ledgerjs/packages/react-native-hid/android/src/main/java/com/ledgerwallet/hid/ReactHIDModule.java#L167

Along that, now it has typescript support.

We are also using https://github.com/cardano-foundation/ledgerjs-hw-app-cardano/tree/master which depends on a specific version of hw-transport, so in order for the types to not complained I installed
"@ledgerhq/react-native-hid": "6.28.5",
We need at least 6.29.0 which is when USB was fixed (actually not fixed enough, see PS) LedgerHQ/ledger-live@8787e31
Doesn't seem to be compatible, opened cardano-foundation/ledgerjs-hw-app-cardano#44

PS: Another issue LedgerHQ/ledger-live#7786

Ticket

YOMO-1921

@jorbuedo jorbuedo requested review from michaeljscript, stackchain and banklesss and removed request for michaeljscript September 10, 2024 09:15
@stackchain stackchain requested a review from rahulnr7 September 10, 2024 09:26
@jorbuedo
Copy link
Contributor Author

close in favor of #3617

@jorbuedo jorbuedo closed this Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant