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

Add Pkpass parser #2038

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

Add Pkpass parser #2038

wants to merge 10 commits into from

Conversation

TheLastProject
Copy link
Member

@TheLastProject TheLastProject commented Aug 11, 2024

!!! Blocked by #2051 !!!

  • Parse pkpass files
  • Implement Stocard Zip bugfix
  • Load parsed images into edit activity
  • Basic tests
  • Consider adding more tests (we got more files from users)
  • Integrate with scan activity
  • Integrate with clicking pkpass file in file manager

New regression to fix:

  • Only load non-thumbnail images when actually needed
  • Rotating the edit activity without changes causes Catima to think you made a change

@TheLastProject TheLastProject linked an issue Aug 11, 2024 that may be closed by this pull request
@TheLastProject TheLastProject marked this pull request as draft August 11, 2024 11:49
@TheLastProject TheLastProject force-pushed the feature/pkpass2024 branch 4 times, most recently from 7124d28 to 657807c Compare September 25, 2024 19:42
@TheLastProject TheLastProject force-pushed the feature/pkpass2024 branch 7 times, most recently from 562d9d1 to 72fb68f Compare October 20, 2024 11:44
@TheLastProject TheLastProject force-pushed the feature/pkpass2024 branch 3 times, most recently from 1a9755e to 2150e2a Compare October 22, 2024 19:47
@TheLastProject TheLastProject force-pushed the feature/pkpass2024 branch 4 times, most recently from a78acad to 9362482 Compare November 11, 2024 18:01
@TheLastProject TheLastProject force-pushed the feature/pkpass2024 branch 7 times, most recently from 4eb7e68 to 936bbb8 Compare November 22, 2024 18:47
When you turn a LoyaltyCard into a bundle, it writes the files to
storage as it can't otherwise fit in the limited storage size. This
means that, on rotation, you write all images to storage and load them
again. Using a ViewModel prevents that storage hit due to holding it in
memory (as a ViewModel has a longer lifecycle).
This should make it possible to properly cancel the running barcode
generation threads on rotation and prevent CPU rising on many rotations.
@TheLastProject TheLastProject force-pushed the feature/pkpass2024 branch 2 times, most recently from 1518932 to fe770c8 Compare December 1, 2024 12:42
This prevents loading the front and back images when scrolling through
the loyalty card list and should allow scaling to more images/files more
easily
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.

Pkpass file support
2 participants