Sylvia van Os
a5599dc673
Remove automatic barcode encoding type
...
Migrates all automatic cards to ISO-8859-1 and uses that as default
2026-01-13 19:47:29 +01:00
Sylvia van Os
0c61abf4f0
Add barcode encoding support
...
- Add new barcodeencoding field to database
- Read barcode encoding from pkpass file
- Add barcodeencoding to import/export
- Add barcodeencoding to share URI
- On default, use zxing's GuessEncoding function in StringUtils (this
should not use UTF-8 unless needed)
- Allow manually forcing ISO-8859-1 or UTF-8
2025-12-25 16:08:05 +01:00
Sylvia van Os
e0786594bc
Load images on request
...
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
2024-12-07 15:23:07 +01:00
Sylvia van Os
83fca93649
Use ViewModel to prevent hammering storage
...
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).
2024-12-07 15:23:07 +01:00
Sylvia van Os
1cb9ddecac
Support for returning images from PkpassParser
2024-12-07 15:23:07 +01:00
Sylvia van Os
8eeff0058b
Refactor ScanActivity result code (use ParseResult)
2024-12-07 15:23:07 +01:00
Sylvia van Os
727d9ce781
Refactor to allow updating a loyalty card from a bundle ( #2051 )
...
This allows us to send any (partial) loyalty card into the edit
activity, granting us greater flexibility in what kind of scan result we
can parse
2024-09-22 10:20:58 +02:00
Sylvia van Os
7a2ff0995f
Show image type on view screen when not viewing barcode
2024-05-20 17:47:19 +02:00
Sylvia van Os
fcb2be604c
Optimize imports
2024-02-07 19:27:18 +01:00
Aayush Gupta
5cab0e3932
LoyaltyCardViewActivityTest: Update test to handle MaterialDatePicker migration
...
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com >
2023-11-02 11:39:44 +05:30
Aayush Gupta
b2494d8fdc
test: Migrate to from OnBackPressed to OnBackPressedDispatcher
...
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com >
2023-10-01 19:32:16 +05:30
FC Stegerman
6dfbb169df
LoyaltyCardEditActivity: fix noDataLossOnResumeOrRotate test
2023-07-29 21:30:08 +02:00
Sylvia van Os
b48de921fc
Redesign of home screen and view UI ( #1296 )
...
* Redesign of home screen and view UI
* Update screenshots and CHANGELOG
* Make spotbugs happy
* Fix double store name announcement
2023-05-17 21:15:56 +02:00
Sylvia van Os
4b2b999653
Ensure unit tests use targetSdk instead of API 23 (Android 6)
2023-04-16 15:20:30 +02:00
Alexander Ivanov
f1753ea943
Add Valid From field
...
Signed-off-by: Alexander Ivanov <vanogrid@gmail.com >
2023-02-01 19:22:20 +01:00
Katharine Chui
ddf27e619d
use black/white for cardview fab icon, change floppy icon to check mark
2022-08-05 20:56:39 +08:00
Sylvia van Os
da01730c73
View activity refactor with previous/next ( #937 )
...
- Implement new bottom bar in card view with previous/next
- Refactor info sheet into info button in new bottom bar
- Make fav icon mutable before tinting, add prev/next transitions
- Update metadata
Co-authored-by: Allan Nordhøy <epost@anotheragency.no >
Co-authored-by: Katharine Chui <kwchuiaa@connect.ust.hk >
2022-08-02 22:14:20 +02:00
Sylvia van Os
11bb1aa126
Remove unused imports
2022-07-24 18:42:16 +02:00
Sylvia van Os
4ad73a754e
Replace rotation lock icon with barcode orientation setting ( #901 )
2022-06-19 00:20:56 +02:00
Jasielprogramador
548b1b1e8e
Archive support
2022-06-16 22:59:11 +02:00
Sylvia van Os
05f3b77a73
Various minor fixes
2022-05-25 21:06:43 +02:00
Sylvia van Os
a5901700b4
Fix crash in edit activity on locale without region
2022-02-11 18:45:28 +01:00
Sylvia van Os
f2e820f7bb
Cleanup DBHelper
2021-12-13 22:47:12 +01:00
Sylvia van Os
2536767437
Android Studio -> Reformat Code
2021-11-14 21:55:33 +01:00
Sylvia van Os
af4075b9e2
Choose image as card icon ( #333 )
2021-11-07 20:27:28 +01:00
Katharine
f475844bd0
wrapping up test case debugging
2021-11-04 10:48:47 +08:00
Katharine
4536453fdf
debugging test case breakage
2021-11-04 10:48:47 +08:00
Sylvia van Os
2f660c6fec
Basic ordering support ( #367 )
2021-09-14 19:14:38 +02:00
Sylvia van Os
6f1dc74f66
Consistent barcode naming
2021-09-10 00:49:06 +02:00
Sylvia van Os
4f9b1dae04
Show first image as main ( #377 )
2021-09-07 19:50:26 +02:00
Sylvia van Os
37bb9c86f4
More small cleanups
2021-08-23 00:59:31 +02:00
Subhashish Anand
110b3bcef3
Add theme colour support
2021-08-22 01:14:24 +02:00
Sylvia van Os
5ddcb0a668
Fix crash on rotation in edit view
2021-08-08 19:12:25 +02:00
Sylvia van Os
c3345a1a15
Fix last commit
2021-08-05 20:35:44 +02:00
Sylvia van Os
ef955b866d
Remove unused imports
2021-08-02 23:09:49 +02:00
Sylvia van Os
8305d58ccc
Fix maximize button appearing on no barcode
2021-08-02 22:57:55 +02:00
Sylvia van Os
19afe8e69c
Simplify edit activity and fix some status bugs
2021-07-25 21:40:15 +02:00
Sylvia van Os
1ca85e9d7b
Create unit test for broken onResume behaviour
2021-07-23 23:52:45 +02:00
Sylvia van Os
c7ddf957fa
Clean up unused imports
2021-07-06 23:25:55 +02:00
Sylvia van Os
8d48da431e
Adding and viewing front/back images ( #215 )
...
* Adding and viewing front/back images
* Fix import and export
* Fix unit tests
* Smaller preview pictures but clickable to make big
* Implement removing image
* Add card photo direct from camera
* Read Exif rotation info from picture taken
* Fix bad copy-paste
* Refactor to use local file system
* Delete card images when deleting card
* Prepare for image-based unit tests in ViewActivityTest
2021-06-28 20:40:52 +02:00
Sylvia van Os
b2c57258b3
Fix unit tests
2021-04-26 19:23:22 +02:00
Sylvia van Os
6421f09eab
Implement multi-copy and multi-share
2021-04-18 13:47:51 +02:00
Sylvia van Os
aa3588dbfe
Fix unit tests
2021-04-01 18:01:31 +02:00
Sylvia van Os
981c0b9ca6
Support setting a different barcode value than card ID
2021-04-01 13:26:57 +02:00
Sylvia van Os
0af1935d20
Switch tests to USD
2021-02-21 18:00:06 +01:00
Sylvia van Os
9a37d917f7
Fix test URL
2021-02-20 22:59:51 +01:00
Sylvia van Os
d4f62435ae
Add tests for balance
2021-02-20 22:10:23 +01:00
Sylvia van Os
0baf1ba348
Fix tests
2021-02-20 18:15:58 +01:00
Sylvia van Os
000d7722da
Fix tests
2021-01-27 21:35:37 +01:00
Sylvia van Os
0dcfc11c53
Fix unit tests
2021-01-26 22:50:46 +01:00