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 BAGL applications calling NBGL libraries case #560

Merged
merged 1 commit into from
Mar 14, 2025

Conversation

nroggeman-ledger
Copy link
Contributor

The goal of this PR is to make BAGL-based applications able to call NBGL-based libraries, or NBGL-based applications able to call BAGL-based libraries.
It is especially important for Exchange (Swap) Application.
The main fix consist in supporting two instances of GraphicalLibrary (BAGL and NBGL), instead of a single one

@codecov-commenter
Copy link

codecov-commenter commented Mar 14, 2025

Codecov Report

Attention: Patch coverage is 6.57895% with 71 lines in your changes missing coverage. Please review.

Project coverage is 43.41%. Comparing base (1c5f045) to head (5ee6355).

Files with missing lines Patch % Lines
speculos/mcu/seproxyhal.py 0.00% 27 Missing ⚠️
speculos/main.py 0.00% 16 Missing ⚠️
speculos/mcu/headless.py 0.00% 12 Missing ⚠️
speculos/mcu/screen.py 0.00% 12 Missing ⚠️
speculos/mcu/display.py 75.00% 1 Missing ⚠️
speculos/mcu/ocr.py 66.66% 1 Missing ⚠️
speculos/mcu/screen_text.py 0.00% 1 Missing ⚠️
src/launcher.c 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #560      +/-   ##
==========================================
- Coverage   43.42%   43.41%   -0.02%     
==========================================
  Files         125      125              
  Lines       12582    12586       +4     
  Branches     1010     1010              
==========================================
  Hits         5464     5464              
- Misses       6783     6787       +4     
  Partials      335      335              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nroggeman-ledger nroggeman-ledger force-pushed the fix-bagl-app-using-nbgl-lib branch 4 times, most recently from 15a7d01 to 8c9774e Compare March 14, 2025 07:38
yogh333
yogh333 previously approved these changes Mar 14, 2025
Copy link
Contributor

@yogh333 yogh333 left a comment

Choose a reason for hiding this comment

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

Ok for me, do not forget to update CHANGELOG 🙏

lpascal-ledger
lpascal-ledger previously approved these changes Mar 14, 2025
Copy link
Contributor

@lpascal-ledger lpascal-ledger left a comment

Choose a reason for hiding this comment

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

Good for me (modulo the 0.17 - 0.18 version merge, as no v0.17 has been released yet)

lpascal-ledger
lpascal-ledger previously approved these changes Mar 14, 2025
@nroggeman-ledger nroggeman-ledger force-pushed the fix-bagl-app-using-nbgl-lib branch from 4c45820 to 5ee6355 Compare March 14, 2025 14:30
@nroggeman-ledger nroggeman-ledger merged commit f1e12a6 into master Mar 14, 2025
43 checks passed
@nroggeman-ledger nroggeman-ledger deleted the fix-bagl-app-using-nbgl-lib branch March 14, 2025 14:38
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.

4 participants