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

feat: init ldmk-transport pkg #8092

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

fAnselmi-Ledger
Copy link

@fAnselmi-Ledger fAnselmi-Ledger commented Oct 14, 2024

βœ… Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • ...

πŸ“ Description

Created LDMK transport package

❓ Context


🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

Copy link

vercel bot commented Oct 14, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
web-tools ❌ Failed (Inspect) Oct 14, 2024 0:43am
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview Oct 14, 2024 0:43am
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Oct 14, 2024 0:43am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Oct 14, 2024 0:43am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Oct 14, 2024 0:43am

@@ -0,0 +1,56 @@
{
"name": "@ledgerhq/ldmk-transport",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't it be named @ledgerhq/live-dmdk ?

} from "@ledgerhq/device-management-kit";
import { BehaviorSubject, firstValueFrom } from "rxjs";

const deviceSdk = new DeviceSdkBuilder().addLogger(new ConsoleLogger(LogLevel.Debug)).build();
Copy link
Contributor

@jdabbech-ledger jdabbech-ledger Oct 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use the latest version and builder.addCustomTransport(DMDKTransport) here with a transport defined as class DMDKTransport extends Transport

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jdabbech-ledger it's a LL Transport here not a LDMK transport

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a transport like other ledger live transports, but it's a wrapper around the LDMK.

Screenshot 2024-09-26 at 12 02 07

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.

3 participants