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

API_LEVEL_19 and software swipe support #481

Merged
merged 3 commits into from
May 6, 2024
Merged

Conversation

abonnaudet-ledger
Copy link
Member

No description provided.

Qt window:
- Do not move the Qt window when "swiping" the window
- Enable Qt window border

screen.py:
- Send a dummy "press" event when releasing the mouse, in order to trigger swipe detection.
@xchapron-ledger
Copy link
Contributor

Would be nice to add swipe support in here: https://github.com/LedgerHQ/speculos/blob/master/speculos/api/finger.py

Copy link
Contributor

@xchapron-ledger xchapron-ledger left a comment

Choose a reason for hiding this comment

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

Has it been tested on at least boilerplate?

CHANGELOG.md Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 21.42857% with 22 lines in your changes are missing coverage. Please review.

Project coverage is 52.09%. Comparing base (5139c2b) to head (731ce09).

Files Patch % Lines
speculos/client.py 33.33% 12 Missing ⚠️
speculos/api/finger.py 0.00% 5 Missing ⚠️
speculos/mcu/screen.py 0.00% 4 Missing ⚠️
src/launcher.c 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #481      +/-   ##
==========================================
- Coverage   52.12%   52.09%   -0.04%     
==========================================
  Files         120      120              
  Lines       12026    12039      +13     
  Branches      964      964              
==========================================
+ Hits         6269     6272       +3     
- Misses       5422     5432      +10     
  Partials      335      335              

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

@lpascal-ledger
Copy link
Contributor

lpascal-ledger commented May 6, 2024

@xchapron-ledger swipe was tested and working on Boilerplate.

As for the Boilerplate tests suite, they fails on two types of errors:

  • Incorrect snaphosts => wording changes ("swipe to continue" becomes "swipe to review") - due to the new SDK version I guess.
  • A Ragger bug following the changes in Speculos (finger_touch(x, y, delay) must be changed to finger_touch(x, y, delay=delay) else delay is interpreted as x2).

@lpascal-ledger lpascal-ledger merged commit a4a983b into master May 6, 2024
29 checks passed
@lpascal-ledger lpascal-ledger deleted the abo_api_level_19 branch May 6, 2024 13:41
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