mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-02-15 09:33:04 -05:00
Compare commits
929 Commits
v2.31.1
...
create-pul
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0b24a76b19 | ||
|
|
921773ee59 | ||
|
|
6d012413bc | ||
|
|
caeba57a42 | ||
|
|
e12204771f | ||
|
|
cf9612052a | ||
|
|
b0081919c9 | ||
|
|
7c2959b501 | ||
|
|
6f9ab1ad1d | ||
|
|
42f9a43393 | ||
|
|
955cd8a0d4 | ||
|
|
b1c806a189 | ||
|
|
bea5f5eb82 | ||
|
|
958e0951bc | ||
|
|
26dbf6d53d | ||
|
|
051e49a099 | ||
|
|
083b3d0666 | ||
|
|
b4ab8a0220 | ||
|
|
658205bc49 | ||
|
|
d9ee1950d8 | ||
|
|
601600a036 | ||
|
|
7805e9f323 | ||
|
|
61dd342f17 | ||
|
|
1c91842ad4 | ||
|
|
2f9ef2859b | ||
|
|
9ce27f4fa0 | ||
|
|
3f654d2170 | ||
|
|
88019dcae3 | ||
|
|
b94ea44f42 | ||
|
|
f52b101735 | ||
|
|
02e139f5d2 | ||
|
|
67a3b13209 | ||
|
|
4cd85f3a05 | ||
|
|
35f88ca386 | ||
|
|
0157e76725 | ||
|
|
fceda14f89 | ||
|
|
18a2c3d907 | ||
|
|
8f944329c2 | ||
|
|
24cde962b4 | ||
|
|
cdd78cbfb5 | ||
|
|
a0782f115c | ||
|
|
1d2e7bb8d2 | ||
|
|
272102ed61 | ||
|
|
1baea9ee4b | ||
|
|
3022c8fd75 | ||
|
|
e1cfb15a8b | ||
|
|
ecfa677542 | ||
|
|
810eb97dfc | ||
|
|
40bd33f6af | ||
|
|
19cc6c7573 | ||
|
|
89144ff83e | ||
|
|
5c77bab972 | ||
|
|
e406e69c54 | ||
|
|
52b36b5946 | ||
|
|
06cf71a96a | ||
|
|
00052f68b8 | ||
|
|
70f90bbf8f | ||
|
|
167ce12b57 | ||
|
|
a056841aec | ||
|
|
bb81e22dae | ||
|
|
068a80617d | ||
|
|
22c3e10274 | ||
|
|
4696862745 | ||
|
|
a8930c43ce | ||
|
|
3fac57d023 | ||
|
|
1c9dba92b1 | ||
|
|
833a4b8743 | ||
|
|
aedeb91b1a | ||
|
|
0c191eda05 | ||
|
|
e3e1e0c85b | ||
|
|
32a6fa9e8f | ||
|
|
4f4ffa46e7 | ||
|
|
8f7ab2b4bf | ||
|
|
71c1afc10e | ||
|
|
bdb1f70754 | ||
|
|
e08d95f0f5 | ||
|
|
d487668ad9 | ||
|
|
2660550df1 | ||
|
|
cfed16d2e5 | ||
|
|
9af3ef90a2 | ||
|
|
d7db959dd7 | ||
|
|
b5eff7f9c7 | ||
|
|
8891f5d75d | ||
|
|
f0aab7017e | ||
|
|
b4985bba76 | ||
|
|
0911ec8c9d | ||
|
|
5e171c17be | ||
|
|
7896600863 | ||
|
|
d20a0e8598 | ||
|
|
b871279502 | ||
|
|
fa08f4f797 | ||
|
|
794932812c | ||
|
|
e316fc7309 | ||
|
|
971e861e18 | ||
|
|
3e7cf68425 | ||
|
|
d2137c5f80 | ||
|
|
0f17841fe4 | ||
|
|
663ad8b4b2 | ||
|
|
0609c05864 | ||
|
|
07da8cb492 | ||
|
|
c16da87be8 | ||
|
|
450d359c16 | ||
|
|
c1a1098501 | ||
|
|
4c7aac2f67 | ||
|
|
2bcd6f856a | ||
|
|
d98fb2fe12 | ||
|
|
c549c713a3 | ||
|
|
9388a05eac | ||
|
|
6809153412 | ||
|
|
39556705ab | ||
|
|
d1939b943d | ||
|
|
f2c32202c8 | ||
|
|
7ece032bb3 | ||
|
|
9393c2b8d8 | ||
|
|
f2dd15aaf5 | ||
|
|
f4927d9c8b | ||
|
|
1dddd2cee3 | ||
|
|
1e75da4eaf | ||
|
|
1add77f4fe | ||
|
|
4b77700b97 | ||
|
|
cb547b0a71 | ||
|
|
01ee3568ca | ||
|
|
fcd7c00cc7 | ||
|
|
90a41ccf0f | ||
|
|
6c9748aca4 | ||
|
|
02e3ae4dd6 | ||
|
|
d39fdf400c | ||
|
|
073c6dfed8 | ||
|
|
0fa4a6a4c8 | ||
|
|
07b59f090e | ||
|
|
df807d5548 | ||
|
|
f21264c762 | ||
|
|
8aace7f765 | ||
|
|
531c25add7 | ||
|
|
43add95012 | ||
|
|
6ef892fa41 | ||
|
|
1c832eb899 | ||
|
|
f187fd10a5 | ||
|
|
4cac1b103a | ||
|
|
2c7a759711 | ||
|
|
c490ce6248 | ||
|
|
7e3e1544d2 | ||
|
|
edf18591ca | ||
|
|
8cb08dc980 | ||
|
|
5e925f41fb | ||
|
|
a3a28b38e7 | ||
|
|
87fb81de91 | ||
|
|
76adf47107 | ||
|
|
ecbca16246 | ||
|
|
4bd9b25633 | ||
|
|
dd46a45b21 | ||
|
|
e0875d8e45 | ||
|
|
329ff33dc4 | ||
|
|
4610058c54 | ||
|
|
8ce338c525 | ||
|
|
22e119336b | ||
|
|
981e031697 | ||
|
|
4f934b35ca | ||
|
|
441ce040ff | ||
|
|
39e3a5afa8 | ||
|
|
b281a8b8e4 | ||
|
|
5877508fb7 | ||
|
|
7ff98a9b6d | ||
|
|
e658555c2b | ||
|
|
80a52afd8e | ||
|
|
5963582abf | ||
|
|
b918d51744 | ||
|
|
1a475bc9c5 | ||
|
|
1b86795c20 | ||
|
|
42d1bc452f | ||
|
|
7e0e788689 | ||
|
|
14434e1c55 | ||
|
|
a733b681d8 | ||
|
|
af39b9de25 | ||
|
|
74c988aa67 | ||
|
|
8ff1120a0d | ||
|
|
543787a559 | ||
|
|
3eb7b01a98 | ||
|
|
c66e800a22 | ||
|
|
10ed6be747 | ||
|
|
b99c7f576d | ||
|
|
ac5d15578f | ||
|
|
d5c03f9d36 | ||
|
|
6ed2ff849a | ||
|
|
2945450186 | ||
|
|
8944c6d5dc | ||
|
|
97db8ee025 | ||
|
|
777a3cce28 | ||
|
|
91386df0f7 | ||
|
|
9f95812d32 | ||
|
|
361b011205 | ||
|
|
ac45a5cdfe | ||
|
|
e892f5d57c | ||
|
|
a3d24ebe3b | ||
|
|
29ce8e63b3 | ||
|
|
223d6d1d35 | ||
|
|
e712765f0b | ||
|
|
ad68c43857 | ||
|
|
626c25b781 | ||
|
|
0e9366e0ce | ||
|
|
cccffe9543 | ||
|
|
821e81303c | ||
|
|
d3ba0ff93f | ||
|
|
2bf9f58054 | ||
|
|
07ba380c21 | ||
|
|
6e523dff7e | ||
|
|
702cc17bd5 | ||
|
|
6b9c452de7 | ||
|
|
5d9a670225 | ||
|
|
4cb939ab6b | ||
|
|
f14b2dffcd | ||
|
|
55b0ee7a63 | ||
|
|
4adfb0d292 | ||
|
|
948ee26852 | ||
|
|
a652d3fd9a | ||
|
|
18e530f3a0 | ||
|
|
a55dcd760c | ||
|
|
2bbcad03ef | ||
|
|
cc9c50032c | ||
|
|
06cf3e9288 | ||
|
|
a25e91dede | ||
|
|
57086649f4 | ||
|
|
7d2fc03248 | ||
|
|
b2ad30d1ae | ||
|
|
8970a0a031 | ||
|
|
c9e713cf7f | ||
|
|
64e315f0b0 | ||
|
|
f60cf0e674 | ||
|
|
5d2a1b0263 | ||
|
|
77860441ad | ||
|
|
f46ec1ec51 | ||
|
|
e644c347ec | ||
|
|
0b28df9999 | ||
|
|
dddb3e3a11 | ||
|
|
0518821341 | ||
|
|
2eefcf1270 | ||
|
|
93c3705207 | ||
|
|
9fcf9e4dd9 | ||
|
|
392ce9bc79 | ||
|
|
da3eaf36f1 | ||
|
|
0458c501c8 | ||
|
|
632ef8b3a8 | ||
|
|
40e5014cc6 | ||
|
|
ba09eb4ca3 | ||
|
|
2c77dcadb5 | ||
|
|
99eaaebf1c | ||
|
|
f2e77cdf09 | ||
|
|
8f00b17315 | ||
|
|
3a17756532 | ||
|
|
cff3fff971 | ||
|
|
2763635f17 | ||
|
|
1dd1a1273f | ||
|
|
3f5b953c16 | ||
|
|
1539d88d78 | ||
|
|
91ee846054 | ||
|
|
c5cecee7b1 | ||
|
|
1e0a52d780 | ||
|
|
0792bb1407 | ||
|
|
6e9a05389a | ||
|
|
68833a7ff1 | ||
|
|
cc7553850a | ||
|
|
e66277d665 | ||
|
|
caea63ea32 | ||
|
|
1761465532 | ||
|
|
8218cc63c7 | ||
|
|
c2ff763311 | ||
|
|
813287a657 | ||
|
|
66c3046c4d | ||
|
|
acbdf79d79 | ||
|
|
ade3db0902 | ||
|
|
d66066c195 | ||
|
|
0a222ca16a | ||
|
|
48fa369dc3 | ||
|
|
9e861b1b10 | ||
|
|
6b7926ecde | ||
|
|
ccd6e12547 | ||
|
|
c869104e82 | ||
|
|
f430d3071b | ||
|
|
26460753a6 | ||
|
|
2653c7aea3 | ||
|
|
1a892b2de3 | ||
|
|
a9e9ee511d | ||
|
|
7719a2d3fd | ||
|
|
84a6202db1 | ||
|
|
4d8a4fbd6a | ||
|
|
d556e7e0a2 | ||
|
|
5f039c5c3f | ||
|
|
5bf69db296 | ||
|
|
f20cac5d85 | ||
|
|
69976289ca | ||
|
|
8b30f92dfd | ||
|
|
477c70a8e5 | ||
|
|
2e9d1a41f6 | ||
|
|
ff617036c7 | ||
|
|
2b4e8b1f8b | ||
|
|
7bcbdd8358 | ||
|
|
45c212c5cc | ||
|
|
00d7b5e231 | ||
|
|
0314d49b77 | ||
|
|
6335b731df | ||
|
|
c248d1e84c | ||
|
|
94de9829b9 | ||
|
|
0448efd04c | ||
|
|
21f4b9b5cf | ||
|
|
01a30db52e | ||
|
|
01ed9bd30f | ||
|
|
583edb53d9 | ||
|
|
f51cc70d8e | ||
|
|
539d05a603 | ||
|
|
906162ebb4 | ||
|
|
b06203dc8a | ||
|
|
6aec4b93ff | ||
|
|
3ea6f64021 | ||
|
|
51fb01b190 | ||
|
|
01b23109ae | ||
|
|
4e291b58d3 | ||
|
|
1689cf1026 | ||
|
|
a55ce2c952 | ||
|
|
d2ff17a90e | ||
|
|
70c446e88d | ||
|
|
0d6dc40da5 | ||
|
|
a4f3a81d58 | ||
|
|
c64f75ffe4 | ||
|
|
0fdb6ee567 | ||
|
|
9aa40fc88c | ||
|
|
4f4c0171c0 | ||
|
|
e4644b3eb7 | ||
|
|
999cf241f8 | ||
|
|
42b964a324 | ||
|
|
1262bfd502 | ||
|
|
81fe561678 | ||
|
|
9cb989155d | ||
|
|
59587f4a40 | ||
|
|
4dc0d4cd24 | ||
|
|
89598be72e | ||
|
|
1d2359f295 | ||
|
|
026984920b | ||
|
|
03ed289ef9 | ||
|
|
0ccbeb42dd | ||
|
|
3f9b772a11 | ||
|
|
e97c9de471 | ||
|
|
872db6b966 | ||
|
|
724d036df9 | ||
|
|
fc98e6651a | ||
|
|
a70e4aa7a7 | ||
|
|
d542be322c | ||
|
|
d5a977c5b0 | ||
|
|
bac9199974 | ||
|
|
bb92ec2291 | ||
|
|
b155f45b01 | ||
|
|
b2f79f836b | ||
|
|
9ba7e4a92b | ||
|
|
28088beb72 | ||
|
|
25351f4138 | ||
|
|
1ac4db8641 | ||
|
|
5cee4ef497 | ||
|
|
b323c2e5cd | ||
|
|
66be4a8c18 | ||
|
|
dd2bd294ba | ||
|
|
e4db1e931a | ||
|
|
f8b3e9c65b | ||
|
|
880a596621 | ||
|
|
9903b4d955 | ||
|
|
40bc87c772 | ||
|
|
586642c6f6 | ||
|
|
f3847a4a2b | ||
|
|
63352c310e | ||
|
|
e7aac163c2 | ||
|
|
5a3d61d8f0 | ||
|
|
33ba81d3b0 | ||
|
|
6a0956181d | ||
|
|
aca7d3bd9c | ||
|
|
e3e8378f8e | ||
|
|
61d235b497 | ||
|
|
e069d7a956 | ||
|
|
3d8806e38c | ||
|
|
650da3bd6a | ||
|
|
26b7cece35 | ||
|
|
1d3da4d1d1 | ||
|
|
bc3aeed090 | ||
|
|
6606eeb9a7 | ||
|
|
2401a3f8bf | ||
|
|
b3685c0c7e | ||
|
|
868315948e | ||
|
|
19a68719fe | ||
|
|
92570ec75c | ||
|
|
573817f81d | ||
|
|
21da1fed85 | ||
|
|
c23527eb82 | ||
|
|
926b9e0822 | ||
|
|
d32a0b698d | ||
|
|
47bf18f219 | ||
|
|
91096c5839 | ||
|
|
477c16360e | ||
|
|
9a1d7d2e44 | ||
|
|
be54c50786 | ||
|
|
2624924f53 | ||
|
|
724552eaa3 | ||
|
|
bef0d70d09 | ||
|
|
d7201f62ab | ||
|
|
1f229980b7 | ||
|
|
8f08b1989b | ||
|
|
e3c83c0cb0 | ||
|
|
431e380f5e | ||
|
|
5c7b102e08 | ||
|
|
6dc1a1b196 | ||
|
|
6c01d2ffa9 | ||
|
|
3156fd6daf | ||
|
|
6fa4ab3e3b | ||
|
|
9fa67b59c7 | ||
|
|
0935a17fec | ||
|
|
5fdc575485 | ||
|
|
d6bbd16945 | ||
|
|
1110f7ee99 | ||
|
|
d64860a34e | ||
|
|
9fb0da6954 | ||
|
|
12b0f8806b | ||
|
|
5c5a1df39d | ||
|
|
5b0ac65fbe | ||
|
|
e9b542ee6e | ||
|
|
ae6bf5e8f6 | ||
|
|
4dc564ffcf | ||
|
|
49a9ef2f80 | ||
|
|
1907f482eb | ||
|
|
08aad7ce20 | ||
|
|
f555a160d5 | ||
|
|
2d9b7f358e | ||
|
|
db396b5f21 | ||
|
|
018d36c3fd | ||
|
|
e6621244b8 | ||
|
|
29aef64d97 | ||
|
|
cbe243feb3 | ||
|
|
ff02c59f85 | ||
|
|
3895bc1f73 | ||
|
|
cd0cce532a | ||
|
|
3fdf6693d2 | ||
|
|
d2be344700 | ||
|
|
9bd2898678 | ||
|
|
07f2348a6d | ||
|
|
ddd1c1a516 | ||
|
|
8de76e3c52 | ||
|
|
6ea2645e9d | ||
|
|
ed166b1b33 | ||
|
|
2dd53a5300 | ||
|
|
97f9120acf | ||
|
|
dd29be75f2 | ||
|
|
fa87df2ed8 | ||
|
|
1fb94de809 | ||
|
|
0e18e84c8f | ||
|
|
0ba2261033 | ||
|
|
703ebf9418 | ||
|
|
ff08dbe5d5 | ||
|
|
3003a10550 | ||
|
|
f95be6cc71 | ||
|
|
23bc40e630 | ||
|
|
45c47674fb | ||
|
|
cf1d1a8122 | ||
|
|
45d2629863 | ||
|
|
f6b0736bbf | ||
|
|
83f9a2bcc9 | ||
|
|
1b817222f0 | ||
|
|
50db796a47 | ||
|
|
f2f7fe3151 | ||
|
|
90293b90fb | ||
|
|
f1751eaebf | ||
|
|
19a3aa0b86 | ||
|
|
a3b901e357 | ||
|
|
fbe12cfadc | ||
|
|
3ffbf11902 | ||
|
|
5c3b32a6ee | ||
|
|
36267b8255 | ||
|
|
668c9b0d76 | ||
|
|
eebbe6dec8 | ||
|
|
a84ae51a4f | ||
|
|
bdbb977233 | ||
|
|
ac27cc6a1e | ||
|
|
91551bf4e8 | ||
|
|
e8c11debfd | ||
|
|
e29a1c659f | ||
|
|
d66bf0e3fd | ||
|
|
172b71dd00 | ||
|
|
10ce432c97 | ||
|
|
3299a8dca3 | ||
|
|
5dca8bc5d2 | ||
|
|
1b8f8704f5 | ||
|
|
64e801311b | ||
|
|
da8202b4e1 | ||
|
|
72d70f1265 | ||
|
|
660597e89a | ||
|
|
4a48ac8797 | ||
|
|
4c61c19e4f | ||
|
|
bb3b13364c | ||
|
|
b34bb65f79 | ||
|
|
a7cfb4b68f | ||
|
|
8d58a6192d | ||
|
|
1da34ceda4 | ||
|
|
dc31b7e839 | ||
|
|
5c6ee7b787 | ||
|
|
5620a62cad | ||
|
|
429abb4914 | ||
|
|
f90d33daf7 | ||
|
|
baa67cf9f4 | ||
|
|
4054269db3 | ||
|
|
559b8d00dd | ||
|
|
9b9c19586f | ||
|
|
a3407734a7 | ||
|
|
99c579ee51 | ||
|
|
81bc7db43e | ||
|
|
117e08d957 | ||
|
|
89356dac50 | ||
|
|
c7bf1f5f30 | ||
|
|
1a7a2d31f4 | ||
|
|
8fd4335a98 | ||
|
|
6b4b0e846b | ||
|
|
451fa87990 | ||
|
|
2c50c2b48c | ||
|
|
8b9c26ad5a | ||
|
|
ef7db55d8c | ||
|
|
8f2d39d0ec | ||
|
|
3597e3098f | ||
|
|
0702fc579c | ||
|
|
017cf19d27 | ||
|
|
83a3a5b9e2 | ||
|
|
54828c3c93 | ||
|
|
31e517d7ee | ||
|
|
00957ac576 | ||
|
|
852c38d88d | ||
|
|
67314b09a9 | ||
|
|
944e2ca0c0 | ||
|
|
68564864d5 | ||
|
|
19bccc0c82 | ||
|
|
04905edab4 | ||
|
|
179a9adbe5 | ||
|
|
3925a79158 | ||
|
|
71de6f8c99 | ||
|
|
9d81ca5c9b | ||
|
|
75c393af92 | ||
|
|
3e16515b6c | ||
|
|
3e9857f14f | ||
|
|
20ee7c9324 | ||
|
|
fa6ee155ac | ||
|
|
c186e53eab | ||
|
|
75abd6f80c | ||
|
|
0a98e6154c | ||
|
|
c2b31fad43 | ||
|
|
2043dffc10 | ||
|
|
244aabcc1a | ||
|
|
a1faed8717 | ||
|
|
fcf9176523 | ||
|
|
30db9e3cd6 | ||
|
|
fb3df0ff4d | ||
|
|
9b4b48e6e3 | ||
|
|
9a9cdaff09 | ||
|
|
3a82efcf6f | ||
|
|
7c2d08b06f | ||
|
|
aebe84c2cd | ||
|
|
3768f0ebcf | ||
|
|
8f7d527c21 | ||
|
|
54ec5ee0d0 | ||
|
|
dccb244c8f | ||
|
|
a37084af1a | ||
|
|
af0a7ae89b | ||
|
|
315cbab4be | ||
|
|
bc3830d685 | ||
|
|
4893d28bb0 | ||
|
|
2a7670e19d | ||
|
|
86e6a1bb2d | ||
|
|
d1d3f95dfe | ||
|
|
ebfc90e998 | ||
|
|
704db9eb46 | ||
|
|
3557870d34 | ||
|
|
59354c7251 | ||
|
|
cae25599f8 | ||
|
|
e89eb46f79 | ||
|
|
039b433d0a | ||
|
|
0319d16f2b | ||
|
|
f11c45d169 | ||
|
|
572c0fea4a | ||
|
|
5e9d364e5e | ||
|
|
57d62fdb29 | ||
|
|
0c7332396b | ||
|
|
7bdca36f53 | ||
|
|
f8a8a84f1e | ||
|
|
8009baca26 | ||
|
|
e0786594bc | ||
|
|
7fe67960bf | ||
|
|
83fca93649 | ||
|
|
96a9850d9c | ||
|
|
1cb9ddecac | ||
|
|
f7697ce8bf | ||
|
|
9358348795 | ||
|
|
711ca1e761 | ||
|
|
8eeff0058b | ||
|
|
ea456c6d80 | ||
|
|
3bdc06b5b4 | ||
|
|
2c9fbfcae8 | ||
|
|
e4a28f9fc9 | ||
|
|
630bf14387 | ||
|
|
4dd85f845e | ||
|
|
8382d1975b | ||
|
|
4d4cac6a9e | ||
|
|
5bd276a32d | ||
|
|
e31ad60d32 | ||
|
|
f511b29fcb | ||
|
|
158abdb96c | ||
|
|
959f6770dd | ||
|
|
c429fef56d | ||
|
|
4ce8d293f4 | ||
|
|
ef9b28671b | ||
|
|
e3afaa1d49 | ||
|
|
094e6951d0 | ||
|
|
73f33e238c | ||
|
|
d1b8051771 | ||
|
|
17fd6db65f | ||
|
|
e6345bc2fe | ||
|
|
208b1a2eba | ||
|
|
b796425551 | ||
|
|
425a9f9a57 | ||
|
|
3701c1f2cb | ||
|
|
7a5233ed1a | ||
|
|
5df349c118 | ||
|
|
f97da3afcb | ||
|
|
d997759ccf | ||
|
|
5e710ba424 | ||
|
|
88c1dd1bc6 | ||
|
|
b63fbfa4c6 | ||
|
|
565b441444 | ||
|
|
6900cf3475 | ||
|
|
2c0c63aad4 | ||
|
|
b48e6f2437 | ||
|
|
37b4096713 | ||
|
|
7a0894e4d2 | ||
|
|
e6f8c29078 | ||
|
|
b1672408c3 | ||
|
|
b79f2ae51d | ||
|
|
2a758d2e57 | ||
|
|
07def17334 | ||
|
|
1c3fb47c89 | ||
|
|
d1e4deb7eb | ||
|
|
ad97571ab0 | ||
|
|
4bbf0983c5 | ||
|
|
13e86e5e53 | ||
|
|
454070c346 | ||
|
|
10458d9975 | ||
|
|
823c38c50c | ||
|
|
a593e68ffb | ||
|
|
5ef8cf5381 | ||
|
|
db94d5bc5d | ||
|
|
b6fe1bc2a7 | ||
|
|
78754ca313 | ||
|
|
8e8667b721 | ||
|
|
40731104cb | ||
|
|
879872202a | ||
|
|
0fcf16d9d2 | ||
|
|
23d27ab838 | ||
|
|
0b4df647d1 | ||
|
|
a74c4f822e | ||
|
|
389372e8f3 | ||
|
|
c228d274b5 | ||
|
|
d8e0e03aa5 | ||
|
|
171dd7af59 | ||
|
|
10bf27a246 | ||
|
|
199c243eb0 | ||
|
|
11b0143b1c | ||
|
|
f2e20eaea3 | ||
|
|
c8725a4588 | ||
|
|
f881965485 | ||
|
|
3e16d0daf6 | ||
|
|
7068f57443 | ||
|
|
8b611511f5 | ||
|
|
1c9f0ee724 | ||
|
|
2d816b39f6 | ||
|
|
c0b13bf040 | ||
|
|
e40d98f386 | ||
|
|
8af295a72b | ||
|
|
ac4dde1f8b | ||
|
|
2dc87fd37c | ||
|
|
aebceec1f6 | ||
|
|
95b59a9cc3 | ||
|
|
4ff72b66a8 | ||
|
|
d1162d0272 | ||
|
|
794ac2bab2 | ||
|
|
7b76fe86b2 | ||
|
|
4387c7ed1e | ||
|
|
f819fc7db9 | ||
|
|
fb5a882fdb | ||
|
|
be8c0a6787 | ||
|
|
5dc84fbd77 | ||
|
|
0c37827fb0 | ||
|
|
cee5d39b27 | ||
|
|
9c5603eae6 | ||
|
|
dd42c99ca7 | ||
|
|
403c60ec6c | ||
|
|
7c7e6d3b45 | ||
|
|
316e51efb2 | ||
|
|
9e838e266b | ||
|
|
a56b984c53 | ||
|
|
4040b270a8 | ||
|
|
eab8614bcc | ||
|
|
ef8befe0cd | ||
|
|
860b79fc9b | ||
|
|
93341fc4ec | ||
|
|
51f123bc41 | ||
|
|
f0512fbeca | ||
|
|
71f6fcd2e6 | ||
|
|
d1a244efa0 | ||
|
|
075478db17 | ||
|
|
6f4582eec9 | ||
|
|
91f5f9a8b4 | ||
|
|
f04adc0901 | ||
|
|
f184ee7e58 | ||
|
|
9abeec578e | ||
|
|
8deab5f94f | ||
|
|
50fca74267 | ||
|
|
9e7bf97cc9 | ||
|
|
96be72b4c6 | ||
|
|
5c31ac6d00 | ||
|
|
1675d591dd | ||
|
|
361495dfed | ||
|
|
2b81e861f6 | ||
|
|
657a761c3a | ||
|
|
6d401c4234 | ||
|
|
8a33d2e5ed | ||
|
|
66e994be60 | ||
|
|
4e50ca9340 | ||
|
|
af064d1cda | ||
|
|
585c444f2d | ||
|
|
85683a0b3f | ||
|
|
4c7aa2b26b | ||
|
|
af236e1099 | ||
|
|
79f6014e26 | ||
|
|
0fa3de40ba | ||
|
|
d77f938107 | ||
|
|
e44aaa6618 | ||
|
|
96d88bb08c | ||
|
|
b502f89da6 | ||
|
|
d7b8cd7e03 | ||
|
|
61681bdc2b | ||
|
|
dc65030a63 | ||
|
|
328c110a97 | ||
|
|
0b7cd32209 | ||
|
|
b1c0ab74d7 | ||
|
|
faee01cde2 | ||
|
|
6f456437f7 | ||
|
|
1b0fd94a8c | ||
|
|
268d04841f | ||
|
|
9408ac5d9f | ||
|
|
45d2b6206e | ||
|
|
a943fdcc5a | ||
|
|
06e02f0b0f | ||
|
|
5b29dc66a9 | ||
|
|
5187916fd3 | ||
|
|
d6e444c6e9 | ||
|
|
59f4ef1091 | ||
|
|
bab1b3e9df | ||
|
|
4e8cbdc93b | ||
|
|
d3e5c5b335 | ||
|
|
2b4b38ddc6 | ||
|
|
d3e6d775e8 | ||
|
|
ecf3b57679 | ||
|
|
115981ecc6 | ||
|
|
009f297f59 | ||
|
|
f539fb1acf | ||
|
|
297e1e79c2 | ||
|
|
d8a95d9d48 | ||
|
|
1d8e87981b | ||
|
|
5c97f9c89a | ||
|
|
a3b02d775c | ||
|
|
a83b01b0f4 | ||
|
|
4be1d76869 | ||
|
|
15a6924894 | ||
|
|
fdeef6504c | ||
|
|
00ce3466fd | ||
|
|
ee3013499d | ||
|
|
0f966d036b | ||
|
|
2c09e625fb | ||
|
|
8908796b44 | ||
|
|
a01fd67565 | ||
|
|
07fe173487 | ||
|
|
e9e63e66a5 | ||
|
|
6cbfb6dd48 | ||
|
|
e1f4c0a1ca | ||
|
|
5a6b912037 | ||
|
|
996324829d | ||
|
|
e6e556f9af | ||
|
|
0318b99aa7 | ||
|
|
bb79ba3ca5 | ||
|
|
57679fdc40 | ||
|
|
01c80d1f8b | ||
|
|
76d69219f8 | ||
|
|
1b0761a36d | ||
|
|
b519507600 | ||
|
|
cdb7077b91 | ||
|
|
55639e3cf2 | ||
|
|
088ee5dc34 | ||
|
|
20d8374edc | ||
|
|
265b90251d | ||
|
|
49d833eee7 | ||
|
|
98f4e0dd7f | ||
|
|
4ec1a947bc | ||
|
|
dfe825ebec | ||
|
|
4f24e0a2dc | ||
|
|
ed57ab52c8 | ||
|
|
0d3c3c5e35 | ||
|
|
333acb7911 | ||
|
|
056b363b7b | ||
|
|
693e89c635 | ||
|
|
d95a7f7982 | ||
|
|
2f72fee1aa | ||
|
|
59ffa6c357 | ||
|
|
1eea1b4402 | ||
|
|
c936d0df49 | ||
|
|
41dd6b2b69 | ||
|
|
524ef19991 | ||
|
|
3312f7db8c | ||
|
|
49ea6e39cf | ||
|
|
4c15ddc35c | ||
|
|
1a7c8f088d | ||
|
|
1d6af0c540 | ||
|
|
261130aa6f | ||
|
|
98526fcd0b | ||
|
|
64d1e70d33 | ||
|
|
71473f3804 | ||
|
|
f360ee172f | ||
|
|
4940f32fbf | ||
|
|
b025af8d07 | ||
|
|
6418ab7cbe | ||
|
|
30edf0efcf | ||
|
|
37b02b13fa | ||
|
|
05453e92ea | ||
|
|
4c3b830788 | ||
|
|
0c706f2e5b | ||
|
|
5ebe02fb89 | ||
|
|
3b8bf99e79 | ||
|
|
916c3d4db8 | ||
|
|
b1e89424dc | ||
|
|
9d2af821d1 | ||
|
|
e9eee27932 | ||
|
|
4d23dce932 | ||
|
|
7277097d59 | ||
|
|
d6bc1f407b | ||
|
|
f002c83cbd | ||
|
|
afcd63805b | ||
|
|
f5cca4f3fb | ||
|
|
ad2048a72c | ||
|
|
e1ceb8b6af | ||
|
|
a3ce7ba3ad | ||
|
|
41f3845f63 | ||
|
|
86434d3919 | ||
|
|
75efd9a733 | ||
|
|
f5b691d68b | ||
|
|
e9bf7bb547 | ||
|
|
c6b726eb63 | ||
|
|
42638e3df6 | ||
|
|
33a3c7645e | ||
|
|
86a0a8d19a | ||
|
|
a1da4a7ef3 | ||
|
|
ecfb7bb188 | ||
|
|
bf2047e1d6 | ||
|
|
09dc0e4c15 | ||
|
|
eed5bcda30 | ||
|
|
d35c9887f6 | ||
|
|
7eb98c9d4b | ||
|
|
bc0d89573e | ||
|
|
67c8fc7dbd | ||
|
|
d472948201 | ||
|
|
3d44f6000d | ||
|
|
9b2d001c3c | ||
|
|
74ae9ee040 | ||
|
|
d1e455f038 | ||
|
|
7d49fa98e7 | ||
|
|
db59441d11 | ||
|
|
5da8afeb7d | ||
|
|
7575d7f271 | ||
|
|
7830502987 | ||
|
|
a3decdf9ad | ||
|
|
051ece8358 | ||
|
|
92da7fc877 | ||
|
|
727d9ce781 | ||
|
|
94cee771bd | ||
|
|
73db115f02 | ||
|
|
c8aab06d77 | ||
|
|
be80003860 | ||
|
|
639c024e7e | ||
|
|
8dc1e9f6b5 | ||
|
|
a2a4d9ac16 | ||
|
|
60de179f74 | ||
|
|
518f384b99 | ||
|
|
a83598676b | ||
|
|
59ddfe1d05 | ||
|
|
d6def93b4e | ||
|
|
65d95f4616 | ||
|
|
b858f5dc01 | ||
|
|
648dbe7031 | ||
|
|
7b57c73d2a | ||
|
|
9c2ec91100 | ||
|
|
c5769d5a81 | ||
|
|
d3d5f62801 | ||
|
|
bf8146d509 | ||
|
|
fad5e7e238 | ||
|
|
af79b22f71 | ||
|
|
a31afef298 | ||
|
|
6096876894 | ||
|
|
0fe3d79103 | ||
|
|
8b0ae9d61a | ||
|
|
4489b46200 | ||
|
|
1240e8e353 | ||
|
|
74fa400237 | ||
|
|
cc7fe900d2 | ||
|
|
aab416e62b | ||
|
|
d924c292bc | ||
|
|
a251fbfcc6 | ||
|
|
5bea05ee15 | ||
|
|
21c7eee893 | ||
|
|
c9a5e12352 | ||
|
|
956140c6db | ||
|
|
fde0b3e412 | ||
|
|
2e8ba7a185 | ||
|
|
cc27988681 | ||
|
|
590af0c276 | ||
|
|
32fe6b2f77 | ||
|
|
9f5607016d | ||
|
|
2e6ecdf02d | ||
|
|
ef6cb69fb0 | ||
|
|
71504af6b2 | ||
|
|
a3ca084444 | ||
|
|
35082be6cd | ||
|
|
934ddb1bfe | ||
|
|
5d0a1d8fb2 |
76
.github/workflows/android.yml
vendored
76
.github/workflows/android.yml
vendored
@@ -30,39 +30,45 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
api-level: [ 21, 34 ]
|
flavor: [Foss, Gplay]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.1.7
|
- uses: actions/checkout@v4.2.2
|
||||||
- name: Fail on bad translations
|
- name: Fail on bad translations
|
||||||
run: if grep -ri "<xliff" app/src/main/res/values*/strings.xml; then echo "Invalidly escaped translations found"; exit 1; fi
|
run: if grep -ri "<xliff" app/src/main/res/values*/strings.xml; then echo "Invalidly escaped translations found"; exit 1; fi
|
||||||
- uses: gradle/actions/wrapper-validation@v4
|
- uses: gradle/actions/wrapper-validation@v4
|
||||||
- name: set up OpenJDK 17
|
- name: set up OpenJDK 17
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y openjdk-17-jdk-headless
|
sudo apt-get install -y openjdk-17-jdk-headless
|
||||||
sudo update-alternatives --auto java
|
sudo update-alternatives --auto java
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ./gradlew assembleRelease
|
run: ./gradlew assemble${{ matrix.flavor }}Release
|
||||||
- name: Check lint
|
- name: Check lint
|
||||||
run: ./gradlew lintRelease
|
run: ./gradlew lint${{ matrix.flavor }}Release
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: timeout 5m ./gradlew testReleaseUnitTest || { ./gradlew --stop && timeout 5m ./gradlew testReleaseUnitTest; }
|
run: timeout 5m ./gradlew test${{ matrix.flavor }}ReleaseUnitTest || { ./gradlew --stop && timeout 5m ./gradlew test${{ matrix.flavor }}ReleaseUnitTest; }
|
||||||
- name: Enable KVM
|
- name: Enable KVM
|
||||||
run: |
|
run: |
|
||||||
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
|
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
|
||||||
sudo udevadm control --reload-rules
|
sudo udevadm control --reload-rules
|
||||||
sudo udevadm trigger --name-match=kvm
|
sudo udevadm trigger --name-match=kvm
|
||||||
- name: Run instrumented tests
|
- name: Run instrumented tests (API 21)
|
||||||
uses: ReactiveCircus/android-emulator-runner@v2
|
uses: ReactiveCircus/android-emulator-runner@v2
|
||||||
with:
|
with:
|
||||||
api-level: ${{ matrix.api-level }}
|
api-level: 21
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
script: ./gradlew connectedCheck
|
script: ./gradlew connected${{ matrix.flavor }}DebugAndroidTest
|
||||||
- name: SpotBugs
|
- name: Run instrumented tests (API 35)
|
||||||
run: ./gradlew spotbugsRelease
|
uses: ReactiveCircus/android-emulator-runner@v2
|
||||||
- name: Archive test results
|
with:
|
||||||
if: always()
|
api-level: 35
|
||||||
uses: actions/upload-artifact@v4.3.6
|
arch: x86_64
|
||||||
with:
|
script: ./gradlew connected${{ matrix.flavor }}DebugAndroidTest
|
||||||
name: test-results-api${{ matrix.api-level }}
|
- name: SpotBugs
|
||||||
path: app/build/reports
|
run: ./gradlew spotbugs${{ matrix.flavor }}Release
|
||||||
|
- name: Archive test results
|
||||||
|
if: always()
|
||||||
|
uses: actions/upload-artifact@v4.6.2
|
||||||
|
with:
|
||||||
|
name: test-results-flavor${{ matrix.flavor }}
|
||||||
|
path: app/build/reports
|
||||||
|
|||||||
6
.github/workflows/changelog-to-fastlane.yml
vendored
6
.github/workflows/changelog-to-fastlane.yml
vendored
@@ -27,15 +27,15 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
id: checkout
|
id: checkout
|
||||||
uses: actions/checkout@v4.1.7
|
uses: actions/checkout@v4.2.2
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v5.1.1
|
uses: actions/setup-python@v5.6.0
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
- name: Run converter script
|
- name: Run converter script
|
||||||
run: python .scripts/changelog_to_fastlane.py
|
run: python .scripts/changelog_to_fastlane.py
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v6.1.0
|
uses: peter-evans/create-pull-request@v7.0.8
|
||||||
with:
|
with:
|
||||||
title: "Update Fastlane changelogs"
|
title: "Update Fastlane changelogs"
|
||||||
commit-message: "Update Fastlane changelogs"
|
commit-message: "Update Fastlane changelogs"
|
||||||
|
|||||||
4
.github/workflows/contributors-to-file.yml
vendored
4
.github/workflows/contributors-to-file.yml
vendored
@@ -25,7 +25,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
id: checkout
|
id: checkout
|
||||||
uses: actions/checkout@v4.1.7
|
uses: actions/checkout@v4.2.2
|
||||||
- name: Update contributors
|
- name: Update contributors
|
||||||
id: update_contributors
|
id: update_contributors
|
||||||
uses: TheLastProject/contributors-to-file-action@v3.2.0
|
uses: TheLastProject/contributors-to-file-action@v3.2.0
|
||||||
@@ -33,7 +33,7 @@ jobs:
|
|||||||
file_in_repo: app/src/main/res/raw/contributors.txt
|
file_in_repo: app/src/main/res/raw/contributors.txt
|
||||||
min_commit_count: 5
|
min_commit_count: 5
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v6.1.0
|
uses: peter-evans/create-pull-request@v7.0.8
|
||||||
with:
|
with:
|
||||||
title: "Update contributors"
|
title: "Update contributors"
|
||||||
commit-message: "Update contributors"
|
commit-message: "Update contributors"
|
||||||
|
|||||||
@@ -25,11 +25,11 @@ jobs:
|
|||||||
generate-feature-graphic:
|
generate-feature-graphic:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.1.7
|
- uses: actions/checkout@v4.2.2
|
||||||
- name: Install requirements
|
- name: Install requirements
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install optipng mat2
|
sudo apt-get install inkscape mat2 optipng xvfb
|
||||||
# Install 200 weight versions of relevant Noto (to use for languages not supported by Lexend Deca)
|
# Install 200 weight versions of relevant Noto (to use for languages not supported by Lexend Deca)
|
||||||
sudo apt-get install fonts-noto-extra fonts-noto-cjk-extra
|
sudo apt-get install fonts-noto-extra fonts-noto-cjk-extra
|
||||||
# Custom fonts
|
# Custom fonts
|
||||||
@@ -39,7 +39,7 @@ jobs:
|
|||||||
- name: Generate featureGraphic.png for each language
|
- name: Generate featureGraphic.png for each language
|
||||||
run: .scripts/generate_feature_graphic/generate_feature_graphic.sh
|
run: .scripts/generate_feature_graphic/generate_feature_graphic.sh
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v6.1.0
|
uses: peter-evans/create-pull-request@v7.0.8
|
||||||
with:
|
with:
|
||||||
title: "Update feature graphic"
|
title: "Update feature graphic"
|
||||||
commit-message: "Update feature graphic"
|
commit-message: "Update feature graphic"
|
||||||
|
|||||||
4
.github/workflows/gradle-update.yml
vendored
4
.github/workflows/gradle-update.yml
vendored
@@ -21,12 +21,12 @@ jobs:
|
|||||||
gradle-update:
|
gradle-update:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.1.7
|
- uses: actions/checkout@v4.2.2
|
||||||
- uses: obfusk/gradle-update-action@v3.0.0
|
- uses: obfusk/gradle-update-action@v3.0.0
|
||||||
id: gradle-update
|
id: gradle-update
|
||||||
- uses: gradle/actions/wrapper-validation@v4
|
- uses: gradle/actions/wrapper-validation@v4
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v6.1.0
|
uses: peter-evans/create-pull-request@v7.0.8
|
||||||
with:
|
with:
|
||||||
title: "Update Gradle to ${{ steps.gradle-update.outputs.version }}"
|
title: "Update Gradle to ${{ steps.gradle-update.outputs.version }}"
|
||||||
commit-message: "Update Gradle to ${{ steps.gradle-update.outputs.version }}"
|
commit-message: "Update Gradle to ${{ steps.gradle-update.outputs.version }}"
|
||||||
|
|||||||
4
.github/workflows/update-locales.yml
vendored
4
.github/workflows/update-locales.yml
vendored
@@ -25,13 +25,13 @@ jobs:
|
|||||||
update-locales:
|
update-locales:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.1.7
|
- uses: actions/checkout@v4.2.2
|
||||||
- name: Add new locales
|
- name: Add new locales
|
||||||
run: .scripts/new-locales.py
|
run: .scripts/new-locales.py
|
||||||
- name: Update locales
|
- name: Update locales
|
||||||
run: .scripts/locales.py
|
run: .scripts/locales.py
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v6.1.0
|
uses: peter-evans/create-pull-request@v7.0.8
|
||||||
with:
|
with:
|
||||||
title: "Update locales"
|
title: "Update locales"
|
||||||
commit-message: "Update locales"
|
commit-message: "Update locales"
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -25,3 +25,6 @@
|
|||||||
/.bundle/
|
/.bundle/
|
||||||
/vendor/bundle
|
/vendor/bundle
|
||||||
/lib/bundler/man/
|
/lib/bundler/man/
|
||||||
|
|
||||||
|
# Catima-specific
|
||||||
|
SHA256SUMS
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<svg width="1024" height="500" viewBox="0 0 1024 500" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg width="1024" height="500" viewBox="0 0 1024 500" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<rect width="1024" height="500" fill="#223355"/>
|
<rect width="1024" height="500" fill="#223355"/>
|
||||||
<text fill="white" xml:space="preserve" style="" font-family="Yesteryear" font-size="150" letter-spacing="0em"><tspan x="470.082" y="285.511">Catima
|
<text direction="ltr" fill="white" xml:space="preserve" style="" font-family="Yesteryear" font-size="150" letter-spacing="0em"><tspan x="470.082" y="285.511">Catima
|
||||||
</tspan></text>
|
</tspan></text>
|
||||||
<path d="M381.046 147.001L236.3 211.446L276.524 301.79L421.27 237.345L381.046 147.001Z" fill="#F0F0F0" stroke="#C80000" stroke-width="2"/>
|
<path d="M381.046 147.001L236.3 211.446L276.524 301.79L421.27 237.345L381.046 147.001Z" fill="#F0F0F0" stroke="#C80000" stroke-width="2"/>
|
||||||
<path d="M402.077 219.13L240.07 147L191.984 255.004L353.99 327.135L402.077 219.13Z" fill="#F0F0F0" stroke="#C80000" stroke-width="2"/>
|
<path d="M402.077 219.13L240.07 147L191.984 255.004L353.99 327.135L402.077 219.13Z" fill="#F0F0F0" stroke="#C80000" stroke-width="2"/>
|
||||||
@@ -11,5 +11,5 @@
|
|||||||
<path d="M330.301 254.298C329.363 256.875 327.547 259.04 325.171 260.411C322.796 261.783 320.013 262.273 317.312 261.797C314.61 261.321 312.163 259.908 310.4 257.807C308.637 255.706 307.671 253.05 307.671 250.307" stroke="#F0F0F0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
<path d="M330.301 254.298C329.363 256.875 327.547 259.04 325.171 260.411C322.796 261.783 320.013 262.273 317.312 261.797C314.61 261.321 312.163 259.908 310.4 257.807C308.637 255.706 307.671 253.05 307.671 250.307" stroke="#F0F0F0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
<path d="M248.345 225.937L266.818 207.465L285.29 225.937" stroke="#F0F0F0" stroke-width="2"/>
|
<path d="M248.345 225.937L266.818 207.465L285.29 225.937" stroke="#F0F0F0" stroke-width="2"/>
|
||||||
<path d="M329.625 225.937L348.098 207.465L366.571 225.937" stroke="#F0F0F0" stroke-width="2"/>
|
<path d="M329.625 225.937L348.098 207.465L366.571 225.937" stroke="#F0F0F0" stroke-width="2"/>
|
||||||
<text fill="white" xml:space="preserve" style="" font-family="Lexend Deca" font-size="35" font-weight="200" letter-spacing="0em"><tspan x="466" y="340">Loyalty Card Wallet</tspan></text>
|
<text direction="ltr" fill="white" xml:space="preserve" style="" font-family="Lexend Deca" font-size="35" font-weight="200" letter-spacing="0em"><tspan x="466" y="340">Loyalty Card Wallet</tspan></text>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
@@ -4,6 +4,11 @@ set -euo pipefail
|
|||||||
script_location="$(dirname "$(readlink -f "$0")")"
|
script_location="$(dirname "$(readlink -f "$0")")"
|
||||||
|
|
||||||
for lang in "$script_location/../../fastlane/metadata/android/"*; do
|
for lang in "$script_location/../../fastlane/metadata/android/"*; do
|
||||||
|
# Skip languages without title.txt
|
||||||
|
if [ ! -f "$lang/title.txt" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
pushd "$lang"
|
pushd "$lang"
|
||||||
# Place temporary copy for editing if needed
|
# Place temporary copy for editing if needed
|
||||||
cp "$script_location/featureGraphic.svg" featureGraphic.svg
|
cp "$script_location/featureGraphic.svg" featureGraphic.svg
|
||||||
@@ -32,19 +37,20 @@ for lang in "$script_location/../../fastlane/metadata/android/"*; do
|
|||||||
# We specifically need the Serif version because of the 200 weight
|
# We specifically need the Serif version because of the 200 weight
|
||||||
case "$(basename "$lang")" in
|
case "$(basename "$lang")" in
|
||||||
bg|el-GR|ru-RU|uk) sed -i "s/Lexend Deca/Noto Serif/" featureGraphic.svg ;;
|
bg|el-GR|ru-RU|uk) sed -i "s/Lexend Deca/Noto Serif/" featureGraphic.svg ;;
|
||||||
hi-IN) sed -i -e "s/Yesteryear/Noto Serif Devanagari/" -e "s/Lexend Deca/Noto Serif Devanagari/" featureGraphic.svg ;;
|
fa-IR) sed -i -e 's/svg direction="ltr"/svg direction="rtl"/' -e "s/Yesteryear/Noto Sans Arabic/" -e "s/Lexend Deca/Noto Sans Arabic/" featureGraphic.svg ;;
|
||||||
|
hi-IN) sed -i -e "s/Yesteryear/Noto Sans Devanagari/" -e "s/Lexend Deca/Noto Serif Devanagari/" featureGraphic.svg ;;
|
||||||
ja-JP) sed -i "s/Lexend Deca/Noto Serif CJK JP/" featureGraphic.svg ;;
|
ja-JP) sed -i "s/Lexend Deca/Noto Serif CJK JP/" featureGraphic.svg ;;
|
||||||
kn-IN) sed -i -e 's/font-size="150"/font-size="100"/' -e "s/Yesteryear/Noto Serif Kannada/" featureGraphic.svg ;;
|
kn-IN) sed -i -e 's/font-size="150"/font-size="100"/' -e "s/Yesteryear/Noto Serif Kannada/" featureGraphic.svg ;;
|
||||||
ko) sed -i "s/Lexend Deca/Noto Serif CJK KR/" featureGraphic.svg ;;
|
ko) sed -i "s/Lexend Deca/Noto Serif CJK KR/" featureGraphic.svg ;;
|
||||||
zh-CN) sed -i "s/Lexend Deca/Noto Serif CJK SC/" featureGraphic.svg ;;
|
zh-CN) sed -i "s/Lexend Deca/Noto Serif CJK SC/" featureGraphic.svg ;;
|
||||||
zh-TW) sed -i "s/Lexend Deca/Noto Serif CJK TC/" featureGraphic.svg ;;
|
zh-TW) sed -i -e "s/Yesteryear/Noto Sans CJK TC/" -e "s/Lexend Deca/Noto Serif CJK TC/" featureGraphic.svg ;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
# Ensure images directory exists
|
# Ensure images directory exists
|
||||||
mkdir -p images
|
mkdir -p images
|
||||||
# Generate .png
|
# Generate .png (we use Inkscape because ImageMagick ignores RTL)
|
||||||
convert featureGraphic.svg images/featureGraphic.png
|
xvfb-run inkscape --export-filename=images/featureGraphic.png featureGraphic.svg
|
||||||
# Optimize .png
|
# Optimize .png
|
||||||
optipng images/featureGraphic.png
|
optipng images/featureGraphic.png
|
||||||
# Remove metadata (timestamps) from .png
|
# Remove metadata (timestamps) from .png
|
||||||
|
|||||||
55
CHANGELOG.md
55
CHANGELOG.md
@@ -1,5 +1,60 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Unreleased - 148
|
||||||
|
|
||||||
|
- Add ability to choose barcode width in fullscreen view
|
||||||
|
- Remove confusing import from app function
|
||||||
|
- Various scanning fixes
|
||||||
|
- Fix crash when loading a pkpass file without barcode
|
||||||
|
|
||||||
|
## v2.34.5 - 147 (2025-03-22)
|
||||||
|
|
||||||
|
- Target Android 15
|
||||||
|
- Fix crash reading unsupported pkpass files
|
||||||
|
- Improve pkpass support
|
||||||
|
|
||||||
|
## v2.34.4 - 146 (2025-01-17)
|
||||||
|
|
||||||
|
- Ability to sort cards by start of validity
|
||||||
|
- Temporarily revert to targeting Android 14 to fix some UI issues
|
||||||
|
|
||||||
|
## v2.34.3 - 145 (2025-01-15)
|
||||||
|
|
||||||
|
- Target Android 15
|
||||||
|
- Fix keyboard covering save button in edit screen
|
||||||
|
- Fix some pkpass files not being detected as pkpass (application/vnd-com.apple.pkpass mime type support)
|
||||||
|
|
||||||
|
## v2.34.2 - 144 (2024-12-26)
|
||||||
|
|
||||||
|
- Improve archive/starred icon display
|
||||||
|
|
||||||
|
## v2.34.1 - 143 (2024-12-12)
|
||||||
|
|
||||||
|
- Fix crash when opening invalid pkpass files
|
||||||
|
|
||||||
|
## v2.34.0 - 142 (2024-12-10)
|
||||||
|
|
||||||
|
- Add Passbook (.pkpass) support
|
||||||
|
- Fix import of transparent PDF files
|
||||||
|
- Improve display of transparent thumbnails
|
||||||
|
|
||||||
|
## v2.33.0 - 141 (2024-11-19)
|
||||||
|
|
||||||
|
- Change default column on wide screens to 4
|
||||||
|
- Allow overriding column counts for portrait and landscape in settings
|
||||||
|
- Keep main screen search filter when rotating screen or opening a card
|
||||||
|
- Limit max length of note display on main screen
|
||||||
|
|
||||||
|
## v2.32.1 - 140 (2024-10-29)
|
||||||
|
|
||||||
|
- Fix text wrapping on add dialog
|
||||||
|
|
||||||
|
## v2.32.0 - 139 (2024-10-28)
|
||||||
|
|
||||||
|
- Option to navigate cards using the volume buttons
|
||||||
|
- Fix Stocard import
|
||||||
|
- Fix "Import cancelled" message appearing after successful import
|
||||||
|
|
||||||
## v2.31.1 - 138 (2024-08-24)
|
## v2.31.1 - 138 (2024-08-24)
|
||||||
|
|
||||||
- Fix back gesture on main screen dismissing keyboard and search on Android 13+
|
- Fix back gesture on main screen dismissing keyboard and search on Android 13+
|
||||||
|
|||||||
128
CODE_OF_CONDUCT.md
Normal file
128
CODE_OF_CONDUCT.md
Normal file
@@ -0,0 +1,128 @@
|
|||||||
|
# Contributor Covenant Code of Conduct
|
||||||
|
|
||||||
|
## Our Pledge
|
||||||
|
|
||||||
|
We as members, contributors, and leaders pledge to make participation in our
|
||||||
|
community a harassment-free experience for everyone, regardless of age, body
|
||||||
|
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
||||||
|
identity and expression, level of experience, education, socio-economic status,
|
||||||
|
nationality, personal appearance, race, religion, or sexual identity
|
||||||
|
and orientation.
|
||||||
|
|
||||||
|
We pledge to act and interact in ways that contribute to an open, welcoming,
|
||||||
|
diverse, inclusive, and healthy community.
|
||||||
|
|
||||||
|
## Our Standards
|
||||||
|
|
||||||
|
Examples of behavior that contributes to a positive environment for our
|
||||||
|
community include:
|
||||||
|
|
||||||
|
* Demonstrating empathy and kindness toward other people
|
||||||
|
* Being respectful of differing opinions, viewpoints, and experiences
|
||||||
|
* Giving and gracefully accepting constructive feedback
|
||||||
|
* Accepting responsibility and apologizing to those affected by our mistakes,
|
||||||
|
and learning from the experience
|
||||||
|
* Focusing on what is best not just for us as individuals, but for the
|
||||||
|
overall community
|
||||||
|
|
||||||
|
Examples of unacceptable behavior include:
|
||||||
|
|
||||||
|
* The use of sexualized language or imagery, and sexual attention or
|
||||||
|
advances of any kind
|
||||||
|
* Trolling, insulting or derogatory comments, and personal or political attacks
|
||||||
|
* Public or private harassment
|
||||||
|
* Publishing others' private information, such as a physical or email
|
||||||
|
address, without their explicit permission
|
||||||
|
* Other conduct which could reasonably be considered inappropriate in a
|
||||||
|
professional setting
|
||||||
|
|
||||||
|
## Enforcement Responsibilities
|
||||||
|
|
||||||
|
Community leaders are responsible for clarifying and enforcing our standards of
|
||||||
|
acceptable behavior and will take appropriate and fair corrective action in
|
||||||
|
response to any behavior that they deem inappropriate, threatening, offensive,
|
||||||
|
or harmful.
|
||||||
|
|
||||||
|
Community leaders have the right and responsibility to remove, edit, or reject
|
||||||
|
comments, commits, code, wiki edits, issues, and other contributions that are
|
||||||
|
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
||||||
|
decisions when appropriate.
|
||||||
|
|
||||||
|
## Scope
|
||||||
|
|
||||||
|
This Code of Conduct applies within all community spaces, and also applies when
|
||||||
|
an individual is officially representing the community in public spaces.
|
||||||
|
Examples of representing our community include using an official e-mail address,
|
||||||
|
posting via an official social media account, or acting as an appointed
|
||||||
|
representative at an online or offline event.
|
||||||
|
|
||||||
|
## Enforcement
|
||||||
|
|
||||||
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||||
|
reported to the community leaders responsible for enforcement at
|
||||||
|
catima.g9ex3@hackerchick.me.
|
||||||
|
All complaints will be reviewed and investigated promptly and fairly.
|
||||||
|
|
||||||
|
All community leaders are obligated to respect the privacy and security of the
|
||||||
|
reporter of any incident.
|
||||||
|
|
||||||
|
## Enforcement Guidelines
|
||||||
|
|
||||||
|
Community leaders will follow these Community Impact Guidelines in determining
|
||||||
|
the consequences for any action they deem in violation of this Code of Conduct:
|
||||||
|
|
||||||
|
### 1. Correction
|
||||||
|
|
||||||
|
**Community Impact**: Use of inappropriate language or other behavior deemed
|
||||||
|
unprofessional or unwelcome in the community.
|
||||||
|
|
||||||
|
**Consequence**: A private, written warning from community leaders, providing
|
||||||
|
clarity around the nature of the violation and an explanation of why the
|
||||||
|
behavior was inappropriate. A public apology may be requested.
|
||||||
|
|
||||||
|
### 2. Warning
|
||||||
|
|
||||||
|
**Community Impact**: A violation through a single incident or series
|
||||||
|
of actions.
|
||||||
|
|
||||||
|
**Consequence**: A warning with consequences for continued behavior. No
|
||||||
|
interaction with the people involved, including unsolicited interaction with
|
||||||
|
those enforcing the Code of Conduct, for a specified period of time. This
|
||||||
|
includes avoiding interactions in community spaces as well as external channels
|
||||||
|
like social media. Violating these terms may lead to a temporary or
|
||||||
|
permanent ban.
|
||||||
|
|
||||||
|
### 3. Temporary Ban
|
||||||
|
|
||||||
|
**Community Impact**: A serious violation of community standards, including
|
||||||
|
sustained inappropriate behavior.
|
||||||
|
|
||||||
|
**Consequence**: A temporary ban from any sort of interaction or public
|
||||||
|
communication with the community for a specified period of time. No public or
|
||||||
|
private interaction with the people involved, including unsolicited interaction
|
||||||
|
with those enforcing the Code of Conduct, is allowed during this period.
|
||||||
|
Violating these terms may lead to a permanent ban.
|
||||||
|
|
||||||
|
### 4. Permanent Ban
|
||||||
|
|
||||||
|
**Community Impact**: Demonstrating a pattern of violation of community
|
||||||
|
standards, including sustained inappropriate behavior, harassment of an
|
||||||
|
individual, or aggression toward or disparagement of classes of individuals.
|
||||||
|
|
||||||
|
**Consequence**: A permanent ban from any sort of public interaction within
|
||||||
|
the community.
|
||||||
|
|
||||||
|
## Attribution
|
||||||
|
|
||||||
|
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
||||||
|
version 2.0, available at
|
||||||
|
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
||||||
|
|
||||||
|
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
||||||
|
enforcement ladder](https://github.com/mozilla/diversity).
|
||||||
|
|
||||||
|
[homepage]: https://www.contributor-covenant.org
|
||||||
|
|
||||||
|
For answers to common questions about this code of conduct, see the FAQ at
|
||||||
|
https://www.contributor-covenant.org/faq. Translations are available at
|
||||||
|
https://www.contributor-covenant.org/translations.
|
||||||
85
Gemfile.lock
85
Gemfile.lock
@@ -9,21 +9,22 @@ GEM
|
|||||||
public_suffix (>= 2.0.2, < 7.0)
|
public_suffix (>= 2.0.2, < 7.0)
|
||||||
artifactory (3.0.17)
|
artifactory (3.0.17)
|
||||||
atomos (0.1.3)
|
atomos (0.1.3)
|
||||||
aws-eventstream (1.3.0)
|
aws-eventstream (1.3.2)
|
||||||
aws-partitions (1.958.0)
|
aws-partitions (1.1072.0)
|
||||||
aws-sdk-core (3.201.3)
|
aws-sdk-core (3.220.2)
|
||||||
aws-eventstream (~> 1, >= 1.3.0)
|
aws-eventstream (~> 1, >= 1.3.0)
|
||||||
aws-partitions (~> 1, >= 1.651.0)
|
aws-partitions (~> 1, >= 1.992.0)
|
||||||
aws-sigv4 (~> 1.8)
|
aws-sigv4 (~> 1.9)
|
||||||
|
base64
|
||||||
jmespath (~> 1, >= 1.6.1)
|
jmespath (~> 1, >= 1.6.1)
|
||||||
aws-sdk-kms (1.88.0)
|
aws-sdk-kms (1.99.0)
|
||||||
aws-sdk-core (~> 3, >= 3.201.0)
|
aws-sdk-core (~> 3, >= 3.216.0)
|
||||||
aws-sigv4 (~> 1.5)
|
aws-sigv4 (~> 1.5)
|
||||||
aws-sdk-s3 (1.156.0)
|
aws-sdk-s3 (1.182.0)
|
||||||
aws-sdk-core (~> 3, >= 3.201.0)
|
aws-sdk-core (~> 3, >= 3.216.0)
|
||||||
aws-sdk-kms (~> 1)
|
aws-sdk-kms (~> 1)
|
||||||
aws-sigv4 (~> 1.5)
|
aws-sigv4 (~> 1.5)
|
||||||
aws-sigv4 (1.9.0)
|
aws-sigv4 (1.11.0)
|
||||||
aws-eventstream (~> 1, >= 1.0.2)
|
aws-eventstream (~> 1, >= 1.0.2)
|
||||||
babosa (1.0.4)
|
babosa (1.0.4)
|
||||||
base64 (0.2.0)
|
base64 (0.2.0)
|
||||||
@@ -33,13 +34,13 @@ GEM
|
|||||||
commander (4.6.0)
|
commander (4.6.0)
|
||||||
highline (~> 2.0.0)
|
highline (~> 2.0.0)
|
||||||
declarative (0.0.20)
|
declarative (0.0.20)
|
||||||
digest-crc (0.6.5)
|
digest-crc (0.7.0)
|
||||||
rake (>= 12.0.0, < 14.0.0)
|
rake (>= 12.0.0, < 14.0.0)
|
||||||
domain_name (0.6.20240107)
|
domain_name (0.6.20240107)
|
||||||
dotenv (2.8.1)
|
dotenv (2.8.1)
|
||||||
emoji_regex (3.2.3)
|
emoji_regex (3.2.3)
|
||||||
excon (0.111.0)
|
excon (0.112.0)
|
||||||
faraday (1.10.3)
|
faraday (1.10.4)
|
||||||
faraday-em_http (~> 1.0)
|
faraday-em_http (~> 1.0)
|
||||||
faraday-em_synchrony (~> 1.0)
|
faraday-em_synchrony (~> 1.0)
|
||||||
faraday-excon (~> 1.1)
|
faraday-excon (~> 1.1)
|
||||||
@@ -58,17 +59,17 @@ GEM
|
|||||||
faraday-em_synchrony (1.0.0)
|
faraday-em_synchrony (1.0.0)
|
||||||
faraday-excon (1.1.0)
|
faraday-excon (1.1.0)
|
||||||
faraday-httpclient (1.0.1)
|
faraday-httpclient (1.0.1)
|
||||||
faraday-multipart (1.0.4)
|
faraday-multipart (1.1.0)
|
||||||
multipart-post (~> 2)
|
multipart-post (~> 2.0)
|
||||||
faraday-net_http (1.0.2)
|
faraday-net_http (1.0.2)
|
||||||
faraday-net_http_persistent (1.2.0)
|
faraday-net_http_persistent (1.2.0)
|
||||||
faraday-patron (1.0.0)
|
faraday-patron (1.0.0)
|
||||||
faraday-rack (1.0.0)
|
faraday-rack (1.0.0)
|
||||||
faraday-retry (1.0.3)
|
faraday-retry (1.0.3)
|
||||||
faraday_middleware (1.2.0)
|
faraday_middleware (1.2.1)
|
||||||
faraday (~> 1.0)
|
faraday (~> 1.0)
|
||||||
fastimage (2.3.1)
|
fastimage (2.4.0)
|
||||||
fastlane (2.222.0)
|
fastlane (2.227.0)
|
||||||
CFPropertyList (>= 2.3, < 4.0.0)
|
CFPropertyList (>= 2.3, < 4.0.0)
|
||||||
addressable (>= 2.8, < 3.0.0)
|
addressable (>= 2.8, < 3.0.0)
|
||||||
artifactory (~> 3.0)
|
artifactory (~> 3.0)
|
||||||
@@ -84,6 +85,7 @@ GEM
|
|||||||
faraday-cookie_jar (~> 0.0.6)
|
faraday-cookie_jar (~> 0.0.6)
|
||||||
faraday_middleware (~> 1.0)
|
faraday_middleware (~> 1.0)
|
||||||
fastimage (>= 2.1.0, < 3.0.0)
|
fastimage (>= 2.1.0, < 3.0.0)
|
||||||
|
fastlane-sirp (>= 1.0.0)
|
||||||
gh_inspector (>= 1.1.2, < 2.0.0)
|
gh_inspector (>= 1.1.2, < 2.0.0)
|
||||||
google-apis-androidpublisher_v3 (~> 0.3)
|
google-apis-androidpublisher_v3 (~> 0.3)
|
||||||
google-apis-playcustomapp_v1 (~> 0.1)
|
google-apis-playcustomapp_v1 (~> 0.1)
|
||||||
@@ -107,8 +109,10 @@ GEM
|
|||||||
tty-spinner (>= 0.8.0, < 1.0.0)
|
tty-spinner (>= 0.8.0, < 1.0.0)
|
||||||
word_wrap (~> 1.0.0)
|
word_wrap (~> 1.0.0)
|
||||||
xcodeproj (>= 1.13.0, < 2.0.0)
|
xcodeproj (>= 1.13.0, < 2.0.0)
|
||||||
xcpretty (~> 0.3.0)
|
xcpretty (~> 0.4.0)
|
||||||
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
|
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
|
||||||
|
fastlane-sirp (1.0.0)
|
||||||
|
sysrandom (~> 1.0)
|
||||||
gh_inspector (1.1.3)
|
gh_inspector (1.1.3)
|
||||||
google-apis-androidpublisher_v3 (0.54.0)
|
google-apis-androidpublisher_v3 (0.54.0)
|
||||||
google-apis-core (>= 0.11.0, < 2.a)
|
google-apis-core (>= 0.11.0, < 2.a)
|
||||||
@@ -126,12 +130,12 @@ GEM
|
|||||||
google-apis-core (>= 0.11.0, < 2.a)
|
google-apis-core (>= 0.11.0, < 2.a)
|
||||||
google-apis-storage_v1 (0.31.0)
|
google-apis-storage_v1 (0.31.0)
|
||||||
google-apis-core (>= 0.11.0, < 2.a)
|
google-apis-core (>= 0.11.0, < 2.a)
|
||||||
google-cloud-core (1.7.0)
|
google-cloud-core (1.8.0)
|
||||||
google-cloud-env (>= 1.0, < 3.a)
|
google-cloud-env (>= 1.0, < 3.a)
|
||||||
google-cloud-errors (~> 1.0)
|
google-cloud-errors (~> 1.0)
|
||||||
google-cloud-env (1.6.0)
|
google-cloud-env (1.6.0)
|
||||||
faraday (>= 0.17.3, < 3.0)
|
faraday (>= 0.17.3, < 3.0)
|
||||||
google-cloud-errors (1.4.0)
|
google-cloud-errors (1.5.0)
|
||||||
google-cloud-storage (1.47.0)
|
google-cloud-storage (1.47.0)
|
||||||
addressable (~> 2.8)
|
addressable (~> 2.8)
|
||||||
digest-crc (~> 0.4)
|
digest-crc (~> 0.4)
|
||||||
@@ -147,23 +151,25 @@ GEM
|
|||||||
os (>= 0.9, < 2.0)
|
os (>= 0.9, < 2.0)
|
||||||
signet (>= 0.16, < 2.a)
|
signet (>= 0.16, < 2.a)
|
||||||
highline (2.0.3)
|
highline (2.0.3)
|
||||||
http-cookie (1.0.6)
|
http-cookie (1.0.8)
|
||||||
domain_name (~> 0.5)
|
domain_name (~> 0.5)
|
||||||
httpclient (2.8.3)
|
httpclient (2.9.0)
|
||||||
|
mutex_m
|
||||||
jmespath (1.6.2)
|
jmespath (1.6.2)
|
||||||
json (2.7.2)
|
json (2.10.2)
|
||||||
jwt (2.8.2)
|
jwt (2.10.1)
|
||||||
base64
|
base64
|
||||||
mini_magick (4.13.2)
|
mini_magick (4.13.2)
|
||||||
mini_mime (1.1.5)
|
mini_mime (1.1.5)
|
||||||
multi_json (1.15.0)
|
multi_json (1.15.0)
|
||||||
multipart-post (2.4.1)
|
multipart-post (2.4.1)
|
||||||
nanaimo (0.3.0)
|
mutex_m (0.3.0)
|
||||||
|
nanaimo (0.4.0)
|
||||||
naturally (2.2.1)
|
naturally (2.2.1)
|
||||||
nkf (0.2.0)
|
nkf (0.2.0)
|
||||||
optparse (0.5.0)
|
optparse (0.6.0)
|
||||||
os (1.1.4)
|
os (1.1.4)
|
||||||
plist (3.7.1)
|
plist (3.7.2)
|
||||||
public_suffix (6.0.1)
|
public_suffix (6.0.1)
|
||||||
rake (13.2.1)
|
rake (13.2.1)
|
||||||
representable (3.2.0)
|
representable (3.2.0)
|
||||||
@@ -171,11 +177,10 @@ GEM
|
|||||||
trailblazer-option (>= 0.1.1, < 0.2.0)
|
trailblazer-option (>= 0.1.1, < 0.2.0)
|
||||||
uber (< 0.2.0)
|
uber (< 0.2.0)
|
||||||
retriable (3.1.2)
|
retriable (3.1.2)
|
||||||
rexml (3.2.9)
|
rexml (3.4.1)
|
||||||
strscan
|
rouge (3.28.0)
|
||||||
rouge (2.0.7)
|
|
||||||
ruby2_keywords (0.0.5)
|
ruby2_keywords (0.0.5)
|
||||||
rubyzip (2.3.2)
|
rubyzip (2.4.1)
|
||||||
security (0.1.5)
|
security (0.1.5)
|
||||||
signet (0.19.0)
|
signet (0.19.0)
|
||||||
addressable (~> 2.8)
|
addressable (~> 2.8)
|
||||||
@@ -185,7 +190,7 @@ GEM
|
|||||||
simctl (1.6.10)
|
simctl (1.6.10)
|
||||||
CFPropertyList
|
CFPropertyList
|
||||||
naturally
|
naturally
|
||||||
strscan (3.1.0)
|
sysrandom (1.0.5)
|
||||||
terminal-notifier (2.0.0)
|
terminal-notifier (2.0.0)
|
||||||
terminal-table (3.0.2)
|
terminal-table (3.0.2)
|
||||||
unicode-display_width (>= 1.1.1, < 3)
|
unicode-display_width (>= 1.1.1, < 3)
|
||||||
@@ -195,17 +200,17 @@ GEM
|
|||||||
tty-spinner (0.9.3)
|
tty-spinner (0.9.3)
|
||||||
tty-cursor (~> 0.7)
|
tty-cursor (~> 0.7)
|
||||||
uber (0.1.0)
|
uber (0.1.0)
|
||||||
unicode-display_width (2.5.0)
|
unicode-display_width (2.6.0)
|
||||||
word_wrap (1.0.0)
|
word_wrap (1.0.0)
|
||||||
xcodeproj (1.24.0)
|
xcodeproj (1.27.0)
|
||||||
CFPropertyList (>= 2.3.3, < 4.0)
|
CFPropertyList (>= 2.3.3, < 4.0)
|
||||||
atomos (~> 0.1.3)
|
atomos (~> 0.1.3)
|
||||||
claide (>= 1.0.2, < 2.0)
|
claide (>= 1.0.2, < 2.0)
|
||||||
colored2 (~> 3.1)
|
colored2 (~> 3.1)
|
||||||
nanaimo (~> 0.3.0)
|
nanaimo (~> 0.4.0)
|
||||||
rexml (~> 3.2.4)
|
rexml (>= 3.3.6, < 4.0)
|
||||||
xcpretty (0.3.0)
|
xcpretty (0.4.0)
|
||||||
rouge (~> 2.0.7)
|
rouge (~> 3.28.0)
|
||||||
xcpretty-travis-formatter (1.0.1)
|
xcpretty-travis-formatter (1.0.1)
|
||||||
xcpretty (~> 0.2, >= 0.0.7)
|
xcpretty (~> 0.2, >= 0.0.7)
|
||||||
|
|
||||||
@@ -216,4 +221,4 @@ DEPENDENCIES
|
|||||||
fastlane
|
fastlane
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.5.11
|
2.5.22
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import com.github.spotbugs.snom.SpotBugsTask
|
|||||||
plugins {
|
plugins {
|
||||||
id("com.android.application")
|
id("com.android.application")
|
||||||
id("com.github.spotbugs")
|
id("com.github.spotbugs")
|
||||||
|
id("org.jetbrains.kotlin.android")
|
||||||
}
|
}
|
||||||
|
|
||||||
spotbugs {
|
spotbugs {
|
||||||
@@ -15,21 +16,24 @@ spotbugs {
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "protect.card_locker"
|
namespace = "protect.card_locker"
|
||||||
compileSdk = 34
|
compileSdk = 35
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId = "me.hackerchick.catima"
|
applicationId = "me.hackerchick.catima"
|
||||||
minSdk = 21
|
minSdk = 21
|
||||||
targetSdk = 34
|
targetSdk = 35
|
||||||
versionCode = 138
|
versionCode = 147
|
||||||
versionName = "2.31.1"
|
versionName = "2.34.5"
|
||||||
|
|
||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
multiDexEnabled = true
|
multiDexEnabled = true
|
||||||
|
|
||||||
resourceConfigurations += listOf("ar", "bg", "bn", "bn-rIN", "bs", "cs", "da", "de", "el-rGR", "en", "eo", "es", "es-rAR", "et", "fi", "fr", "he-rIL", "hi", "hr", "hu", "in-rID", "is", "it", "ja", "ko", "lt", "lv", "nb-rNO", "nl", "oc", "pl", "pt-rBR", "pt-rPT", "ro-rRO", "ru", "sk", "sl", "sr", "sv", "tr", "uk", "vi", "zh-rCN", "zh-rTW")
|
resourceConfigurations += listOf("ar", "be", "bg", "bn", "bn-rIN", "bs", "cs", "da", "de", "el-rGR", "en", "eo", "es", "es-rAR", "et", "fi", "fr", "gl", "he-rIL", "hi", "hr", "hu", "in-rID", "is", "it", "ja", "ko", "lt", "lv", "nb-rNO", "nl", "oc", "pl", "pt", "pt-rBR", "pt-rPT", "ro-rRO", "ru", "sk", "sl", "sr", "sv", "ta", "tr", "uk", "vi", "zh-rCN", "zh-rTW")
|
||||||
|
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
|
||||||
|
buildConfigField("boolean", "showDonate", "true")
|
||||||
|
buildConfigField("boolean", "showRateOnGooglePlay", "false")
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
@@ -50,6 +54,21 @@ android {
|
|||||||
viewBinding = true
|
viewBinding = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
flavorDimensions.add("type")
|
||||||
|
productFlavors {
|
||||||
|
create("foss") {
|
||||||
|
dimension = "type"
|
||||||
|
isDefault = true
|
||||||
|
}
|
||||||
|
create("gplay") {
|
||||||
|
dimension = "type"
|
||||||
|
|
||||||
|
// Google doesn't allow donation links
|
||||||
|
buildConfigField("boolean", "showDonate", "false")
|
||||||
|
buildConfigField("boolean", "showRateOnGooglePlay", "true")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bundle {
|
bundle {
|
||||||
language {
|
language {
|
||||||
enableSplit = false
|
enableSplit = false
|
||||||
@@ -62,8 +81,8 @@ android {
|
|||||||
// Flag to enable support for the new language APIs
|
// Flag to enable support for the new language APIs
|
||||||
isCoreLibraryDesugaringEnabled = true
|
isCoreLibraryDesugaringEnabled = true
|
||||||
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_11
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
targetCompatibility = JavaVersion.VERSION_11
|
targetCompatibility = JavaVersion.VERSION_17
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@@ -84,25 +103,26 @@ android {
|
|||||||
lint {
|
lint {
|
||||||
lintConfig = file("lint.xml")
|
lintConfig = file("lint.xml")
|
||||||
}
|
}
|
||||||
|
kotlinOptions {
|
||||||
|
jvmTarget = "17"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
||||||
// AndroidX
|
// AndroidX
|
||||||
implementation("androidx.appcompat:appcompat:1.7.0")
|
implementation("androidx.appcompat:appcompat:1.7.0")
|
||||||
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
implementation("androidx.constraintlayout:constraintlayout:2.2.1")
|
||||||
implementation("androidx.exifinterface:exifinterface:1.3.7")
|
implementation("androidx.core:core-ktx:1.16.0")
|
||||||
|
implementation("androidx.core:core-splashscreen:1.0.1")
|
||||||
|
implementation("androidx.exifinterface:exifinterface:1.4.1")
|
||||||
implementation("androidx.palette:palette:1.0.0")
|
implementation("androidx.palette:palette:1.0.0")
|
||||||
implementation("androidx.preference:preference:1.2.1")
|
implementation("androidx.preference:preference:1.2.1")
|
||||||
implementation("com.google.android.material:material:1.12.0")
|
implementation("com.google.android.material:material:1.12.0")
|
||||||
implementation("com.github.yalantis:ucrop:2.2.9")
|
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5")
|
||||||
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")
|
|
||||||
|
|
||||||
// Splash Screen
|
|
||||||
implementation("androidx.core:core-splashscreen:1.0.1")
|
|
||||||
|
|
||||||
// Third-party
|
// Third-party
|
||||||
implementation("com.journeyapps:zxing-android-embedded:4.3.0@aar")
|
implementation("com.journeyapps:zxing-android-embedded:4.3.0@aar")
|
||||||
|
implementation("com.github.yalantis:ucrop:2.2.10")
|
||||||
implementation("com.google.zxing:core:3.5.3")
|
implementation("com.google.zxing:core:3.5.3")
|
||||||
implementation("org.apache.commons:commons-csv:1.9.0")
|
implementation("org.apache.commons:commons-csv:1.9.0")
|
||||||
implementation("com.jaredrummler:colorpicker:1.1.0")
|
implementation("com.jaredrummler:colorpicker:1.1.0")
|
||||||
@@ -116,7 +136,7 @@ dependencies {
|
|||||||
val junitVersion = "4.13.2"
|
val junitVersion = "4.13.2"
|
||||||
testImplementation("androidx.test:core:$androidXTestVersion")
|
testImplementation("androidx.test:core:$androidXTestVersion")
|
||||||
testImplementation("junit:junit:$junitVersion")
|
testImplementation("junit:junit:$junitVersion")
|
||||||
testImplementation("org.robolectric:robolectric:4.13")
|
testImplementation("org.robolectric:robolectric:4.14.1")
|
||||||
|
|
||||||
androidTestImplementation("androidx.test:core:$androidXTestVersion")
|
androidTestImplementation("androidx.test:core:$androidXTestVersion")
|
||||||
androidTestImplementation("junit:junit:$junitVersion")
|
androidTestImplementation("junit:junit:$junitVersion")
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources></resources>
|
<resources>
|
||||||
|
<string name="app_name">Catima Fehlersuche</string>
|
||||||
|
</resources>
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources></resources>
|
<resources>
|
||||||
|
<string name="app_name">Отстраняване на грешки в Catima</string>
|
||||||
|
</resources>
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources></resources>
|
<resources>
|
||||||
|
<string name="app_name">ক্যাটিমা ডিবাগ</string>
|
||||||
|
</resources>
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources></resources>
|
<resources>
|
||||||
|
<string name="app_name">ক্যাটিমা ডিবাগ</string>
|
||||||
|
</resources>
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources></resources>
|
<resources>
|
||||||
|
<string name="app_name">Catima Otklanjanje Grešaka</string>
|
||||||
|
</resources>
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources></resources>
|
<resources>
|
||||||
|
<string name="app_name">Debugar Catima</string>
|
||||||
|
</resources>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<string name="app_name">Catima Debug</string>
|
<string name="app_name">Catima Ladění</string>
|
||||||
</resources>
|
</resources>
|
||||||
@@ -1,2 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources></resources>
|
<resources>
|
||||||
|
<string name="app_name">Catima Datfygio</string>
|
||||||
|
</resources>
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources></resources>
|
<resources>
|
||||||
|
<string name="app_name">Catima Fejlfinding</string>
|
||||||
|
</resources>
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources></resources>
|
<resources>
|
||||||
|
<string name="app_name">Catima Depuración</string>
|
||||||
|
</resources>
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources></resources>
|
<resources>
|
||||||
|
<string name="app_name">Catima Debug</string>
|
||||||
|
</resources>
|
||||||
4
app/src/debug/res/values-fa/strings.xml
Normal file
4
app/src/debug/res/values-fa/strings.xml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<string name="app_name">عیبیابی کاتیما</string>
|
||||||
|
</resources>
|
||||||
@@ -1,2 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources></resources>
|
<resources>
|
||||||
|
<string name="app_name">Catima-vianmääritys</string>
|
||||||
|
</resources>
|
||||||
4
app/src/debug/res/values-gl/strings.xml
Normal file
4
app/src/debug/res/values-gl/strings.xml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<string name="app_name">Depuración de Catima</string>
|
||||||
|
</resources>
|
||||||
@@ -1,2 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources></resources>
|
<resources>
|
||||||
|
<string name="app_name">Catima Villuleit</string>
|
||||||
|
</resources>
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources></resources>
|
<resources>
|
||||||
|
<string name="app_name">Catimaデバーグ</string>
|
||||||
|
</resources>
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources></resources>
|
<resources>
|
||||||
|
<string name="app_name">Catima Feelerkorrektur</string>
|
||||||
|
</resources>
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources></resources>
|
<resources>
|
||||||
|
<string name="app_name">Catima Klaidų Taisymas</string>
|
||||||
|
</resources>
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources></resources>
|
<resources>
|
||||||
|
<string name="app_name">Catima atkļūdošana</string>
|
||||||
|
</resources>
|
||||||
@@ -1,2 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources></resources>
|
<resources>
|
||||||
|
<string name="app_name">കാറ്റിമ ഡീബഗ്</string>
|
||||||
|
</resources>
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources></resources>
|
<resources>
|
||||||
|
<string name="app_name">कॅटिमा डीबग</string>
|
||||||
|
</resources>
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources></resources>
|
<resources>
|
||||||
|
<string name="app_name">Catima Correcion d\'Errors</string>
|
||||||
|
</resources>
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources></resources>
|
<resources>
|
||||||
|
<string name="app_name">Catima Odpravljanje Napak</string>
|
||||||
|
</resources>
|
||||||
|
|||||||
2
app/src/debug/res/values-ta/strings.xml
Normal file
2
app/src/debug/res/values-ta/strings.xml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources></resources>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<string name="app_name">Catima Hata Ayaklama</string>
|
<string name="app_name">Catima Hata Ayıklama</string>
|
||||||
</resources>
|
</resources>
|
||||||
4
app/src/debug/res/values-tzm/strings.xml
Normal file
4
app/src/debug/res/values-tzm/strings.xml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<string name="app_name">ⴽⴰⵜⵉⵎⴰ ⴰⵙⵔⴰⵡ</string>
|
||||||
|
</resources>
|
||||||
@@ -40,12 +40,28 @@
|
|||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.SEND" />
|
<action android:name="android.intent.action.VIEW" />
|
||||||
|
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
|
|
||||||
|
<data android:scheme="content"/>
|
||||||
|
<data android:host="*"/>
|
||||||
|
<data android:mimeType="image/*" />
|
||||||
|
<data android:mimeType="application/pdf" />
|
||||||
|
<data android:mimeType="application/vnd.apple.pkpass" />
|
||||||
|
<data android:mimeType="application/vnd-com.apple.pkpass" />
|
||||||
|
<data android:mimeType="application/vnd.espass-espass" />
|
||||||
|
</intent-filter>
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.SEND" />
|
||||||
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
|
|
||||||
<data android:mimeType="text/plain" />
|
<data android:mimeType="text/plain" />
|
||||||
<data android:mimeType="image/*" />
|
<data android:mimeType="image/*" />
|
||||||
<data android:mimeType="application/pdf" />
|
<data android:mimeType="application/pdf" />
|
||||||
|
<data android:mimeType="application/vnd.apple.pkpass" />
|
||||||
|
<data android:mimeType="application/vnd-com.apple.pkpass" />
|
||||||
|
<data android:mimeType="application/vnd.espass-espass" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
@@ -63,13 +79,12 @@
|
|||||||
<activity
|
<activity
|
||||||
android:name=".LoyaltyCardViewActivity"
|
android:name=".LoyaltyCardViewActivity"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:theme="@style/AppTheme.NoActionBar"
|
android:theme="@style/AppTheme.NoActionBar" />
|
||||||
android:windowSoftInputMode="stateHidden" />
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".LoyaltyCardEditActivity"
|
android:name=".LoyaltyCardEditActivity"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:theme="@style/AppTheme.NoActionBar"
|
android:theme="@style/AppTheme.NoActionBar"
|
||||||
android:windowSoftInputMode="stateHidden">
|
android:windowSoftInputMode="adjustResize">
|
||||||
<intent-filter
|
<intent-filter
|
||||||
android:autoVerify="true"
|
android:autoVerify="true"
|
||||||
android:label="@string/app_name">
|
android:label="@string/app_name">
|
||||||
@@ -107,8 +122,7 @@
|
|||||||
<activity
|
<activity
|
||||||
android:name=".BarcodeSelectorActivity"
|
android:name=".BarcodeSelectorActivity"
|
||||||
android:label="@string/selectBarcodeTitle"
|
android:label="@string/selectBarcodeTitle"
|
||||||
android:theme="@style/AppTheme.NoActionBar"
|
android:theme="@style/AppTheme.NoActionBar" />
|
||||||
android:windowSoftInputMode="stateHidden" />
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".preferences.SettingsActivity"
|
android:name=".preferences.SettingsActivity"
|
||||||
android:label="@string/settings"
|
android:label="@string/settings"
|
||||||
@@ -183,7 +197,8 @@
|
|||||||
android:resource="@xml/file_provider_paths" />
|
android:resource="@xml/file_provider_paths" />
|
||||||
</provider>
|
</provider>
|
||||||
<service android:name=".CardsOnPowerScreenService" android:label="@string/app_name"
|
<service android:name=".CardsOnPowerScreenService" android:label="@string/app_name"
|
||||||
android:permission="android.permission.BIND_CONTROLS" android:exported="true">
|
android:permission="android.permission.BIND_CONTROLS" android:exported="true"
|
||||||
|
tools:targetApi="r">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.service.controls.ControlsProviderService" />
|
<action android:name="android.service.controls.ControlsProviderService" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|||||||
@@ -1,147 +0,0 @@
|
|||||||
package protect.card_locker;
|
|
||||||
|
|
||||||
import android.os.Bundle;
|
|
||||||
import android.text.Spanned;
|
|
||||||
import android.view.MenuItem;
|
|
||||||
import android.view.View;
|
|
||||||
import android.widget.ScrollView;
|
|
||||||
import android.widget.TextView;
|
|
||||||
|
|
||||||
import androidx.annotation.Nullable;
|
|
||||||
import androidx.annotation.StringRes;
|
|
||||||
|
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
|
||||||
|
|
||||||
import protect.card_locker.databinding.AboutActivityBinding;
|
|
||||||
|
|
||||||
public class AboutActivity extends CatimaAppCompatActivity {
|
|
||||||
|
|
||||||
private static final String TAG = "Catima";
|
|
||||||
|
|
||||||
private AboutActivityBinding binding;
|
|
||||||
private AboutContent content;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
|
||||||
super.onCreate(savedInstanceState);
|
|
||||||
binding = AboutActivityBinding.inflate(getLayoutInflater());
|
|
||||||
content = new AboutContent(this);
|
|
||||||
setTitle(content.getPageTitle());
|
|
||||||
setContentView(binding.getRoot());
|
|
||||||
setSupportActionBar(binding.toolbar);
|
|
||||||
enableToolbarBackButton();
|
|
||||||
|
|
||||||
TextView copyright = binding.creditsSub;
|
|
||||||
copyright.setText(content.getCopyrightShort());
|
|
||||||
TextView versionHistory = binding.versionHistorySub;
|
|
||||||
versionHistory.setText(content.getVersionHistory());
|
|
||||||
|
|
||||||
binding.versionHistory.setTag("https://catima.app/changelog/");
|
|
||||||
binding.translate.setTag("https://hosted.weblate.org/engage/catima/");
|
|
||||||
binding.license.setTag("https://github.com/CatimaLoyalty/Android/blob/main/LICENSE");
|
|
||||||
binding.repo.setTag("https://github.com/CatimaLoyalty/Android/");
|
|
||||||
binding.privacy.setTag("https://catima.app/privacy-policy/");
|
|
||||||
binding.reportError.setTag("https://github.com/CatimaLoyalty/Android/issues");
|
|
||||||
binding.rate.setTag("https://play.google.com/store/apps/details?id=me.hackerchick.catima");
|
|
||||||
binding.donate.setTag("https://catima.app/donate");
|
|
||||||
|
|
||||||
boolean installedFromGooglePlay = Utils.installedFromGooglePlay(this);
|
|
||||||
// Hide Google Play rate button if not on Google Play
|
|
||||||
binding.rate.setVisibility(installedFromGooglePlay ? View.VISIBLE : View.GONE);
|
|
||||||
// Hide donate button on Google Play (Google Play doesn't allow donation links)
|
|
||||||
binding.donate.setVisibility(installedFromGooglePlay ? View.GONE : View.VISIBLE);
|
|
||||||
|
|
||||||
bindClickListeners();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean onOptionsItemSelected(MenuItem item) {
|
|
||||||
int id = item.getItemId();
|
|
||||||
if (id == android.R.id.home) {
|
|
||||||
finish();
|
|
||||||
}
|
|
||||||
return super.onOptionsItemSelected(item);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onDestroy() {
|
|
||||||
super.onDestroy();
|
|
||||||
content.destroy();
|
|
||||||
clearClickListeners();
|
|
||||||
binding = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void bindClickListeners() {
|
|
||||||
binding.versionHistory.setOnClickListener(this::showHistory);
|
|
||||||
binding.translate.setOnClickListener(this::openExternalBrowser);
|
|
||||||
binding.license.setOnClickListener(this::showLicense);
|
|
||||||
binding.repo.setOnClickListener(this::openExternalBrowser);
|
|
||||||
binding.privacy.setOnClickListener(this::showPrivacy);
|
|
||||||
binding.reportError.setOnClickListener(this::openExternalBrowser);
|
|
||||||
binding.rate.setOnClickListener(this::openExternalBrowser);
|
|
||||||
binding.donate.setOnClickListener(this::openExternalBrowser);
|
|
||||||
|
|
||||||
binding.credits.setOnClickListener(view -> showCredits());
|
|
||||||
}
|
|
||||||
|
|
||||||
private void clearClickListeners() {
|
|
||||||
binding.versionHistory.setOnClickListener(null);
|
|
||||||
binding.translate.setOnClickListener(null);
|
|
||||||
binding.license.setOnClickListener(null);
|
|
||||||
binding.repo.setOnClickListener(null);
|
|
||||||
binding.privacy.setOnClickListener(null);
|
|
||||||
binding.reportError.setOnClickListener(null);
|
|
||||||
binding.rate.setOnClickListener(null);
|
|
||||||
binding.donate.setOnClickListener(null);
|
|
||||||
|
|
||||||
binding.credits.setOnClickListener(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void showCredits() {
|
|
||||||
showHTML(R.string.credits, content.getContributorInfo(), null);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void showHistory(View view) {
|
|
||||||
showHTML(R.string.version_history, content.getHistoryInfo(), view);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void showLicense(View view) {
|
|
||||||
showHTML(R.string.license, content.getLicenseInfo(), view);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void showPrivacy(View view) {
|
|
||||||
showHTML(R.string.privacy_policy, content.getPrivacyInfo(), view);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void showHTML(@StringRes int title, final Spanned text, @Nullable View view) {
|
|
||||||
int dialogContentPadding = getResources().getDimensionPixelSize(R.dimen.alert_dialog_content_padding);
|
|
||||||
TextView textView = new TextView(this);
|
|
||||||
textView.setText(text);
|
|
||||||
Utils.makeTextViewLinksClickable(textView, text);
|
|
||||||
ScrollView scrollView = new ScrollView(this);
|
|
||||||
scrollView.addView(textView);
|
|
||||||
scrollView.setPadding(dialogContentPadding, dialogContentPadding / 2, dialogContentPadding, 0);
|
|
||||||
|
|
||||||
// Create dialog
|
|
||||||
MaterialAlertDialogBuilder materialAlertDialogBuilder = new MaterialAlertDialogBuilder(this);
|
|
||||||
materialAlertDialogBuilder
|
|
||||||
.setTitle(title)
|
|
||||||
.setView(scrollView)
|
|
||||||
.setPositiveButton(R.string.ok, null);
|
|
||||||
|
|
||||||
// Add View online button if an URL is linked to this view
|
|
||||||
if (view != null && view.getTag() != null) {
|
|
||||||
materialAlertDialogBuilder.setNeutralButton(R.string.view_online, (dialog, which) -> openExternalBrowser(view));
|
|
||||||
}
|
|
||||||
|
|
||||||
// Show dialog
|
|
||||||
materialAlertDialogBuilder.show();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void openExternalBrowser(View view) {
|
|
||||||
Object tag = view.getTag();
|
|
||||||
if (tag instanceof String && ((String) tag).startsWith("https://")) {
|
|
||||||
(new OpenWebLinkHandler()).openBrowser(this, (String) tag);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
149
app/src/main/java/protect/card_locker/AboutActivity.kt
Normal file
149
app/src/main/java/protect/card_locker/AboutActivity.kt
Normal file
@@ -0,0 +1,149 @@
|
|||||||
|
package protect.card_locker
|
||||||
|
|
||||||
|
import android.os.Bundle
|
||||||
|
import android.text.Spanned
|
||||||
|
import android.view.MenuItem
|
||||||
|
import android.view.View
|
||||||
|
import android.widget.ScrollView
|
||||||
|
import android.widget.TextView
|
||||||
|
|
||||||
|
import androidx.annotation.StringRes
|
||||||
|
import androidx.core.view.isVisible
|
||||||
|
|
||||||
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
|
|
||||||
|
import protect.card_locker.databinding.AboutActivityBinding
|
||||||
|
|
||||||
|
class AboutActivity : CatimaAppCompatActivity() {
|
||||||
|
private companion object {
|
||||||
|
private const val TAG = "Catima"
|
||||||
|
}
|
||||||
|
|
||||||
|
private lateinit var binding: AboutActivityBinding
|
||||||
|
private lateinit var content: AboutContent
|
||||||
|
|
||||||
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
|
super.onCreate(savedInstanceState)
|
||||||
|
binding = AboutActivityBinding.inflate(layoutInflater)
|
||||||
|
content = AboutContent(this)
|
||||||
|
title = content.pageTitle
|
||||||
|
setContentView(binding.root)
|
||||||
|
setSupportActionBar(binding.toolbar)
|
||||||
|
enableToolbarBackButton()
|
||||||
|
|
||||||
|
binding.apply {
|
||||||
|
creditsSub.text = content.copyrightShort
|
||||||
|
versionHistorySub.text = content.versionHistory
|
||||||
|
|
||||||
|
versionHistory.tag = "https://catima.app/changelog/"
|
||||||
|
translate.tag = "https://hosted.weblate.org/engage/catima/"
|
||||||
|
license.tag = "https://github.com/CatimaLoyalty/Android/blob/main/LICENSE"
|
||||||
|
repo.tag = "https://github.com/CatimaLoyalty/Android/"
|
||||||
|
privacy.tag = "https://catima.app/privacy-policy/"
|
||||||
|
reportError.tag = "https://github.com/CatimaLoyalty/Android/issues"
|
||||||
|
rate.tag = "https://play.google.com/store/apps/details?id=me.hackerchick.catima"
|
||||||
|
donate.tag = "https://catima.app/donate"
|
||||||
|
|
||||||
|
// Hide Google Play rate button if not on Google Play
|
||||||
|
rate.isVisible = BuildConfig.showRateOnGooglePlay
|
||||||
|
// Hide donate button on Google Play (Google Play doesn't allow donation links)
|
||||||
|
donate.isVisible = BuildConfig.showDonate
|
||||||
|
}
|
||||||
|
|
||||||
|
bindClickListeners()
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
||||||
|
return when (item.itemId) {
|
||||||
|
android.R.id.home -> {
|
||||||
|
finish()
|
||||||
|
true
|
||||||
|
}
|
||||||
|
|
||||||
|
else -> super.onOptionsItemSelected(item)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onDestroy() {
|
||||||
|
super.onDestroy()
|
||||||
|
content.destroy()
|
||||||
|
clearClickListeners()
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun bindClickListeners() {
|
||||||
|
binding.apply {
|
||||||
|
versionHistory.setOnClickListener { showHistory(it) }
|
||||||
|
translate.setOnClickListener { openExternalBrowser(it) }
|
||||||
|
license.setOnClickListener { showLicense(it) }
|
||||||
|
repo.setOnClickListener { openExternalBrowser(it) }
|
||||||
|
privacy.setOnClickListener { showPrivacy(it) }
|
||||||
|
reportError.setOnClickListener { openExternalBrowser(it) }
|
||||||
|
rate.setOnClickListener { openExternalBrowser(it) }
|
||||||
|
donate.setOnClickListener { openExternalBrowser(it) }
|
||||||
|
credits.setOnClickListener { showCredits() }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun clearClickListeners() {
|
||||||
|
binding.apply {
|
||||||
|
versionHistory.setOnClickListener(null)
|
||||||
|
translate.setOnClickListener(null)
|
||||||
|
license.setOnClickListener(null)
|
||||||
|
repo.setOnClickListener(null)
|
||||||
|
privacy.setOnClickListener(null)
|
||||||
|
reportError.setOnClickListener(null)
|
||||||
|
rate.setOnClickListener(null)
|
||||||
|
donate.setOnClickListener(null)
|
||||||
|
credits.setOnClickListener(null)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun showCredits() {
|
||||||
|
showHTML(R.string.credits, content.contributorInfo, null)
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun showHistory(view: View) {
|
||||||
|
showHTML(R.string.version_history, content.historyInfo, view)
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun showLicense(view: View) {
|
||||||
|
showHTML(R.string.license, content.licenseInfo, view)
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun showPrivacy(view: View) {
|
||||||
|
showHTML(R.string.privacy_policy, content.privacyInfo, view)
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun showHTML(@StringRes title: Int, text: Spanned, view: View?) {
|
||||||
|
val dialogContentPadding = resources.getDimensionPixelSize(R.dimen.alert_dialog_content_padding)
|
||||||
|
val textView = TextView(this).apply {
|
||||||
|
setText(text)
|
||||||
|
Utils.makeTextViewLinksClickable(this, text)
|
||||||
|
}
|
||||||
|
|
||||||
|
val scrollView = ScrollView(this).apply {
|
||||||
|
addView(textView)
|
||||||
|
setPadding(dialogContentPadding, dialogContentPadding / 2, dialogContentPadding, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
MaterialAlertDialogBuilder(this).apply {
|
||||||
|
setTitle(title)
|
||||||
|
setView(scrollView)
|
||||||
|
setPositiveButton(R.string.ok, null)
|
||||||
|
|
||||||
|
// Add View online button if an URL is linked to this view
|
||||||
|
view?.tag?.let {
|
||||||
|
setNeutralButton(R.string.view_online) { _, _ -> openExternalBrowser(view) }
|
||||||
|
}
|
||||||
|
|
||||||
|
show()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun openExternalBrowser(view: View) {
|
||||||
|
val tag = view.tag
|
||||||
|
if (tag is String && tag.startsWith("https://")) {
|
||||||
|
OpenWebLinkHandler().openBrowser(this, tag)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -49,7 +49,7 @@ public class BarcodeImageWriterTask implements CompatCallable<Bitmap> {
|
|||||||
BarcodeImageWriterTask(
|
BarcodeImageWriterTask(
|
||||||
Context context, ImageView imageView, String cardIdString,
|
Context context, ImageView imageView, String cardIdString,
|
||||||
CatimaBarcode barcodeFormat, TextView textView,
|
CatimaBarcode barcodeFormat, TextView textView,
|
||||||
boolean showFallback, BarcodeImageWriterResultCallback callback, boolean roundCornerPadding
|
boolean showFallback, BarcodeImageWriterResultCallback callback, boolean roundCornerPadding, boolean isFullscreen
|
||||||
) {
|
) {
|
||||||
mContext = context;
|
mContext = context;
|
||||||
|
|
||||||
@@ -86,13 +86,13 @@ public class BarcodeImageWriterTask implements CompatCallable<Bitmap> {
|
|||||||
|
|
||||||
if (format.isSquare()) {
|
if (format.isSquare()) {
|
||||||
imageHeight = imageWidth = Math.min(imageViewHeight, Math.min(MAX_WIDTH, imageViewWidth));
|
imageHeight = imageWidth = Math.min(imageViewHeight, Math.min(MAX_WIDTH, imageViewWidth));
|
||||||
} else if (imageView.getWidth() < MAX_WIDTH) {
|
} else if (imageView.getWidth() < MAX_WIDTH && !isFullscreen) {
|
||||||
imageHeight = imageViewHeight;
|
imageHeight = imageViewHeight;
|
||||||
imageWidth = imageViewWidth;
|
imageWidth = imageViewWidth;
|
||||||
} else {
|
} else {
|
||||||
// Scale down the image to reduce the memory needed to produce it
|
// Scale down the image to reduce the memory needed to produce it
|
||||||
imageWidth = MAX_WIDTH;
|
imageWidth = Math.min(MAX_WIDTH, this.mContext.getResources().getDisplayMetrics().widthPixels);
|
||||||
double ratio = (double) MAX_WIDTH / (double) imageViewWidth;
|
double ratio = (double) imageWidth / (double) imageViewWidth;
|
||||||
imageHeight = (int) (imageViewHeight * ratio);
|
imageHeight = (int) (imageViewHeight * ratio);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ public class BarcodeSelectorActivity extends CatimaAppCompatActivity implements
|
|||||||
binding = BarcodeSelectorActivityBinding.inflate(getLayoutInflater());
|
binding = BarcodeSelectorActivityBinding.inflate(getLayoutInflater());
|
||||||
setTitle(R.string.selectBarcodeTitle);
|
setTitle(R.string.selectBarcodeTitle);
|
||||||
setContentView(binding.getRoot());
|
setContentView(binding.getRoot());
|
||||||
|
Utils.applyWindowInsets(binding.getRoot());
|
||||||
Toolbar toolbar = binding.toolbar;
|
Toolbar toolbar = binding.toolbar;
|
||||||
setSupportActionBar(toolbar);
|
setSupportActionBar(toolbar);
|
||||||
enableToolbarBackButton();
|
enableToolbarBackButton();
|
||||||
@@ -71,7 +72,7 @@ public class BarcodeSelectorActivity extends CatimaAppCompatActivity implements
|
|||||||
});
|
});
|
||||||
|
|
||||||
final Bundle b = getIntent().getExtras();
|
final Bundle b = getIntent().getExtras();
|
||||||
final String initialCardId = b != null ? b.getString("initialCardId") : null;
|
final String initialCardId = b != null ? b.getString(LoyaltyCard.BUNDLE_LOYALTY_CARD_CARD_ID) : null;
|
||||||
|
|
||||||
if (initialCardId != null) {
|
if (initialCardId != null) {
|
||||||
cardId.setText(initialCardId);
|
cardId.setText(initialCardId);
|
||||||
|
|||||||
@@ -92,13 +92,13 @@ public class BarcodeSelectorAdapter extends ArrayAdapter<CatimaBarcodeWithValue>
|
|||||||
|
|
||||||
Log.d(TAG, "Generating barcode for type " + formatType);
|
Log.d(TAG, "Generating barcode for type " + formatType);
|
||||||
|
|
||||||
BarcodeImageWriterTask barcodeWriter = new BarcodeImageWriterTask(getContext(), image, cardId, format, text, true, null, true);
|
BarcodeImageWriterTask barcodeWriter = new BarcodeImageWriterTask(getContext(), image, cardId, format, text, true, null, true, false);
|
||||||
mTasks.executeTask(TaskHandler.TYPE.BARCODE, barcodeWriter);
|
mTasks.executeTask(TaskHandler.TYPE.BARCODE, barcodeWriter);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
Log.d(TAG, "Generating barcode for type " + formatType);
|
Log.d(TAG, "Generating barcode for type " + formatType);
|
||||||
BarcodeImageWriterTask barcodeWriter = new BarcodeImageWriterTask(getContext(), image, cardId, format, text, true, null, true);
|
BarcodeImageWriterTask barcodeWriter = new BarcodeImageWriterTask(getContext(), image, cardId, format, text, true, null, true, false);
|
||||||
mTasks.executeTask(TaskHandler.TYPE.BARCODE, barcodeWriter);
|
mTasks.executeTask(TaskHandler.TYPE.BARCODE, barcodeWriter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
package protect.card_locker;
|
|
||||||
|
|
||||||
public class BarcodeValues {
|
|
||||||
private final String mFormat;
|
|
||||||
private final String mContent;
|
|
||||||
private String mNote;
|
|
||||||
|
|
||||||
public BarcodeValues(String format, String content) {
|
|
||||||
mFormat = format;
|
|
||||||
mContent = content;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNote(String note) {
|
|
||||||
mNote = note;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String format() {
|
|
||||||
return mFormat;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String content() {
|
|
||||||
return mContent;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String note() { return mNote; }
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
package protect.card_locker;
|
|
||||||
|
|
||||||
public interface BarcodeValuesListDisambiguatorCallback {
|
|
||||||
void onUserChoseBarcode(BarcodeValues barcodeValues);
|
|
||||||
void onUserDismissedSelector();
|
|
||||||
}
|
|
||||||
@@ -12,15 +12,15 @@ import androidx.appcompat.widget.Toolbar;
|
|||||||
import androidx.core.content.pm.ShortcutInfoCompat;
|
import androidx.core.content.pm.ShortcutInfoCompat;
|
||||||
import androidx.core.content.pm.ShortcutManagerCompat;
|
import androidx.core.content.pm.ShortcutManagerCompat;
|
||||||
import androidx.recyclerview.widget.GridLayoutManager;
|
import androidx.recyclerview.widget.GridLayoutManager;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
|
||||||
|
|
||||||
import protect.card_locker.databinding.SimpleToolbarListActivityBinding;
|
import protect.card_locker.databinding.CardShortcutConfigureActivityBinding;
|
||||||
|
import protect.card_locker.preferences.Settings;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The configuration screen for creating a shortcut.
|
* The configuration screen for creating a shortcut.
|
||||||
*/
|
*/
|
||||||
public class CardShortcutConfigure extends CatimaAppCompatActivity implements LoyaltyCardCursorAdapter.CardAdapterListener {
|
public class CardShortcutConfigure extends CatimaAppCompatActivity implements LoyaltyCardCursorAdapter.CardAdapterListener {
|
||||||
private SimpleToolbarListActivityBinding binding;
|
private CardShortcutConfigureActivityBinding binding;
|
||||||
static final String TAG = "Catima";
|
static final String TAG = "Catima";
|
||||||
private SQLiteDatabase mDatabase;
|
private SQLiteDatabase mDatabase;
|
||||||
private LoyaltyCardCursorAdapter mAdapter;
|
private LoyaltyCardCursorAdapter mAdapter;
|
||||||
@@ -28,7 +28,7 @@ public class CardShortcutConfigure extends CatimaAppCompatActivity implements Lo
|
|||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle bundle) {
|
public void onCreate(Bundle bundle) {
|
||||||
super.onCreate(bundle);
|
super.onCreate(bundle);
|
||||||
binding = SimpleToolbarListActivityBinding.inflate(getLayoutInflater());
|
binding = CardShortcutConfigureActivityBinding.inflate(getLayoutInflater());
|
||||||
mDatabase = new DBHelper(this).getReadableDatabase();
|
mDatabase = new DBHelper(this).getReadableDatabase();
|
||||||
|
|
||||||
// Set the result to CANCELED. This will cause nothing to happen if the
|
// Set the result to CANCELED. This will cause nothing to happen if the
|
||||||
@@ -36,6 +36,7 @@ public class CardShortcutConfigure extends CatimaAppCompatActivity implements Lo
|
|||||||
setResult(RESULT_CANCELED);
|
setResult(RESULT_CANCELED);
|
||||||
|
|
||||||
setContentView(binding.getRoot());
|
setContentView(binding.getRoot());
|
||||||
|
Utils.applyWindowInsets(binding.getRoot());
|
||||||
Toolbar toolbar = binding.toolbar;
|
Toolbar toolbar = binding.toolbar;
|
||||||
toolbar.setTitle(R.string.shortcutSelectCard);
|
toolbar.setTitle(R.string.shortcutSelectCard);
|
||||||
setSupportActionBar(toolbar);
|
setSupportActionBar(toolbar);
|
||||||
@@ -47,21 +48,26 @@ public class CardShortcutConfigure extends CatimaAppCompatActivity implements Lo
|
|||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
final RecyclerView cardList = binding.list;
|
|
||||||
GridLayoutManager layoutManager = (GridLayoutManager) cardList.getLayoutManager();
|
|
||||||
if (layoutManager != null) {
|
|
||||||
layoutManager.setSpanCount(getResources().getInteger(R.integer.main_view_card_columns));
|
|
||||||
}
|
|
||||||
|
|
||||||
Cursor cardCursor = DBHelper.getLoyaltyCardCursor(mDatabase, DBHelper.LoyaltyCardArchiveFilter.All);
|
Cursor cardCursor = DBHelper.getLoyaltyCardCursor(mDatabase, DBHelper.LoyaltyCardArchiveFilter.All);
|
||||||
mAdapter = new LoyaltyCardCursorAdapter(this, cardCursor, this, null);
|
mAdapter = new LoyaltyCardCursorAdapter(this, cardCursor, this, null);
|
||||||
cardList.setAdapter(mAdapter);
|
binding.list.setAdapter(mAdapter);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onResume() {
|
||||||
|
super.onResume();
|
||||||
|
|
||||||
|
var layoutManager = (GridLayoutManager) binding.list.getLayoutManager();
|
||||||
|
if (layoutManager != null) {
|
||||||
|
var settings = new Settings(this);
|
||||||
|
layoutManager.setSpanCount(settings.getPreferredColumnCount());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onClickAction(int position) {
|
private void onClickAction(int position) {
|
||||||
Cursor selected = DBHelper.getLoyaltyCardCursor(mDatabase, DBHelper.LoyaltyCardArchiveFilter.All);
|
Cursor selected = DBHelper.getLoyaltyCardCursor(mDatabase, DBHelper.LoyaltyCardArchiveFilter.All);
|
||||||
selected.moveToPosition(position);
|
selected.moveToPosition(position);
|
||||||
LoyaltyCard loyaltyCard = LoyaltyCard.toLoyaltyCard(selected);
|
LoyaltyCard loyaltyCard = LoyaltyCard.fromCursor(CardShortcutConfigure.this, selected);
|
||||||
|
|
||||||
Log.d(TAG, "Creating shortcut for card " + loyaltyCard.store + "," + loyaltyCard.id);
|
Log.d(TAG, "Creating shortcut for card " + loyaltyCard.store + "," + loyaltyCard.id);
|
||||||
|
|
||||||
|
|||||||
@@ -42,10 +42,10 @@ public class CardsOnPowerScreenService extends ControlsProviderService {
|
|||||||
Cursor loyaltyCardCursor = DBHelper.getLoyaltyCardCursor(mDatabase, DBHelper.LoyaltyCardArchiveFilter.Unarchived);
|
Cursor loyaltyCardCursor = DBHelper.getLoyaltyCardCursor(mDatabase, DBHelper.LoyaltyCardArchiveFilter.Unarchived);
|
||||||
return subscriber -> {
|
return subscriber -> {
|
||||||
while (loyaltyCardCursor.moveToNext()) {
|
while (loyaltyCardCursor.moveToNext()) {
|
||||||
LoyaltyCard card = LoyaltyCard.toLoyaltyCard(loyaltyCardCursor);
|
LoyaltyCard card = LoyaltyCard.fromCursor(this, loyaltyCardCursor);
|
||||||
Intent openIntent = new Intent(this, LoyaltyCardViewActivity.class)
|
Intent openIntent = new Intent(this, LoyaltyCardViewActivity.class)
|
||||||
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||||
.putExtra("id", card.id);
|
.putExtra(LoyaltyCardViewActivity.BUNDLE_ID, card.id);
|
||||||
PendingIntent pendingIntent = PendingIntent.getActivity(getBaseContext(), card.id, openIntent, PendingIntent.FLAG_IMMUTABLE);
|
PendingIntent pendingIntent = PendingIntent.getActivity(getBaseContext(), card.id, openIntent, PendingIntent.FLAG_IMMUTABLE);
|
||||||
subscriber.onNext(
|
subscriber.onNext(
|
||||||
new Control.StatelessBuilder(PREFIX + card.id, pendingIntent)
|
new Control.StatelessBuilder(PREFIX + card.id, pendingIntent)
|
||||||
@@ -69,11 +69,11 @@ public class CardsOnPowerScreenService extends ControlsProviderService {
|
|||||||
for (String controlId : controlIds) {
|
for (String controlId : controlIds) {
|
||||||
Control control;
|
Control control;
|
||||||
Integer cardId = this.controlIdToCardId(controlId);
|
Integer cardId = this.controlIdToCardId(controlId);
|
||||||
LoyaltyCard card = DBHelper.getLoyaltyCard(mDatabase, cardId);
|
LoyaltyCard card = DBHelper.getLoyaltyCard(this, mDatabase, cardId);
|
||||||
if (card != null) {
|
if (card != null) {
|
||||||
Intent openIntent = new Intent(this, LoyaltyCardViewActivity.class)
|
Intent openIntent = new Intent(this, LoyaltyCardViewActivity.class)
|
||||||
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||||
.putExtra("id", card.id);
|
.putExtra(LoyaltyCardViewActivity.BUNDLE_ID, card.id);
|
||||||
PendingIntent pendingIntent = PendingIntent.getActivity(getBaseContext(), card.id, openIntent, PendingIntent.FLAG_IMMUTABLE);
|
PendingIntent pendingIntent = PendingIntent.getActivity(getBaseContext(), card.id, openIntent, PendingIntent.FLAG_IMMUTABLE);
|
||||||
control = new Control.StatefulBuilder(controlId, pendingIntent)
|
control = new Control.StatefulBuilder(controlId, pendingIntent)
|
||||||
.setTitle(card.store)
|
.setTitle(card.store)
|
||||||
@@ -99,7 +99,7 @@ public class CardsOnPowerScreenService extends ControlsProviderService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private Bitmap getIcon(Context context, LoyaltyCard loyaltyCard) {
|
private Bitmap getIcon(Context context, LoyaltyCard loyaltyCard) {
|
||||||
Bitmap cardIcon = Utils.retrieveCardImage(context, loyaltyCard.id, ImageLocationType.icon);
|
Bitmap cardIcon = loyaltyCard.getImageThumbnail(context);
|
||||||
|
|
||||||
if (cardIcon != null) {
|
if (cardIcon != null) {
|
||||||
return cardIcon;
|
return cardIcon;
|
||||||
@@ -129,7 +129,7 @@ public class CardsOnPowerScreenService extends ControlsProviderService {
|
|||||||
consumer.accept(ControlAction.RESPONSE_OK);
|
consumer.accept(ControlAction.RESPONSE_OK);
|
||||||
Intent openIntent = new Intent(this, LoyaltyCardViewActivity.class)
|
Intent openIntent = new Intent(this, LoyaltyCardViewActivity.class)
|
||||||
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||||
.putExtra("id", controlIdToCardId(controlId));
|
.putExtra(LoyaltyCardViewActivity.BUNDLE_ID, controlIdToCardId(controlId));
|
||||||
startActivity(openIntent);
|
startActivity(openIntent);
|
||||||
|
|
||||||
closePowerScreenOnAndroid11();
|
closePowerScreenOnAndroid11();
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import android.os.Bundle;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.Window;
|
import android.view.Window;
|
||||||
|
|
||||||
|
import androidx.activity.EdgeToEdge;
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.appcompat.app.ActionBar;
|
import androidx.appcompat.app.ActionBar;
|
||||||
@@ -24,6 +25,7 @@ public class CatimaAppCompatActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||||
|
EdgeToEdge.enable(this);
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
Utils.patchColors(this);
|
Utils.patchColors(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
package protect.card_locker;
|
package protect.card_locker;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.google.zxing.BarcodeFormat;
|
import com.google.zxing.BarcodeFormat;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
@@ -45,15 +47,15 @@ public class CatimaBarcode {
|
|||||||
mBarcodeFormat = barcodeFormat;
|
mBarcodeFormat = barcodeFormat;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static CatimaBarcode fromBarcode(BarcodeFormat barcodeFormat) {
|
public static CatimaBarcode fromBarcode(@NonNull BarcodeFormat barcodeFormat) {
|
||||||
return new CatimaBarcode(barcodeFormat);
|
return new CatimaBarcode(barcodeFormat);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static CatimaBarcode fromName(String name) {
|
public static CatimaBarcode fromName(@NonNull String name) {
|
||||||
return new CatimaBarcode(BarcodeFormat.valueOf(name));
|
return new CatimaBarcode(BarcodeFormat.valueOf(name));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static CatimaBarcode fromPrettyName(String prettyName) {
|
public static CatimaBarcode fromPrettyName(@NonNull String prettyName) {
|
||||||
try {
|
try {
|
||||||
return new CatimaBarcode(barcodeFormats.get(barcodePrettyNames.indexOf(prettyName)));
|
return new CatimaBarcode(barcodeFormats.get(barcodePrettyNames.indexOf(prettyName)));
|
||||||
} catch (IndexOutOfBoundsException e) {
|
} catch (IndexOutOfBoundsException e) {
|
||||||
|
|||||||
@@ -23,10 +23,11 @@ import java.util.Set;
|
|||||||
public class DBHelper extends SQLiteOpenHelper {
|
public class DBHelper extends SQLiteOpenHelper {
|
||||||
public static final String DATABASE_NAME = "Catima.db";
|
public static final String DATABASE_NAME = "Catima.db";
|
||||||
public static final int ORIGINAL_DATABASE_VERSION = 1;
|
public static final int ORIGINAL_DATABASE_VERSION = 1;
|
||||||
public static final int DATABASE_VERSION = 16;
|
public static final int DATABASE_VERSION = 17;
|
||||||
|
|
||||||
// NB: changing this value requires a migration
|
// NB: changing these values requires a migration
|
||||||
public static final int DEFAULT_ZOOM_LEVEL = 100;
|
public static final int DEFAULT_ZOOM_LEVEL = 100;
|
||||||
|
public static final int DEFAULT_ZOOM_LEVEL_WIDTH = 100;
|
||||||
|
|
||||||
public static class LoyaltyCardDbGroups {
|
public static class LoyaltyCardDbGroups {
|
||||||
public static final String TABLE = "groups";
|
public static final String TABLE = "groups";
|
||||||
@@ -51,6 +52,7 @@ public class DBHelper extends SQLiteOpenHelper {
|
|||||||
public static final String STAR_STATUS = "starstatus";
|
public static final String STAR_STATUS = "starstatus";
|
||||||
public static final String LAST_USED = "lastused";
|
public static final String LAST_USED = "lastused";
|
||||||
public static final String ZOOM_LEVEL = "zoomlevel";
|
public static final String ZOOM_LEVEL = "zoomlevel";
|
||||||
|
public static final String ZOOM_LEVEL_WIDTH = "zoomlevelwidth";
|
||||||
public static final String ARCHIVE_STATUS = "archive";
|
public static final String ARCHIVE_STATUS = "archive";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,6 +72,7 @@ public class DBHelper extends SQLiteOpenHelper {
|
|||||||
public enum LoyaltyCardOrder {
|
public enum LoyaltyCardOrder {
|
||||||
Alpha,
|
Alpha,
|
||||||
LastUsed,
|
LastUsed,
|
||||||
|
ValidFrom,
|
||||||
Expiry
|
Expiry
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,6 +115,7 @@ public class DBHelper extends SQLiteOpenHelper {
|
|||||||
LoyaltyCardDbIds.STAR_STATUS + " INTEGER DEFAULT '0'," +
|
LoyaltyCardDbIds.STAR_STATUS + " INTEGER DEFAULT '0'," +
|
||||||
LoyaltyCardDbIds.LAST_USED + " INTEGER DEFAULT '0', " +
|
LoyaltyCardDbIds.LAST_USED + " INTEGER DEFAULT '0', " +
|
||||||
LoyaltyCardDbIds.ZOOM_LEVEL + " INTEGER DEFAULT '" + DEFAULT_ZOOM_LEVEL + "', " +
|
LoyaltyCardDbIds.ZOOM_LEVEL + " INTEGER DEFAULT '" + DEFAULT_ZOOM_LEVEL + "', " +
|
||||||
|
LoyaltyCardDbIds.ZOOM_LEVEL_WIDTH + " INTEGER DEFAULT '" + DEFAULT_ZOOM_LEVEL_WIDTH + "', " +
|
||||||
LoyaltyCardDbIds.ARCHIVE_STATUS + " INTEGER DEFAULT '0' )");
|
LoyaltyCardDbIds.ARCHIVE_STATUS + " INTEGER DEFAULT '0' )");
|
||||||
|
|
||||||
// create associative table for cards in groups
|
// create associative table for cards in groups
|
||||||
@@ -326,16 +330,21 @@ public class DBHelper extends SQLiteOpenHelper {
|
|||||||
db.execSQL("ALTER TABLE " + LoyaltyCardDbIds.TABLE
|
db.execSQL("ALTER TABLE " + LoyaltyCardDbIds.TABLE
|
||||||
+ " ADD COLUMN " + LoyaltyCardDbIds.VALID_FROM + " INTEGER");
|
+ " ADD COLUMN " + LoyaltyCardDbIds.VALID_FROM + " INTEGER");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (oldVersion < 17 && newVersion >= 17) {
|
||||||
|
db.execSQL("ALTER TABLE " + LoyaltyCardDbIds.TABLE
|
||||||
|
+ " ADD COLUMN " + LoyaltyCardDbIds.ZOOM_LEVEL_WIDTH + " INTEGER DEFAULT '100' ");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Set<String> imageFiles(Context context, final SQLiteDatabase database) {
|
public static Set<String> imageFiles(Context context, final SQLiteDatabase database) {
|
||||||
Set<String> files = new HashSet<>();
|
Set<String> files = new HashSet<>();
|
||||||
Cursor cardCursor = getLoyaltyCardCursor(database);
|
Cursor cardCursor = getLoyaltyCardCursor(database);
|
||||||
while (cardCursor.moveToNext()) {
|
while (cardCursor.moveToNext()) {
|
||||||
LoyaltyCard card = LoyaltyCard.toLoyaltyCard(cardCursor);
|
LoyaltyCard card = LoyaltyCard.fromCursor(context, cardCursor);
|
||||||
for (ImageLocationType imageLocationType : ImageLocationType.values()) {
|
for (ImageLocationType imageLocationType : ImageLocationType.values()) {
|
||||||
String name = Utils.getCardImageFileName(card.id, imageLocationType);
|
String name = Utils.getCardImageFileName(card.id, imageLocationType);
|
||||||
if (Utils.retrieveCardImageAsFile(context, name).exists()) {
|
if (card.getImageForImageLocationType(context, imageLocationType) != null) {
|
||||||
files.add(name);
|
files.add(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -515,15 +524,17 @@ public class DBHelper extends SQLiteOpenHelper {
|
|||||||
return (rowsUpdated == 1);
|
return (rowsUpdated == 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean updateLoyaltyCardZoomLevel(SQLiteDatabase database, int loyaltyCardId, int zoomLevel) {
|
public static boolean updateLoyaltyCardZoomLevel(SQLiteDatabase database, int loyaltyCardId, int zoomLevel, int zoomLevelWidth) {
|
||||||
ContentValues contentValues = new ContentValues();
|
ContentValues contentValues = new ContentValues();
|
||||||
contentValues.put(LoyaltyCardDbIds.ZOOM_LEVEL, zoomLevel);
|
contentValues.put(LoyaltyCardDbIds.ZOOM_LEVEL, zoomLevel);
|
||||||
|
contentValues.put(LoyaltyCardDbIds.ZOOM_LEVEL_WIDTH, zoomLevelWidth);
|
||||||
Log.d("updateLoyaltyCardZLevel", "Card Id = " + loyaltyCardId + " Zoom level= " + zoomLevel);
|
Log.d("updateLoyaltyCardZLevel", "Card Id = " + loyaltyCardId + " Zoom level= " + zoomLevel);
|
||||||
|
Log.d("updateLoyaltyCardZoomLW", "Card Id = " + loyaltyCardId + " Zoom level width= " + zoomLevelWidth);
|
||||||
int rowsUpdated = database.update(LoyaltyCardDbIds.TABLE, contentValues,
|
int rowsUpdated = database.update(LoyaltyCardDbIds.TABLE, contentValues,
|
||||||
whereAttrs(LoyaltyCardDbIds.ID),
|
whereAttrs(LoyaltyCardDbIds.ID),
|
||||||
withArgs(loyaltyCardId));
|
withArgs(loyaltyCardId));
|
||||||
Log.d("updateLoyaltyCardZLevel", "Rows changed = " + rowsUpdated);
|
Log.d("updateLoyaltyCardZLevel", "Card Id = " + loyaltyCardId + " Zoom level = " + zoomLevel + " Zoom level width = " + zoomLevelWidth);
|
||||||
return (rowsUpdated == 1);
|
return (rowsUpdated >= 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean updateLoyaltyCardBalance(SQLiteDatabase database, final int id, final BigDecimal newBalance) {
|
public static boolean updateLoyaltyCardBalance(SQLiteDatabase database, final int id, final BigDecimal newBalance) {
|
||||||
@@ -535,14 +546,14 @@ public class DBHelper extends SQLiteOpenHelper {
|
|||||||
return (rowsUpdated == 1);
|
return (rowsUpdated == 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static LoyaltyCard getLoyaltyCard(SQLiteDatabase database, final int id) {
|
public static LoyaltyCard getLoyaltyCard(Context context, SQLiteDatabase database, final int id) {
|
||||||
Cursor data = database.query(LoyaltyCardDbIds.TABLE, null, whereAttrs(LoyaltyCardDbIds.ID), withArgs(id), null, null, null);
|
Cursor data = database.query(LoyaltyCardDbIds.TABLE, null, whereAttrs(LoyaltyCardDbIds.ID), withArgs(id), null, null, null);
|
||||||
|
|
||||||
LoyaltyCard card = null;
|
LoyaltyCard card = null;
|
||||||
|
|
||||||
if (data.getCount() == 1) {
|
if (data.getCount() == 1) {
|
||||||
data.moveToFirst();
|
data.moveToFirst();
|
||||||
card = LoyaltyCard.toLoyaltyCard(data);
|
card = LoyaltyCard.fromCursor(context, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
data.close();
|
data.close();
|
||||||
@@ -916,6 +927,10 @@ public class DBHelper extends SQLiteOpenHelper {
|
|||||||
return LoyaltyCardDbIds.LAST_USED;
|
return LoyaltyCardDbIds.LAST_USED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (order == LoyaltyCardOrder.ValidFrom) {
|
||||||
|
return LoyaltyCardDbIds.VALID_FROM;
|
||||||
|
}
|
||||||
|
|
||||||
if (order == LoyaltyCardOrder.Expiry) {
|
if (order == LoyaltyCardOrder.Expiry) {
|
||||||
return LoyaltyCardDbIds.EXPIRY;
|
return LoyaltyCardDbIds.EXPIRY;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ public class ImportExportActivity extends CatimaAppCompatActivity {
|
|||||||
|
|
||||||
private ActivityResultLauncher<Intent> fileCreateLauncher;
|
private ActivityResultLauncher<Intent> fileCreateLauncher;
|
||||||
private ActivityResultLauncher<String> fileOpenLauncher;
|
private ActivityResultLauncher<String> fileOpenLauncher;
|
||||||
private ActivityResultLauncher<Intent> filePickerLauncher;
|
|
||||||
|
|
||||||
final private TaskHandler mTasks = new TaskHandler();
|
final private TaskHandler mTasks = new TaskHandler();
|
||||||
|
|
||||||
@@ -60,13 +59,14 @@ public class ImportExportActivity extends CatimaAppCompatActivity {
|
|||||||
binding = ImportExportActivityBinding.inflate(getLayoutInflater());
|
binding = ImportExportActivityBinding.inflate(getLayoutInflater());
|
||||||
setTitle(R.string.importExport);
|
setTitle(R.string.importExport);
|
||||||
setContentView(binding.getRoot());
|
setContentView(binding.getRoot());
|
||||||
|
Utils.applyWindowInsets(binding.getRoot());
|
||||||
Toolbar toolbar = binding.toolbar;
|
Toolbar toolbar = binding.toolbar;
|
||||||
setSupportActionBar(toolbar);
|
setSupportActionBar(toolbar);
|
||||||
enableToolbarBackButton();
|
enableToolbarBackButton();
|
||||||
|
|
||||||
Intent fileIntent = getIntent();
|
Intent fileIntent = getIntent();
|
||||||
if (fileIntent != null && fileIntent.getType() != null) {
|
if (fileIntent != null && fileIntent.getType() != null) {
|
||||||
chooseImportType(false, fileIntent.getData());
|
chooseImportType(fileIntent.getData());
|
||||||
}
|
}
|
||||||
|
|
||||||
// would use ActivityResultContracts.CreateDocument() but mime type cannot be set
|
// would use ActivityResultContracts.CreateDocument() but mime type cannot be set
|
||||||
@@ -104,19 +104,6 @@ public class ImportExportActivity extends CatimaAppCompatActivity {
|
|||||||
}
|
}
|
||||||
openFileForImport(result, null);
|
openFileForImport(result, null);
|
||||||
});
|
});
|
||||||
filePickerLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), result -> {
|
|
||||||
Intent intent = result.getData();
|
|
||||||
if (intent == null) {
|
|
||||||
Log.e(TAG, "Activity returned NULL data");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Uri uri = intent.getData();
|
|
||||||
if (uri == null) {
|
|
||||||
Log.e(TAG, "Activity returned NULL uri");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
openFileForImport(intent.getData(), null);
|
|
||||||
});
|
|
||||||
|
|
||||||
// Check that there is a file manager available
|
// Check that there is a file manager available
|
||||||
final Intent intentCreateDocumentAction = new Intent(Intent.ACTION_CREATE_DOCUMENT);
|
final Intent intentCreateDocumentAction = new Intent(Intent.ACTION_CREATE_DOCUMENT);
|
||||||
@@ -159,11 +146,7 @@ public class ImportExportActivity extends CatimaAppCompatActivity {
|
|||||||
|
|
||||||
// Check that there is a file manager available
|
// Check that there is a file manager available
|
||||||
Button importFilesystem = binding.importOptionFilesystemButton;
|
Button importFilesystem = binding.importOptionFilesystemButton;
|
||||||
importFilesystem.setOnClickListener(v -> chooseImportType(false, null));
|
importFilesystem.setOnClickListener(v -> chooseImportType(null));
|
||||||
|
|
||||||
// Check that there is an app that data can be imported from
|
|
||||||
Button importApplication = binding.importOptionApplicationButton;
|
|
||||||
importApplication.setOnClickListener(v -> chooseImportType(true, null));
|
|
||||||
|
|
||||||
// FIXME: The importer/exporter is currently quite broken
|
// FIXME: The importer/exporter is currently quite broken
|
||||||
// To prevent the screen from turning off during import/export and some devices killing Catima as it's no longer foregrounded, force the screen to stay on here
|
// To prevent the screen from turning off during import/export and some devices killing Catima as it's no longer foregrounded, force the screen to stay on here
|
||||||
@@ -188,8 +171,7 @@ public class ImportExportActivity extends CatimaAppCompatActivity {
|
|||||||
}.start();
|
}.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void chooseImportType(boolean choosePicker,
|
private void chooseImportType(@Nullable Uri fileData) {
|
||||||
@Nullable Uri fileData) {
|
|
||||||
|
|
||||||
List<CharSequence> betaImportOptions = new ArrayList<>();
|
List<CharSequence> betaImportOptions = new ArrayList<>();
|
||||||
betaImportOptions.add("Fidme");
|
betaImportOptions.add("Fidme");
|
||||||
@@ -250,20 +232,12 @@ public class ImportExportActivity extends CatimaAppCompatActivity {
|
|||||||
new MaterialAlertDialogBuilder(this)
|
new MaterialAlertDialogBuilder(this)
|
||||||
.setTitle(importAlertTitle)
|
.setTitle(importAlertTitle)
|
||||||
.setMessage(importAlertMessage)
|
.setMessage(importAlertMessage)
|
||||||
.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {
|
.setPositiveButton(R.string.ok, (dialog1, which1) -> {
|
||||||
@Override
|
try {
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
fileOpenLauncher.launch("*/*");
|
||||||
try {
|
} catch (ActivityNotFoundException e) {
|
||||||
if (choosePicker) {
|
Toast.makeText(getApplicationContext(), R.string.failedOpeningFileManager, Toast.LENGTH_LONG).show();
|
||||||
final Intent intentPickAction = new Intent(Intent.ACTION_PICK);
|
Log.e(TAG, "No activity found to handle intent", e);
|
||||||
filePickerLauncher.launch(intentPickAction);
|
|
||||||
} else {
|
|
||||||
fileOpenLauncher.launch("*/*");
|
|
||||||
}
|
|
||||||
} catch (ActivityNotFoundException e) {
|
|
||||||
Toast.makeText(getApplicationContext(), R.string.failedOpeningFileManager, Toast.LENGTH_LONG).show();
|
|
||||||
Log.e(TAG, "No activity found to handle intent", e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.setNegativeButton(R.string.cancel, null)
|
.setNegativeButton(R.string.cancel, null)
|
||||||
|
|||||||
@@ -91,18 +91,14 @@ public class ImportExportTask implements CompatCallable<ImportExportResult> {
|
|||||||
progress = new ProgressDialog(activity);
|
progress = new ProgressDialog(activity);
|
||||||
progress.setTitle(doImport ? R.string.importing : R.string.exporting);
|
progress.setTitle(doImport ? R.string.importing : R.string.exporting);
|
||||||
|
|
||||||
progress.setOnCancelListener(dialog -> cancel(doImport, true));
|
progress.setOnCancelListener(dialog -> cancel());
|
||||||
progress.setOnDismissListener(dialog -> cancel(doImport, true));
|
progress.setOnDismissListener(dialog -> cancel());
|
||||||
|
|
||||||
progress.show();
|
progress.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void cancel(boolean isImport, boolean showToast) {
|
private void cancel() {
|
||||||
ImportExportTask.this.stop();
|
ImportExportTask.this.stop();
|
||||||
|
|
||||||
if (showToast) {
|
|
||||||
Toast.makeText(activity, isImport ? R.string.importCancelled : R.string.exportCancelled, Toast.LENGTH_LONG).show();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected ImportExportResult doInBackground(Void... nothing) {
|
protected ImportExportResult doInBackground(Void... nothing) {
|
||||||
|
|||||||
@@ -125,7 +125,30 @@ public class ImportURIHelper {
|
|||||||
headerColor = Integer.parseInt(unparsedHeaderColor);
|
headerColor = Integer.parseInt(unparsedHeaderColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new LoyaltyCard(-1, store, note, validFrom, expiry, balance, balanceType, cardId, barcodeId, barcodeType, headerColor, 0, Utils.getUnixTime(), 100, 0);
|
return new LoyaltyCard(
|
||||||
|
-1,
|
||||||
|
store,
|
||||||
|
note,
|
||||||
|
validFrom,
|
||||||
|
expiry,
|
||||||
|
balance,
|
||||||
|
balanceType,
|
||||||
|
cardId,
|
||||||
|
barcodeId,
|
||||||
|
barcodeType,
|
||||||
|
headerColor,
|
||||||
|
0,
|
||||||
|
Utils.getUnixTime(),
|
||||||
|
100,
|
||||||
|
100,
|
||||||
|
0,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null
|
||||||
|
);
|
||||||
} catch (NumberFormatException | UnsupportedEncodingException | ArrayIndexOutOfBoundsException ex) {
|
} catch (NumberFormatException | UnsupportedEncodingException | ArrayIndexOutOfBoundsException ex) {
|
||||||
throw new InvalidObjectException("Not a valid import URI");
|
throw new InvalidObjectException("Not a valid import URI");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
package protect.card_locker;
|
package protect.card_locker;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
import android.database.Cursor;
|
import android.database.Cursor;
|
||||||
import android.os.Parcel;
|
import android.graphics.Bitmap;
|
||||||
import android.os.Parcelable;
|
import android.os.Bundle;
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
@@ -10,142 +11,577 @@ import androidx.annotation.Nullable;
|
|||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.Currency;
|
import java.util.Currency;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
public class LoyaltyCard implements Parcelable {
|
public class LoyaltyCard {
|
||||||
public final int id;
|
public int id;
|
||||||
public final String store;
|
public String store;
|
||||||
public final String note;
|
public String note;
|
||||||
@Nullable
|
@Nullable
|
||||||
public final Date validFrom;
|
public Date validFrom;
|
||||||
@Nullable
|
@Nullable
|
||||||
public final Date expiry;
|
public Date expiry;
|
||||||
public final BigDecimal balance;
|
public BigDecimal balance;
|
||||||
@Nullable
|
@Nullable
|
||||||
public final Currency balanceType;
|
public Currency balanceType;
|
||||||
public final String cardId;
|
public String cardId;
|
||||||
@Nullable
|
@Nullable
|
||||||
public final String barcodeId;
|
public String barcodeId;
|
||||||
@Nullable
|
@Nullable
|
||||||
public final CatimaBarcode barcodeType;
|
public CatimaBarcode barcodeType;
|
||||||
@Nullable
|
@Nullable
|
||||||
public final Integer headerColor;
|
public Integer headerColor;
|
||||||
public final int starStatus;
|
public int starStatus;
|
||||||
public final int archiveStatus;
|
public long lastUsed;
|
||||||
public final long lastUsed;
|
|
||||||
public int zoomLevel;
|
public int zoomLevel;
|
||||||
|
public int zoomLevelWidth;
|
||||||
|
public int archiveStatus;
|
||||||
|
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
private Bitmap imageThumbnail;
|
||||||
|
@Nullable
|
||||||
|
private String imageThumbnailPath;
|
||||||
|
@Nullable
|
||||||
|
private Bitmap imageFront;
|
||||||
|
@Nullable
|
||||||
|
private String imageFrontPath;
|
||||||
|
@Nullable
|
||||||
|
private Bitmap imageBack;
|
||||||
|
@Nullable
|
||||||
|
private String imageBackPath;
|
||||||
|
|
||||||
|
public static final String BUNDLE_LOYALTY_CARD_ID = "loyaltyCardId";
|
||||||
|
public static final String BUNDLE_LOYALTY_CARD_STORE = "loyaltyCardStore";
|
||||||
|
public static final String BUNDLE_LOYALTY_CARD_NOTE = "loyaltyCardNote";
|
||||||
|
public static final String BUNDLE_LOYALTY_CARD_VALID_FROM = "loyaltyCardValidFrom";
|
||||||
|
public static final String BUNDLE_LOYALTY_CARD_EXPIRY = "loyaltyCardExpiry";
|
||||||
|
public static final String BUNDLE_LOYALTY_CARD_BALANCE = "loyaltyCardBalance";
|
||||||
|
public static final String BUNDLE_LOYALTY_CARD_BALANCE_TYPE = "loyaltyCardBalanceType";
|
||||||
|
public static final String BUNDLE_LOYALTY_CARD_CARD_ID = "loyaltyCardCardId";
|
||||||
|
public static final String BUNDLE_LOYALTY_CARD_BARCODE_ID = "loyaltyCardBarcodeId";
|
||||||
|
public static final String BUNDLE_LOYALTY_CARD_BARCODE_TYPE = "loyaltyCardBarcodeType";
|
||||||
|
public static final String BUNDLE_LOYALTY_CARD_HEADER_COLOR = "loyaltyCardHeaderColor";
|
||||||
|
public static final String BUNDLE_LOYALTY_CARD_STAR_STATUS = "loyaltyCardStarStatus";
|
||||||
|
public static final String BUNDLE_LOYALTY_CARD_LAST_USED = "loyaltyCardLastUsed";
|
||||||
|
public static final String BUNDLE_LOYALTY_CARD_ZOOM_LEVEL = "loyaltyCardZoomLevel";
|
||||||
|
public static final String BUNDLE_LOYALTY_CARD_ZOOM_LEVEL_WIDTH = "loyaltyCardZoomLevelWidth";
|
||||||
|
public static final String BUNDLE_LOYALTY_CARD_ARCHIVE_STATUS = "loyaltyCardArchiveStatus";
|
||||||
|
public static final String BUNDLE_LOYALTY_CARD_IMAGE_THUMBNAIL = "loyaltyCardImageThumbnail";
|
||||||
|
public static final String BUNDLE_LOYALTY_CARD_IMAGE_FRONT = "loyaltyCardImageFront";
|
||||||
|
public static final String BUNDLE_LOYALTY_CARD_IMAGE_BACK = "loyaltyCardImageBack";
|
||||||
|
|
||||||
|
private static final String TEMP_IMAGE_THUMBNAIL_FILE_NAME = "loyaltyCardTempImageThumbnailFileName";
|
||||||
|
private static final String TEMP_IMAGE_FRONT_FILE_NAME = "loyaltyCardTempImageFrontFileName";
|
||||||
|
private static final String TEMP_IMAGE_BACK_FILE_NAME = "loyaltyCardTempImageBackFileName";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a loyalty card object with default values
|
||||||
|
*/
|
||||||
|
public LoyaltyCard() {
|
||||||
|
setId(-1);
|
||||||
|
setStore("");
|
||||||
|
setNote("");
|
||||||
|
setValidFrom(null);
|
||||||
|
setExpiry(null);
|
||||||
|
setBalance(new BigDecimal("0"));
|
||||||
|
setBalanceType(null);
|
||||||
|
setCardId("");
|
||||||
|
setBarcodeId(null);
|
||||||
|
setBarcodeType(null);
|
||||||
|
setHeaderColor(null);
|
||||||
|
setStarStatus(0);
|
||||||
|
setLastUsed(Utils.getUnixTime());
|
||||||
|
setZoomLevel(100);
|
||||||
|
setZoomLevelWidth(100);
|
||||||
|
setArchiveStatus(0);
|
||||||
|
setImageThumbnail(null, null);
|
||||||
|
setImageFront(null, null);
|
||||||
|
setImageBack(null, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new loyalty card
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @param store
|
||||||
|
* @param note
|
||||||
|
* @param validFrom
|
||||||
|
* @param expiry
|
||||||
|
* @param balance
|
||||||
|
* @param balanceType
|
||||||
|
* @param cardId
|
||||||
|
* @param barcodeId
|
||||||
|
* @param barcodeType
|
||||||
|
* @param headerColor
|
||||||
|
* @param starStatus
|
||||||
|
* @param lastUsed
|
||||||
|
* @param zoomLevel
|
||||||
|
* @param zoomLevelWidth
|
||||||
|
* @param archiveStatus
|
||||||
|
*/
|
||||||
public LoyaltyCard(final int id, final String store, final String note, @Nullable final Date validFrom,
|
public LoyaltyCard(final int id, final String store, final String note, @Nullable final Date validFrom,
|
||||||
@Nullable final Date expiry, final BigDecimal balance, @Nullable final Currency balanceType,
|
@Nullable final Date expiry, final BigDecimal balance, @Nullable final Currency balanceType,
|
||||||
final String cardId, @Nullable final String barcodeId, @Nullable final CatimaBarcode barcodeType,
|
final String cardId, @Nullable final String barcodeId, @Nullable final CatimaBarcode barcodeType,
|
||||||
@Nullable final Integer headerColor, final int starStatus,
|
@Nullable final Integer headerColor, final int starStatus,
|
||||||
final long lastUsed, final int zoomLevel, final int archiveStatus) {
|
final long lastUsed, final int zoomLevel, final int zoomLevelWidth, final int archiveStatus,
|
||||||
|
@Nullable Bitmap imageThumbnail, @Nullable String imageThumbnailPath,
|
||||||
|
@Nullable Bitmap imageFront, @Nullable String imageFrontPath,
|
||||||
|
@Nullable Bitmap imageBack, @Nullable String imageBackPath) {
|
||||||
|
setId(id);
|
||||||
|
setStore(store);
|
||||||
|
setNote(note);
|
||||||
|
setValidFrom(validFrom);
|
||||||
|
setExpiry(expiry);
|
||||||
|
setBalance(balance);
|
||||||
|
setBalanceType(balanceType);
|
||||||
|
setCardId(cardId);
|
||||||
|
setBarcodeId(barcodeId);
|
||||||
|
setBarcodeType(barcodeType);
|
||||||
|
setHeaderColor(headerColor);
|
||||||
|
setStarStatus(starStatus);
|
||||||
|
setLastUsed(lastUsed);
|
||||||
|
setZoomLevel(zoomLevel);
|
||||||
|
setZoomLevelWidth(zoomLevelWidth);
|
||||||
|
setArchiveStatus(archiveStatus);
|
||||||
|
setImageThumbnail(imageThumbnail, imageThumbnailPath);
|
||||||
|
setImageFront(imageFront, imageFrontPath);
|
||||||
|
setImageBack(imageBack, imageBackPath);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
public Bitmap getImageThumbnail(Context context) {
|
||||||
|
if (imageThumbnailPath != null) {
|
||||||
|
if (imageThumbnailPath.equals(TEMP_IMAGE_THUMBNAIL_FILE_NAME)) {
|
||||||
|
imageThumbnail = Utils.loadTempImage(context, imageThumbnailPath);
|
||||||
|
} else {
|
||||||
|
imageThumbnail = Utils.retrieveCardImage(context, imageThumbnailPath);
|
||||||
|
}
|
||||||
|
imageThumbnailPath = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (imageThumbnail == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return imageThumbnail.copy(imageThumbnail.getConfig(), imageThumbnail.isMutable());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
public Bitmap getImageFront(Context context) {
|
||||||
|
if (imageFrontPath != null) {
|
||||||
|
if (imageFrontPath.equals(TEMP_IMAGE_FRONT_FILE_NAME)) {
|
||||||
|
imageFront = Utils.loadTempImage(context, imageFrontPath);
|
||||||
|
} else {
|
||||||
|
imageFront = Utils.retrieveCardImage(context, imageFrontPath);
|
||||||
|
}
|
||||||
|
imageFrontPath = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (imageFront == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return imageFront.copy(imageFront.getConfig(), imageFront.isMutable());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
public Bitmap getImageBack(Context context) {
|
||||||
|
if (imageBackPath != null) {
|
||||||
|
if (imageBackPath.equals(TEMP_IMAGE_BACK_FILE_NAME)) {
|
||||||
|
imageBack = Utils.loadTempImage(context, imageBackPath);
|
||||||
|
} else {
|
||||||
|
imageBack = Utils.retrieveCardImage(context, imageBackPath);
|
||||||
|
}
|
||||||
|
imageBackPath = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (imageBack == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return imageBack.copy(imageBack.getConfig(), imageBack.isMutable());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(int id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStore(@NonNull String store) {
|
||||||
this.store = store;
|
this.store = store;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNote(@NonNull String note) {
|
||||||
this.note = note;
|
this.note = note;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValidFrom(@Nullable Date validFrom) {
|
||||||
this.validFrom = validFrom;
|
this.validFrom = validFrom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExpiry(@Nullable Date expiry) {
|
||||||
this.expiry = expiry;
|
this.expiry = expiry;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBalance(@NonNull BigDecimal balance) {
|
||||||
this.balance = balance;
|
this.balance = balance;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBalanceType(@Nullable Currency balanceType) {
|
||||||
this.balanceType = balanceType;
|
this.balanceType = balanceType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCardId(@NonNull String cardId) {
|
||||||
this.cardId = cardId;
|
this.cardId = cardId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBarcodeId(@Nullable String barcodeId) {
|
||||||
this.barcodeId = barcodeId;
|
this.barcodeId = barcodeId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBarcodeType(@Nullable CatimaBarcode barcodeType) {
|
||||||
this.barcodeType = barcodeType;
|
this.barcodeType = barcodeType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHeaderColor(@Nullable Integer headerColor) {
|
||||||
this.headerColor = headerColor;
|
this.headerColor = headerColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStarStatus(int starStatus) {
|
||||||
|
if (starStatus != 0 && starStatus != 1) {
|
||||||
|
throw new IllegalArgumentException("starStatus must be 0 or 1");
|
||||||
|
}
|
||||||
|
|
||||||
this.starStatus = starStatus;
|
this.starStatus = starStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLastUsed(long lastUsed) {
|
||||||
this.lastUsed = lastUsed;
|
this.lastUsed = lastUsed;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZoomLevel(int zoomLevel) {
|
||||||
|
if (zoomLevel < 0 || zoomLevel > 100) {
|
||||||
|
throw new IllegalArgumentException("zoomLevel must be in range 0-100");
|
||||||
|
}
|
||||||
|
|
||||||
this.zoomLevel = zoomLevel;
|
this.zoomLevel = zoomLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZoomLevelWidth(int zoomLevelWidth) {
|
||||||
|
if (zoomLevelWidth < 0 || zoomLevelWidth > 100) {
|
||||||
|
throw new IllegalArgumentException("zoomLevelWidth must be in range 0-100");
|
||||||
|
}
|
||||||
|
|
||||||
|
this.zoomLevelWidth = zoomLevelWidth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setArchiveStatus(int archiveStatus) {
|
||||||
|
if (archiveStatus != 0 && archiveStatus != 1) {
|
||||||
|
throw new IllegalArgumentException("archiveStatus must be 0 or 1");
|
||||||
|
}
|
||||||
|
|
||||||
this.archiveStatus = archiveStatus;
|
this.archiveStatus = archiveStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected LoyaltyCard(Parcel in) {
|
public void setImageThumbnail(@Nullable Bitmap imageThumbnail, @Nullable String imageThumbnailPath) {
|
||||||
id = in.readInt();
|
if (imageThumbnail != null && imageThumbnailPath != null) {
|
||||||
store = in.readString();
|
throw new IllegalArgumentException("Cannot set both thumbnail and path");
|
||||||
note = in.readString();
|
}
|
||||||
long tmpValidFrom = in.readLong();
|
|
||||||
validFrom = tmpValidFrom != -1 ? new Date(tmpValidFrom) : null;
|
this.imageThumbnailPath = imageThumbnailPath;
|
||||||
long tmpExpiry = in.readLong();
|
this.imageThumbnail = imageThumbnail != null ? imageThumbnail.copy(imageThumbnail.getConfig(), imageThumbnail.isMutable()) : null;
|
||||||
expiry = tmpExpiry != -1 ? new Date(tmpExpiry) : null;
|
|
||||||
balance = (BigDecimal) in.readValue(BigDecimal.class.getClassLoader());
|
|
||||||
balanceType = (Currency) in.readValue(Currency.class.getClassLoader());
|
|
||||||
cardId = in.readString();
|
|
||||||
barcodeId = in.readString();
|
|
||||||
String tmpBarcodeType = in.readString();
|
|
||||||
barcodeType = !tmpBarcodeType.isEmpty() ? CatimaBarcode.fromName(tmpBarcodeType) : null;
|
|
||||||
int tmpHeaderColor = in.readInt();
|
|
||||||
headerColor = tmpHeaderColor != -1 ? tmpHeaderColor : null;
|
|
||||||
starStatus = in.readInt();
|
|
||||||
lastUsed = in.readLong();
|
|
||||||
zoomLevel = in.readInt();
|
|
||||||
archiveStatus = in.readInt();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public void setImageFront(@Nullable Bitmap imageFront, @Nullable String imageFrontPath) {
|
||||||
public void writeToParcel(Parcel parcel, int i) {
|
if (imageFront != null && imageFrontPath != null) {
|
||||||
parcel.writeInt(id);
|
throw new IllegalArgumentException("Cannot set both thumbnail and path");
|
||||||
parcel.writeString(store);
|
}
|
||||||
parcel.writeString(note);
|
|
||||||
parcel.writeLong(validFrom != null ? validFrom.getTime() : -1);
|
this.imageFrontPath = imageFrontPath;
|
||||||
parcel.writeLong(expiry != null ? expiry.getTime() : -1);
|
this.imageFront = imageFront != null ? imageFront.copy(imageFront.getConfig(), imageFront.isMutable()) : null;
|
||||||
parcel.writeValue(balance);
|
|
||||||
parcel.writeValue(balanceType);
|
|
||||||
parcel.writeString(cardId);
|
|
||||||
parcel.writeString(barcodeId);
|
|
||||||
parcel.writeString(barcodeType != null ? barcodeType.name() : "");
|
|
||||||
parcel.writeInt(headerColor != null ? headerColor : -1);
|
|
||||||
parcel.writeInt(starStatus);
|
|
||||||
parcel.writeLong(lastUsed);
|
|
||||||
parcel.writeInt(zoomLevel);
|
|
||||||
parcel.writeInt(archiveStatus);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static LoyaltyCard toLoyaltyCard(Cursor cursor) {
|
public void setImageBack(@Nullable Bitmap imageBack, @Nullable String imageBackPath) {
|
||||||
|
if (imageBack != null && imageBackPath != null) {
|
||||||
|
throw new IllegalArgumentException("Cannot set both thumbnail and path");
|
||||||
|
}
|
||||||
|
|
||||||
|
this.imageBackPath = imageBackPath;
|
||||||
|
this.imageBack = imageBack != null ? imageBack.copy(imageBack.getConfig(), imageBack.isMutable()) : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
public Bitmap getImageForImageLocationType(Context context, ImageLocationType imageLocationType) {
|
||||||
|
if (imageLocationType == ImageLocationType.icon) {
|
||||||
|
return getImageThumbnail(context);
|
||||||
|
} else if (imageLocationType == ImageLocationType.front) {
|
||||||
|
return getImageFront(context);
|
||||||
|
} else if (imageLocationType == ImageLocationType.back) {
|
||||||
|
return getImageBack(context);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new IllegalArgumentException("Unknown image location type");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void updateFromBundle(@NonNull Bundle bundle, boolean requireFull) {
|
||||||
|
if (bundle.containsKey(BUNDLE_LOYALTY_CARD_ID)) {
|
||||||
|
setId(bundle.getInt(BUNDLE_LOYALTY_CARD_ID));
|
||||||
|
} else if (requireFull) {
|
||||||
|
throw new IllegalArgumentException("Missing key " + BUNDLE_LOYALTY_CARD_ID);
|
||||||
|
}
|
||||||
|
if (bundle.containsKey(BUNDLE_LOYALTY_CARD_STORE)) {
|
||||||
|
setStore(Objects.requireNonNull(bundle.getString(BUNDLE_LOYALTY_CARD_STORE)));
|
||||||
|
} else if (requireFull) {
|
||||||
|
throw new IllegalArgumentException("Missing key " + BUNDLE_LOYALTY_CARD_STORE);
|
||||||
|
}
|
||||||
|
if (bundle.containsKey(BUNDLE_LOYALTY_CARD_NOTE)) {
|
||||||
|
setNote(Objects.requireNonNull(bundle.getString(BUNDLE_LOYALTY_CARD_NOTE)));
|
||||||
|
} else if (requireFull) {
|
||||||
|
throw new IllegalArgumentException("Missing key " + BUNDLE_LOYALTY_CARD_NOTE);
|
||||||
|
}
|
||||||
|
if (bundle.containsKey(BUNDLE_LOYALTY_CARD_VALID_FROM)) {
|
||||||
|
long tmpValidFrom = bundle.getLong(BUNDLE_LOYALTY_CARD_VALID_FROM);
|
||||||
|
setValidFrom(tmpValidFrom > 0 ? new Date(tmpValidFrom) : null);
|
||||||
|
} else if (requireFull) {
|
||||||
|
throw new IllegalArgumentException("Missing key " + BUNDLE_LOYALTY_CARD_VALID_FROM);
|
||||||
|
}
|
||||||
|
if (bundle.containsKey(BUNDLE_LOYALTY_CARD_EXPIRY)) {
|
||||||
|
long tmpExpiry = bundle.getLong(BUNDLE_LOYALTY_CARD_EXPIRY);
|
||||||
|
setExpiry(tmpExpiry > 0 ? new Date(tmpExpiry) : null);
|
||||||
|
} else if (requireFull) {
|
||||||
|
throw new IllegalArgumentException("Missing key " + BUNDLE_LOYALTY_CARD_EXPIRY);
|
||||||
|
}
|
||||||
|
if (bundle.containsKey(BUNDLE_LOYALTY_CARD_BALANCE)) {
|
||||||
|
setBalance(new BigDecimal(bundle.getString(BUNDLE_LOYALTY_CARD_BALANCE)));
|
||||||
|
} else if (requireFull) {
|
||||||
|
throw new IllegalArgumentException("Missing key " + BUNDLE_LOYALTY_CARD_BALANCE);
|
||||||
|
}
|
||||||
|
if (bundle.containsKey(BUNDLE_LOYALTY_CARD_BALANCE_TYPE)) {
|
||||||
|
String tmpBalanceType = bundle.getString(BUNDLE_LOYALTY_CARD_BALANCE_TYPE);
|
||||||
|
setBalanceType(tmpBalanceType != null ? Currency.getInstance(tmpBalanceType) : null);
|
||||||
|
} else if (requireFull) {
|
||||||
|
throw new IllegalArgumentException("Missing key " + BUNDLE_LOYALTY_CARD_BALANCE_TYPE);
|
||||||
|
}
|
||||||
|
if (bundle.containsKey(BUNDLE_LOYALTY_CARD_CARD_ID)) {
|
||||||
|
setCardId(Objects.requireNonNull(bundle.getString(BUNDLE_LOYALTY_CARD_CARD_ID)));
|
||||||
|
} else if (requireFull) {
|
||||||
|
throw new IllegalArgumentException("Missing key " + BUNDLE_LOYALTY_CARD_CARD_ID);
|
||||||
|
}
|
||||||
|
if (bundle.containsKey(BUNDLE_LOYALTY_CARD_BARCODE_ID)) {
|
||||||
|
setBarcodeId(bundle.getString(BUNDLE_LOYALTY_CARD_BARCODE_ID));
|
||||||
|
} else if (requireFull) {
|
||||||
|
throw new IllegalArgumentException("Missing key " + BUNDLE_LOYALTY_CARD_BARCODE_ID);
|
||||||
|
}
|
||||||
|
if (bundle.containsKey(BUNDLE_LOYALTY_CARD_BARCODE_TYPE)) {
|
||||||
|
String tmpBarcodeType = bundle.getString(BUNDLE_LOYALTY_CARD_BARCODE_TYPE);
|
||||||
|
setBarcodeType(tmpBarcodeType != null ? CatimaBarcode.fromName(tmpBarcodeType) : null);
|
||||||
|
} else if (requireFull) {
|
||||||
|
throw new IllegalArgumentException("Missing key " + BUNDLE_LOYALTY_CARD_BARCODE_TYPE);
|
||||||
|
}
|
||||||
|
if (bundle.containsKey(BUNDLE_LOYALTY_CARD_HEADER_COLOR)) {
|
||||||
|
int tmpHeaderColor = bundle.getInt(BUNDLE_LOYALTY_CARD_HEADER_COLOR);
|
||||||
|
setHeaderColor(tmpHeaderColor != -1 ? tmpHeaderColor : null);
|
||||||
|
} else if (requireFull) {
|
||||||
|
throw new IllegalArgumentException("Missing key " + BUNDLE_LOYALTY_CARD_HEADER_COLOR);
|
||||||
|
}
|
||||||
|
if (bundle.containsKey(BUNDLE_LOYALTY_CARD_STAR_STATUS)) {
|
||||||
|
setStarStatus(bundle.getInt(BUNDLE_LOYALTY_CARD_STAR_STATUS));
|
||||||
|
} else if (requireFull) {
|
||||||
|
throw new IllegalArgumentException("Missing key " + BUNDLE_LOYALTY_CARD_STAR_STATUS);
|
||||||
|
}
|
||||||
|
if (bundle.containsKey(BUNDLE_LOYALTY_CARD_LAST_USED)) {
|
||||||
|
setLastUsed(bundle.getLong(BUNDLE_LOYALTY_CARD_LAST_USED));
|
||||||
|
} else if (requireFull) {
|
||||||
|
throw new IllegalArgumentException("Missing key " + BUNDLE_LOYALTY_CARD_LAST_USED);
|
||||||
|
}
|
||||||
|
if (bundle.containsKey(BUNDLE_LOYALTY_CARD_ZOOM_LEVEL)) {
|
||||||
|
setZoomLevel(bundle.getInt(BUNDLE_LOYALTY_CARD_ZOOM_LEVEL));
|
||||||
|
} else if (requireFull) {
|
||||||
|
throw new IllegalArgumentException("Missing key " + BUNDLE_LOYALTY_CARD_ZOOM_LEVEL);
|
||||||
|
}
|
||||||
|
if (bundle.containsKey(BUNDLE_LOYALTY_CARD_ZOOM_LEVEL_WIDTH)) {
|
||||||
|
setZoomLevelWidth(bundle.getInt(BUNDLE_LOYALTY_CARD_ZOOM_LEVEL_WIDTH));
|
||||||
|
} else if (requireFull) {
|
||||||
|
throw new IllegalArgumentException("Missing key " + BUNDLE_LOYALTY_CARD_ZOOM_LEVEL_WIDTH);
|
||||||
|
}
|
||||||
|
if (bundle.containsKey(BUNDLE_LOYALTY_CARD_ARCHIVE_STATUS)) {
|
||||||
|
setArchiveStatus(bundle.getInt(BUNDLE_LOYALTY_CARD_ARCHIVE_STATUS));
|
||||||
|
} else if (requireFull) {
|
||||||
|
throw new IllegalArgumentException("Missing key " + BUNDLE_LOYALTY_CARD_ARCHIVE_STATUS);
|
||||||
|
}
|
||||||
|
if (bundle.containsKey(BUNDLE_LOYALTY_CARD_IMAGE_THUMBNAIL)) {
|
||||||
|
setImageThumbnail(null, bundle.getString(BUNDLE_LOYALTY_CARD_IMAGE_THUMBNAIL));
|
||||||
|
} else if (requireFull) {
|
||||||
|
throw new IllegalArgumentException("Missing key " + BUNDLE_LOYALTY_CARD_IMAGE_THUMBNAIL);
|
||||||
|
}
|
||||||
|
if (bundle.containsKey(BUNDLE_LOYALTY_CARD_IMAGE_FRONT)) {
|
||||||
|
setImageFront(null, bundle.getString(BUNDLE_LOYALTY_CARD_IMAGE_FRONT));
|
||||||
|
} else if (requireFull) {
|
||||||
|
throw new IllegalArgumentException("Missing key " + BUNDLE_LOYALTY_CARD_IMAGE_FRONT);
|
||||||
|
}
|
||||||
|
if (bundle.containsKey(BUNDLE_LOYALTY_CARD_IMAGE_BACK)) {
|
||||||
|
setImageBack(null, bundle.getString(BUNDLE_LOYALTY_CARD_IMAGE_BACK));
|
||||||
|
} else if (requireFull) {
|
||||||
|
throw new IllegalArgumentException("Missing key " + BUNDLE_LOYALTY_CARD_IMAGE_BACK);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public Bundle toBundle(Context context, List<String> exportLimit) {
|
||||||
|
boolean exportIsLimited = !exportLimit.isEmpty();
|
||||||
|
|
||||||
|
Bundle bundle = new Bundle();
|
||||||
|
|
||||||
|
if (!exportIsLimited || exportLimit.contains(BUNDLE_LOYALTY_CARD_ID)) {
|
||||||
|
bundle.putInt(BUNDLE_LOYALTY_CARD_ID, id);
|
||||||
|
}
|
||||||
|
if (!exportIsLimited || exportLimit.contains(BUNDLE_LOYALTY_CARD_STORE)) {
|
||||||
|
bundle.putString(BUNDLE_LOYALTY_CARD_STORE, store);
|
||||||
|
}
|
||||||
|
if (!exportIsLimited || exportLimit.contains(BUNDLE_LOYALTY_CARD_NOTE)) {
|
||||||
|
bundle.putString(BUNDLE_LOYALTY_CARD_NOTE, note);
|
||||||
|
}
|
||||||
|
if (!exportIsLimited || exportLimit.contains(BUNDLE_LOYALTY_CARD_VALID_FROM)) {
|
||||||
|
bundle.putLong(BUNDLE_LOYALTY_CARD_VALID_FROM, validFrom != null ? validFrom.getTime() : -1);
|
||||||
|
}
|
||||||
|
if (!exportIsLimited || exportLimit.contains(BUNDLE_LOYALTY_CARD_EXPIRY)) {
|
||||||
|
bundle.putLong(BUNDLE_LOYALTY_CARD_EXPIRY, expiry != null ? expiry.getTime() : -1);
|
||||||
|
}
|
||||||
|
if (!exportIsLimited || exportLimit.contains(BUNDLE_LOYALTY_CARD_BALANCE)) {
|
||||||
|
bundle.putString(BUNDLE_LOYALTY_CARD_BALANCE, balance.toString());
|
||||||
|
}
|
||||||
|
if (!exportIsLimited || exportLimit.contains(BUNDLE_LOYALTY_CARD_BALANCE_TYPE)) {
|
||||||
|
bundle.putString(BUNDLE_LOYALTY_CARD_BALANCE_TYPE, balanceType != null ? balanceType.toString() : null);
|
||||||
|
}
|
||||||
|
if (!exportIsLimited || exportLimit.contains(BUNDLE_LOYALTY_CARD_CARD_ID)) {
|
||||||
|
bundle.putString(BUNDLE_LOYALTY_CARD_CARD_ID, cardId);
|
||||||
|
}
|
||||||
|
if (!exportIsLimited || exportLimit.contains(BUNDLE_LOYALTY_CARD_BARCODE_ID)) {
|
||||||
|
bundle.putString(BUNDLE_LOYALTY_CARD_BARCODE_ID, barcodeId);
|
||||||
|
}
|
||||||
|
if (!exportIsLimited || exportLimit.contains(BUNDLE_LOYALTY_CARD_BARCODE_TYPE)) {
|
||||||
|
bundle.putString(BUNDLE_LOYALTY_CARD_BARCODE_TYPE, barcodeType != null ? barcodeType.name() : null);
|
||||||
|
}
|
||||||
|
if (!exportIsLimited || exportLimit.contains(BUNDLE_LOYALTY_CARD_HEADER_COLOR)) {
|
||||||
|
bundle.putInt(BUNDLE_LOYALTY_CARD_HEADER_COLOR, headerColor != null ? headerColor : -1);
|
||||||
|
}
|
||||||
|
if (!exportIsLimited || exportLimit.contains(BUNDLE_LOYALTY_CARD_STAR_STATUS)) {
|
||||||
|
bundle.putInt(BUNDLE_LOYALTY_CARD_STAR_STATUS, starStatus);
|
||||||
|
}
|
||||||
|
if (!exportIsLimited || exportLimit.contains(BUNDLE_LOYALTY_CARD_LAST_USED)) {
|
||||||
|
bundle.putLong(BUNDLE_LOYALTY_CARD_LAST_USED, lastUsed);
|
||||||
|
}
|
||||||
|
if (!exportIsLimited || exportLimit.contains(BUNDLE_LOYALTY_CARD_ZOOM_LEVEL)) {
|
||||||
|
bundle.putInt(BUNDLE_LOYALTY_CARD_ZOOM_LEVEL, zoomLevel);
|
||||||
|
}
|
||||||
|
if (!exportIsLimited || exportLimit.contains(BUNDLE_LOYALTY_CARD_ZOOM_LEVEL_WIDTH)) {
|
||||||
|
bundle.putInt(BUNDLE_LOYALTY_CARD_ZOOM_LEVEL_WIDTH, zoomLevelWidth);
|
||||||
|
}
|
||||||
|
if (!exportIsLimited || exportLimit.contains(BUNDLE_LOYALTY_CARD_ARCHIVE_STATUS)) {
|
||||||
|
bundle.putInt(BUNDLE_LOYALTY_CARD_ARCHIVE_STATUS, archiveStatus);
|
||||||
|
}
|
||||||
|
// There is an (undocumented) size limit to bundles of around 2MB(?), when going over it you will experience a random crash
|
||||||
|
// So, instead of storing the bitmaps directly, we write the bitmap to a temp file and store the path
|
||||||
|
if (!exportIsLimited || exportLimit.contains(BUNDLE_LOYALTY_CARD_IMAGE_THUMBNAIL)) {
|
||||||
|
Bitmap thumbnail = getImageThumbnail(context);
|
||||||
|
if (thumbnail != null) {
|
||||||
|
Utils.saveTempImage(context, thumbnail, TEMP_IMAGE_THUMBNAIL_FILE_NAME, Bitmap.CompressFormat.PNG);
|
||||||
|
bundle.putString(BUNDLE_LOYALTY_CARD_IMAGE_THUMBNAIL, TEMP_IMAGE_THUMBNAIL_FILE_NAME);
|
||||||
|
} else {
|
||||||
|
bundle.putString(BUNDLE_LOYALTY_CARD_IMAGE_THUMBNAIL, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!exportIsLimited || exportLimit.contains(BUNDLE_LOYALTY_CARD_IMAGE_FRONT)) {
|
||||||
|
Bitmap front = getImageFront(context);
|
||||||
|
if (front != null) {
|
||||||
|
Utils.saveTempImage(context, front, TEMP_IMAGE_FRONT_FILE_NAME, Bitmap.CompressFormat.PNG);
|
||||||
|
bundle.putString(BUNDLE_LOYALTY_CARD_IMAGE_FRONT, TEMP_IMAGE_FRONT_FILE_NAME);
|
||||||
|
} else {
|
||||||
|
bundle.putString(BUNDLE_LOYALTY_CARD_IMAGE_FRONT, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!exportIsLimited || exportLimit.contains(BUNDLE_LOYALTY_CARD_IMAGE_BACK)) {
|
||||||
|
Bitmap back = getImageBack(context);
|
||||||
|
if (back != null) {
|
||||||
|
Utils.saveTempImage(context, back, TEMP_IMAGE_BACK_FILE_NAME, Bitmap.CompressFormat.PNG);
|
||||||
|
bundle.putString(BUNDLE_LOYALTY_CARD_IMAGE_BACK, TEMP_IMAGE_BACK_FILE_NAME);
|
||||||
|
} else {
|
||||||
|
bundle.putString(BUNDLE_LOYALTY_CARD_IMAGE_BACK, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return bundle;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static LoyaltyCard fromCursor(Context context, Cursor cursor) {
|
||||||
|
// id
|
||||||
int id = cursor.getInt(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.ID));
|
int id = cursor.getInt(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.ID));
|
||||||
|
// store
|
||||||
String store = cursor.getString(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.STORE));
|
String store = cursor.getString(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.STORE));
|
||||||
|
// note
|
||||||
String note = cursor.getString(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.NOTE));
|
String note = cursor.getString(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.NOTE));
|
||||||
|
// validFrom
|
||||||
long validFromLong = cursor.getLong(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.VALID_FROM));
|
long validFromLong = cursor.getLong(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.VALID_FROM));
|
||||||
|
Date validFrom = validFromLong > 0 ? new Date(validFromLong) : null;
|
||||||
|
// expiry
|
||||||
long expiryLong = cursor.getLong(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.EXPIRY));
|
long expiryLong = cursor.getLong(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.EXPIRY));
|
||||||
|
Date expiry = expiryLong > 0 ? new Date(expiryLong) : null;
|
||||||
|
// balance
|
||||||
BigDecimal balance = new BigDecimal(cursor.getString(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.BALANCE)));
|
BigDecimal balance = new BigDecimal(cursor.getString(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.BALANCE)));
|
||||||
String cardId = cursor.getString(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.CARD_ID));
|
// balanceType
|
||||||
String barcodeId = cursor.getString(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.BARCODE_ID));
|
|
||||||
int starred = cursor.getInt(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.STAR_STATUS));
|
|
||||||
long lastUsed = cursor.getLong(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.LAST_USED));
|
|
||||||
int zoomLevel = cursor.getInt(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.ZOOM_LEVEL));
|
|
||||||
int archived = cursor.getInt(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.ARCHIVE_STATUS));
|
|
||||||
|
|
||||||
int barcodeTypeColumn = cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.BARCODE_TYPE);
|
|
||||||
int balanceTypeColumn = cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.BALANCE_TYPE);
|
int balanceTypeColumn = cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.BALANCE_TYPE);
|
||||||
|
Currency balanceType = !cursor.isNull(balanceTypeColumn) ? Currency.getInstance(cursor.getString(balanceTypeColumn)) : null;
|
||||||
|
// cardId
|
||||||
|
String cardId = cursor.getString(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.CARD_ID));
|
||||||
|
// barcodeId
|
||||||
|
int barcodeIdColumn = cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.BARCODE_ID);
|
||||||
|
String barcodeId = !cursor.isNull(barcodeIdColumn) ? cursor.getString(barcodeIdColumn) : null;
|
||||||
|
// barcodeType
|
||||||
|
int barcodeTypeColumn = cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.BARCODE_TYPE);
|
||||||
|
CatimaBarcode barcodeType = !cursor.isNull(barcodeTypeColumn) ? CatimaBarcode.fromName(cursor.getString(barcodeTypeColumn)) : null;
|
||||||
|
// headerColor
|
||||||
int headerColorColumn = cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.HEADER_COLOR);
|
int headerColorColumn = cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.HEADER_COLOR);
|
||||||
|
Integer headerColor = !cursor.isNull(headerColorColumn) ? cursor.getInt(headerColorColumn) : null;
|
||||||
|
// starStatus
|
||||||
|
int starStatus = cursor.getInt(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.STAR_STATUS));
|
||||||
|
// lastUsed
|
||||||
|
long lastUsed = cursor.getLong(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.LAST_USED));
|
||||||
|
// zoomLevel
|
||||||
|
int zoomLevel = cursor.getInt(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.ZOOM_LEVEL));
|
||||||
|
// zoomLevelWidth
|
||||||
|
int zoomLevelWidth = cursor.getInt(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.ZOOM_LEVEL_WIDTH));
|
||||||
|
// archiveStatus
|
||||||
|
int archiveStatus = cursor.getInt(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbIds.ARCHIVE_STATUS));
|
||||||
|
|
||||||
CatimaBarcode barcodeType = null;
|
return new LoyaltyCard(
|
||||||
Currency balanceType = null;
|
id,
|
||||||
Date validFrom = null;
|
store,
|
||||||
Date expiry = null;
|
note,
|
||||||
Integer headerColor = null;
|
validFrom,
|
||||||
|
expiry,
|
||||||
if (cursor.isNull(barcodeTypeColumn) == false) {
|
balance,
|
||||||
barcodeType = CatimaBarcode.fromName(cursor.getString(barcodeTypeColumn));
|
balanceType,
|
||||||
}
|
cardId,
|
||||||
|
barcodeId,
|
||||||
if (cursor.isNull(balanceTypeColumn) == false) {
|
barcodeType,
|
||||||
balanceType = Currency.getInstance(cursor.getString(balanceTypeColumn));
|
headerColor,
|
||||||
}
|
starStatus,
|
||||||
|
lastUsed,
|
||||||
if (validFromLong > 0) {
|
zoomLevel,
|
||||||
validFrom = new Date(validFromLong);
|
zoomLevelWidth,
|
||||||
}
|
archiveStatus,
|
||||||
|
null,
|
||||||
if (expiryLong > 0) {
|
Utils.getCardImageFileName(id, ImageLocationType.icon),
|
||||||
expiry = new Date(expiryLong);
|
null,
|
||||||
}
|
Utils.getCardImageFileName(id, ImageLocationType.front),
|
||||||
|
null,
|
||||||
if (cursor.isNull(headerColorColumn) == false) {
|
Utils.getCardImageFileName(id, ImageLocationType.back)
|
||||||
headerColor = cursor.getInt(headerColorColumn);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
return new LoyaltyCard(id, store, note, validFrom, expiry, balance, balanceType, cardId, barcodeId, barcodeType, headerColor, starred, lastUsed, zoomLevel, archived);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isDuplicate(final LoyaltyCard a, final LoyaltyCard b) {
|
public static boolean isDuplicate(Context context, final LoyaltyCard a, final LoyaltyCard b) {
|
||||||
// Skip lastUsed & zoomLevel
|
// Note: Bitmap comparing is slow, be careful when calling this method
|
||||||
|
// Skip lastUsed & zoomLevel*
|
||||||
return a.id == b.id && // non-nullable int
|
return a.id == b.id && // non-nullable int
|
||||||
a.store.equals(b.store) && // non-nullable String
|
a.store.equals(b.store) && // non-nullable String
|
||||||
a.note.equals(b.note) && // non-nullable String
|
a.note.equals(b.note) && // non-nullable String
|
||||||
@@ -159,12 +595,23 @@ public class LoyaltyCard implements Parcelable {
|
|||||||
b.barcodeType == null ? null : b.barcodeType.format()) && // nullable CatimaBarcode with no overridden .equals(), so we need to check .format()
|
b.barcodeType == null ? null : b.barcodeType.format()) && // nullable CatimaBarcode with no overridden .equals(), so we need to check .format()
|
||||||
Utils.equals(a.headerColor, b.headerColor) && // nullable Integer
|
Utils.equals(a.headerColor, b.headerColor) && // nullable Integer
|
||||||
a.starStatus == b.starStatus && // non-nullable int
|
a.starStatus == b.starStatus && // non-nullable int
|
||||||
a.archiveStatus == b.archiveStatus; // non-nullable int
|
a.archiveStatus == b.archiveStatus && // non-nullable int
|
||||||
|
nullableBitmapsEqual(a.getImageThumbnail(context), b.getImageThumbnail(context)) && // nullable Bitmap
|
||||||
|
nullableBitmapsEqual(a.getImageFront(context), b.getImageFront(context)) && // nullable Bitmap
|
||||||
|
nullableBitmapsEqual(a.getImageBack(context), b.getImageBack(context)); // nullable Bitmap
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public static boolean nullableBitmapsEqual(@Nullable Bitmap a, @Nullable Bitmap b) {
|
||||||
public int describeContents() {
|
if (a == null && b == null) {
|
||||||
return 0;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (a != null && b != null) {
|
||||||
|
return a.sameAs(b);
|
||||||
|
}
|
||||||
|
|
||||||
|
// One is null and the other isn't, so it's not equal
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
@@ -173,7 +620,8 @@ public class LoyaltyCard implements Parcelable {
|
|||||||
return String.format(
|
return String.format(
|
||||||
"LoyaltyCard{%n id=%s,%n store=%s,%n note=%s,%n validFrom=%s,%n expiry=%s,%n"
|
"LoyaltyCard{%n id=%s,%n store=%s,%n note=%s,%n validFrom=%s,%n expiry=%s,%n"
|
||||||
+ " balance=%s,%n balanceType=%s,%n cardId=%s,%n barcodeId=%s,%n barcodeType=%s,%n"
|
+ " balance=%s,%n balanceType=%s,%n cardId=%s,%n barcodeId=%s,%n barcodeType=%s,%n"
|
||||||
+ " headerColor=%s,%n starStatus=%s,%n lastUsed=%s,%n zoomLevel=%s,%n archiveStatus=%s%n}",
|
+ " headerColor=%s,%n starStatus=%s,%n lastUsed=%s,%n zoomLevel=%s,%n zoomLevelWidth=%s,%n archiveStatus=%s%n"
|
||||||
|
+ " imageThumbnail=%s,%n imageThumbnailPath=%s,%n imageFront=%s,%n imageFrontPath=%s,%n imageBack=%s,%n imageBackPath=%s,%n}",
|
||||||
this.id,
|
this.id,
|
||||||
this.store,
|
this.store,
|
||||||
this.note,
|
this.note,
|
||||||
@@ -188,19 +636,14 @@ public class LoyaltyCard implements Parcelable {
|
|||||||
this.starStatus,
|
this.starStatus,
|
||||||
this.lastUsed,
|
this.lastUsed,
|
||||||
this.zoomLevel,
|
this.zoomLevel,
|
||||||
this.archiveStatus
|
this.zoomLevelWidth,
|
||||||
|
this.archiveStatus,
|
||||||
|
this.imageThumbnail,
|
||||||
|
this.imageThumbnailPath,
|
||||||
|
this.imageFront,
|
||||||
|
this.imageFrontPath,
|
||||||
|
this.imageBack,
|
||||||
|
this.imageBackPath
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final Creator<LoyaltyCard> CREATOR = new Creator<LoyaltyCard>() {
|
|
||||||
@Override
|
|
||||||
public LoyaltyCard createFromParcel(Parcel in) {
|
|
||||||
return new LoyaltyCard(in);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public LoyaltyCard[] newArray(int size) {
|
|
||||||
return new LoyaltyCard[size];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ import java.text.DateFormat;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import protect.card_locker.databinding.LoyaltyCardLayoutBinding;
|
import protect.card_locker.databinding.LoyaltyCardLayoutBinding;
|
||||||
|
import protect.card_locker.preferences.Settings;
|
||||||
|
|
||||||
public class LoyaltyCardCursorAdapter extends BaseCursorAdapter<LoyaltyCardCursorAdapter.LoyaltyCardListItemViewHolder> {
|
public class LoyaltyCardCursorAdapter extends BaseCursorAdapter<LoyaltyCardCursorAdapter.LoyaltyCardListItemViewHolder> {
|
||||||
private int mCurrentSelectedIndex = -1;
|
private int mCurrentSelectedIndex = -1;
|
||||||
@@ -79,7 +80,7 @@ public class LoyaltyCardCursorAdapter extends BaseCursorAdapter<LoyaltyCardCurso
|
|||||||
|
|
||||||
public LoyaltyCard getCard(int position) {
|
public LoyaltyCard getCard(int position) {
|
||||||
mCursor.moveToPosition(position);
|
mCursor.moveToPosition(position);
|
||||||
return LoyaltyCard.toLoyaltyCard(mCursor);
|
return LoyaltyCard.fromCursor(mContext, mCursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onBindViewHolder(LoyaltyCardListItemViewHolder inputHolder, Cursor inputCursor) {
|
public void onBindViewHolder(LoyaltyCardListItemViewHolder inputHolder, Cursor inputCursor) {
|
||||||
@@ -87,8 +88,8 @@ public class LoyaltyCardCursorAdapter extends BaseCursorAdapter<LoyaltyCardCurso
|
|||||||
boolean showDivider = false;
|
boolean showDivider = false;
|
||||||
inputHolder.mDivider.setVisibility(View.GONE);
|
inputHolder.mDivider.setVisibility(View.GONE);
|
||||||
|
|
||||||
LoyaltyCard loyaltyCard = LoyaltyCard.toLoyaltyCard(inputCursor);
|
LoyaltyCard loyaltyCard = LoyaltyCard.fromCursor(mContext, inputCursor);
|
||||||
Bitmap icon = Utils.retrieveCardImage(mContext, loyaltyCard.id, ImageLocationType.icon);
|
Bitmap icon = loyaltyCard.getImageThumbnail(mContext);
|
||||||
|
|
||||||
if (mLoyaltyCardListDisplayOptions.showingNameBelowThumbnail() && icon != null) {
|
if (mLoyaltyCardListDisplayOptions.showingNameBelowThumbnail() && icon != null) {
|
||||||
showDivider = true;
|
showDivider = true;
|
||||||
@@ -111,21 +112,21 @@ public class LoyaltyCardCursorAdapter extends BaseCursorAdapter<LoyaltyCardCurso
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (mLoyaltyCardListDisplayOptions.showingValidity() && loyaltyCard.validFrom != null) {
|
if (mLoyaltyCardListDisplayOptions.showingValidity() && loyaltyCard.validFrom != null) {
|
||||||
inputHolder.setExtraField(inputHolder.mValidFromField, DateFormat.getDateInstance(DateFormat.LONG).format(loyaltyCard.validFrom), Utils.isNotYetValid(loyaltyCard.validFrom) ? Color.RED : null, showDivider);
|
inputHolder.setExtraField(inputHolder.mValidFromField, DateFormat.getDateInstance(DateFormat.MEDIUM).format(loyaltyCard.validFrom), Utils.isNotYetValid(loyaltyCard.validFrom) ? Color.RED : null, showDivider);
|
||||||
} else {
|
} else {
|
||||||
inputHolder.setExtraField(inputHolder.mValidFromField, null, null, false);
|
inputHolder.setExtraField(inputHolder.mValidFromField, null, null, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mLoyaltyCardListDisplayOptions.showingValidity() && loyaltyCard.expiry != null) {
|
if (mLoyaltyCardListDisplayOptions.showingValidity() && loyaltyCard.expiry != null) {
|
||||||
inputHolder.setExtraField(inputHolder.mExpiryField, DateFormat.getDateInstance(DateFormat.LONG).format(loyaltyCard.expiry), Utils.hasExpired(loyaltyCard.expiry) ? Color.RED : null, showDivider);
|
inputHolder.setExtraField(inputHolder.mExpiryField, DateFormat.getDateInstance(DateFormat.MEDIUM).format(loyaltyCard.expiry), Utils.hasExpired(loyaltyCard.expiry) ? Color.RED : null, showDivider);
|
||||||
} else {
|
} else {
|
||||||
inputHolder.setExtraField(inputHolder.mExpiryField, null, null, false);
|
inputHolder.setExtraField(inputHolder.mExpiryField, null, null, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
inputHolder.mCardIcon.setContentDescription(loyaltyCard.store);
|
inputHolder.mCardIcon.setContentDescription(loyaltyCard.store);
|
||||||
inputHolder.mIconBackgroundColor = Utils.setIconOrTextWithBackground(mContext, loyaltyCard, icon, inputHolder.mCardIcon, inputHolder.mCardText);
|
Utils.setIconOrTextWithBackground(mContext, loyaltyCard, icon, inputHolder.mCardIcon, inputHolder.mCardText, new Settings(mContext).getPreferredColumnCount());
|
||||||
|
|
||||||
inputHolder.toggleCardStateIcon(loyaltyCard.starStatus != 0, loyaltyCard.archiveStatus != 0, itemSelected(inputCursor.getPosition()));
|
inputHolder.toggleCardStateIcon(loyaltyCard.starStatus != 0, loyaltyCard.archiveStatus != 0);
|
||||||
|
|
||||||
inputHolder.itemView.setActivated(mSelectedItems.get(inputCursor.getPosition(), false));
|
inputHolder.itemView.setActivated(mSelectedItems.get(inputCursor.getPosition(), false));
|
||||||
applyIconAnimation(inputHolder, inputCursor.getPosition());
|
applyIconAnimation(inputHolder, inputCursor.getPosition());
|
||||||
@@ -192,7 +193,7 @@ public class LoyaltyCardCursorAdapter extends BaseCursorAdapter<LoyaltyCardCurso
|
|||||||
int i;
|
int i;
|
||||||
for (i = 0; i < mSelectedItems.size(); i++) {
|
for (i = 0; i < mSelectedItems.size(); i++) {
|
||||||
mCursor.moveToPosition(mSelectedItems.keyAt(i));
|
mCursor.moveToPosition(mSelectedItems.keyAt(i));
|
||||||
result.add(LoyaltyCard.toLoyaltyCard(mCursor));
|
result.add(LoyaltyCard.fromCursor(mContext, mCursor));
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@@ -211,13 +212,11 @@ public class LoyaltyCardCursorAdapter extends BaseCursorAdapter<LoyaltyCardCurso
|
|||||||
public class LoyaltyCardListItemViewHolder extends RecyclerView.ViewHolder {
|
public class LoyaltyCardListItemViewHolder extends RecyclerView.ViewHolder {
|
||||||
|
|
||||||
public TextView mCardText, mStoreField, mNoteField, mBalanceField, mValidFromField, mExpiryField;
|
public TextView mCardText, mStoreField, mNoteField, mBalanceField, mValidFromField, mExpiryField;
|
||||||
public ImageView mCardIcon, mStarBackground, mStarBorder, mTickIcon, mArchivedBackground;
|
public ImageView mCardIcon, mTickIcon;
|
||||||
public MaterialCardView mRow;
|
public MaterialCardView mRow;
|
||||||
public ConstraintLayout mStar, mArchived;
|
public ConstraintLayout mStar, mArchived;
|
||||||
public View mDivider;
|
public View mDivider;
|
||||||
|
|
||||||
private int mIconBackgroundColor;
|
|
||||||
|
|
||||||
protected LoyaltyCardListItemViewHolder(LoyaltyCardLayoutBinding loyaltyCardLayoutBinding, CardAdapterListener inputListener) {
|
protected LoyaltyCardListItemViewHolder(LoyaltyCardLayoutBinding loyaltyCardLayoutBinding, CardAdapterListener inputListener) {
|
||||||
super(loyaltyCardLayoutBinding.getRoot());
|
super(loyaltyCardLayoutBinding.getRoot());
|
||||||
View inputView = loyaltyCardLayoutBinding.getRoot();
|
View inputView = loyaltyCardLayoutBinding.getRoot();
|
||||||
@@ -231,10 +230,7 @@ public class LoyaltyCardCursorAdapter extends BaseCursorAdapter<LoyaltyCardCurso
|
|||||||
mCardIcon = loyaltyCardLayoutBinding.thumbnail;
|
mCardIcon = loyaltyCardLayoutBinding.thumbnail;
|
||||||
mCardText = loyaltyCardLayoutBinding.thumbnailText;
|
mCardText = loyaltyCardLayoutBinding.thumbnailText;
|
||||||
mStar = loyaltyCardLayoutBinding.star;
|
mStar = loyaltyCardLayoutBinding.star;
|
||||||
mStarBackground = loyaltyCardLayoutBinding.starBackground;
|
|
||||||
mStarBorder = loyaltyCardLayoutBinding.starBorder;
|
|
||||||
mArchived = loyaltyCardLayoutBinding.archivedIcon;
|
mArchived = loyaltyCardLayoutBinding.archivedIcon;
|
||||||
mArchivedBackground = loyaltyCardLayoutBinding.archiveBackground;
|
|
||||||
mTickIcon = loyaltyCardLayoutBinding.selectedThumbnail;
|
mTickIcon = loyaltyCardLayoutBinding.selectedThumbnail;
|
||||||
inputView.setOnLongClickListener(view -> {
|
inputView.setOnLongClickListener(view -> {
|
||||||
inputListener.onRowClicked(getAdapterPosition());
|
inputListener.onRowClicked(getAdapterPosition());
|
||||||
@@ -296,31 +292,7 @@ public class LoyaltyCardCursorAdapter extends BaseCursorAdapter<LoyaltyCardCurso
|
|||||||
mNoteField.requestLayout();
|
mNoteField.requestLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void toggleCardStateIcon(boolean enableStar, boolean enableArchive, boolean colorByTheme) {
|
public void toggleCardStateIcon(boolean enableStar, boolean enableArchive) {
|
||||||
/* the below code does not work in android 5! hence the change of drawable instead
|
|
||||||
boolean needDarkForeground = Utils.needsDarkForeground(mIconBackgroundColor);
|
|
||||||
Drawable borderDrawable = mStarBorder.getDrawable().mutate();
|
|
||||||
Drawable backgroundDrawable = mStarBackground.getDrawable().mutate();
|
|
||||||
DrawableCompat.setTint(borderDrawable, needsDarkForeground ? Color.BLACK : Color.WHITE);
|
|
||||||
DrawableCompat.setTint(backgroundDrawable, needsDarkForeground ? Color.BLACK : Color.WHITE);
|
|
||||||
mStarBorder.setImageDrawable(borderDrawable);
|
|
||||||
mStarBackground.setImageDrawable(backgroundDrawable);
|
|
||||||
*/
|
|
||||||
boolean dark = Utils.needsDarkForeground(mIconBackgroundColor);
|
|
||||||
if (colorByTheme) {
|
|
||||||
dark = !mDarkModeEnabled;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (dark) {
|
|
||||||
mStarBorder.setImageResource(R.drawable.ic_unstarred_white);
|
|
||||||
mStarBackground.setImageResource(R.drawable.ic_starred_black);
|
|
||||||
mArchivedBackground.setImageResource(R.drawable.ic_baseline_archive_24_black);
|
|
||||||
} else {
|
|
||||||
mStarBorder.setImageResource(R.drawable.ic_unstarred_black);
|
|
||||||
mStarBackground.setImageResource(R.drawable.ic_starred_white);
|
|
||||||
mArchivedBackground.setImageResource(R.drawable.ic_baseline_archive_24);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (enableStar) {
|
if (enableStar) {
|
||||||
mStar.setVisibility(View.VISIBLE);
|
mStar.setVisibility(View.VISIBLE);
|
||||||
} else{
|
} else{
|
||||||
@@ -332,17 +304,6 @@ public class LoyaltyCardCursorAdapter extends BaseCursorAdapter<LoyaltyCardCurso
|
|||||||
} else{
|
} else{
|
||||||
mArchived.setVisibility(View.GONE);
|
mArchived.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
mStarBorder.invalidate();
|
|
||||||
mStarBackground.invalidate();
|
|
||||||
mArchivedBackground.invalidate();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public int dpToPx(int dp, Context mContext) {
|
|
||||||
Resources r = mContext.getResources();
|
|
||||||
int px = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, r.getDisplayMetrics());
|
|
||||||
return px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -19,6 +19,7 @@ import android.text.method.DigitsKeyListener;
|
|||||||
import android.text.style.ForegroundColorSpan;
|
import android.text.style.ForegroundColorSpan;
|
||||||
import android.text.util.Linkify;
|
import android.text.util.Linkify;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
import android.view.KeyEvent;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@@ -51,6 +52,7 @@ import androidx.core.view.accessibility.AccessibilityNodeInfoCompat;
|
|||||||
import com.google.android.material.color.MaterialColors;
|
import com.google.android.material.color.MaterialColors;
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
||||||
import com.google.android.material.textfield.TextInputEditText;
|
import com.google.android.material.textfield.TextInputEditText;
|
||||||
|
import com.google.zxing.BarcodeFormat;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
@@ -97,9 +99,35 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
|
|||||||
static final String STATE_IMAGEINDEX = "imageIndex";
|
static final String STATE_IMAGEINDEX = "imageIndex";
|
||||||
static final String STATE_FULLSCREEN = "isFullscreen";
|
static final String STATE_FULLSCREEN = "isFullscreen";
|
||||||
|
|
||||||
|
static final String BUNDLE_ID = "id";
|
||||||
|
static final String BUNDLE_CARDLIST = "cardList";
|
||||||
|
static final String BUNDLE_TRANSITION_RIGHT = "transition_right";
|
||||||
|
|
||||||
final private TaskHandler mTasks = new TaskHandler();
|
final private TaskHandler mTasks = new TaskHandler();
|
||||||
Runnable barcodeImageGenerationFinishedCallback;
|
Runnable barcodeImageGenerationFinishedCallback;
|
||||||
|
|
||||||
|
private long initTime = System.currentTimeMillis();
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onKeyDown(int keyCode, KeyEvent event) {
|
||||||
|
if (settings.useVolumeKeysForNavigation()) {
|
||||||
|
if (keyCode == KeyEvent.KEYCODE_VOLUME_UP) {
|
||||||
|
// Navigate to the previous card
|
||||||
|
if (initTime < (System.currentTimeMillis() - 1000)) {
|
||||||
|
prevNextCard(false);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
} else if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) {
|
||||||
|
// Navigate to the next card
|
||||||
|
if (initTime < (System.currentTimeMillis() - 1000)) {
|
||||||
|
prevNextCard(true);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return super.onKeyDown(keyCode, event);
|
||||||
|
}
|
||||||
|
|
||||||
public void onMainImageTap() {
|
public void onMainImageTap() {
|
||||||
// If we're in fullscreen, leave fullscreen
|
// If we're in fullscreen, leave fullscreen
|
||||||
if (isFullscreen) {
|
if (isFullscreen) {
|
||||||
@@ -112,6 +140,7 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
|
|||||||
// If the barcode is shown, switch to fullscreen layout
|
// If the barcode is shown, switch to fullscreen layout
|
||||||
if (imageType == ImageType.BARCODE) {
|
if (imageType == ImageType.BARCODE) {
|
||||||
setFullscreen(true);
|
setFullscreen(true);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -181,8 +210,8 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
|
|||||||
|
|
||||||
private void extractIntentFields(Intent intent) {
|
private void extractIntentFields(Intent intent) {
|
||||||
final Bundle b = intent.getExtras();
|
final Bundle b = intent.getExtras();
|
||||||
loyaltyCardId = b != null ? b.getInt("id") : 0;
|
loyaltyCardId = b != null ? b.getInt(BUNDLE_ID) : 0;
|
||||||
cardList = b != null ? b.getIntegerArrayList("cardList") : null;
|
cardList = b != null ? b.getIntegerArrayList(BUNDLE_CARDLIST) : null;
|
||||||
Log.d(TAG, "View activity: id=" + loyaltyCardId);
|
Log.d(TAG, "View activity: id=" + loyaltyCardId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -194,7 +223,13 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
|
|||||||
} else {
|
} else {
|
||||||
binding.scalerGuideline.setGuidelinePercent(0.5f * scale);
|
binding.scalerGuideline.setGuidelinePercent(0.5f * scale);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void setScalerWidthGuideline(int zoomLevelWidth) {
|
||||||
|
float halfscale = zoomLevelWidth / 200f;
|
||||||
|
|
||||||
|
binding.scalerEndwidthguideline.setGuidelinePercent(0.5f + halfscale);
|
||||||
|
binding.scalerStartwidthguideline.setGuidelinePercent(0.5f - halfscale);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -208,7 +243,7 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int transitionRight = incomingIntentExtras.getInt("transition_right", -1);
|
int transitionRight = incomingIntentExtras.getInt(BUNDLE_TRANSITION_RIGHT, -1);
|
||||||
if (transitionRight == 1) {
|
if (transitionRight == 1) {
|
||||||
// right side transition
|
// right side transition
|
||||||
overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);
|
overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);
|
||||||
@@ -221,6 +256,7 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
|
|||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
binding = LoyaltyCardViewLayoutBinding.inflate(getLayoutInflater());
|
binding = LoyaltyCardViewLayoutBinding.inflate(getLayoutInflater());
|
||||||
setContentView(binding.getRoot());
|
setContentView(binding.getRoot());
|
||||||
|
Utils.applyWindowInsets(binding.getRoot());
|
||||||
Toolbar toolbar = binding.toolbar;
|
Toolbar toolbar = binding.toolbar;
|
||||||
setSupportActionBar(toolbar);
|
setSupportActionBar(toolbar);
|
||||||
|
|
||||||
@@ -251,36 +287,8 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
|
|||||||
database = new DBHelper(this).getWritableDatabase();
|
database = new DBHelper(this).getWritableDatabase();
|
||||||
importURIHelper = new ImportURIHelper(this);
|
importURIHelper = new ImportURIHelper(this);
|
||||||
|
|
||||||
binding.barcodeScaler.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
|
binding.barcodeScaler.setOnSeekBarChangeListener(setOnSeekBarChangeListenerUnifiedFunction());
|
||||||
@Override
|
binding.barcodeWidthscaler.setOnSeekBarChangeListener(setOnSeekBarChangeListenerUnifiedFunction());
|
||||||
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
|
|
||||||
if (!fromUser) {
|
|
||||||
Log.d(TAG, "non user triggered onProgressChanged, ignoring, progress is " + progress);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Log.d(TAG, "Progress is " + progress);
|
|
||||||
Log.d(TAG, "Max is " + binding.barcodeScaler.getMax());
|
|
||||||
float scale = (float) progress / (float) binding.barcodeScaler.getMax();
|
|
||||||
Log.d(TAG, "Scaling to " + scale);
|
|
||||||
|
|
||||||
loyaltyCard.zoomLevel = progress;
|
|
||||||
DBHelper.updateLoyaltyCardZoomLevel(database, loyaltyCardId, loyaltyCard.zoomLevel);
|
|
||||||
|
|
||||||
setScalerGuideline(loyaltyCard.zoomLevel);
|
|
||||||
|
|
||||||
drawMainImage(mainImageIndex, true, isFullscreen);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onStartTrackingTouch(SeekBar seekBar) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onStopTrackingTouch(SeekBar seekBar) {
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
rotationEnabled = true;
|
rotationEnabled = true;
|
||||||
|
|
||||||
@@ -302,7 +310,7 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
|
|||||||
binding.bottomAppBarUpdateBalanceButton.setOnClickListener(view -> showBalanceUpdateDialog());
|
binding.bottomAppBarUpdateBalanceButton.setOnClickListener(view -> showBalanceUpdateDialog());
|
||||||
|
|
||||||
binding.iconContainer.setOnClickListener(view -> {
|
binding.iconContainer.setOnClickListener(view -> {
|
||||||
if (Utils.retrieveCardImage(this, loyaltyCard.id, ImageLocationType.icon) != null) {
|
if (loyaltyCard.getImageThumbnail(this) != null) {
|
||||||
openImageInGallery(ImageType.ICON);
|
openImageInGallery(ImageType.ICON);
|
||||||
} else {
|
} else {
|
||||||
Toast.makeText(LoyaltyCardViewActivity.this, R.string.icon_header_click_text, Toast.LENGTH_LONG).show();
|
Toast.makeText(LoyaltyCardViewActivity.this, R.string.icon_header_click_text, Toast.LENGTH_LONG).show();
|
||||||
@@ -342,6 +350,46 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private SeekBar.OnSeekBarChangeListener setOnSeekBarChangeListenerUnifiedFunction() {
|
||||||
|
return new SeekBar.OnSeekBarChangeListener() {
|
||||||
|
@Override
|
||||||
|
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
|
||||||
|
if (!fromUser) {
|
||||||
|
Log.d(TAG, "non user triggered onProgressChanged, ignoring, progress is " + progress);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Log.d(TAG, "Progress is " + progress);
|
||||||
|
if (seekBar.getId() == binding.barcodeScaler.getId()) {
|
||||||
|
Log.d(TAG, "Max is " + binding.barcodeScaler.getMax());
|
||||||
|
float scale = (float) progress / (float) binding.barcodeScaler.getMax();
|
||||||
|
Log.d(TAG, "Scaling to " + scale);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Log.d(TAG, "Max is " + binding.barcodeWidthscaler.getMax());
|
||||||
|
float scale = (float) progress / (float) binding.barcodeWidthscaler.getMax();
|
||||||
|
Log.d(TAG, "Scaling to " + scale);
|
||||||
|
}
|
||||||
|
if (seekBar.getId() == binding.barcodeScaler.getId()) {
|
||||||
|
loyaltyCard.zoomLevel = progress;
|
||||||
|
setScalerGuideline(loyaltyCard.zoomLevel);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
loyaltyCard.zoomLevelWidth = progress;
|
||||||
|
setScalerWidthGuideline(loyaltyCard.zoomLevelWidth);
|
||||||
|
}
|
||||||
|
|
||||||
|
DBHelper.updateLoyaltyCardZoomLevel(database, loyaltyCardId, loyaltyCard.zoomLevel, loyaltyCard.zoomLevelWidth);
|
||||||
|
drawMainImage(mainImageIndex, true, isFullscreen);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public void onStartTrackingTouch(SeekBar seekBar) {
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public void onStopTrackingTouch(SeekBar seekBar) {
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
private SpannableStringBuilder padSpannableString(SpannableStringBuilder spannableStringBuilder) {
|
private SpannableStringBuilder padSpannableString(SpannableStringBuilder spannableStringBuilder) {
|
||||||
if (spannableStringBuilder.length() > 0) {
|
if (spannableStringBuilder.length() > 0) {
|
||||||
spannableStringBuilder.append("\n\n");
|
spannableStringBuilder.append("\n\n");
|
||||||
@@ -572,8 +620,8 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
|
|||||||
// Restart activity with new card id and index
|
// Restart activity with new card id and index
|
||||||
Intent intent = getIntent();
|
Intent intent = getIntent();
|
||||||
Bundle b = intent.getExtras();
|
Bundle b = intent.getExtras();
|
||||||
b.putInt("id", loyaltyCardId);
|
b.putInt(BUNDLE_ID, loyaltyCardId);
|
||||||
b.putInt("transition_right", transitionRight ? 1 : 0);
|
b.putInt(BUNDLE_TRANSITION_RIGHT, transitionRight ? 1 : 0);
|
||||||
intent.putExtras(b);
|
intent.putExtras(b);
|
||||||
intent.setFlags(intent.getFlags() | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
intent.setFlags(intent.getFlags() | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
@@ -633,7 +681,7 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
|
|||||||
window.setAttributes(attributes);
|
window.setAttributes(attributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
loyaltyCard = DBHelper.getLoyaltyCard(database, loyaltyCardId);
|
loyaltyCard = DBHelper.getLoyaltyCard(this, database, loyaltyCardId);
|
||||||
if (loyaltyCard == null) {
|
if (loyaltyCard == null) {
|
||||||
Log.w(TAG, "Could not lookup loyalty card " + loyaltyCardId);
|
Log.w(TAG, "Could not lookup loyalty card " + loyaltyCardId);
|
||||||
Toast.makeText(this, R.string.noCardExistsError, Toast.LENGTH_LONG).show();
|
Toast.makeText(this, R.string.noCardExistsError, Toast.LENGTH_LONG).show();
|
||||||
@@ -680,6 +728,8 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
|
|||||||
int darkenedColor = ColorUtils.blendARGB(backgroundHeaderColor, Color.BLACK, 0.1f);
|
int darkenedColor = ColorUtils.blendARGB(backgroundHeaderColor, Color.BLACK, 0.1f);
|
||||||
binding.barcodeScaler.setProgressTintList(ColorStateList.valueOf(darkenedColor));
|
binding.barcodeScaler.setProgressTintList(ColorStateList.valueOf(darkenedColor));
|
||||||
binding.barcodeScaler.setThumbTintList(ColorStateList.valueOf(darkenedColor));
|
binding.barcodeScaler.setThumbTintList(ColorStateList.valueOf(darkenedColor));
|
||||||
|
binding.barcodeWidthscaler.setProgressTintList(ColorStateList.valueOf(darkenedColor));
|
||||||
|
binding.barcodeWidthscaler.setThumbTintList(ColorStateList.valueOf(darkenedColor));
|
||||||
|
|
||||||
// Set bottomAppBar and system navigation bar color
|
// Set bottomAppBar and system navigation bar color
|
||||||
binding.bottomAppBar.setBackgroundColor(darkenedColor);
|
binding.bottomAppBar.setBackgroundColor(darkenedColor);
|
||||||
@@ -692,8 +742,8 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
|
|||||||
editButtonIcon.setTint(Utils.needsDarkForeground(complementaryColor) ? Color.BLACK : Color.WHITE);
|
editButtonIcon.setTint(Utils.needsDarkForeground(complementaryColor) ? Color.BLACK : Color.WHITE);
|
||||||
binding.fabEdit.setImageDrawable(editButtonIcon);
|
binding.fabEdit.setImageDrawable(editButtonIcon);
|
||||||
|
|
||||||
Bitmap icon = Utils.retrieveCardImage(this, loyaltyCard.id, ImageLocationType.icon);
|
Bitmap icon = loyaltyCard.getImageThumbnail(this);
|
||||||
Utils.setIconOrTextWithBackground(this, loyaltyCard, icon, binding.iconImage, binding.iconText);
|
Utils.setIconOrTextWithBackground(this, loyaltyCard, icon, binding.iconImage, binding.iconText, 1);
|
||||||
|
|
||||||
// If the background is very bright, we should use dark icons
|
// If the background is very bright, we should use dark icons
|
||||||
backgroundNeedsDarkIcons = Utils.needsDarkForeground(backgroundHeaderColor);
|
backgroundNeedsDarkIcons = Utils.needsDarkForeground(backgroundHeaderColor);
|
||||||
@@ -721,12 +771,12 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
|
|||||||
imageTypes.add(ImageType.BARCODE);
|
imageTypes.add(ImageType.BARCODE);
|
||||||
}
|
}
|
||||||
|
|
||||||
frontImageBitmap = Utils.retrieveCardImage(this, loyaltyCard.id, ImageLocationType.front);
|
frontImageBitmap = loyaltyCard.getImageFront(this);
|
||||||
if (frontImageBitmap != null) {
|
if (frontImageBitmap != null) {
|
||||||
imageTypes.add(ImageType.IMAGE_FRONT);
|
imageTypes.add(ImageType.IMAGE_FRONT);
|
||||||
}
|
}
|
||||||
|
|
||||||
backImageBitmap = Utils.retrieveCardImage(this, loyaltyCard.id, ImageLocationType.back);
|
backImageBitmap = loyaltyCard.getImageBack(this);
|
||||||
if (backImageBitmap != null) {
|
if (backImageBitmap != null) {
|
||||||
imageTypes.add(ImageType.IMAGE_BACK);
|
imageTypes.add(ImageType.IMAGE_BACK);
|
||||||
}
|
}
|
||||||
@@ -908,7 +958,8 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
|
|||||||
null,
|
null,
|
||||||
false,
|
false,
|
||||||
this,
|
this,
|
||||||
addPadding);
|
addPadding,
|
||||||
|
isFullscreen);
|
||||||
mTasks.executeTask(TaskHandler.TYPE.BARCODE, barcodeWriter);
|
mTasks.executeTask(TaskHandler.TYPE.BARCODE, barcodeWriter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1102,11 +1153,18 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
|
|||||||
binding.container.setVisibility(View.GONE);
|
binding.container.setVisibility(View.GONE);
|
||||||
binding.fullscreenLayout.setVisibility(View.VISIBLE);
|
binding.fullscreenLayout.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
|
// Only show width slider if the barcode isn't square (square barcodes will resize height and width together)
|
||||||
|
// or if the internals of the barcode are squares, like DATA_MATRIX
|
||||||
|
binding.setWidthLayout.setVisibility((format.isSquare() || format.format() == BarcodeFormat.DATA_MATRIX) ? View.GONE : View.VISIBLE);
|
||||||
|
|
||||||
drawMainImage(mainImageIndex, true, isFullscreen);
|
drawMainImage(mainImageIndex, true, isFullscreen);
|
||||||
|
|
||||||
binding.barcodeScaler.setProgress(loyaltyCard.zoomLevel);
|
binding.barcodeScaler.setProgress(loyaltyCard.zoomLevel);
|
||||||
setScalerGuideline(loyaltyCard.zoomLevel);
|
setScalerGuideline(loyaltyCard.zoomLevel);
|
||||||
|
|
||||||
|
binding.barcodeWidthscaler.setProgress(loyaltyCard.zoomLevelWidth);
|
||||||
|
setScalerWidthGuideline(loyaltyCard.zoomLevelWidth);
|
||||||
|
|
||||||
// Hide actionbar
|
// Hide actionbar
|
||||||
if (actionBar != null) {
|
if (actionBar != null) {
|
||||||
actionBar.hide();
|
actionBar.hide();
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import android.content.Intent;
|
|||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.database.CursorIndexOutOfBoundsException;
|
import android.database.CursorIndexOutOfBoundsException;
|
||||||
import android.database.sqlite.SQLiteDatabase;
|
import android.database.sqlite.SQLiteDatabase;
|
||||||
|
import android.net.Uri;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.util.DisplayMetrics;
|
import android.util.DisplayMetrics;
|
||||||
@@ -27,12 +28,14 @@ import androidx.appcompat.app.AlertDialog;
|
|||||||
import androidx.appcompat.view.ActionMode;
|
import androidx.appcompat.view.ActionMode;
|
||||||
import androidx.appcompat.widget.SearchView;
|
import androidx.appcompat.widget.SearchView;
|
||||||
import androidx.core.splashscreen.SplashScreen;
|
import androidx.core.splashscreen.SplashScreen;
|
||||||
|
import androidx.recyclerview.widget.GridLayoutManager;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
||||||
import com.google.android.material.floatingactionbutton.FloatingActionButton;
|
import com.google.android.material.floatingactionbutton.FloatingActionButton;
|
||||||
import com.google.android.material.tabs.TabLayout;
|
import com.google.android.material.tabs.TabLayout;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
@@ -43,6 +46,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|||||||
import protect.card_locker.databinding.ContentMainBinding;
|
import protect.card_locker.databinding.ContentMainBinding;
|
||||||
import protect.card_locker.databinding.MainActivityBinding;
|
import protect.card_locker.databinding.MainActivityBinding;
|
||||||
import protect.card_locker.databinding.SortingOptionBinding;
|
import protect.card_locker.databinding.SortingOptionBinding;
|
||||||
|
import protect.card_locker.preferences.Settings;
|
||||||
import protect.card_locker.preferences.SettingsActivity;
|
import protect.card_locker.preferences.SettingsActivity;
|
||||||
|
|
||||||
public class MainActivity extends CatimaAppCompatActivity implements LoyaltyCardCursorAdapter.CardAdapterListener {
|
public class MainActivity extends CatimaAppCompatActivity implements LoyaltyCardCursorAdapter.CardAdapterListener {
|
||||||
@@ -52,6 +56,7 @@ public class MainActivity extends CatimaAppCompatActivity implements LoyaltyCard
|
|||||||
public static final String RESTART_ACTIVITY_INTENT = "restart_activity_intent";
|
public static final String RESTART_ACTIVITY_INTENT = "restart_activity_intent";
|
||||||
|
|
||||||
private static final int MEDIUM_SCALE_FACTOR_DIP = 460;
|
private static final int MEDIUM_SCALE_FACTOR_DIP = 460;
|
||||||
|
static final String STATE_SEARCH_QUERY = "SEARCH_QUERY";
|
||||||
|
|
||||||
private SQLiteDatabase mDatabase;
|
private SQLiteDatabase mDatabase;
|
||||||
private LoyaltyCardCursorAdapter mAdapter;
|
private LoyaltyCardCursorAdapter mAdapter;
|
||||||
@@ -59,6 +64,8 @@ public class MainActivity extends CatimaAppCompatActivity implements LoyaltyCard
|
|||||||
private SearchView mSearchView;
|
private SearchView mSearchView;
|
||||||
private int mLoyaltyCardCount = 0;
|
private int mLoyaltyCardCount = 0;
|
||||||
protected String mFilter = "";
|
protected String mFilter = "";
|
||||||
|
private String currentQuery = "";
|
||||||
|
private String finalQuery = "";
|
||||||
protected Object mGroup = null;
|
protected Object mGroup = null;
|
||||||
protected DBHelper.LoyaltyCardOrder mOrder = DBHelper.LoyaltyCardOrder.Alpha;
|
protected DBHelper.LoyaltyCardOrder mOrder = DBHelper.LoyaltyCardOrder.Alpha;
|
||||||
protected DBHelper.LoyaltyCardOrderDirection mOrderDirection = DBHelper.LoyaltyCardOrderDirection.Ascending;
|
protected DBHelper.LoyaltyCardOrderDirection mOrderDirection = DBHelper.LoyaltyCardOrderDirection.Ascending;
|
||||||
@@ -68,9 +75,7 @@ public class MainActivity extends CatimaAppCompatActivity implements LoyaltyCard
|
|||||||
private View mNoMatchingCardsText;
|
private View mNoMatchingCardsText;
|
||||||
private View mNoGroupCardsText;
|
private View mNoGroupCardsText;
|
||||||
private TabLayout groupsTabLayout;
|
private TabLayout groupsTabLayout;
|
||||||
|
|
||||||
private Runnable mUpdateLoyaltyCardListRunnable;
|
private Runnable mUpdateLoyaltyCardListRunnable;
|
||||||
|
|
||||||
private ActivityResultLauncher<Intent> mBarcodeScannerLauncher;
|
private ActivityResultLauncher<Intent> mBarcodeScannerLauncher;
|
||||||
private ActivityResultLauncher<Intent> mSettingsLauncher;
|
private ActivityResultLauncher<Intent> mSettingsLauncher;
|
||||||
|
|
||||||
@@ -198,11 +203,33 @@ public class MainActivity extends CatimaAppCompatActivity implements LoyaltyCard
|
|||||||
SplashScreen.installSplashScreen(this);
|
SplashScreen.installSplashScreen(this);
|
||||||
super.onCreate(inputSavedInstanceState);
|
super.onCreate(inputSavedInstanceState);
|
||||||
|
|
||||||
|
// Delete old cache files
|
||||||
|
// These could be temporary images for the cropper, temporary images in LoyaltyCard toBundle/writeParcel/ etc.
|
||||||
|
new Thread(() -> {
|
||||||
|
long twentyFourHoursAgo = System.currentTimeMillis() - (1000 * 60 * 60 * 24);
|
||||||
|
|
||||||
|
File[] tempFiles = getCacheDir().listFiles();
|
||||||
|
|
||||||
|
if (tempFiles == null) {
|
||||||
|
Log.e(TAG, "getCacheDir().listFiles() somehow returned null, this should never happen... Skipping cache cleanup...");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (File file : tempFiles) {
|
||||||
|
if (file.lastModified() < twentyFourHoursAgo) {
|
||||||
|
if (!file.delete()) {
|
||||||
|
Log.w(TAG, "Failed to delete cache file " + file.getPath());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}).start();
|
||||||
|
|
||||||
// We should extract the share intent after we called the super.onCreate as it may need to spawn a dialog window and the app needs to be initialized to not crash
|
// We should extract the share intent after we called the super.onCreate as it may need to spawn a dialog window and the app needs to be initialized to not crash
|
||||||
extractIntentFields(getIntent());
|
extractIntentFields(getIntent());
|
||||||
|
|
||||||
binding = MainActivityBinding.inflate(getLayoutInflater());
|
binding = MainActivityBinding.inflate(getLayoutInflater());
|
||||||
setContentView(binding.getRoot());
|
setContentView(binding.getRoot());
|
||||||
|
Utils.applyWindowInsets(binding.getRoot());
|
||||||
setSupportActionBar(binding.toolbar);
|
setSupportActionBar(binding.toolbar);
|
||||||
groupsTabLayout = binding.groups;
|
groupsTabLayout = binding.groups;
|
||||||
contentMainBinding = ContentMainBinding.bind(binding.include.getRoot());
|
contentMainBinding = ContentMainBinding.bind(binding.include.getRoot());
|
||||||
@@ -249,21 +276,15 @@ public class MainActivity extends CatimaAppCompatActivity implements LoyaltyCard
|
|||||||
mCardList.setAdapter(mAdapter);
|
mCardList.setAdapter(mAdapter);
|
||||||
registerForContextMenu(mCardList);
|
registerForContextMenu(mCardList);
|
||||||
|
|
||||||
mGroup = null;
|
|
||||||
updateLoyaltyCardList(true);
|
|
||||||
|
|
||||||
mBarcodeScannerLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), result -> {
|
mBarcodeScannerLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), result -> {
|
||||||
// Exit early if the user cancelled the scan (pressed back/home)
|
// Exit early if the user cancelled the scan (pressed back/home)
|
||||||
if (result.getResultCode() != RESULT_OK) {
|
if (result.getResultCode() != RESULT_OK) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Intent intent = result.getData();
|
Intent editIntent = new Intent(getApplicationContext(), LoyaltyCardEditActivity.class);
|
||||||
List<BarcodeValues> barcodeValuesList = Utils.parseSetBarcodeActivityResult(Utils.BARCODE_SCAN, result.getResultCode(), intent, this);
|
editIntent.putExtras(result.getData().getExtras());
|
||||||
|
startActivity(editIntent);
|
||||||
Bundle inputBundle = intent.getExtras();
|
|
||||||
String group = inputBundle != null ? inputBundle.getString(LoyaltyCardEditActivity.BUNDLE_ADDGROUP) : null;
|
|
||||||
processBarcodeValuesList(barcodeValuesList, group, false);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
mSettingsLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), result -> {
|
mSettingsLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), result -> {
|
||||||
@@ -299,7 +320,6 @@ public class MainActivity extends CatimaAppCompatActivity implements LoyaltyCard
|
|||||||
if (mSearchView != null && !mSearchView.isIconified()) {
|
if (mSearchView != null && !mSearchView.isIconified()) {
|
||||||
mFilter = mSearchView.getQuery().toString();
|
mFilter = mSearchView.getQuery().toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start of active tab logic
|
// Start of active tab logic
|
||||||
updateTabGroups(groupsTabLayout);
|
updateTabGroups(groupsTabLayout);
|
||||||
|
|
||||||
@@ -357,6 +377,12 @@ public class MainActivity extends CatimaAppCompatActivity implements LoyaltyCard
|
|||||||
mBarcodeScannerLauncher.launch(intent);
|
mBarcodeScannerLauncher.launch(intent);
|
||||||
});
|
});
|
||||||
addButton.bringToFront();
|
addButton.bringToFront();
|
||||||
|
|
||||||
|
var layoutManager = (GridLayoutManager) mCardList.getLayoutManager();
|
||||||
|
if (layoutManager != null) {
|
||||||
|
var settings = new Settings(this);
|
||||||
|
layoutManager.setSpanCount(settings.getPreferredColumnCount());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void displayCardSetupOptions(Menu menu, boolean shouldShow) {
|
private void displayCardSetupOptions(Menu menu, boolean shouldShow) {
|
||||||
@@ -418,23 +444,21 @@ public class MainActivity extends CatimaAppCompatActivity implements LoyaltyCard
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void processBarcodeValuesList(List<BarcodeValues> barcodeValuesList, String group, boolean closeAppOnNoBarcode) {
|
private void processParseResultList(List<ParseResult> parseResultList, String group, boolean closeAppOnNoBarcode) {
|
||||||
if (barcodeValuesList.isEmpty()) {
|
if (parseResultList.isEmpty()) {
|
||||||
throw new IllegalArgumentException("barcodesValues may not be empty");
|
throw new IllegalArgumentException("parseResultList may not be empty");
|
||||||
}
|
}
|
||||||
|
|
||||||
Utils.makeUserChooseBarcodeFromList(MainActivity.this, barcodeValuesList, new BarcodeValuesListDisambiguatorCallback() {
|
Utils.makeUserChooseParseResultFromList(MainActivity.this, parseResultList, new ParseResultListDisambiguatorCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onUserChoseBarcode(BarcodeValues barcodeValues) {
|
public void onUserChoseParseResult(ParseResult parseResult) {
|
||||||
Intent newIntent = new Intent(getApplicationContext(), LoyaltyCardEditActivity.class);
|
Intent intent = new Intent(getApplicationContext(), LoyaltyCardEditActivity.class);
|
||||||
Bundle newBundle = new Bundle();
|
Bundle bundle = parseResult.toLoyaltyCardBundle(MainActivity.this);
|
||||||
newBundle.putString(LoyaltyCardEditActivity.BUNDLE_BARCODETYPE, barcodeValues.format());
|
|
||||||
newBundle.putString(LoyaltyCardEditActivity.BUNDLE_CARDID, barcodeValues.content());
|
|
||||||
if (group != null) {
|
if (group != null) {
|
||||||
newBundle.putString(LoyaltyCardEditActivity.BUNDLE_ADDGROUP, group);
|
bundle.putString(LoyaltyCardEditActivity.BUNDLE_ADDGROUP, group);
|
||||||
}
|
}
|
||||||
newIntent.putExtras(newBundle);
|
intent.putExtras(bundle);
|
||||||
startActivity(newIntent);
|
startActivity(intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -450,28 +474,53 @@ public class MainActivity extends CatimaAppCompatActivity implements LoyaltyCard
|
|||||||
String receivedAction = intent.getAction();
|
String receivedAction = intent.getAction();
|
||||||
String receivedType = intent.getType();
|
String receivedType = intent.getType();
|
||||||
|
|
||||||
// Check if an image or file was shared to us
|
if (receivedAction == null || receivedType == null) {
|
||||||
if (Intent.ACTION_SEND.equals(receivedAction)) {
|
return;
|
||||||
List<BarcodeValues> barcodeValuesList;
|
}
|
||||||
|
|
||||||
if (receivedType.equals("text/plain")) {
|
List<ParseResult> parseResultList;
|
||||||
barcodeValuesList = Collections.singletonList(new BarcodeValues(null, intent.getStringExtra(Intent.EXTRA_TEXT)));
|
|
||||||
} else if (receivedType.startsWith("image/")) {
|
// Check for shared text
|
||||||
barcodeValuesList = Utils.retrieveBarcodesFromImage(this, intent.getParcelableExtra(Intent.EXTRA_STREAM));
|
if (receivedAction.equals(Intent.ACTION_SEND) && receivedType.equals("text/plain")) {
|
||||||
|
LoyaltyCard loyaltyCard = new LoyaltyCard();
|
||||||
|
loyaltyCard.setCardId(intent.getStringExtra(Intent.EXTRA_TEXT));
|
||||||
|
parseResultList = Collections.singletonList(new ParseResult(ParseResultType.BARCODE_ONLY, loyaltyCard));
|
||||||
|
} else {
|
||||||
|
// Parse whatever file was sent, regardless of opening or sharing
|
||||||
|
Uri data;
|
||||||
|
if (receivedAction.equals(Intent.ACTION_VIEW)) {
|
||||||
|
data = intent.getData();
|
||||||
|
} else if (receivedAction.equals(Intent.ACTION_SEND)) {
|
||||||
|
data = intent.getParcelableExtra(Intent.EXTRA_STREAM);
|
||||||
|
} else {
|
||||||
|
Log.e(TAG, "Wrong action type to parse intent");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (receivedType.startsWith("image/")) {
|
||||||
|
parseResultList = Utils.retrieveBarcodesFromImage(this, data);
|
||||||
} else if (receivedType.equals("application/pdf")) {
|
} else if (receivedType.equals("application/pdf")) {
|
||||||
barcodeValuesList = Utils.retrieveBarcodesFromPdf(this, intent.getParcelableExtra(Intent.EXTRA_STREAM));
|
parseResultList = Utils.retrieveBarcodesFromPdf(this, data);
|
||||||
|
} else if (Arrays.asList("application/vnd.apple.pkpass", "application/vnd-com.apple.pkpass").contains(receivedType)) {
|
||||||
|
parseResultList = Utils.retrieveBarcodesFromPkPass(this, data);
|
||||||
|
} else if (receivedType.equals("application/vnd.espass-espass")) {
|
||||||
|
// FIXME: espass is not pkpass
|
||||||
|
// However, several users stated in https://github.com/CatimaLoyalty/Android/issues/2197 that the formats are extremely similar to the point they could rename an .espass file to .pkpass and have it imported
|
||||||
|
// So it makes sense to "unofficially" treat it as a PKPASS for now, even though not completely correct
|
||||||
|
parseResultList = Utils.retrieveBarcodesFromPkPass(this, data);
|
||||||
} else {
|
} else {
|
||||||
Log.e(TAG, "Wrong mime-type");
|
Log.e(TAG, "Wrong mime-type");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (barcodeValuesList.isEmpty()) {
|
|
||||||
finish();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
processBarcodeValuesList(barcodeValuesList, null, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Give up if we should parse but there is nothing to parse
|
||||||
|
if (parseResultList == null || parseResultList.isEmpty()) {
|
||||||
|
finish();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
processParseResultList(parseResultList, null, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void extractIntentFields(Intent intent) {
|
private void extractIntentFields(Intent intent) {
|
||||||
@@ -505,6 +554,24 @@ public class MainActivity extends CatimaAppCompatActivity implements LoyaltyCard
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
// Saving currentQuery to finalQuery for user, this will be used to restore search history, happens when user clicks a card from list
|
||||||
|
protected void onSaveInstanceState(@NonNull Bundle outState) {
|
||||||
|
super.onSaveInstanceState(outState);
|
||||||
|
finalQuery = currentQuery;
|
||||||
|
// Putting the query also into outState for later use in onRestoreInstanceState when rotating screen
|
||||||
|
if (mSearchView != null) {
|
||||||
|
outState.putString(STATE_SEARCH_QUERY, finalQuery);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
// Restoring instance state when rotation of screen happens with the goal to restore search query for user
|
||||||
|
protected void onRestoreInstanceState(@NonNull Bundle savedInstanceState) {
|
||||||
|
super.onRestoreInstanceState(savedInstanceState);
|
||||||
|
finalQuery = savedInstanceState.getString(STATE_SEARCH_QUERY, "");
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCreateOptionsMenu(Menu inputMenu) {
|
public boolean onCreateOptionsMenu(Menu inputMenu) {
|
||||||
getMenuInflater().inflate(R.menu.main_menu, inputMenu);
|
getMenuInflater().inflate(R.menu.main_menu, inputMenu);
|
||||||
@@ -517,7 +584,6 @@ public class MainActivity extends CatimaAppCompatActivity implements LoyaltyCard
|
|||||||
mSearchView = (SearchView) searchMenuItem.getActionView();
|
mSearchView = (SearchView) searchMenuItem.getActionView();
|
||||||
mSearchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
|
mSearchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
|
||||||
mSearchView.setSubmitButtonEnabled(false);
|
mSearchView.setSubmitButtonEnabled(false);
|
||||||
|
|
||||||
mSearchView.setOnCloseListener(() -> {
|
mSearchView.setOnCloseListener(() -> {
|
||||||
invalidateOptionsMenu();
|
invalidateOptionsMenu();
|
||||||
return false;
|
return false;
|
||||||
@@ -542,6 +608,9 @@ public class MainActivity extends CatimaAppCompatActivity implements LoyaltyCard
|
|||||||
mSearchView.clearFocus();
|
mSearchView.clearFocus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
currentQuery = "";
|
||||||
|
mFilter = "";
|
||||||
|
updateLoyaltyCardList(false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -556,7 +625,21 @@ public class MainActivity extends CatimaAppCompatActivity implements LoyaltyCard
|
|||||||
@Override
|
@Override
|
||||||
public boolean onQueryTextChange(String newText) {
|
public boolean onQueryTextChange(String newText) {
|
||||||
mFilter = newText;
|
mFilter = newText;
|
||||||
|
// New logic to ensure search history after coming back from picked card - user will see the last search query
|
||||||
|
if (newText.isEmpty()) {
|
||||||
|
if(!finalQuery.isEmpty()){
|
||||||
|
// Setting the query text for user after coming back from picked card from finalQuery
|
||||||
|
mSearchView.setQuery(finalQuery, false);
|
||||||
|
}
|
||||||
|
else if(!currentQuery.isEmpty()){
|
||||||
|
// Else if is needed in case user deletes search - expected behaviour is to show all cards
|
||||||
|
currentQuery = "";
|
||||||
|
mSearchView.setQuery(currentQuery, false);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// Setting search query each time user changes the text in search to temporary variable to be used later in finalQuery String which will be used to restore search history
|
||||||
|
currentQuery = newText;
|
||||||
|
}
|
||||||
TabLayout.Tab currentTab = groupsTabLayout.getTabAt(groupsTabLayout.getSelectedTabPosition());
|
TabLayout.Tab currentTab = groupsTabLayout.getTabAt(groupsTabLayout.getSelectedTabPosition());
|
||||||
mGroup = currentTab != null ? currentTab.getTag() : null;
|
mGroup = currentTab != null ? currentTab.getTag() : null;
|
||||||
|
|
||||||
@@ -565,6 +648,14 @@ public class MainActivity extends CatimaAppCompatActivity implements LoyaltyCard
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// Check if we came from a picked card back to search, in that case we want to show the search view with previous search query
|
||||||
|
if(!finalQuery.isEmpty()){
|
||||||
|
// Expand the search view to show the query
|
||||||
|
searchMenuItem.expandActionView();
|
||||||
|
// Setting the query text to empty String due to behaviour of onQueryTextChange after coming back from picked card - onQueryTextChange is called automatically without users interaction
|
||||||
|
finalQuery = "";
|
||||||
|
mSearchView.setQuery(currentQuery, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return super.onCreateOptionsMenu(inputMenu);
|
return super.onCreateOptionsMenu(inputMenu);
|
||||||
@@ -781,14 +872,14 @@ public class MainActivity extends CatimaAppCompatActivity implements LoyaltyCard
|
|||||||
Intent intent = new Intent(this, LoyaltyCardViewActivity.class);
|
Intent intent = new Intent(this, LoyaltyCardViewActivity.class);
|
||||||
intent.setAction("");
|
intent.setAction("");
|
||||||
final Bundle b = new Bundle();
|
final Bundle b = new Bundle();
|
||||||
b.putInt("id", loyaltyCard.id);
|
b.putInt(LoyaltyCardViewActivity.BUNDLE_ID, loyaltyCard.id);
|
||||||
|
|
||||||
ArrayList<Integer> cardList = new ArrayList<>();
|
ArrayList<Integer> cardList = new ArrayList<>();
|
||||||
for (int i = 0; i < mAdapter.getItemCount(); i++) {
|
for (int i = 0; i < mAdapter.getItemCount(); i++) {
|
||||||
cardList.add(mAdapter.getCard(i).id);
|
cardList.add(mAdapter.getCard(i).id);
|
||||||
}
|
}
|
||||||
|
|
||||||
b.putIntegerArrayList("cardList", cardList);
|
b.putIntegerArrayList(LoyaltyCardViewActivity.BUNDLE_CARDLIST, cardList);
|
||||||
intent.putExtras(b);
|
intent.putExtras(b);
|
||||||
|
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ public class ManageGroupActivity extends CatimaAppCompatActivity implements Mana
|
|||||||
super.onCreate(inputSavedInstanceState);
|
super.onCreate(inputSavedInstanceState);
|
||||||
binding = ActivityManageGroupBinding.inflate(getLayoutInflater());
|
binding = ActivityManageGroupBinding.inflate(getLayoutInflater());
|
||||||
setContentView(binding.getRoot());
|
setContentView(binding.getRoot());
|
||||||
|
Utils.applyWindowInsets(binding.getRoot());
|
||||||
Toolbar toolbar = binding.toolbar;
|
Toolbar toolbar = binding.toolbar;
|
||||||
setSupportActionBar(toolbar);
|
setSupportActionBar(toolbar);
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ public class ManageGroupCursorAdapter extends LoyaltyCardCursorAdapter {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onBindViewHolder(LoyaltyCardListItemViewHolder inputHolder, Cursor inputCursor) {
|
public void onBindViewHolder(LoyaltyCardListItemViewHolder inputHolder, Cursor inputCursor) {
|
||||||
LoyaltyCard loyaltyCard = LoyaltyCard.toLoyaltyCard(inputCursor);
|
LoyaltyCard loyaltyCard = LoyaltyCard.fromCursor(mContext, inputCursor);
|
||||||
Boolean overlayValue = mInGroupOverlay.get(loyaltyCard.id);
|
Boolean overlayValue = mInGroupOverlay.get(loyaltyCard.id);
|
||||||
if ((overlayValue != null ? overlayValue : isLoyaltyCardInGroup(loyaltyCard.id))) {
|
if ((overlayValue != null ? overlayValue : isLoyaltyCardInGroup(loyaltyCard.id))) {
|
||||||
mAnimationItemsIndex.put(inputCursor.getPosition(), true);
|
mAnimationItemsIndex.put(inputCursor.getPosition(), true);
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ public class ManageGroupsActivity extends CatimaAppCompatActivity implements Gro
|
|||||||
binding = ManageGroupsActivityBinding.inflate(getLayoutInflater());
|
binding = ManageGroupsActivityBinding.inflate(getLayoutInflater());
|
||||||
setTitle(R.string.groups);
|
setTitle(R.string.groups);
|
||||||
setContentView(binding.getRoot());
|
setContentView(binding.getRoot());
|
||||||
|
Utils.applyWindowInsets(binding.getRoot());
|
||||||
Toolbar toolbar = binding.toolbar;
|
Toolbar toolbar = binding.toolbar;
|
||||||
setSupportActionBar(toolbar);
|
setSupportActionBar(toolbar);
|
||||||
enableToolbarBackButton();
|
enableToolbarBackButton();
|
||||||
|
|||||||
31
app/src/main/java/protect/card_locker/ParseResult.kt
Normal file
31
app/src/main/java/protect/card_locker/ParseResult.kt
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
package protect.card_locker
|
||||||
|
|
||||||
|
import android.content.Context
|
||||||
|
import android.os.Bundle
|
||||||
|
|
||||||
|
class ParseResult(
|
||||||
|
val parseResultType: ParseResultType,
|
||||||
|
val loyaltyCard: LoyaltyCard) {
|
||||||
|
var note: String? = null
|
||||||
|
|
||||||
|
fun toLoyaltyCardBundle(context: Context): Bundle {
|
||||||
|
when (parseResultType) {
|
||||||
|
ParseResultType.FULL -> return loyaltyCard.toBundle(context, listOf())
|
||||||
|
ParseResultType.BARCODE_ONLY -> {
|
||||||
|
val defaultLoyaltyCard = LoyaltyCard()
|
||||||
|
defaultLoyaltyCard.setBarcodeId(null)
|
||||||
|
defaultLoyaltyCard.setBarcodeType(loyaltyCard.barcodeType)
|
||||||
|
defaultLoyaltyCard.setCardId(loyaltyCard.cardId)
|
||||||
|
|
||||||
|
return defaultLoyaltyCard.toBundle(
|
||||||
|
context,
|
||||||
|
listOf(
|
||||||
|
LoyaltyCard.BUNDLE_LOYALTY_CARD_BARCODE_ID,
|
||||||
|
LoyaltyCard.BUNDLE_LOYALTY_CARD_BARCODE_TYPE,
|
||||||
|
LoyaltyCard.BUNDLE_LOYALTY_CARD_CARD_ID
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
package protect.card_locker;
|
||||||
|
|
||||||
|
public interface ParseResultListDisambiguatorCallback {
|
||||||
|
void onUserChoseParseResult(ParseResult parseResult);
|
||||||
|
void onUserDismissedSelector();
|
||||||
|
}
|
||||||
6
app/src/main/java/protect/card_locker/ParseResultType.kt
Normal file
6
app/src/main/java/protect/card_locker/ParseResultType.kt
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
package protect.card_locker
|
||||||
|
|
||||||
|
enum class ParseResultType {
|
||||||
|
FULL,
|
||||||
|
BARCODE_ONLY
|
||||||
|
}
|
||||||
434
app/src/main/java/protect/card_locker/PkpassParser.kt
Normal file
434
app/src/main/java/protect/card_locker/PkpassParser.kt
Normal file
@@ -0,0 +1,434 @@
|
|||||||
|
package protect.card_locker
|
||||||
|
|
||||||
|
import android.content.Context
|
||||||
|
import android.graphics.Bitmap
|
||||||
|
import android.graphics.Color
|
||||||
|
import android.net.Uri
|
||||||
|
import android.util.ArrayMap
|
||||||
|
import android.util.Log
|
||||||
|
import com.google.zxing.BarcodeFormat
|
||||||
|
import net.lingala.zip4j.io.inputstream.ZipInputStream
|
||||||
|
import net.lingala.zip4j.model.LocalFileHeader
|
||||||
|
import org.json.JSONException
|
||||||
|
import org.json.JSONObject
|
||||||
|
import java.io.FileNotFoundException
|
||||||
|
import java.io.IOException
|
||||||
|
import java.math.BigDecimal
|
||||||
|
import java.text.DateFormat
|
||||||
|
import java.text.ParseException
|
||||||
|
import java.time.ZonedDateTime
|
||||||
|
import java.time.format.DateTimeParseException
|
||||||
|
import java.util.Currency
|
||||||
|
import java.util.Date
|
||||||
|
|
||||||
|
class PkpassParser(context: Context, uri: Uri?) {
|
||||||
|
private var mContext = context
|
||||||
|
|
||||||
|
private var translations: ArrayMap<String, Map<String, String>> = ArrayMap()
|
||||||
|
|
||||||
|
private var passContent: JSONObject? = null
|
||||||
|
|
||||||
|
private var store: String? = null
|
||||||
|
private var note: String? = null
|
||||||
|
private var validFrom: Date? = null
|
||||||
|
private var expiry: Date? = null
|
||||||
|
private val balance: BigDecimal = BigDecimal(0)
|
||||||
|
private val balanceType: Currency? = null
|
||||||
|
// FIXME: Some cards may not have any barcodes, but Catima doesn't accept null card ID
|
||||||
|
// An empty string card ID would prevent a crash, but would be blocked in the edit activity
|
||||||
|
// Setting the default to the "No barcode" text at least prevents a crash, but it is definitely a hack
|
||||||
|
private var cardId: String = context.getString(R.string.noBarcode)
|
||||||
|
private var barcodeId: String? = null
|
||||||
|
private var barcodeType: CatimaBarcode? = null
|
||||||
|
private var headerColor: Int? = null
|
||||||
|
private val starStatus = 0
|
||||||
|
private val lastUsed: Long = 0
|
||||||
|
private val zoomLevel = DBHelper.DEFAULT_ZOOM_LEVEL
|
||||||
|
private val zoomLevelWidth = DBHelper.DEFAULT_ZOOM_LEVEL_WIDTH
|
||||||
|
private var archiveStatus = 0
|
||||||
|
|
||||||
|
var image: Bitmap? = null
|
||||||
|
private set
|
||||||
|
private var logoSize = 0
|
||||||
|
|
||||||
|
init {
|
||||||
|
if (passContent != null) {
|
||||||
|
throw IllegalStateException("Pkpass instance already initialized!")
|
||||||
|
}
|
||||||
|
|
||||||
|
mContext = context
|
||||||
|
|
||||||
|
Log.i(TAG, "Received Pkpass file")
|
||||||
|
if (uri == null) {
|
||||||
|
Log.e(TAG, "Uri did not contain any data")
|
||||||
|
throw IOException(context.getString(R.string.errorReadingFile))
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
mContext.contentResolver.openInputStream(uri).use { inputStream ->
|
||||||
|
ZipInputStream(inputStream).use { zipInputStream ->
|
||||||
|
var localFileHeader: LocalFileHeader
|
||||||
|
while ((zipInputStream.nextEntry.also { localFileHeader = it }) != null) {
|
||||||
|
// Ignore directories
|
||||||
|
if (localFileHeader.isDirectory) continue
|
||||||
|
|
||||||
|
// We assume there are three options, as per spec:
|
||||||
|
// language.lproj/pass.strings
|
||||||
|
// file.extension
|
||||||
|
// More directories are ignored
|
||||||
|
val filenameParts = localFileHeader.fileName.split('/')
|
||||||
|
if (filenameParts.size > 2) {
|
||||||
|
continue
|
||||||
|
} else if (filenameParts.size == 2) {
|
||||||
|
// Doesn't seem like a language directory, ignore
|
||||||
|
if (!filenameParts[0].endsWith(".lproj")) continue
|
||||||
|
|
||||||
|
val locale = filenameParts[0].removeSuffix(".lproj")
|
||||||
|
|
||||||
|
translations[locale] = parseLanguageStrings(ZipUtils.read(zipInputStream))
|
||||||
|
}
|
||||||
|
|
||||||
|
// Not a language, parse as normal files
|
||||||
|
when (localFileHeader.fileName) {
|
||||||
|
"logo.png" -> loadImageIfBiggerSize(1, zipInputStream)
|
||||||
|
"logo@2x.png" -> loadImageIfBiggerSize(2, zipInputStream)
|
||||||
|
"logo@3x.png" -> loadImageIfBiggerSize(3, zipInputStream)
|
||||||
|
"pass.json" -> passContent = ZipUtils.readJSON(zipInputStream) // Parse this last, so we're sure we have all language info
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
checkNotNull(passContent) { "File lacks pass.json" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (e: FileNotFoundException) {
|
||||||
|
throw IOException(mContext.getString(R.string.errorReadingFile))
|
||||||
|
} catch (e: Exception) {
|
||||||
|
throw e
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun listLocales(): List<String> {
|
||||||
|
return translations.keys.toList()
|
||||||
|
}
|
||||||
|
|
||||||
|
fun toLoyaltyCard(locale: String?): LoyaltyCard {
|
||||||
|
parsePassJSON(checkNotNull(passContent) { "Pkpass instance not yet initialized!" }, locale)
|
||||||
|
|
||||||
|
return LoyaltyCard(
|
||||||
|
-1,
|
||||||
|
store,
|
||||||
|
note,
|
||||||
|
validFrom,
|
||||||
|
expiry,
|
||||||
|
balance,
|
||||||
|
balanceType,
|
||||||
|
cardId,
|
||||||
|
barcodeId,
|
||||||
|
barcodeType,
|
||||||
|
headerColor,
|
||||||
|
starStatus,
|
||||||
|
lastUsed,
|
||||||
|
zoomLevel,
|
||||||
|
zoomLevelWidth,
|
||||||
|
archiveStatus,
|
||||||
|
image,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun getTranslation(string: String, locale: String?): String {
|
||||||
|
if (locale == null) {
|
||||||
|
return string
|
||||||
|
}
|
||||||
|
|
||||||
|
val localeStrings = translations[locale]
|
||||||
|
|
||||||
|
return localeStrings?.get(string) ?: string
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun loadImageIfBiggerSize(fileLogoSize: Int, zipInputStream: ZipInputStream) {
|
||||||
|
if (logoSize < fileLogoSize) {
|
||||||
|
image = ZipUtils.readImage(zipInputStream)
|
||||||
|
logoSize = fileLogoSize
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun parseColor(color: String): Int? {
|
||||||
|
// First, try formats supported by Android natively
|
||||||
|
try {
|
||||||
|
return Color.parseColor(color)
|
||||||
|
} catch (ignored: IllegalArgumentException) {}
|
||||||
|
|
||||||
|
// If that didn't work, try parsing it as a rbg(0,0,255) value
|
||||||
|
val red: Int;
|
||||||
|
val green: Int;
|
||||||
|
val blue: Int;
|
||||||
|
|
||||||
|
// Parse rgb(0,0,0) string
|
||||||
|
val rgbInfo = Regex("""^rgb\(\s*(?<red>\d+)\s*,\s*(?<green>\d+)\s*,\s*(?<blue>\d+)\s*\)$""").find(color)
|
||||||
|
if (rgbInfo == null) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
|
// Convert to integers
|
||||||
|
try {
|
||||||
|
red = rgbInfo.groups[1]!!.value.toInt()
|
||||||
|
green = rgbInfo.groups[2]!!.value.toInt()
|
||||||
|
blue = rgbInfo.groups[3]!!.value.toInt()
|
||||||
|
} catch (e: NumberFormatException) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ensure everything is in a valid range as Color.rgb does not do range checks
|
||||||
|
if (red < 0 || red > 255) return null
|
||||||
|
if (green < 0 || green > 255) return null
|
||||||
|
if (blue < 0 || blue > 255) return null
|
||||||
|
|
||||||
|
return Color.rgb(red, green, blue)
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun parseDateTime(dateTime: String): Date {
|
||||||
|
return Date.from(ZonedDateTime.parse(dateTime).toInstant())
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun parseLanguageStrings(data: String): Map<String, String> {
|
||||||
|
val output = ArrayMap<String, String>()
|
||||||
|
|
||||||
|
// Translations look like this:
|
||||||
|
// "key_name" = "Translated value";
|
||||||
|
//
|
||||||
|
// However, "Translated value" may be multiple lines and may contain " (however, it'll be escaped)
|
||||||
|
var translationLine = StringBuilder()
|
||||||
|
|
||||||
|
for (line in data.lines()) {
|
||||||
|
translationLine.append(line)
|
||||||
|
|
||||||
|
// Make sure we don't have a false ending (this is the escaped double quote: \";)
|
||||||
|
if (!line.endsWith("\\\";") and line.endsWith("\";")) {
|
||||||
|
// We reached a translation ending, time to parse it
|
||||||
|
|
||||||
|
// 1. Split into key and value
|
||||||
|
// 2. Remove cruft of each
|
||||||
|
// 3. Clean up escape sequences
|
||||||
|
val keyValue = translationLine.toString().split("=", ignoreCase = false, limit = 2)
|
||||||
|
val key = keyValue[0].trim().removePrefix("\"").removeSuffix("\"")
|
||||||
|
val value = keyValue[1].trim().removePrefix("\"").removeSuffix("\";").replace("\\", "")
|
||||||
|
|
||||||
|
output[key] = value
|
||||||
|
|
||||||
|
translationLine = StringBuilder()
|
||||||
|
} else {
|
||||||
|
translationLine.append("\n")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return output
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun parsePassJSON(jsonObject: JSONObject, locale: String?) {
|
||||||
|
if (jsonObject.getInt("formatVersion") != 1) {
|
||||||
|
throw IllegalArgumentException(mContext.getString(R.string.unsupportedFile))
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prefer logoText for store, it's generally shorter
|
||||||
|
try {
|
||||||
|
store = jsonObject.getString("logoText")
|
||||||
|
} catch (ignored: JSONException) {}
|
||||||
|
|
||||||
|
if (store.isNullOrEmpty()) {
|
||||||
|
store = jsonObject.getString("organizationName")
|
||||||
|
}
|
||||||
|
|
||||||
|
val noteText = StringBuilder()
|
||||||
|
noteText.append(getTranslation(jsonObject.getString("description"), locale))
|
||||||
|
|
||||||
|
try {
|
||||||
|
validFrom = parseDateTime(jsonObject.getString("relevantDate"))
|
||||||
|
} catch (ignored: JSONException) {}
|
||||||
|
|
||||||
|
try {
|
||||||
|
expiry = parseDateTime(jsonObject.getString("expirationDate"))
|
||||||
|
} catch (ignored: JSONException) {}
|
||||||
|
|
||||||
|
try {
|
||||||
|
headerColor = parseColor(jsonObject.getString("backgroundColor"))
|
||||||
|
} catch (ignored: JSONException) {}
|
||||||
|
|
||||||
|
var pkPassHasBarcodes = false
|
||||||
|
var validBarcodeFound = false
|
||||||
|
|
||||||
|
// Create a list of possible barcodes
|
||||||
|
val barcodes = ArrayList<JSONObject>()
|
||||||
|
|
||||||
|
// Append the non-deprecated entries
|
||||||
|
try {
|
||||||
|
val foundInBarcodesField = jsonObject.getJSONArray("barcodes")
|
||||||
|
|
||||||
|
for (i in 0 until foundInBarcodesField.length()) {
|
||||||
|
barcodes.add(foundInBarcodesField.getJSONObject(i))
|
||||||
|
}
|
||||||
|
} catch (ignored: JSONException) {}
|
||||||
|
|
||||||
|
// Append the deprecated entry if it exists
|
||||||
|
try {
|
||||||
|
barcodes.add(jsonObject.getJSONObject("barcode"))
|
||||||
|
} catch (ignored: JSONException) {}
|
||||||
|
|
||||||
|
for (barcode in barcodes) {
|
||||||
|
pkPassHasBarcodes = true
|
||||||
|
|
||||||
|
try {
|
||||||
|
parsePassJSONBarcodeField(barcode)
|
||||||
|
|
||||||
|
validBarcodeFound = true
|
||||||
|
break
|
||||||
|
} catch (ignored: IllegalArgumentException) {}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (pkPassHasBarcodes && !validBarcodeFound) {
|
||||||
|
throw FormatException(mContext.getString(R.string.errorReadingFile))
|
||||||
|
}
|
||||||
|
|
||||||
|
// An used card being "archived" probably is the most sensible way to map "voided"
|
||||||
|
archiveStatus = try {
|
||||||
|
if (jsonObject.getBoolean("voided")) 1 else 0
|
||||||
|
} catch (ignored: JSONException) {
|
||||||
|
0
|
||||||
|
}
|
||||||
|
|
||||||
|
// Append type-specific info to the pass
|
||||||
|
|
||||||
|
// Find the relevant pass type and parse it
|
||||||
|
for (passType in listOf("boardingPass", "coupon", "eventTicket", "generic")) {
|
||||||
|
try {
|
||||||
|
var extraText = parsePassJSONPassFields(
|
||||||
|
jsonObject.getJSONObject(passType),
|
||||||
|
locale
|
||||||
|
)
|
||||||
|
|
||||||
|
noteText.append("\n\n")
|
||||||
|
noteText.append(extraText)
|
||||||
|
|
||||||
|
break
|
||||||
|
} catch (ignored: JSONException) {}
|
||||||
|
}
|
||||||
|
|
||||||
|
note = noteText.toString()
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Return success or failure */
|
||||||
|
private fun parsePassJSONBarcodeField(barcodeInfo: JSONObject) {
|
||||||
|
val format = barcodeInfo.getString("format")
|
||||||
|
|
||||||
|
// We only need to check these 4 formats as no other options are valid in the PkPass spec
|
||||||
|
barcodeType = when(format) {
|
||||||
|
"PKBarcodeFormatQR" -> CatimaBarcode.fromBarcode(BarcodeFormat.QR_CODE)
|
||||||
|
"PKBarcodeFormatPDF417" -> CatimaBarcode.fromBarcode(BarcodeFormat.PDF_417)
|
||||||
|
"PKBarcodeFormatAztec" -> CatimaBarcode.fromBarcode(BarcodeFormat.AZTEC)
|
||||||
|
"PKBarcodeFormatCode128" -> CatimaBarcode.fromBarcode(BarcodeFormat.CODE_128)
|
||||||
|
else -> throw IllegalArgumentException("No valid barcode type")
|
||||||
|
}
|
||||||
|
|
||||||
|
// FIXME: We probably need to do something with the messageEncoding field
|
||||||
|
try {
|
||||||
|
cardId = barcodeInfo.getString("altText")
|
||||||
|
barcodeId = barcodeInfo.getString("message")
|
||||||
|
} catch (ignored: JSONException) {
|
||||||
|
cardId = barcodeInfo.getString("message")
|
||||||
|
barcodeId = null
|
||||||
|
}
|
||||||
|
|
||||||
|
// Don't set barcodeId if it's the same as cardId
|
||||||
|
if (cardId == barcodeId) {
|
||||||
|
barcodeId = null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun parsePassJSONPassFields(fieldsParent: JSONObject, locale: String?): String {
|
||||||
|
// These fields contain a lot of info on where we're supposed to display them, but Catima doesn't really have anything for that
|
||||||
|
// So for now, throw them all into the description field in a logical order
|
||||||
|
val noteContents: MutableList<String> = ArrayList()
|
||||||
|
|
||||||
|
// Collect all the groups of fields that exist
|
||||||
|
for (fieldType in listOf("headerFields", "primaryFields", "secondaryFields", "auxiliaryFields", "backFields")) {
|
||||||
|
val content = StringBuilder()
|
||||||
|
|
||||||
|
try {
|
||||||
|
val fieldArray = fieldsParent.getJSONArray(fieldType)
|
||||||
|
for (i in 0 until fieldArray.length()) {
|
||||||
|
val entry = fieldArray.getJSONObject(i)
|
||||||
|
|
||||||
|
content.append(parsePassJSONPassField(entry, locale))
|
||||||
|
|
||||||
|
// If this is not the last part, add spacing on the end
|
||||||
|
if (i < (fieldArray.length() - 1)) {
|
||||||
|
content.append("\n")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (ignore: JSONException) {
|
||||||
|
} catch (ignore: ParseException) {
|
||||||
|
}
|
||||||
|
|
||||||
|
if (content.isNotEmpty()) {
|
||||||
|
noteContents.add(content.toString())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Merge all field groups together, one paragraph for field group
|
||||||
|
val output = StringBuilder()
|
||||||
|
|
||||||
|
for (i in 0 until noteContents.size) {
|
||||||
|
output.append(noteContents[i])
|
||||||
|
|
||||||
|
// If this is not the last part, add newlines to separate
|
||||||
|
if (i < (noteContents.size - 1)) {
|
||||||
|
output.append("\n\n")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return output.toString()
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun parsePassJSONPassField(field: JSONObject, locale: String?): String {
|
||||||
|
// Value may be a localizable string, a date or a number. So let's try to parse it as a date first
|
||||||
|
|
||||||
|
var value = getTranslation(field.getString("value"), locale)
|
||||||
|
try {
|
||||||
|
value = DateFormat.getDateTimeInstance().format(parseDateTime(value))
|
||||||
|
} catch (ignored: DateTimeParseException) {
|
||||||
|
// It's fine if it's not a date
|
||||||
|
}
|
||||||
|
|
||||||
|
// FIXME: Use the Android thing for formatted strings here
|
||||||
|
if (field.has("currencyCode")) {
|
||||||
|
val valueCurrency = Currency.getInstance(field.getString("currencyCode"))
|
||||||
|
|
||||||
|
value = Utils.formatBalance(
|
||||||
|
mContext,
|
||||||
|
Utils.parseBalance(value, valueCurrency),
|
||||||
|
valueCurrency
|
||||||
|
)
|
||||||
|
} else if (field.has("numberStyle")) {
|
||||||
|
if (field.getString("numberStyle") == "PKNumberStylePercent") {
|
||||||
|
// FIXME: Android formatting string
|
||||||
|
value = "${value}%"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
val label = getTranslation(field.getString("label"), locale)
|
||||||
|
|
||||||
|
if (label.isNotEmpty()) {
|
||||||
|
return "$label: $value"
|
||||||
|
}
|
||||||
|
|
||||||
|
return value
|
||||||
|
}
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
private const val TAG = "Catima"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -24,6 +24,8 @@ import android.view.ViewGroup;
|
|||||||
import android.view.WindowManager;
|
import android.view.WindowManager;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
|
import android.widget.ListAdapter;
|
||||||
|
import android.widget.SimpleAdapter;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
@@ -35,6 +37,7 @@ import androidx.appcompat.widget.Toolbar;
|
|||||||
import androidx.core.content.ContextCompat;
|
import androidx.core.content.ContextCompat;
|
||||||
|
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
||||||
|
import com.google.zxing.DecodeHintType;
|
||||||
import com.google.zxing.ResultPoint;
|
import com.google.zxing.ResultPoint;
|
||||||
import com.google.zxing.client.android.Intents;
|
import com.google.zxing.client.android.Intents;
|
||||||
import com.journeyapps.barcodescanner.BarcodeCallback;
|
import com.journeyapps.barcodescanner.BarcodeCallback;
|
||||||
@@ -42,6 +45,8 @@ import com.journeyapps.barcodescanner.BarcodeResult;
|
|||||||
import com.journeyapps.barcodescanner.CaptureManager;
|
import com.journeyapps.barcodescanner.CaptureManager;
|
||||||
import com.journeyapps.barcodescanner.DecoratedBarcodeView;
|
import com.journeyapps.barcodescanner.DecoratedBarcodeView;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import protect.card_locker.databinding.CustomBarcodeScannerBinding;
|
import protect.card_locker.databinding.CustomBarcodeScannerBinding;
|
||||||
@@ -63,6 +68,7 @@ public class ScanActivity extends CatimaAppCompatActivity {
|
|||||||
|
|
||||||
private static final int PERMISSION_SCAN_ADD_FROM_IMAGE = 100;
|
private static final int PERMISSION_SCAN_ADD_FROM_IMAGE = 100;
|
||||||
private static final int PERMISSION_SCAN_ADD_FROM_PDF = 101;
|
private static final int PERMISSION_SCAN_ADD_FROM_PDF = 101;
|
||||||
|
private static final int PERMISSION_SCAN_ADD_FROM_PKPASS = 102;
|
||||||
|
|
||||||
private CaptureManager capture;
|
private CaptureManager capture;
|
||||||
private DecoratedBarcodeView barcodeScannerView;
|
private DecoratedBarcodeView barcodeScannerView;
|
||||||
@@ -75,6 +81,7 @@ public class ScanActivity extends CatimaAppCompatActivity {
|
|||||||
// can't use the pre-made contract because that launches the file manager for image type instead of gallery
|
// can't use the pre-made contract because that launches the file manager for image type instead of gallery
|
||||||
private ActivityResultLauncher<Intent> photoPickerLauncher;
|
private ActivityResultLauncher<Intent> photoPickerLauncher;
|
||||||
private ActivityResultLauncher<Intent> pdfPickerLauncher;
|
private ActivityResultLauncher<Intent> pdfPickerLauncher;
|
||||||
|
private ActivityResultLauncher<Intent> pkpassPickerLauncher;
|
||||||
|
|
||||||
static final String STATE_SCANNER_ACTIVE = "scannerActive";
|
static final String STATE_SCANNER_ACTIVE = "scannerActive";
|
||||||
private boolean mScannerActive = true;
|
private boolean mScannerActive = true;
|
||||||
@@ -82,7 +89,7 @@ public class ScanActivity extends CatimaAppCompatActivity {
|
|||||||
|
|
||||||
private void extractIntentFields(Intent intent) {
|
private void extractIntentFields(Intent intent) {
|
||||||
final Bundle b = intent.getExtras();
|
final Bundle b = intent.getExtras();
|
||||||
cardId = b != null ? b.getString(LoyaltyCardEditActivity.BUNDLE_CARDID) : null;
|
cardId = b != null ? b.getString(LoyaltyCard.BUNDLE_LOYALTY_CARD_CARD_ID) : null;
|
||||||
addGroup = b != null ? b.getString(LoyaltyCardEditActivity.BUNDLE_ADDGROUP) : null;
|
addGroup = b != null ? b.getString(LoyaltyCardEditActivity.BUNDLE_ADDGROUP) : null;
|
||||||
Log.d(TAG, "Scan activity: id=" + cardId);
|
Log.d(TAG, "Scan activity: id=" + cardId);
|
||||||
}
|
}
|
||||||
@@ -94,6 +101,7 @@ public class ScanActivity extends CatimaAppCompatActivity {
|
|||||||
customBarcodeScannerBinding = CustomBarcodeScannerBinding.bind(binding.zxingBarcodeScanner);
|
customBarcodeScannerBinding = CustomBarcodeScannerBinding.bind(binding.zxingBarcodeScanner);
|
||||||
setTitle(R.string.scanCardBarcode);
|
setTitle(R.string.scanCardBarcode);
|
||||||
setContentView(binding.getRoot());
|
setContentView(binding.getRoot());
|
||||||
|
Utils.applyWindowInsets(binding.getRoot());
|
||||||
Toolbar toolbar = binding.toolbar;
|
Toolbar toolbar = binding.toolbar;
|
||||||
setSupportActionBar(toolbar);
|
setSupportActionBar(toolbar);
|
||||||
enableToolbarBackButton();
|
enableToolbarBackButton();
|
||||||
@@ -103,18 +111,46 @@ public class ScanActivity extends CatimaAppCompatActivity {
|
|||||||
manualAddLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), result -> handleActivityResult(Utils.SELECT_BARCODE_REQUEST, result.getResultCode(), result.getData()));
|
manualAddLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), result -> handleActivityResult(Utils.SELECT_BARCODE_REQUEST, result.getResultCode(), result.getData()));
|
||||||
photoPickerLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), result -> handleActivityResult(Utils.BARCODE_IMPORT_FROM_IMAGE_FILE, result.getResultCode(), result.getData()));
|
photoPickerLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), result -> handleActivityResult(Utils.BARCODE_IMPORT_FROM_IMAGE_FILE, result.getResultCode(), result.getData()));
|
||||||
pdfPickerLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), result -> handleActivityResult(Utils.BARCODE_IMPORT_FROM_PDF_FILE, result.getResultCode(), result.getData()));
|
pdfPickerLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), result -> handleActivityResult(Utils.BARCODE_IMPORT_FROM_PDF_FILE, result.getResultCode(), result.getData()));
|
||||||
|
pkpassPickerLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), result -> handleActivityResult(Utils.BARCODE_IMPORT_FROM_PKPASS_FILE, result.getResultCode(), result.getData()));
|
||||||
customBarcodeScannerBinding.fabOtherOptions.setOnClickListener(view -> {
|
customBarcodeScannerBinding.fabOtherOptions.setOnClickListener(view -> {
|
||||||
setScannerActive(false);
|
setScannerActive(false);
|
||||||
|
|
||||||
|
ArrayList<HashMap<String, Object>> list = new ArrayList<>();
|
||||||
|
String[] texts = new String[]{
|
||||||
|
getString(R.string.addWithoutBarcode),
|
||||||
|
getString(R.string.addManually),
|
||||||
|
getString(R.string.addFromImage),
|
||||||
|
getString(R.string.addFromPdfFile),
|
||||||
|
getString(R.string.addFromPkpass)
|
||||||
|
};
|
||||||
|
Object[] icons = new Object[]{
|
||||||
|
R.drawable.baseline_block_24,
|
||||||
|
R.drawable.ic_edit,
|
||||||
|
R.drawable.baseline_image_24,
|
||||||
|
R.drawable.baseline_picture_as_pdf_24,
|
||||||
|
R.drawable.local_activity_24px
|
||||||
|
};
|
||||||
|
String[] columns = new String[]{"text", "icon"};
|
||||||
|
|
||||||
|
for (int i = 0; i < texts.length; i++) {
|
||||||
|
HashMap<String, Object> map = new HashMap<>();
|
||||||
|
map.put(columns[0], texts[i]);
|
||||||
|
map.put(columns[1], icons[i]);
|
||||||
|
list.add(map);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListAdapter adapter = new SimpleAdapter(
|
||||||
|
ScanActivity.this,
|
||||||
|
list,
|
||||||
|
R.layout.alertdialog_row_with_icon,
|
||||||
|
columns,
|
||||||
|
new int[]{R.id.textView, R.id.imageView}
|
||||||
|
);
|
||||||
|
|
||||||
MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(ScanActivity.this);
|
MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(ScanActivity.this);
|
||||||
builder.setTitle(getString(R.string.add_a_card_in_a_different_way));
|
builder.setTitle(getString(R.string.add_a_card_in_a_different_way));
|
||||||
builder.setItems(
|
builder.setAdapter(
|
||||||
new CharSequence[]{
|
adapter,
|
||||||
getString(R.string.addWithoutBarcode),
|
|
||||||
getString(R.string.addManually),
|
|
||||||
getString(R.string.addFromImage),
|
|
||||||
getString(R.string.addFromPdfFile)
|
|
||||||
},
|
|
||||||
(dialogInterface, i) -> {
|
(dialogInterface, i) -> {
|
||||||
switch (i) {
|
switch (i) {
|
||||||
case 0:
|
case 0:
|
||||||
@@ -127,7 +163,10 @@ public class ScanActivity extends CatimaAppCompatActivity {
|
|||||||
addFromImage();
|
addFromImage();
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
addFromPdfFile();
|
addFromPdf();
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
addFromPkPass();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new IllegalArgumentException("Unknown 'Add a card in a different way' dialog option");
|
throw new IllegalArgumentException("Unknown 'Add a card in a different way' dialog option");
|
||||||
@@ -138,7 +177,13 @@ public class ScanActivity extends CatimaAppCompatActivity {
|
|||||||
builder.show();
|
builder.show();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Configure barcodeScanner
|
||||||
barcodeScannerView = binding.zxingBarcodeScanner;
|
barcodeScannerView = binding.zxingBarcodeScanner;
|
||||||
|
Intent barcodeScannerIntent = new Intent();
|
||||||
|
Bundle barcodeScannerIntentBundle = new Bundle();
|
||||||
|
barcodeScannerIntentBundle.putBoolean(DecodeHintType.ALSO_INVERTED.name(), Boolean.TRUE);
|
||||||
|
barcodeScannerIntent.putExtras(barcodeScannerIntentBundle);
|
||||||
|
barcodeScannerView.initializeFromIntent(barcodeScannerIntent);
|
||||||
|
|
||||||
// Even though we do the actual decoding with the barcodeScannerView
|
// Even though we do the actual decoding with the barcodeScannerView
|
||||||
// CaptureManager needs to be running to show the camera and scanning bar
|
// CaptureManager needs to be running to show the camera and scanning bar
|
||||||
@@ -152,16 +197,11 @@ public class ScanActivity extends CatimaAppCompatActivity {
|
|||||||
barcodeScannerView.decodeSingle(new BarcodeCallback() {
|
barcodeScannerView.decodeSingle(new BarcodeCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void barcodeResult(BarcodeResult result) {
|
public void barcodeResult(BarcodeResult result) {
|
||||||
Intent scanResult = new Intent();
|
LoyaltyCard loyaltyCard = new LoyaltyCard();
|
||||||
Bundle scanResultBundle = new Bundle();
|
loyaltyCard.setCardId(result.getText());
|
||||||
scanResultBundle.putString(BARCODE_CONTENTS, result.getText());
|
loyaltyCard.setBarcodeType(CatimaBarcode.fromBarcode(result.getBarcodeFormat()));
|
||||||
scanResultBundle.putString(BARCODE_FORMAT, result.getBarcodeFormat().name());
|
|
||||||
if (addGroup != null) {
|
returnResult(new ParseResult(ParseResultType.BARCODE_ONLY, loyaltyCard));
|
||||||
scanResultBundle.putString(LoyaltyCardEditActivity.BUNDLE_ADDGROUP, addGroup);
|
|
||||||
}
|
|
||||||
scanResult.putExtras(scanResultBundle);
|
|
||||||
ScanActivity.this.setResult(RESULT_OK, scanResult);
|
|
||||||
finish();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -265,33 +305,31 @@ public class ScanActivity extends CatimaAppCompatActivity {
|
|||||||
mScannerActive = isActive;
|
mScannerActive = isActive;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void returnResult(String barcodeContents, String barcodeFormat) {
|
private void returnResult(ParseResult parseResult) {
|
||||||
Intent manualResult = new Intent();
|
Intent result = new Intent();
|
||||||
Bundle manualResultBundle = new Bundle();
|
Bundle bundle = parseResult.toLoyaltyCardBundle(ScanActivity.this);
|
||||||
manualResultBundle.putString(BARCODE_CONTENTS, barcodeContents);
|
|
||||||
manualResultBundle.putString(BARCODE_FORMAT, barcodeFormat);
|
|
||||||
if (addGroup != null) {
|
if (addGroup != null) {
|
||||||
manualResultBundle.putString(LoyaltyCardEditActivity.BUNDLE_ADDGROUP, addGroup);
|
bundle.putString(LoyaltyCardEditActivity.BUNDLE_ADDGROUP, addGroup);
|
||||||
}
|
}
|
||||||
manualResult.putExtras(manualResultBundle);
|
result.putExtras(bundle);
|
||||||
ScanActivity.this.setResult(RESULT_OK, manualResult);
|
ScanActivity.this.setResult(RESULT_OK, result);
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleActivityResult(int requestCode, int resultCode, Intent intent) {
|
private void handleActivityResult(int requestCode, int resultCode, Intent intent) {
|
||||||
super.onActivityResult(requestCode, resultCode, intent);
|
super.onActivityResult(requestCode, resultCode, intent);
|
||||||
|
|
||||||
List<BarcodeValues> barcodeValuesList = Utils.parseSetBarcodeActivityResult(requestCode, resultCode, intent, this);
|
List<ParseResult> parseResultList = Utils.parseSetBarcodeActivityResult(requestCode, resultCode, intent, this);
|
||||||
|
|
||||||
if (barcodeValuesList.isEmpty()) {
|
if (parseResultList.isEmpty()) {
|
||||||
setScannerActive(true);
|
setScannerActive(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Utils.makeUserChooseBarcodeFromList(this, barcodeValuesList, new BarcodeValuesListDisambiguatorCallback() {
|
Utils.makeUserChooseParseResultFromList(this, parseResultList, new ParseResultListDisambiguatorCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onUserChoseBarcode(BarcodeValues barcodeValues) {
|
public void onUserChoseParseResult(ParseResult parseResult) {
|
||||||
returnResult(barcodeValues.content(), barcodeValues.format());
|
returnResult(parseResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -338,7 +376,9 @@ public class ScanActivity extends CatimaAppCompatActivity {
|
|||||||
|
|
||||||
// Buttons
|
// Buttons
|
||||||
builder.setPositiveButton(getString(R.string.ok), (dialog, which) -> {
|
builder.setPositiveButton(getString(R.string.ok), (dialog, which) -> {
|
||||||
returnResult(input.getText().toString(), "");
|
LoyaltyCard loyaltyCard = new LoyaltyCard();
|
||||||
|
loyaltyCard.setCardId(input.getText().toString());
|
||||||
|
returnResult(new ParseResult(ParseResultType.BARCODE_ONLY, loyaltyCard));
|
||||||
});
|
});
|
||||||
builder.setNegativeButton(getString(R.string.cancel), (dialog, which) -> dialog.cancel());
|
builder.setNegativeButton(getString(R.string.cancel), (dialog, which) -> dialog.cancel());
|
||||||
AlertDialog dialog = builder.create();
|
AlertDialog dialog = builder.create();
|
||||||
@@ -373,7 +413,7 @@ public class ScanActivity extends CatimaAppCompatActivity {
|
|||||||
Intent i = new Intent(getApplicationContext(), BarcodeSelectorActivity.class);
|
Intent i = new Intent(getApplicationContext(), BarcodeSelectorActivity.class);
|
||||||
if (cardId != null) {
|
if (cardId != null) {
|
||||||
final Bundle b = new Bundle();
|
final Bundle b = new Bundle();
|
||||||
b.putString("initialCardId", cardId);
|
b.putString(LoyaltyCard.BUNDLE_LOYALTY_CARD_CARD_ID, cardId);
|
||||||
i.putExtras(b);
|
i.putExtras(b);
|
||||||
}
|
}
|
||||||
manualAddLauncher.launch(i);
|
manualAddLauncher.launch(i);
|
||||||
@@ -387,10 +427,14 @@ public class ScanActivity extends CatimaAppCompatActivity {
|
|||||||
PermissionUtils.requestStorageReadPermission(this, PERMISSION_SCAN_ADD_FROM_IMAGE);
|
PermissionUtils.requestStorageReadPermission(this, PERMISSION_SCAN_ADD_FROM_IMAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addFromPdfFile() {
|
public void addFromPdf() {
|
||||||
PermissionUtils.requestStorageReadPermission(this, PERMISSION_SCAN_ADD_FROM_PDF);
|
PermissionUtils.requestStorageReadPermission(this, PERMISSION_SCAN_ADD_FROM_PDF);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void addFromPkPass() {
|
||||||
|
PermissionUtils.requestStorageReadPermission(this, PERMISSION_SCAN_ADD_FROM_PKPASS);
|
||||||
|
}
|
||||||
|
|
||||||
private void addFromImageOrFileAfterPermission(String mimeType, ActivityResultLauncher<Intent> launcher, int chooserText, int errorMessage) {
|
private void addFromImageOrFileAfterPermission(String mimeType, ActivityResultLauncher<Intent> launcher, int chooserText, int errorMessage) {
|
||||||
Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
|
Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
|
||||||
photoPickerIntent.setType(mimeType);
|
photoPickerIntent.setType(mimeType);
|
||||||
@@ -480,12 +524,14 @@ public class ScanActivity extends CatimaAppCompatActivity {
|
|||||||
} else {
|
} else {
|
||||||
showCameraPermissionMissingText();
|
showCameraPermissionMissingText();
|
||||||
}
|
}
|
||||||
} else if (requestCode == PERMISSION_SCAN_ADD_FROM_IMAGE || requestCode == PERMISSION_SCAN_ADD_FROM_PDF) {
|
} else if (requestCode == PERMISSION_SCAN_ADD_FROM_IMAGE || requestCode == PERMISSION_SCAN_ADD_FROM_PDF || requestCode == PERMISSION_SCAN_ADD_FROM_PKPASS) {
|
||||||
if (granted) {
|
if (granted) {
|
||||||
if (requestCode == PERMISSION_SCAN_ADD_FROM_IMAGE) {
|
if (requestCode == PERMISSION_SCAN_ADD_FROM_IMAGE) {
|
||||||
addFromImageOrFileAfterPermission("image/*", photoPickerLauncher, R.string.addFromImage, R.string.failedLaunchingPhotoPicker);
|
addFromImageOrFileAfterPermission("image/*", photoPickerLauncher, R.string.addFromImage, R.string.failedLaunchingPhotoPicker);
|
||||||
} else {
|
} else if (requestCode == PERMISSION_SCAN_ADD_FROM_PDF) {
|
||||||
addFromImageOrFileAfterPermission("application/pdf", pdfPickerLauncher, R.string.addFromPdfFile, R.string.failedLaunchingFileManager);
|
addFromImageOrFileAfterPermission("application/pdf", pdfPickerLauncher, R.string.addFromPdfFile, R.string.failedLaunchingFileManager);
|
||||||
|
} else {
|
||||||
|
addFromImageOrFileAfterPermission("application/*", pkpassPickerLauncher, R.string.addFromPkpass, R.string.failedLaunchingFileManager);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setScannerActive(true);
|
setScannerActive(true);
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ class ShortcutHelper {
|
|||||||
private static final int ADAPTIVE_BITMAP_SIZE = 108 * ADAPTIVE_BITMAP_SCALE;
|
private static final int ADAPTIVE_BITMAP_SIZE = 108 * ADAPTIVE_BITMAP_SCALE;
|
||||||
private static final int ADAPTIVE_BITMAP_VISIBLE_SIZE = 72 * ADAPTIVE_BITMAP_SCALE;
|
private static final int ADAPTIVE_BITMAP_VISIBLE_SIZE = 72 * ADAPTIVE_BITMAP_SCALE;
|
||||||
private static final int ADAPTIVE_BITMAP_IMAGE_SIZE = ADAPTIVE_BITMAP_VISIBLE_SIZE + 5 * ADAPTIVE_BITMAP_SCALE;
|
private static final int ADAPTIVE_BITMAP_IMAGE_SIZE = ADAPTIVE_BITMAP_VISIBLE_SIZE + 5 * ADAPTIVE_BITMAP_SCALE;
|
||||||
private static final int PADDING_COLOR_OVERLAY = Color.argb(127, 0, 0, 0);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a card to the app shortcuts, and maintain a list of the most
|
* Add a card to the app shortcuts, and maintain a list of the most
|
||||||
@@ -87,7 +86,7 @@ class ShortcutHelper {
|
|||||||
for (int index = 0; index < list.size(); index++) {
|
for (int index = 0; index < list.size(); index++) {
|
||||||
ShortcutInfoCompat prevShortcut = list.get(index);
|
ShortcutInfoCompat prevShortcut = list.get(index);
|
||||||
|
|
||||||
LoyaltyCard loyaltyCard = DBHelper.getLoyaltyCard(database, Integer.parseInt(prevShortcut.getId()));
|
LoyaltyCard loyaltyCard = DBHelper.getLoyaltyCard(context, database, Integer.parseInt(prevShortcut.getId()));
|
||||||
|
|
||||||
// skip outdated cards that no longer exist
|
// skip outdated cards that no longer exist
|
||||||
if (loyaltyCard != null) {
|
if (loyaltyCard != null) {
|
||||||
@@ -120,7 +119,7 @@ class ShortcutHelper {
|
|||||||
Bitmap createAdaptiveBitmap(@NotNull Bitmap in, int paddingColor) {
|
Bitmap createAdaptiveBitmap(@NotNull Bitmap in, int paddingColor) {
|
||||||
Bitmap ret = Bitmap.createBitmap(ADAPTIVE_BITMAP_SIZE, ADAPTIVE_BITMAP_SIZE, Bitmap.Config.ARGB_8888);
|
Bitmap ret = Bitmap.createBitmap(ADAPTIVE_BITMAP_SIZE, ADAPTIVE_BITMAP_SIZE, Bitmap.Config.ARGB_8888);
|
||||||
Canvas output = new Canvas(ret);
|
Canvas output = new Canvas(ret);
|
||||||
output.drawColor(ColorUtils.compositeColors(PADDING_COLOR_OVERLAY, paddingColor));
|
output.drawColor(paddingColor);
|
||||||
Bitmap resized = Utils.resizeBitmap(in, ADAPTIVE_BITMAP_IMAGE_SIZE);
|
Bitmap resized = Utils.resizeBitmap(in, ADAPTIVE_BITMAP_IMAGE_SIZE);
|
||||||
output.drawBitmap(resized, (ADAPTIVE_BITMAP_SIZE - resized.getWidth()) / 2f, (ADAPTIVE_BITMAP_SIZE - resized.getHeight()) / 2f, null);
|
output.drawBitmap(resized, (ADAPTIVE_BITMAP_SIZE - resized.getWidth()) / 2f, (ADAPTIVE_BITMAP_SIZE - resized.getHeight()) / 2f, null);
|
||||||
return ret;
|
return ret;
|
||||||
@@ -133,15 +132,14 @@ class ShortcutHelper {
|
|||||||
// one replace it.
|
// one replace it.
|
||||||
intent.setFlags(intent.getFlags() | Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
intent.setFlags(intent.getFlags() | Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
||||||
final Bundle bundle = new Bundle();
|
final Bundle bundle = new Bundle();
|
||||||
bundle.putInt("id", loyaltyCard.id);
|
bundle.putInt(LoyaltyCardViewActivity.BUNDLE_ID, loyaltyCard.id);
|
||||||
bundle.putBoolean("view", true);
|
|
||||||
intent.putExtras(bundle);
|
intent.putExtras(bundle);
|
||||||
|
|
||||||
Bitmap iconBitmap = Utils.retrieveCardImage(context, loyaltyCard.id, ImageLocationType.icon);
|
Bitmap iconBitmap = loyaltyCard.getImageThumbnail(context);
|
||||||
if (iconBitmap == null) {
|
if (iconBitmap == null) {
|
||||||
iconBitmap = Utils.generateIcon(context, loyaltyCard, true).getLetterTile();
|
iconBitmap = Utils.generateIcon(context, loyaltyCard, true).getLetterTile();
|
||||||
} else {
|
} else {
|
||||||
iconBitmap = createAdaptiveBitmap(iconBitmap, Utils.getHeaderColor(context, loyaltyCard));
|
iconBitmap = createAdaptiveBitmap(iconBitmap, Utils.needsDarkForeground(Utils.getHeaderColor(context, loyaltyCard)) ? Color.BLACK : Color.WHITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
IconCompat icon = IconCompat.createWithAdaptiveBitmap(iconBitmap);
|
IconCompat icon = IconCompat.createWithAdaptiveBitmap(iconBitmap);
|
||||||
|
|||||||
@@ -24,6 +24,13 @@ import com.yalantis.ucrop.UCropActivity;
|
|||||||
public class UCropWrapper extends UCropActivity {
|
public class UCropWrapper extends UCropActivity {
|
||||||
public static final String UCROP_TOOLBAR_TYPEFACE_STYLE = "ucop_toolbar_typeface_style";
|
public static final String UCROP_TOOLBAR_TYPEFACE_STYLE = "ucop_toolbar_typeface_style";
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
Utils.applyWindowInsets(findViewById(android.R.id.content));
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onPostCreate(@Nullable Bundle savedInstanceState) {
|
protected void onPostCreate(@Nullable Bundle savedInstanceState) {
|
||||||
super.onPostCreate(savedInstanceState);
|
super.onPostCreate(savedInstanceState);
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import android.content.res.Resources;
|
|||||||
import android.content.res.TypedArray;
|
import android.content.res.TypedArray;
|
||||||
import android.graphics.Bitmap;
|
import android.graphics.Bitmap;
|
||||||
import android.graphics.BitmapFactory;
|
import android.graphics.BitmapFactory;
|
||||||
|
import android.graphics.Canvas;
|
||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
import android.graphics.ImageDecoder;
|
import android.graphics.ImageDecoder;
|
||||||
import android.graphics.Matrix;
|
import android.graphics.Matrix;
|
||||||
@@ -26,6 +27,7 @@ import android.util.Log;
|
|||||||
import android.util.TypedValue;
|
import android.util.TypedValue;
|
||||||
import android.view.MotionEvent;
|
import android.view.MotionEvent;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
import android.view.ViewGroup;
|
||||||
import android.view.Window;
|
import android.view.Window;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
@@ -37,7 +39,10 @@ import androidx.annotation.RawRes;
|
|||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
import androidx.appcompat.app.AppCompatDelegate;
|
import androidx.appcompat.app.AppCompatDelegate;
|
||||||
import androidx.core.graphics.ColorUtils;
|
import androidx.core.graphics.ColorUtils;
|
||||||
|
import androidx.core.graphics.Insets;
|
||||||
import androidx.core.os.LocaleListCompat;
|
import androidx.core.os.LocaleListCompat;
|
||||||
|
import androidx.core.view.ViewCompat;
|
||||||
|
import androidx.core.view.WindowInsetsCompat;
|
||||||
import androidx.core.view.WindowInsetsControllerCompat;
|
import androidx.core.view.WindowInsetsControllerCompat;
|
||||||
import androidx.core.widget.TextViewCompat;
|
import androidx.core.widget.TextViewCompat;
|
||||||
import androidx.exifinterface.media.ExifInterface;
|
import androidx.exifinterface.media.ExifInterface;
|
||||||
@@ -48,10 +53,11 @@ import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
|||||||
import com.google.zxing.BinaryBitmap;
|
import com.google.zxing.BinaryBitmap;
|
||||||
import com.google.zxing.LuminanceSource;
|
import com.google.zxing.LuminanceSource;
|
||||||
import com.google.zxing.MultiFormatReader;
|
import com.google.zxing.MultiFormatReader;
|
||||||
|
import com.google.zxing.DecodeHintType;
|
||||||
import com.google.zxing.NotFoundException;
|
import com.google.zxing.NotFoundException;
|
||||||
import com.google.zxing.RGBLuminanceSource;
|
import com.google.zxing.RGBLuminanceSource;
|
||||||
import com.google.zxing.Result;
|
import com.google.zxing.Result;
|
||||||
import com.google.zxing.common.HybridBinarizer;
|
import com.google.zxing.common.GlobalHistogramBinarizer;
|
||||||
import com.google.zxing.multi.GenericMultipleBarcodeReader;
|
import com.google.zxing.multi.GenericMultipleBarcodeReader;
|
||||||
import com.google.zxing.multi.MultipleBarcodeReader;
|
import com.google.zxing.multi.MultipleBarcodeReader;
|
||||||
|
|
||||||
@@ -77,7 +83,9 @@ import java.util.Calendar;
|
|||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Currency;
|
import java.util.Currency;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.EnumMap;
|
||||||
import java.util.GregorianCalendar;
|
import java.util.GregorianCalendar;
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -95,12 +103,13 @@ public class Utils {
|
|||||||
public static final int BARCODE_SCAN = 3;
|
public static final int BARCODE_SCAN = 3;
|
||||||
public static final int BARCODE_IMPORT_FROM_IMAGE_FILE = 4;
|
public static final int BARCODE_IMPORT_FROM_IMAGE_FILE = 4;
|
||||||
public static final int BARCODE_IMPORT_FROM_PDF_FILE = 5;
|
public static final int BARCODE_IMPORT_FROM_PDF_FILE = 5;
|
||||||
public static final int CARD_IMAGE_FROM_CAMERA_FRONT = 6;
|
public static final int BARCODE_IMPORT_FROM_PKPASS_FILE = 6;
|
||||||
public static final int CARD_IMAGE_FROM_CAMERA_BACK = 7;
|
public static final int CARD_IMAGE_FROM_CAMERA_FRONT = 7;
|
||||||
public static final int CARD_IMAGE_FROM_CAMERA_ICON = 8;
|
public static final int CARD_IMAGE_FROM_CAMERA_BACK = 8;
|
||||||
public static final int CARD_IMAGE_FROM_FILE_FRONT = 9;
|
public static final int CARD_IMAGE_FROM_CAMERA_ICON = 9;
|
||||||
public static final int CARD_IMAGE_FROM_FILE_BACK = 10;
|
public static final int CARD_IMAGE_FROM_FILE_FRONT = 10;
|
||||||
public static final int CARD_IMAGE_FROM_FILE_ICON = 11;
|
public static final int CARD_IMAGE_FROM_FILE_BACK = 11;
|
||||||
|
public static final int CARD_IMAGE_FROM_FILE_ICON = 12;
|
||||||
|
|
||||||
public static final String CARD_IMAGE_FILENAME_REGEX = "^(card_)(\\d+)(_(?:front|back|icon)\\.png)$";
|
public static final String CARD_IMAGE_FILENAME_REGEX = "^(card_)(\\d+)(_(?:front|back|icon)\\.png)$";
|
||||||
|
|
||||||
@@ -143,7 +152,7 @@ public class Utils {
|
|||||||
return ColorUtils.calculateLuminance(backgroundColor) > LUMINANCE_MIDPOINT;
|
return ColorUtils.calculateLuminance(backgroundColor) > LUMINANCE_MIDPOINT;
|
||||||
}
|
}
|
||||||
|
|
||||||
static public List<BarcodeValues> retrieveBarcodesFromImage(Context context, Uri uri) {
|
static public List<ParseResult> retrieveBarcodesFromImage(Context context, Uri uri) {
|
||||||
Log.i(TAG, "Received image file with possible barcode");
|
Log.i(TAG, "Received image file with possible barcode");
|
||||||
|
|
||||||
if (uri == null) {
|
if (uri == null) {
|
||||||
@@ -162,7 +171,7 @@ public class Utils {
|
|||||||
return new ArrayList<>();
|
return new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
List<BarcodeValues> barcodesFromBitmap = getBarcodesFromBitmap(bitmap);
|
List<ParseResult> barcodesFromBitmap = getBarcodesFromBitmap(bitmap);
|
||||||
|
|
||||||
if (barcodesFromBitmap.isEmpty()) {
|
if (barcodesFromBitmap.isEmpty()) {
|
||||||
Log.i(TAG, "No barcode found in image file");
|
Log.i(TAG, "No barcode found in image file");
|
||||||
@@ -172,7 +181,52 @@ public class Utils {
|
|||||||
return barcodesFromBitmap;
|
return barcodesFromBitmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
static public List<BarcodeValues> retrieveBarcodesFromPdf(Context context, Uri uri) {
|
static public List<ParseResult> retrieveBarcodesFromPkPass(Context context, Uri uri) {
|
||||||
|
Log.i(TAG, "Received Pkpass file with possible barcode");
|
||||||
|
if (uri == null) {
|
||||||
|
Log.e(TAG, "Pkpass did not contain any data");
|
||||||
|
Toast.makeText(context, R.string.errorReadingFile, Toast.LENGTH_LONG).show();
|
||||||
|
return new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
PkpassParser pkpassParser;
|
||||||
|
try {
|
||||||
|
pkpassParser = new PkpassParser(context, uri);
|
||||||
|
} catch (Exception e) {
|
||||||
|
Log.e(TAG, "Error reading pkpass file", e);
|
||||||
|
Toast.makeText(context, R.string.errorReadingFile, Toast.LENGTH_LONG).show();
|
||||||
|
return new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
List<String> locales = pkpassParser.listLocales();
|
||||||
|
if (locales.isEmpty()) {
|
||||||
|
try {
|
||||||
|
return Collections.singletonList(new ParseResult(ParseResultType.FULL, pkpassParser.toLoyaltyCard(null)));
|
||||||
|
} catch (Exception e) {
|
||||||
|
Log.e(TAG, "Error calling toLoyaltyCard on pkpass file", e);
|
||||||
|
Toast.makeText(context, R.string.errorReadingFile, Toast.LENGTH_LONG).show();
|
||||||
|
return new ArrayList<>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
List<ParseResult> parseResultList = new ArrayList<>();
|
||||||
|
for (String locale : locales) {
|
||||||
|
ParseResult parseResult;
|
||||||
|
try {
|
||||||
|
parseResult = new ParseResult(ParseResultType.FULL, pkpassParser.toLoyaltyCard(locale));
|
||||||
|
} catch (Exception e) {
|
||||||
|
Log.e(TAG, "Error calling toLoyaltyCard on pkpass file", e);
|
||||||
|
Toast.makeText(context, R.string.errorReadingFile, Toast.LENGTH_LONG).show();
|
||||||
|
return new ArrayList<>();
|
||||||
|
}
|
||||||
|
parseResult.setNote(locale);
|
||||||
|
parseResultList.add(parseResult);
|
||||||
|
}
|
||||||
|
|
||||||
|
return parseResultList;
|
||||||
|
}
|
||||||
|
|
||||||
|
static public List<ParseResult> retrieveBarcodesFromPdf(Context context, Uri uri) {
|
||||||
Log.i(TAG, "Received PDF file with possible barcode");
|
Log.i(TAG, "Received PDF file with possible barcode");
|
||||||
if (uri == null) {
|
if (uri == null) {
|
||||||
Log.e(TAG, "Uri did not contain any data");
|
Log.e(TAG, "Uri did not contain any data");
|
||||||
@@ -182,7 +236,7 @@ public class Utils {
|
|||||||
|
|
||||||
ParcelFileDescriptor parcelFileDescriptor = null;
|
ParcelFileDescriptor parcelFileDescriptor = null;
|
||||||
PdfRenderer renderer = null;
|
PdfRenderer renderer = null;
|
||||||
List<BarcodeValues> barcodesFromPdfPages = new ArrayList<>();
|
List<ParseResult> barcodesFromPdfPages = new ArrayList<>();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
parcelFileDescriptor = context.getContentResolver().openFileDescriptor(uri, "r");
|
parcelFileDescriptor = context.getContentResolver().openFileDescriptor(uri, "r");
|
||||||
@@ -194,13 +248,20 @@ public class Utils {
|
|||||||
for (int i = 0; i < renderer.getPageCount(); i++) {
|
for (int i = 0; i < renderer.getPageCount(); i++) {
|
||||||
PdfRenderer.Page page = renderer.openPage(i);
|
PdfRenderer.Page page = renderer.openPage(i);
|
||||||
renderedPage = Bitmap.createBitmap(page.getWidth(), page.getHeight(), Bitmap.Config.ARGB_8888);
|
renderedPage = Bitmap.createBitmap(page.getWidth(), page.getHeight(), Bitmap.Config.ARGB_8888);
|
||||||
|
|
||||||
|
// Ensure the page has a background
|
||||||
|
// Fixes some transparent PDF files not being read well
|
||||||
|
Canvas canvas = new Canvas(renderedPage);
|
||||||
|
canvas.drawColor(Color.WHITE);
|
||||||
|
canvas.drawBitmap(renderedPage, 0, 0, null);
|
||||||
|
|
||||||
page.render(renderedPage, null, null, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY);
|
page.render(renderedPage, null, null, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY);
|
||||||
page.close();
|
page.close();
|
||||||
|
|
||||||
List<BarcodeValues> barcodesFromPage = getBarcodesFromBitmap(renderedPage);
|
List<ParseResult> barcodesFromPage = getBarcodesFromBitmap(renderedPage);
|
||||||
for (BarcodeValues barcodeValues : barcodesFromPage) {
|
for (ParseResult parseResult : barcodesFromPage) {
|
||||||
barcodeValues.setNote(String.format(context.getString(R.string.pageWithNumber), i+1));
|
parseResult.setNote(String.format(context.getString(R.string.pageWithNumber), i+1));
|
||||||
barcodesFromPdfPages.add(barcodeValues);
|
barcodesFromPdfPages.add(parseResult);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -229,17 +290,17 @@ public class Utils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the Barcode format and content based on the result of an activity.
|
* Returns the ParseResult based on the result of an activity.
|
||||||
* It shows toasts to notify the end-user as needed itself and will return an empty
|
* It shows toasts to notify the end-user as needed itself and will return an empty list if the
|
||||||
* BarcodeValues object if the activity was cancelled or nothing could be found.
|
* activity was cancelled or nothing could be found.
|
||||||
*
|
*
|
||||||
* @param requestCode
|
* @param requestCode
|
||||||
* @param resultCode
|
* @param resultCode
|
||||||
* @param intent
|
* @param intent
|
||||||
* @param context
|
* @param context
|
||||||
* @return BarcodeValues
|
* @return List<ParseResult>
|
||||||
*/
|
*/
|
||||||
static public List<BarcodeValues> parseSetBarcodeActivityResult(int requestCode, int resultCode, Intent intent, Context context) {
|
static public List<ParseResult> parseSetBarcodeActivityResult(int requestCode, int resultCode, Intent intent, Context context) {
|
||||||
String contents;
|
String contents;
|
||||||
String format;
|
String format;
|
||||||
|
|
||||||
@@ -255,6 +316,10 @@ public class Utils {
|
|||||||
return retrieveBarcodesFromPdf(context, intent.getData());
|
return retrieveBarcodesFromPdf(context, intent.getData());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (requestCode == Utils.BARCODE_IMPORT_FROM_PKPASS_FILE) {
|
||||||
|
return retrieveBarcodesFromPkPass(context, intent.getData());
|
||||||
|
}
|
||||||
|
|
||||||
if (requestCode == Utils.BARCODE_SCAN || requestCode == Utils.SELECT_BARCODE_REQUEST) {
|
if (requestCode == Utils.BARCODE_SCAN || requestCode == Utils.SELECT_BARCODE_REQUEST) {
|
||||||
if (requestCode == Utils.BARCODE_SCAN) {
|
if (requestCode == Utils.BARCODE_SCAN) {
|
||||||
Log.i(TAG, "Received barcode information from camera");
|
Log.i(TAG, "Received barcode information from camera");
|
||||||
@@ -268,7 +333,15 @@ public class Utils {
|
|||||||
Log.i(TAG, "Read barcode id: " + contents);
|
Log.i(TAG, "Read barcode id: " + contents);
|
||||||
Log.i(TAG, "Read format: " + format);
|
Log.i(TAG, "Read format: " + format);
|
||||||
|
|
||||||
return Collections.singletonList(new BarcodeValues(format, contents));
|
LoyaltyCard loyaltyCard = new LoyaltyCard();
|
||||||
|
if (format != null) {
|
||||||
|
loyaltyCard.setBarcodeType(CatimaBarcode.fromName(format));
|
||||||
|
}
|
||||||
|
if (contents != null) {
|
||||||
|
loyaltyCard.setCardId(contents);
|
||||||
|
}
|
||||||
|
|
||||||
|
return Collections.singletonList(new ParseResult(ParseResultType.BARCODE_ONLY, loyaltyCard));
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new UnsupportedOperationException("Unknown request code for parseSetBarcodeActivityResult");
|
throw new UnsupportedOperationException("Unknown request code for parseSetBarcodeActivityResult");
|
||||||
@@ -288,7 +361,7 @@ public class Utils {
|
|||||||
return MediaStore.Images.Media.getBitmap(context.getContentResolver(), data);
|
return MediaStore.Images.Media.getBitmap(context.getContentResolver(), data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static public List<BarcodeValues> getBarcodesFromBitmap(Bitmap bitmap) {
|
static public List<ParseResult> getBarcodesFromBitmap(Bitmap bitmap) {
|
||||||
// This function is vulnerable to OOM, so we try again with a smaller bitmap is we get OOM
|
// This function is vulnerable to OOM, so we try again with a smaller bitmap is we get OOM
|
||||||
for (int i = 0; i < 10; i++) {
|
for (int i = 0; i < 10; i++) {
|
||||||
try {
|
try {
|
||||||
@@ -303,59 +376,67 @@ public class Utils {
|
|||||||
return new ArrayList<>();
|
return new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
static private List<BarcodeValues> getBarcodesFromBitmapReal(Bitmap bitmap) {
|
static private List<ParseResult> getBarcodesFromBitmapReal(Bitmap bitmap) {
|
||||||
// In order to decode it, the Bitmap must first be converted into a pixel array...
|
// In order to decode it, the Bitmap must first be converted into a pixel array...
|
||||||
int[] intArray = new int[bitmap.getWidth() * bitmap.getHeight()];
|
int[] intArray = new int[bitmap.getWidth() * bitmap.getHeight()];
|
||||||
bitmap.getPixels(intArray, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight());
|
bitmap.getPixels(intArray, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight());
|
||||||
|
|
||||||
// ...and then turned into a binary bitmap from its luminance
|
// ...and then turned into a binary bitmap from its luminance
|
||||||
LuminanceSource source = new RGBLuminanceSource(bitmap.getWidth(), bitmap.getHeight(), intArray);
|
LuminanceSource source = new RGBLuminanceSource(bitmap.getWidth(), bitmap.getHeight(), intArray);
|
||||||
BinaryBitmap binaryBitmap = new BinaryBitmap(new HybridBinarizer(source));
|
BinaryBitmap binaryBitmap = new BinaryBitmap(new GlobalHistogramBinarizer(source));
|
||||||
|
|
||||||
List<BarcodeValues> barcodeValuesList = new ArrayList<>();
|
List<ParseResult> parseResultList = new ArrayList<>();
|
||||||
try {
|
try {
|
||||||
MultiFormatReader multiFormatReader = new MultiFormatReader();
|
MultiFormatReader multiFormatReader = new MultiFormatReader();
|
||||||
MultipleBarcodeReader multipleBarcodeReader = new GenericMultipleBarcodeReader(multiFormatReader);
|
MultipleBarcodeReader multipleBarcodeReader = new GenericMultipleBarcodeReader(multiFormatReader);
|
||||||
|
|
||||||
Result[] barcodeResults = multipleBarcodeReader.decodeMultiple(binaryBitmap);
|
Map<DecodeHintType, Object> hints = new EnumMap<>(DecodeHintType.class);
|
||||||
|
hints.put(DecodeHintType.ALSO_INVERTED, Boolean.TRUE);
|
||||||
|
|
||||||
|
Result[] barcodeResults = multipleBarcodeReader.decodeMultiple(binaryBitmap,hints);
|
||||||
|
|
||||||
for (Result barcodeResult : barcodeResults) {
|
for (Result barcodeResult : barcodeResults) {
|
||||||
Log.i(TAG, "Read barcode id: " + barcodeResult.getText());
|
Log.i(TAG, "Read barcode id: " + barcodeResult.getText());
|
||||||
Log.i(TAG, "Read format: " + barcodeResult.getBarcodeFormat().name());
|
Log.i(TAG, "Read format: " + barcodeResult.getBarcodeFormat().name());
|
||||||
|
|
||||||
barcodeValuesList.add(new BarcodeValues(barcodeResult.getBarcodeFormat().name(), barcodeResult.getText()));
|
LoyaltyCard loyaltyCard = new LoyaltyCard();
|
||||||
|
loyaltyCard.setCardId(barcodeResult.getText());
|
||||||
|
loyaltyCard.setBarcodeType(CatimaBarcode.fromBarcode(barcodeResult.getBarcodeFormat()));
|
||||||
|
parseResultList.add(new ParseResult(ParseResultType.BARCODE_ONLY, loyaltyCard));
|
||||||
}
|
}
|
||||||
|
|
||||||
return barcodeValuesList;
|
return parseResultList;
|
||||||
} catch (NotFoundException e) {
|
} catch (NotFoundException e) {
|
||||||
return barcodeValuesList;
|
return parseResultList;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static public void makeUserChooseBarcodeFromList(Context context, List<BarcodeValues> barcodeValuesList, BarcodeValuesListDisambiguatorCallback callback) {
|
static public void makeUserChooseParseResultFromList(Context context, List<ParseResult> parseResultList, ParseResultListDisambiguatorCallback callback) {
|
||||||
// If there is only one choice, consider it chosen
|
// If there is only one choice, consider it chosen
|
||||||
if (barcodeValuesList.size() == 1) {
|
if (parseResultList.size() == 1) {
|
||||||
callback.onUserChoseBarcode(barcodeValuesList.get(0));
|
callback.onUserChoseParseResult(parseResultList.get(0));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ask user to choose a barcode
|
// Ask user to choose a barcode
|
||||||
// TODO: This should contain an image of the barcode in question to help users understand the choice they're making
|
// TODO: This should contain an image of the barcode in question to help users understand the choice they're making
|
||||||
CharSequence[] barcodeDescriptions = new CharSequence[barcodeValuesList.size()];
|
CharSequence[] barcodeDescriptions = new CharSequence[parseResultList.size()];
|
||||||
for (int i = 0; i < barcodeValuesList.size(); i++) {
|
for (int i = 0; i < parseResultList.size(); i++) {
|
||||||
BarcodeValues barcodeValues = barcodeValuesList.get(i);
|
ParseResult parseResult = parseResultList.get(i);
|
||||||
CatimaBarcode catimaBarcode = CatimaBarcode.fromName(barcodeValues.format());
|
CatimaBarcode catimaBarcode = parseResult.getLoyaltyCard().barcodeType;
|
||||||
|
|
||||||
String barcodeContent = barcodeValues.content();
|
String barcodeContent = parseResult.getLoyaltyCard().cardId;
|
||||||
// Shorten overly long barcodes
|
// Shorten overly long barcodes
|
||||||
if (barcodeContent.length() > 22) {
|
if (barcodeContent.length() > 22) {
|
||||||
barcodeContent = barcodeContent.substring(0, 20) + "…";
|
barcodeContent = barcodeContent.substring(0, 20) + "…";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (barcodeValues.note() != null) {
|
String parseResultNote = parseResult.getNote();
|
||||||
barcodeDescriptions[i] = String.format("%s: %s (%s)", barcodeValues.note(), catimaBarcode.prettyName(), barcodeContent);
|
|
||||||
|
if (parseResultNote != null) {
|
||||||
|
barcodeDescriptions[i] = String.format("%s: %s (%s)", parseResultNote, catimaBarcode != null ? catimaBarcode.prettyName() : context.getString(R.string.noBarcode), barcodeContent);
|
||||||
} else {
|
} else {
|
||||||
barcodeDescriptions[i] = String.format("%s (%s)", catimaBarcode.prettyName(), barcodeContent);
|
barcodeDescriptions[i] = String.format("%s (%s)", catimaBarcode != null ? catimaBarcode.prettyName() : context.getString(R.string.noBarcode), barcodeContent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -363,7 +444,7 @@ public class Utils {
|
|||||||
builder.setTitle(context.getString(R.string.multipleBarcodesFoundPleaseChooseOne));
|
builder.setTitle(context.getString(R.string.multipleBarcodesFoundPleaseChooseOne));
|
||||||
builder.setItems(
|
builder.setItems(
|
||||||
barcodeDescriptions,
|
barcodeDescriptions,
|
||||||
(dialogInterface, i) -> callback.onUserChoseBarcode(barcodeValuesList.get(i))
|
(dialogInterface, i) -> callback.onUserChoseParseResult(parseResultList.get(i))
|
||||||
);
|
);
|
||||||
builder.setOnCancelListener(dialogInterface -> callback.onUserDismissedSelector());
|
builder.setOnCancelListener(dialogInterface -> callback.onUserDismissedSelector());
|
||||||
builder.show();
|
builder.show();
|
||||||
@@ -783,7 +864,7 @@ public class Utils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Bitmap loadImage(String path) {
|
public static @Nullable Bitmap loadImage(String path) {
|
||||||
try {
|
try {
|
||||||
return BitmapFactory.decodeStream(new FileInputStream(path));
|
return BitmapFactory.decodeStream(new FileInputStream(path));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
@@ -792,7 +873,7 @@ public class Utils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Bitmap loadTempImage(Context context, String name) {
|
public static @Nullable Bitmap loadTempImage(Context context, String name) {
|
||||||
return loadImage(context.getCacheDir() + "/" + name);
|
return loadImage(context.getCacheDir() + "/" + name);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -869,7 +950,7 @@ public class Utils {
|
|||||||
return typedValue.data;
|
return typedValue.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int getHeaderColorFromImage(Bitmap image, int fallback) {
|
public static int getHeaderColorFromImage(@Nullable Bitmap image, int fallback) {
|
||||||
if (image == null) {
|
if (image == null) {
|
||||||
return fallback;
|
return fallback;
|
||||||
}
|
}
|
||||||
@@ -934,27 +1015,37 @@ public class Utils {
|
|||||||
* @param textWhenNoImage TextView to write the loyalty card name into if icon is null
|
* @param textWhenNoImage TextView to write the loyalty card name into if icon is null
|
||||||
* @return background colour
|
* @return background colour
|
||||||
*/
|
*/
|
||||||
public static int setIconOrTextWithBackground(Context context, LoyaltyCard loyaltyCard, Bitmap icon, ImageView backgroundOrIcon, TextView textWhenNoImage) {
|
public static int setIconOrTextWithBackground(Context context, LoyaltyCard loyaltyCard, Bitmap icon, ImageView backgroundOrIcon, TextView textWhenNoImage, int columnCount) {
|
||||||
int headerColor = getHeaderColor(context, loyaltyCard);
|
int headerColor = getHeaderColor(context, loyaltyCard);
|
||||||
backgroundOrIcon.setImageBitmap(icon);
|
backgroundOrIcon.setImageBitmap(icon);
|
||||||
backgroundOrIcon.setBackgroundColor(headerColor);
|
|
||||||
|
|
||||||
if (icon != null) {
|
if (icon != null) {
|
||||||
|
// Use header colour to decide if this image will need a white or black background
|
||||||
|
backgroundOrIcon.setBackgroundColor(needsDarkForeground(headerColor) ? Color.BLACK : Color.WHITE);
|
||||||
|
|
||||||
|
// Ensure correct cropping style
|
||||||
|
backgroundOrIcon.setScaleType(Utils.getRecommendedScaleTypeForThumbnailImage(icon));
|
||||||
|
|
||||||
textWhenNoImage.setVisibility(View.GONE);
|
textWhenNoImage.setVisibility(View.GONE);
|
||||||
} else {
|
} else {
|
||||||
|
// Use header colour as background colour
|
||||||
|
backgroundOrIcon.setBackgroundColor(headerColor);
|
||||||
|
|
||||||
// Manually calculate how many lines will be needed
|
// Manually calculate how many lines will be needed
|
||||||
// This is necessary because Android's auto sizing will split over lines way before reaching the minimum font size and store names split over multiple lines are harder to scan with a quick glance so we should try to prevent it
|
// This is necessary because Android's auto sizing will split over lines way before reaching the minimum font size and store names split over multiple lines are harder to scan with a quick glance so we should try to prevent it
|
||||||
// Because we have to write the text before we can actually know the exact laid out size (trying to delay this causes bugs where the autosize fails) we have to take some... weird shortcuts
|
// Because we have to write the text before we can actually know the exact laid out size (trying to delay this causes bugs where the autosize fails) we have to take some... weird shortcuts
|
||||||
|
|
||||||
// At this point textWhenNoImage.getWidth() still returns 0, so we cheat by calculating the whole width of the screen and then dividing it by the amount of columns
|
// At this point textWhenNoImage.getWidth() still returns 0, so we cheat by calculating the whole width of the screen and then dividing it by the amount of columns
|
||||||
int textviewWidth = Resources.getSystem().getDisplayMetrics().widthPixels / context.getResources().getInteger(R.integer.main_view_card_columns);
|
int columnWidth = Resources.getSystem().getDisplayMetrics().widthPixels / columnCount;
|
||||||
|
|
||||||
// Calculate how wide a character is and calculate how many characters fit in a line
|
// Calculate how wide a character is and calculate how many characters fit in a line
|
||||||
|
// text size is generally based on height, so setting 1:1 as width may be fishy
|
||||||
int characterWidth = TextViewCompat.getAutoSizeMinTextSize(textWhenNoImage);
|
int characterWidth = TextViewCompat.getAutoSizeMinTextSize(textWhenNoImage);
|
||||||
int maxWidthPerLine = textviewWidth - textWhenNoImage.getPaddingStart() - textWhenNoImage.getPaddingEnd();
|
int maxWidthPerLine = columnWidth - textWhenNoImage.getPaddingStart() - textWhenNoImage.getPaddingEnd();
|
||||||
|
|
||||||
// Set amount of lines based on what could fit at most
|
// Set number of lines based on what could fit at most
|
||||||
int maxLines = ((loyaltyCard.store.length() * characterWidth) / maxWidthPerLine) + 1;
|
int fullTextWidth = loyaltyCard.store.length() * characterWidth;
|
||||||
|
int maxLines = (fullTextWidth / maxWidthPerLine) + 1;
|
||||||
textWhenNoImage.setMaxLines(maxLines);
|
textWhenNoImage.setMaxLines(maxLines);
|
||||||
|
|
||||||
// Actually set the text and colour
|
// Actually set the text and colour
|
||||||
@@ -966,21 +1057,6 @@ public class Utils {
|
|||||||
return headerColor;
|
return headerColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean installedFromGooglePlay(Context context) {
|
|
||||||
try {
|
|
||||||
String packageName = context.getPackageName();
|
|
||||||
String installer;
|
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
|
||||||
installer = context.getPackageManager().getInstallSourceInfo(packageName).getInstallingPackageName();
|
|
||||||
} else {
|
|
||||||
installer = context.getPackageManager().getInstallerPackageName(packageName);
|
|
||||||
}
|
|
||||||
return installer.equals("com.android.vending");
|
|
||||||
} catch (Throwable ignored) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static int getHeaderColor(Context context, LoyaltyCard loyaltyCard) {
|
public static int getHeaderColor(Context context, LoyaltyCard loyaltyCard) {
|
||||||
return loyaltyCard.headerColor != null ? loyaltyCard.headerColor : LetterBitmap.getDefaultColor(context, loyaltyCard.store);
|
return loyaltyCard.headerColor != null ? loyaltyCard.headerColor : LetterBitmap.getDefaultColor(context, loyaltyCard.store);
|
||||||
}
|
}
|
||||||
@@ -1042,4 +1118,35 @@ public class Utils {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void applyWindowInsets(View root) {
|
||||||
|
/* This function basically fakes the activity being edge-to-edge. Useful for those activities that are really hard to get to behave well */
|
||||||
|
ViewCompat.setOnApplyWindowInsetsListener(root, (view, windowInsets) -> {
|
||||||
|
Insets insets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars());
|
||||||
|
|
||||||
|
ViewGroup.MarginLayoutParams layoutParams = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
|
||||||
|
layoutParams.leftMargin = insets.left;
|
||||||
|
layoutParams.bottomMargin = insets.bottom;
|
||||||
|
layoutParams.rightMargin = insets.right;
|
||||||
|
layoutParams.topMargin = insets.top;
|
||||||
|
view.setLayoutParams(layoutParams);
|
||||||
|
|
||||||
|
return WindowInsetsCompat.CONSUMED;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public static ImageView.ScaleType getRecommendedScaleTypeForThumbnailImage(@Nullable Bitmap image) {
|
||||||
|
// Return something sensible if no image
|
||||||
|
if (image == null) {
|
||||||
|
return ImageView.ScaleType.FIT_CENTER;
|
||||||
|
}
|
||||||
|
|
||||||
|
// If the image is relatively close to 85.6:53.98 (width = 1.58577250834 * height), allow cropping it to fit it
|
||||||
|
double ratio = (double) image.getWidth() / image.getHeight();
|
||||||
|
if (ratio >= 1.55 && ratio <= 1.60) {
|
||||||
|
return ImageView.ScaleType.CENTER_CROP;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ImageView.ScaleType.FIT_CENTER;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ public class ZipUtils {
|
|||||||
return new JSONObject(read(zipInputStream));
|
return new JSONObject(read(zipInputStream));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String read(ZipInputStream zipInputStream) throws IOException {
|
public static String read(ZipInputStream zipInputStream) throws IOException {
|
||||||
StringBuilder stringBuilder = new StringBuilder();
|
StringBuilder stringBuilder = new StringBuilder();
|
||||||
Reader reader = new BufferedReader(new InputStreamReader(zipInputStream, StandardCharsets.UTF_8));
|
Reader reader = new BufferedReader(new InputStreamReader(zipInputStream, StandardCharsets.UTF_8));
|
||||||
int c;
|
int c;
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ public class CatimaExporter implements Exporter {
|
|||||||
// Generate CSV
|
// Generate CSV
|
||||||
ByteArrayOutputStream catimaOutputStream = new ByteArrayOutputStream();
|
ByteArrayOutputStream catimaOutputStream = new ByteArrayOutputStream();
|
||||||
OutputStreamWriter catimaOutputStreamWriter = new OutputStreamWriter(catimaOutputStream, StandardCharsets.UTF_8);
|
OutputStreamWriter catimaOutputStreamWriter = new OutputStreamWriter(catimaOutputStream, StandardCharsets.UTF_8);
|
||||||
writeCSV(database, catimaOutputStreamWriter);
|
writeCSV(context, database, catimaOutputStreamWriter);
|
||||||
|
|
||||||
// Add CSV to zip file
|
// Add CSV to zip file
|
||||||
ZipParameters csvZipParameters = createZipParameters("catima.csv", password);
|
ZipParameters csvZipParameters = createZipParameters("catima.csv", password);
|
||||||
@@ -64,12 +64,12 @@ public class CatimaExporter implements Exporter {
|
|||||||
Cursor cardCursor = DBHelper.getLoyaltyCardCursor(database);
|
Cursor cardCursor = DBHelper.getLoyaltyCardCursor(database);
|
||||||
while (cardCursor.moveToNext()) {
|
while (cardCursor.moveToNext()) {
|
||||||
// For each card
|
// For each card
|
||||||
LoyaltyCard card = LoyaltyCard.toLoyaltyCard(cardCursor);
|
LoyaltyCard card = LoyaltyCard.fromCursor(context, cardCursor);
|
||||||
|
|
||||||
// For each image
|
// For each image
|
||||||
for (ImageLocationType imageLocationType : ImageLocationType.values()) {
|
for (ImageLocationType imageLocationType : ImageLocationType.values()) {
|
||||||
// If it exists, add to the .zip file
|
// If it exists, add to the .zip file
|
||||||
Bitmap image = Utils.retrieveCardImage(context, card.id, imageLocationType);
|
Bitmap image = card.getImageForImageLocationType(context, imageLocationType);
|
||||||
if (image != null) {
|
if (image != null) {
|
||||||
ZipParameters imageZipParameters = createZipParameters(Utils.getCardImageFileName(card.id, imageLocationType), password);
|
ZipParameters imageZipParameters = createZipParameters(Utils.getCardImageFileName(card.id, imageLocationType), password);
|
||||||
zipOutputStream.putNextEntry(imageZipParameters);
|
zipOutputStream.putNextEntry(imageZipParameters);
|
||||||
@@ -95,7 +95,7 @@ public class CatimaExporter implements Exporter {
|
|||||||
return zipParameters;
|
return zipParameters;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void writeCSV(SQLiteDatabase database, OutputStreamWriter output) throws IOException, InterruptedException {
|
private void writeCSV(Context context, SQLiteDatabase database, OutputStreamWriter output) throws IOException, InterruptedException {
|
||||||
CSVPrinter printer = new CSVPrinter(output, CSVFormat.RFC4180);
|
CSVPrinter printer = new CSVPrinter(output, CSVFormat.RFC4180);
|
||||||
|
|
||||||
// Print the version
|
// Print the version
|
||||||
@@ -142,7 +142,7 @@ public class CatimaExporter implements Exporter {
|
|||||||
Cursor cardCursor = DBHelper.getLoyaltyCardCursor(database);
|
Cursor cardCursor = DBHelper.getLoyaltyCardCursor(database);
|
||||||
|
|
||||||
while (cardCursor.moveToNext()) {
|
while (cardCursor.moveToNext()) {
|
||||||
LoyaltyCard card = LoyaltyCard.toLoyaltyCard(cardCursor);
|
LoyaltyCard card = LoyaltyCard.fromCursor(context, cardCursor);
|
||||||
|
|
||||||
printer.printRecord(card.id,
|
printer.printRecord(card.id,
|
||||||
card.store,
|
card.store,
|
||||||
@@ -176,7 +176,7 @@ public class CatimaExporter implements Exporter {
|
|||||||
Cursor cardCursor2 = DBHelper.getLoyaltyCardCursor(database);
|
Cursor cardCursor2 = DBHelper.getLoyaltyCardCursor(database);
|
||||||
|
|
||||||
while (cardCursor2.moveToNext()) {
|
while (cardCursor2.moveToNext()) {
|
||||||
LoyaltyCard card = LoyaltyCard.toLoyaltyCard(cardCursor2);
|
LoyaltyCard card = LoyaltyCard.fromCursor(context, cardCursor2);
|
||||||
|
|
||||||
for (Group group : DBHelper.getLoyaltyCardGroups(database, card.id)) {
|
for (Group group : DBHelper.getLoyaltyCardGroups(database, card.id)) {
|
||||||
printer.printRecord(card.id, group._id);
|
printer.printRecord(card.id, group._id);
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ public class CatimaImporter implements Importer {
|
|||||||
Set<String> existingImages = DBHelper.imageFiles(context, database);
|
Set<String> existingImages = DBHelper.imageFiles(context, database);
|
||||||
|
|
||||||
for (LoyaltyCard card : data.cards) {
|
for (LoyaltyCard card : data.cards) {
|
||||||
LoyaltyCard existing = DBHelper.getLoyaltyCard(database, card.id);
|
LoyaltyCard existing = DBHelper.getLoyaltyCard(context, database, card.id);
|
||||||
if (existing == null) {
|
if (existing == null) {
|
||||||
DBHelper.insertLoyaltyCard(database, card.id, card.store, card.note, card.validFrom, card.expiry, card.balance, card.balanceType,
|
DBHelper.insertLoyaltyCard(database, card.id, card.store, card.note, card.validFrom, card.expiry, card.balance, card.balanceType,
|
||||||
card.cardId, card.barcodeId, card.barcodeType, card.headerColor, card.starStatus, card.lastUsed, card.archiveStatus);
|
card.cardId, card.barcodeId, card.barcodeType, card.headerColor, card.starStatus, card.lastUsed, card.archiveStatus);
|
||||||
@@ -152,7 +152,7 @@ public class CatimaImporter implements Importer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isDuplicate(Context context, final LoyaltyCard existing, final LoyaltyCard card, final Set<String> existingImages, final Map<String, String> imageChecksums) throws IOException {
|
public boolean isDuplicate(Context context, final LoyaltyCard existing, final LoyaltyCard card, final Set<String> existingImages, final Map<String, String> imageChecksums) throws IOException {
|
||||||
if (!LoyaltyCard.isDuplicate(existing, card)) {
|
if (!LoyaltyCard.isDuplicate(context, existing, card)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
for (ImageLocationType imageLocationType : ImageLocationType.values()) {
|
for (ImageLocationType imageLocationType : ImageLocationType.values()) {
|
||||||
@@ -490,7 +490,30 @@ public class CatimaImporter implements Importer {
|
|||||||
// We catch this exception so we can still import old backups
|
// We catch this exception so we can still import old backups
|
||||||
}
|
}
|
||||||
|
|
||||||
return new LoyaltyCard(id, store, note, validFrom, expiry, balance, balanceType, cardId, barcodeId, barcodeType, headerColor, starStatus, lastUsed, DBHelper.DEFAULT_ZOOM_LEVEL, archiveStatus);
|
return new LoyaltyCard(
|
||||||
|
id,
|
||||||
|
store,
|
||||||
|
note,
|
||||||
|
validFrom,
|
||||||
|
expiry,
|
||||||
|
balance,
|
||||||
|
balanceType,
|
||||||
|
cardId,
|
||||||
|
barcodeId,
|
||||||
|
barcodeType,
|
||||||
|
headerColor,
|
||||||
|
starStatus,
|
||||||
|
lastUsed,
|
||||||
|
DBHelper.DEFAULT_ZOOM_LEVEL,
|
||||||
|
DBHelper.DEFAULT_ZOOM_LEVEL_WIDTH,
|
||||||
|
archiveStatus,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -149,7 +149,30 @@ public class FidmeImporter implements Importer {
|
|||||||
// TODO: Front and back image
|
// TODO: Front and back image
|
||||||
|
|
||||||
// use -1 for the ID, it will be ignored when inserting the card into the DB
|
// use -1 for the ID, it will be ignored when inserting the card into the DB
|
||||||
return new LoyaltyCard(-1, store, note, null, null, BigDecimal.valueOf(0), null, cardId, null, barcodeType, headerColor, starStatus, Utils.getUnixTime(), DBHelper.DEFAULT_ZOOM_LEVEL, archiveStatus);
|
return new LoyaltyCard(
|
||||||
|
-1,
|
||||||
|
store,
|
||||||
|
note,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
BigDecimal.valueOf(0),
|
||||||
|
null,
|
||||||
|
cardId,
|
||||||
|
null,
|
||||||
|
barcodeType,
|
||||||
|
headerColor,
|
||||||
|
starStatus,
|
||||||
|
Utils.getUnixTime(),
|
||||||
|
DBHelper.DEFAULT_ZOOM_LEVEL,
|
||||||
|
DBHelper.DEFAULT_ZOOM_LEVEL_WIDTH,
|
||||||
|
archiveStatus,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void saveAndDeduplicate(SQLiteDatabase database, final ImportedData data) {
|
public void saveAndDeduplicate(SQLiteDatabase database, final ImportedData data) {
|
||||||
|
|||||||
@@ -9,8 +9,9 @@ import androidx.annotation.NonNull;
|
|||||||
|
|
||||||
import com.google.zxing.BarcodeFormat;
|
import com.google.zxing.BarcodeFormat;
|
||||||
|
|
||||||
|
import net.lingala.zip4j.ZipFile;
|
||||||
import net.lingala.zip4j.io.inputstream.ZipInputStream;
|
import net.lingala.zip4j.io.inputstream.ZipInputStream;
|
||||||
import net.lingala.zip4j.model.LocalFileHeader;
|
import net.lingala.zip4j.model.FileHeader;
|
||||||
|
|
||||||
import org.apache.commons.csv.CSVFormat;
|
import org.apache.commons.csv.CSVFormat;
|
||||||
import org.apache.commons.csv.CSVParser;
|
import org.apache.commons.csv.CSVParser;
|
||||||
@@ -20,9 +21,7 @@ import org.json.JSONException;
|
|||||||
import org.json.JSONObject;
|
import org.json.JSONObject;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
@@ -130,11 +129,9 @@ public class StocardImporter implements Importer {
|
|||||||
throw new FormatException("Issue parsing CSV data", e);
|
throw new FormatException("Issue parsing CSV data", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
InputStream input = new FileInputStream(inputFile);
|
ZipFile zipFile = new ZipFile(inputFile, password);
|
||||||
ZipInputStream zipInputStream = new ZipInputStream(input, password);
|
zipData = importZIP(zipFile, zipData);
|
||||||
zipData = importZIP(zipInputStream, zipData);
|
zipFile.close();
|
||||||
zipInputStream.close();
|
|
||||||
input.close();
|
|
||||||
|
|
||||||
if (zipData.cards.keySet().size() == 0) {
|
if (zipData.cards.keySet().size() == 0) {
|
||||||
throw new FormatException("Couldn't find any loyalty cards in this Stocard export.");
|
throw new FormatException("Couldn't find any loyalty cards in this Stocard export.");
|
||||||
@@ -144,7 +141,7 @@ public class StocardImporter implements Importer {
|
|||||||
saveAndDeduplicate(context, database, importedData);
|
saveAndDeduplicate(context, database, importedData);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ZIPData importZIP(ZipInputStream zipInputStream, final ZIPData zipData) throws IOException, FormatException, JSONException {
|
public ZIPData importZIP(ZipFile zipFile, final ZIPData zipData) throws IOException, FormatException, JSONException {
|
||||||
Map<String, StocardRecord> cards = zipData.cards;
|
Map<String, StocardRecord> cards = zipData.cards;
|
||||||
Map<String, StocardProvider> providers = zipData.providers;
|
Map<String, StocardProvider> providers = zipData.providers;
|
||||||
|
|
||||||
@@ -152,9 +149,8 @@ public class StocardImporter implements Importer {
|
|||||||
String[] cardBaseName = null;
|
String[] cardBaseName = null;
|
||||||
String customProviderId = "";
|
String customProviderId = "";
|
||||||
String cardName = "";
|
String cardName = "";
|
||||||
LocalFileHeader localFileHeader;
|
for (FileHeader fileHeader : zipFile.getFileHeaders()) {
|
||||||
while ((localFileHeader = zipInputStream.getNextEntry()) != null) {
|
String fileName = fileHeader.getFileName();
|
||||||
String fileName = localFileHeader.getFileName();
|
|
||||||
String[] nameParts = fileName.split("/");
|
String[] nameParts = fileName.split("/");
|
||||||
|
|
||||||
if (nameParts.length < 2) {
|
if (nameParts.length < 2) {
|
||||||
@@ -162,6 +158,7 @@ public class StocardImporter implements Importer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String userId = nameParts[1];
|
String userId = nameParts[1];
|
||||||
|
ZipInputStream zipInputStream = zipFile.getInputStream(fileHeader);
|
||||||
|
|
||||||
if (customProvidersBaseName == null) {
|
if (customProvidersBaseName == null) {
|
||||||
// FIXME: can we use the points-account/statement/content.json balance info somehow?
|
// FIXME: can we use the points-account/statement/content.json balance info somehow?
|
||||||
@@ -302,6 +299,8 @@ public class StocardImporter implements Importer {
|
|||||||
} else if (!fileName.endsWith("/")) {
|
} else if (!fileName.endsWith("/")) {
|
||||||
Log.d(TAG, "Unknown or unused file " + fileName + ", skipping...");
|
Log.d(TAG, "Unknown or unused file " + fileName + ", skipping...");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
zipInputStream.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
return new ZIPData(cards, providers);
|
return new ZIPData(cards, providers);
|
||||||
@@ -355,7 +354,30 @@ public class StocardImporter implements Importer {
|
|||||||
|
|
||||||
long lastUsed = record.lastUsed != null ? record.lastUsed : Utils.getUnixTime();
|
long lastUsed = record.lastUsed != null ? record.lastUsed : Utils.getUnixTime();
|
||||||
|
|
||||||
LoyaltyCard card = new LoyaltyCard(tempID, store, note, null, null, BigDecimal.valueOf(0), null, record.cardId, null, barcodeType, headerColor, 0, lastUsed, DBHelper.DEFAULT_ZOOM_LEVEL, 0);
|
LoyaltyCard card = new LoyaltyCard(
|
||||||
|
tempID,
|
||||||
|
store,
|
||||||
|
note,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
BigDecimal.valueOf(0),
|
||||||
|
null,
|
||||||
|
record.cardId,
|
||||||
|
null,
|
||||||
|
barcodeType,
|
||||||
|
headerColor,
|
||||||
|
0,
|
||||||
|
lastUsed,
|
||||||
|
DBHelper.DEFAULT_ZOOM_LEVEL,
|
||||||
|
DBHelper.DEFAULT_ZOOM_LEVEL_WIDTH,
|
||||||
|
0,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null
|
||||||
|
);
|
||||||
importedData.cards.add(card);
|
importedData.cards.add(card);
|
||||||
|
|
||||||
Map<ImageLocationType, Bitmap> images = new HashMap<>();
|
Map<ImageLocationType, Bitmap> images = new HashMap<>();
|
||||||
|
|||||||
@@ -151,7 +151,30 @@ public class VoucherVaultImporter implements Importer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// use -1 for the ID, it will be ignored when inserting the card into the DB
|
// use -1 for the ID, it will be ignored when inserting the card into the DB
|
||||||
importedData.cards.add(new LoyaltyCard(-1, store, "", null, expiry, balance, balanceType, cardId, null, barcodeType, headerColor, 0, Utils.getUnixTime(), DBHelper.DEFAULT_ZOOM_LEVEL, 0));
|
importedData.cards.add(new LoyaltyCard(
|
||||||
|
-1,
|
||||||
|
store,
|
||||||
|
"",
|
||||||
|
null,
|
||||||
|
expiry,
|
||||||
|
balance,
|
||||||
|
balanceType,
|
||||||
|
cardId,
|
||||||
|
null,
|
||||||
|
barcodeType,
|
||||||
|
headerColor,
|
||||||
|
0,
|
||||||
|
Utils.getUnixTime(),
|
||||||
|
DBHelper.DEFAULT_ZOOM_LEVEL,
|
||||||
|
DBHelper.DEFAULT_ZOOM_LEVEL_WIDTH,
|
||||||
|
0,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
return importedData;
|
return importedData;
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
package protect.card_locker.preferences;
|
package protect.card_locker.preferences;
|
||||||
|
|
||||||
|
import static android.content.res.Configuration.ORIENTATION_PORTRAIT;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
|
import android.util.Log;
|
||||||
|
|
||||||
import androidx.annotation.IntegerRes;
|
import androidx.annotation.IntegerRes;
|
||||||
|
import androidx.annotation.Nullable;
|
||||||
import androidx.annotation.StringRes;
|
import androidx.annotation.StringRes;
|
||||||
import androidx.appcompat.app.AppCompatDelegate;
|
import androidx.appcompat.app.AppCompatDelegate;
|
||||||
import androidx.preference.PreferenceManager;
|
import androidx.preference.PreferenceManager;
|
||||||
@@ -14,8 +18,9 @@ import protect.card_locker.R;
|
|||||||
import protect.card_locker.Utils;
|
import protect.card_locker.Utils;
|
||||||
|
|
||||||
public class Settings {
|
public class Settings {
|
||||||
|
private static final String TAG = "Catima";
|
||||||
private final Context mContext;
|
private final Context mContext;
|
||||||
private SharedPreferences mSettings;
|
private final SharedPreferences mSettings;
|
||||||
|
|
||||||
public Settings(Context context) {
|
public Settings(Context context) {
|
||||||
mContext = context.getApplicationContext();
|
mContext = context.getApplicationContext();
|
||||||
@@ -42,10 +47,11 @@ public class Settings {
|
|||||||
return mSettings.getBoolean(getResString(keyId), defaultValue);
|
return mSettings.getBoolean(getResString(keyId), defaultValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
public Locale getLocale() {
|
public Locale getLocale() {
|
||||||
String value = getString(R.string.settings_key_locale, "");
|
String value = getString(R.string.settings_key_locale, "");
|
||||||
|
|
||||||
if (value.length() == 0) {
|
if (value.isEmpty()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -91,4 +97,23 @@ public class Settings {
|
|||||||
public String getColor() {
|
public String getColor() {
|
||||||
return getString(R.string.setting_key_theme_color, mContext.getResources().getString(R.string.settings_key_system_theme));
|
return getString(R.string.setting_key_theme_color, mContext.getResources().getString(R.string.settings_key_system_theme));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getPreferredColumnCount() {
|
||||||
|
var defaultSymbol = mContext.getResources().getString(R.string.settings_key_automatic_column_count);
|
||||||
|
var defaultColumnCount = mContext.getResources().getInteger(R.integer.main_view_card_columns);
|
||||||
|
var orientation = mContext.getResources().getConfiguration().orientation;
|
||||||
|
var columnCountPrefKey = orientation == ORIENTATION_PORTRAIT ? R.string.setting_key_column_count_portrait : R.string.setting_key_column_count_landscape;
|
||||||
|
var columnCountSetting = getString(columnCountPrefKey, defaultSymbol);
|
||||||
|
try {
|
||||||
|
// the pref may be unset or explicitly set to default
|
||||||
|
return columnCountSetting.equals(defaultSymbol) ? defaultColumnCount : Integer.parseInt(columnCountSetting);
|
||||||
|
} catch (NumberFormatException nfe) {
|
||||||
|
Log.e(TAG, "Failed to parseInt the column count pref", nfe);
|
||||||
|
return defaultColumnCount;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean useVolumeKeysForNavigation() {
|
||||||
|
return getBoolean(R.string.settings_key_use_volume_keys_navigation, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ public class SettingsActivity extends CatimaAppCompatActivity {
|
|||||||
binding = SettingsActivityBinding.inflate(getLayoutInflater());
|
binding = SettingsActivityBinding.inflate(getLayoutInflater());
|
||||||
setTitle(R.string.settings);
|
setTitle(R.string.settings);
|
||||||
setContentView(binding.getRoot());
|
setContentView(binding.getRoot());
|
||||||
|
Utils.applyWindowInsets(binding.getRoot());
|
||||||
Toolbar toolbar = binding.toolbar;
|
Toolbar toolbar = binding.toolbar;
|
||||||
setSupportActionBar(toolbar);
|
setSupportActionBar(toolbar);
|
||||||
enableToolbarBackButton();
|
enableToolbarBackButton();
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
package protect.card_locker.viewmodels
|
||||||
|
|
||||||
|
import android.net.Uri
|
||||||
|
import androidx.lifecycle.ViewModel
|
||||||
|
import protect.card_locker.LoyaltyCard
|
||||||
|
import protect.card_locker.LoyaltyCardField
|
||||||
|
import protect.card_locker.async.TaskHandler
|
||||||
|
|
||||||
|
class LoyaltyCardEditActivityViewModel : ViewModel() {
|
||||||
|
var initialized: Boolean = false
|
||||||
|
var hasChanged: Boolean = false
|
||||||
|
|
||||||
|
var taskHandler: TaskHandler = TaskHandler();
|
||||||
|
|
||||||
|
var addGroup: String? = null
|
||||||
|
var openSetIconMenu: Boolean = false
|
||||||
|
var loyaltyCardId: Int = 0
|
||||||
|
var updateLoyaltyCard: Boolean = false
|
||||||
|
var duplicateFromLoyaltyCardId: Boolean = false
|
||||||
|
var importLoyaltyCardUri: Uri? = null
|
||||||
|
|
||||||
|
var tabIndex: Int = 0
|
||||||
|
var requestedImageType: Int = 0
|
||||||
|
var tempLoyaltyCardField: LoyaltyCardField? = null
|
||||||
|
|
||||||
|
var loyaltyCard: LoyaltyCard = LoyaltyCard()
|
||||||
|
}
|
||||||
5
app/src/main/res/drawable/baseline_block_24.xml
Normal file
5
app/src/main/res/drawable/baseline_block_24.xml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:tint="?attr/colorControlNormal" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">
|
||||||
|
|
||||||
|
<path android:fillColor="@android:color/white" android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM4,12c0,-4.42 3.58,-8 8,-8 1.85,0 3.55,0.63 4.9,1.69L5.69,16.9C4.63,15.55 4,13.85 4,12zM12,20c-1.85,0 -3.55,-0.63 -4.9,-1.69L18.31,7.1C19.37,8.45 20,10.15 20,12c0,4.42 -3.58,8 -8,8z"/>
|
||||||
|
|
||||||
|
</vector>
|
||||||
5
app/src/main/res/drawable/baseline_image_24.xml
Normal file
5
app/src/main/res/drawable/baseline_image_24.xml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:tint="?attr/colorControlNormal" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">
|
||||||
|
|
||||||
|
<path android:fillColor="@android:color/white" android:pathData="M21,19V5c0,-1.1 -0.9,-2 -2,-2H5c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2zM8.5,13.5l2.5,3.01L14.5,12l4.5,6H5l3.5,-4.5z"/>
|
||||||
|
|
||||||
|
</vector>
|
||||||
5
app/src/main/res/drawable/baseline_picture_as_pdf_24.xml
Normal file
5
app/src/main/res/drawable/baseline_picture_as_pdf_24.xml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:tint="?attr/colorControlNormal" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">
|
||||||
|
|
||||||
|
<path android:fillColor="@android:color/white" android:pathData="M20,2L8,2c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2L22,4c0,-1.1 -0.9,-2 -2,-2zM11.5,9.5c0,0.83 -0.67,1.5 -1.5,1.5L9,11v2L7.5,13L7.5,7L10,7c0.83,0 1.5,0.67 1.5,1.5v1zM16.5,11.5c0,0.83 -0.67,1.5 -1.5,1.5h-2.5L12.5,7L15,7c0.83,0 1.5,0.67 1.5,1.5v3zM20.5,8.5L19,8.5v1h1.5L20.5,11L19,11v2h-1.5L17.5,7h3v1.5zM9,9.5h1v-1L9,8.5v1zM4,6L2,6v14c0,1.1 0.9,2 2,2h14v-2L4,20L4,6zM14,11.5h1v-3h-1v3z"/>
|
||||||
|
|
||||||
|
</vector>
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:width="24dp"
|
|
||||||
android:height="24dp"
|
|
||||||
android:viewportWidth="24"
|
|
||||||
android:viewportHeight="24"
|
|
||||||
android:tint="@android:color/black">
|
|
||||||
<path
|
|
||||||
android:fillColor="@android:color/black"
|
|
||||||
android:pathData="M20.54,5.23l-1.39,-1.68C18.88,3.21 18.47,3 18,3H6c-0.47,0 -0.88,0.21 -1.16,0.55L3.46,5.23C3.17,5.57 3,6.02 3,6.5V19c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2V6.5c0,-0.48 -0.17,-0.93 -0.46,-1.27zM12,17.5L6.5,12H10v-2h4v2h3.5L12,17.5zM5.12,5l0.81,-1h12l0.94,1H5.12z"/>
|
|
||||||
</vector>
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<vector android:height="24dp" android:tint="#000000"
|
|
||||||
android:viewportHeight="24" android:viewportWidth="24"
|
|
||||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<path android:fillColor="@android:color/white" android:pathData="M12,17.27L18.18,21l-1.64,-7.03L22,9.24l-7.19,-0.61L12,2 9.19,8.63 2,9.24l5.46,4.73L5.82,21z"/>
|
|
||||||
</vector>
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<vector android:height="24dp" android:tint="#FFFFFF"
|
|
||||||
android:viewportHeight="24" android:viewportWidth="24"
|
|
||||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<path android:fillColor="@android:color/white" android:pathData="M12,17.27L18.18,21l-1.64,-7.03L22,9.24l-7.19,-0.61L12,2 9.19,8.63 2,9.24l5.46,4.73L5.82,21z"/>
|
|
||||||
</vector>
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<vector android:height="24dp" android:tint="#000000"
|
|
||||||
android:viewportHeight="24" android:viewportWidth="24"
|
|
||||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<path android:fillColor="@android:color/white" android:pathData="M22,9.24l-7.19,-0.62L12,2 9.19,8.63 2,9.24l5.46,4.73L5.82,21 12,17.27 18.18,21l-1.63,-7.03L22,9.24zM12,15.4l-3.76,2.27 1,-4.28 -3.32,-2.88 4.38,-0.38L12,6.1l1.71,4.04 4.38,0.38 -3.32,2.88 1,4.28L12,15.4z"/>
|
|
||||||
</vector>
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<vector android:height="24dp" android:tint="#FFFFFF"
|
|
||||||
android:viewportHeight="24" android:viewportWidth="24"
|
|
||||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<path android:fillColor="@android:color/white" android:pathData="M22,9.24l-7.19,-0.62L12,2 9.19,8.63 2,9.24l5.46,4.73L5.82,21 12,17.27 18.18,21l-1.63,-7.03L22,9.24zM12,15.4l-3.76,2.27 1,-4.28 -3.32,-2.88 4.38,-0.38L12,6.1l1.71,4.04 4.38,0.38 -3.32,2.88 1,4.28L12,15.4z"/>
|
|
||||||
</vector>
|
|
||||||
10
app/src/main/res/drawable/local_activity_24px.xml
Normal file
10
app/src/main/res/drawable/local_activity_24px.xml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="960"
|
||||||
|
android:viewportHeight="960"
|
||||||
|
android:tint="?attr/colorControlNormal">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M368,640L480,556L590,640L548,504L660,416L524,416L480,280L436,416L300,416L410,504L368,640ZM160,800Q127,800 103.5,776.5Q80,753 80,720L80,585Q80,574 87,566Q94,558 105,556Q129,548 144.5,527Q160,506 160,480Q160,454 144.5,433Q129,412 105,404Q94,402 87,394Q80,386 80,375L80,240Q80,207 103.5,183.5Q127,160 160,160L800,160Q833,160 856.5,183.5Q880,207 880,240L880,375Q880,386 873,394Q866,402 855,404Q831,412 815.5,433Q800,454 800,480Q800,506 815.5,527Q831,548 855,556Q866,558 873,566Q880,574 880,585L880,720Q880,753 856.5,776.5Q833,800 800,800L160,800ZM160,720L800,720Q800,720 800,720Q800,720 800,720L800,618Q763,596 741.5,559.5Q720,523 720,480Q720,437 741.5,400.5Q763,364 800,342L800,240Q800,240 800,240Q800,240 800,240L160,240Q160,240 160,240Q160,240 160,240L160,342Q197,364 218.5,400.5Q240,437 240,480Q240,523 218.5,559.5Q197,596 160,618L160,720Q160,720 160,720Q160,720 160,720ZM480,480Q480,480 480,480Q480,480 480,480L480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480L480,480Q480,480 480,480Q480,480 480,480L480,480Q480,480 480,480Q480,480 480,480L480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480L480,480Q480,480 480,480Q480,480 480,480Z"/>
|
||||||
|
</vector>
|
||||||
@@ -2,9 +2,10 @@
|
|||||||
android:width="24dp"
|
android:width="24dp"
|
||||||
android:height="24dp"
|
android:height="24dp"
|
||||||
android:viewportWidth="24"
|
android:viewportWidth="24"
|
||||||
android:viewportHeight="24"
|
android:viewportHeight="24">
|
||||||
android:tint="@android:color/white">
|
|
||||||
<path
|
<path
|
||||||
android:fillColor="@android:color/white"
|
android:fillColor="#D3D3D3"
|
||||||
android:pathData="M20.54,5.23l-1.39,-1.68C18.88,3.21 18.47,3 18,3H6c-0.47,0 -0.88,0.21 -1.16,0.55L3.46,5.23C3.17,5.57 3,6.02 3,6.5V19c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2V6.5c0,-0.48 -0.17,-0.93 -0.46,-1.27zM12,17.5L6.5,12H10v-2h4v2h3.5L12,17.5zM5.12,5l0.81,-1h12l0.94,1H5.12z"/>
|
android:pathData="M20.54,5.23l-1.39,-1.68C18.88,3.21 18.47,3 18,3H6c-0.47,0 -0.88,0.21 -1.16,0.55L3.46,5.23C3.17,5.57 3,6.02 3,6.5V19c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2V6.5c0,-0.48 -0.17,-0.93 -0.46,-1.27zM12,17.5L6.5,12H10v-2h4v2h3.5L12,17.5zM5.12,5l0.81,-1h12l0.94,1H5.12z"
|
||||||
|
android:strokeWidth="0.25"
|
||||||
|
android:strokeColor="#777777"/>
|
||||||
</vector>
|
</vector>
|
||||||
11
app/src/main/res/drawable/loyalty_card_icon_starred.xml
Normal file
11
app/src/main/res/drawable/loyalty_card_icon_starred.xml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<path
|
||||||
|
android:fillColor="#D3D3D3"
|
||||||
|
android:pathData="M12,17.27L18.18,21l-1.64,-7.03L22,9.24l-7.19,-0.61L12,2 9.19,8.63 2,9.24l5.46,4.73L5.82,21z"
|
||||||
|
android:strokeWidth="0.25"
|
||||||
|
android:strokeColor="#777777"/>
|
||||||
|
</vector>
|
||||||
@@ -46,7 +46,8 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:fontFamily="sans-serif-medium"
|
android:fontFamily="sans-serif-medium"
|
||||||
android:padding="2dp"
|
android:paddingStart="2dp"
|
||||||
|
android:paddingEnd="30dp"
|
||||||
android:text="@string/version_history"
|
android:text="@string/version_history"
|
||||||
android:textSize="18sp"
|
android:textSize="18sp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
@@ -56,7 +57,8 @@
|
|||||||
android:id="@+id/version_history_sub"
|
android:id="@+id/version_history_sub"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="2dp"
|
android:paddingStart="2dp"
|
||||||
|
android:paddingEnd="30dp"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/version_history_main" />
|
app:layout_constraintTop_toBottomOf="@id/version_history_main" />
|
||||||
@@ -87,7 +89,8 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:fontFamily="sans-serif-medium"
|
android:fontFamily="sans-serif-medium"
|
||||||
android:padding="2dp"
|
android:paddingStart="2dp"
|
||||||
|
android:paddingEnd="30dp"
|
||||||
android:text="@string/credits"
|
android:text="@string/credits"
|
||||||
android:textSize="18sp"
|
android:textSize="18sp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
@@ -97,7 +100,8 @@
|
|||||||
android:id="@+id/credits_sub"
|
android:id="@+id/credits_sub"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="2dp"
|
android:paddingStart="2dp"
|
||||||
|
android:paddingEnd="30dp"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/credits_main" />
|
app:layout_constraintTop_toBottomOf="@id/credits_main" />
|
||||||
@@ -128,7 +132,8 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:fontFamily="sans-serif-medium"
|
android:fontFamily="sans-serif-medium"
|
||||||
android:padding="2dp"
|
android:paddingStart="2dp"
|
||||||
|
android:paddingEnd="30dp"
|
||||||
android:text="@string/help_translate_this_app"
|
android:text="@string/help_translate_this_app"
|
||||||
android:textSize="18sp"
|
android:textSize="18sp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
@@ -138,7 +143,8 @@
|
|||||||
android:id="@+id/translate_sub"
|
android:id="@+id/translate_sub"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="2dp"
|
android:paddingStart="2dp"
|
||||||
|
android:paddingEnd="30dp"
|
||||||
android:text="@string/translate_platform"
|
android:text="@string/translate_platform"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
@@ -170,7 +176,8 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:fontFamily="sans-serif-medium"
|
android:fontFamily="sans-serif-medium"
|
||||||
android:padding="2dp"
|
android:paddingStart="2dp"
|
||||||
|
android:paddingEnd="30dp"
|
||||||
android:text="@string/license"
|
android:text="@string/license"
|
||||||
android:textSize="18sp"
|
android:textSize="18sp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
@@ -180,7 +187,8 @@
|
|||||||
android:id="@+id/license_sub"
|
android:id="@+id/license_sub"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="2dp"
|
android:paddingStart="2dp"
|
||||||
|
android:paddingEnd="30dp"
|
||||||
android:text="@string/app_license"
|
android:text="@string/app_license"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
@@ -212,7 +220,8 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:fontFamily="sans-serif-medium"
|
android:fontFamily="sans-serif-medium"
|
||||||
android:padding="2dp"
|
android:paddingStart="2dp"
|
||||||
|
android:paddingEnd="30dp"
|
||||||
android:text="@string/source_repository"
|
android:text="@string/source_repository"
|
||||||
android:textSize="18sp"
|
android:textSize="18sp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
@@ -222,7 +231,8 @@
|
|||||||
android:id="@+id/repo_sub"
|
android:id="@+id/repo_sub"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="2dp"
|
android:paddingStart="2dp"
|
||||||
|
android:paddingEnd="30dp"
|
||||||
android:text="@string/on_github"
|
android:text="@string/on_github"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
@@ -254,7 +264,8 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:fontFamily="sans-serif-medium"
|
android:fontFamily="sans-serif-medium"
|
||||||
android:padding="2dp"
|
android:paddingStart="2dp"
|
||||||
|
android:paddingEnd="30dp"
|
||||||
android:text="@string/privacy_policy"
|
android:text="@string/privacy_policy"
|
||||||
android:textSize="18sp"
|
android:textSize="18sp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
@@ -264,7 +275,8 @@
|
|||||||
android:id="@+id/privacy_sub"
|
android:id="@+id/privacy_sub"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="2dp"
|
android:paddingStart="2dp"
|
||||||
|
android:paddingEnd="30dp"
|
||||||
android:text="@string/and_data_usage"
|
android:text="@string/and_data_usage"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
@@ -296,7 +308,8 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:fontFamily="sans-serif-medium"
|
android:fontFamily="sans-serif-medium"
|
||||||
android:padding="2dp"
|
android:paddingStart="2dp"
|
||||||
|
android:paddingEnd="30dp"
|
||||||
android:text="@string/donate"
|
android:text="@string/donate"
|
||||||
android:textSize="18sp"
|
android:textSize="18sp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
@@ -329,7 +342,8 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:fontFamily="sans-serif-medium"
|
android:fontFamily="sans-serif-medium"
|
||||||
android:padding="2dp"
|
android:paddingStart="2dp"
|
||||||
|
android:paddingEnd="30dp"
|
||||||
android:text="@string/rate_this_app"
|
android:text="@string/rate_this_app"
|
||||||
android:textSize="18sp"
|
android:textSize="18sp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
@@ -339,7 +353,8 @@
|
|||||||
android:id="@+id/rate_sub"
|
android:id="@+id/rate_sub"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="2dp"
|
android:paddingStart="2dp"
|
||||||
|
android:paddingEnd="30dp"
|
||||||
android:text="@string/on_google_play"
|
android:text="@string/on_google_play"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
@@ -371,7 +386,8 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:fontFamily="sans-serif-medium"
|
android:fontFamily="sans-serif-medium"
|
||||||
android:padding="2dp"
|
android:paddingStart="2dp"
|
||||||
|
android:paddingEnd="30dp"
|
||||||
android:text="@string/report_error"
|
android:text="@string/report_error"
|
||||||
android:textSize="18sp"
|
android:textSize="18sp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
@@ -383,9 +399,10 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintTop_toBottomOf="@id/report_error_main"
|
app:layout_constraintTop_toBottomOf="@id/report_error_main"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
android:paddingStart="2dp"
|
||||||
|
android:paddingEnd="30dp"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
android:text="@string/on_github"
|
android:text="@string/on_github" />
|
||||||
android:padding="2dp"/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:importantForAccessibility="no"
|
android:importantForAccessibility="no"
|
||||||
|
|||||||
31
app/src/main/res/layout/alertdialog_row_with_icon.xml
Normal file
31
app/src/main/res/layout/alertdialog_row_with_icon.xml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/imageView"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="24dp"
|
||||||
|
android:layout_marginStart="24dp"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:layout_marginBottom="8dp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/textView"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textView"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="16dp"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:layout_marginBottom="8dp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/imageView"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/list"
|
android:id="@+id/list"
|
||||||
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
||||||
app:spanCount="1"
|
app:spanCount="@integer/main_view_card_columns"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_width="match_parent" />
|
android:layout_width="match_parent" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
||||||
tools:context="protect.card_locker.MainActivity"
|
tools:context="protect.card_locker.ManageGroupActivity"
|
||||||
tools:showIn="@layout/main_activity">
|
tools:showIn="@layout/main_activity">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
|||||||
@@ -97,36 +97,6 @@
|
|||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
android:text="@string/importOptionFilesystemButton" />
|
android:text="@string/importOptionFilesystemButton" />
|
||||||
|
|
||||||
<View
|
|
||||||
android:id="@+id/dividerImportApplication"
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="1dp"
|
|
||||||
android:layout_margin="16dp"
|
|
||||||
android:background="?android:attr/listDivider"/>
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/importOptionApplicationTitle"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textSize="@dimen/text_size_large"
|
|
||||||
android:text="@string/importOptionApplicationTitle"/>
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/importOptionApplicationExplanation"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="4dp"
|
|
||||||
android:textSize="@dimen/text_size_medium"
|
|
||||||
android:text="@string/importOptionApplicationExplanation"/>
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/importOptionApplicationButton"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="center_horizontal"
|
|
||||||
android:layout_marginTop="8dp"
|
|
||||||
android:text="@string/importOptionApplicationButton" />
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</androidx.core.widget.NestedScrollView>
|
</androidx.core.widget.NestedScrollView>
|
||||||
|
|
||||||
|
|||||||
@@ -41,9 +41,10 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
|
app:autoSizeMinTextSize="6sp"
|
||||||
app:autoSizeTextType="uniform"
|
app:autoSizeTextType="uniform"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:padding="20dp" />
|
android:padding="10dp" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:importantForAccessibility="no"
|
android:importantForAccessibility="no"
|
||||||
@@ -71,29 +72,15 @@
|
|||||||
android:layout_width="@dimen/cardThumbnailSize"
|
android:layout_width="@dimen/cardThumbnailSize"
|
||||||
android:layout_height="@dimen/cardThumbnailSize"
|
android:layout_height="@dimen/cardThumbnailSize"
|
||||||
android:layout_gravity="end"
|
android:layout_gravity="end"
|
||||||
android:alpha="0.5"
|
android:alpha="0.8"
|
||||||
android:contentDescription="@string/starred"
|
android:contentDescription="@string/starred"
|
||||||
android:elevation="4dp"
|
android:elevation="4dp"
|
||||||
|
android:rotationX="2"
|
||||||
android:visibility="visible"
|
android:visibility="visible"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:srcCompat="@drawable/ic_starred_white"
|
app:srcCompat="@drawable/loyalty_card_icon_starred"
|
||||||
tools:ignore="ImageContrastCheck" />
|
tools:ignore="ImageContrastCheck"/>
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:importantForAccessibility="no"
|
|
||||||
android:id="@+id/star_border"
|
|
||||||
android:layout_width="@dimen/cardThumbnailSize"
|
|
||||||
android:layout_height="@dimen/cardThumbnailSize"
|
|
||||||
android:layout_gravity="end"
|
|
||||||
android:alpha="0.5"
|
|
||||||
android:contentDescription="@string/starImage"
|
|
||||||
android:elevation="4dp"
|
|
||||||
android:visibility="visible"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:srcCompat="@drawable/ic_unstarred_black"
|
|
||||||
tools:ignore="ImageContrastCheck" />
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
@@ -109,18 +96,18 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/archive_background"
|
android:id="@+id/archive_background"
|
||||||
android:layout_width="41dp"
|
android:layout_width="@dimen/cardThumbnailSize"
|
||||||
android:layout_height="44dp"
|
android:layout_height="@dimen/cardThumbnailSize"
|
||||||
android:layout_gravity="end"
|
android:layout_gravity="end"
|
||||||
android:alpha="0.5"
|
android:alpha="0.8"
|
||||||
android:contentDescription="@string/archived"
|
android:contentDescription="@string/archived"
|
||||||
android:elevation="4dp"
|
android:elevation="4dp"
|
||||||
android:rotationX="2"
|
android:rotationX="2"
|
||||||
android:visibility="visible"
|
android:visibility="visible"
|
||||||
app:srcCompat="@drawable/ic_baseline_archive_24"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
tools:ignore="ImageContrastCheck,MissingConstraints"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
tools:layout_editor_absoluteX="0dp"
|
app:srcCompat="@drawable/loyalty_card_icon_archived"
|
||||||
tools:layout_editor_absoluteY="-1dp" />
|
tools:ignore="ImageContrastCheck" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
@@ -150,6 +137,8 @@
|
|||||||
android:layout_marginEnd="8dp"
|
android:layout_marginEnd="8dp"
|
||||||
android:layout_marginBottom="4dp"
|
android:layout_marginBottom="4dp"
|
||||||
android:textAppearance="?attr/textAppearanceBody2"
|
android:textAppearance="?attr/textAppearanceBody2"
|
||||||
|
android:maxLines="5"
|
||||||
|
android:ellipsize="end"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
tools:visibility="visible"
|
tools:visibility="visible"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/store"
|
app:layout_constraintTop_toBottomOf="@+id/store"
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:id="@+id/coordinator_layout"
|
android:id="@+id/coordinator_layout"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
@@ -142,20 +143,30 @@
|
|||||||
android:background="@android:color/transparent"/>
|
android:background="@android:color/transparent"/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/fullscreen_layout"
|
android:id="@+id/fullscreen_layout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<!-- Top white background that stays white even when scaling the fullscreen image-->
|
||||||
|
<ImageView
|
||||||
|
android:importantForAccessibility="no"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:background="#FFFFFFFF"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/scaler_guideline" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:importantForAccessibility="no"
|
android:importantForAccessibility="no"
|
||||||
android:id="@+id/fullscreen_image"
|
android:id="@+id/fullscreen_image"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="0dp"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/scaler_guideline"/>
|
app:layout_constraintBottom_toTopOf="@+id/scaler_guideline"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/scaler_startwidthguideline"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/scaler_endwidthguideline"/>
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.Guideline
|
<androidx.constraintlayout.widget.Guideline
|
||||||
android:id="@+id/scaler_guideline"
|
android:id="@+id/scaler_guideline"
|
||||||
@@ -164,10 +175,24 @@
|
|||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
app:layout_constraintGuide_percent="0.5"/>
|
app:layout_constraintGuide_percent="0.5"/>
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.Guideline
|
||||||
|
android:id="@+id/scaler_startwidthguideline"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
app:layout_constraintGuide_percent="1"/>
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.Guideline
|
||||||
|
android:id="@+id/scaler_endwidthguideline"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
app:layout_constraintGuide_percent="1"/>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/fullscreen_button_minimize"
|
app:layout_constraintBottom_toTopOf="@+id/set_width_layout"
|
||||||
android:layout_marginBottom="25dp"
|
android:layout_marginBottom="25dp"
|
||||||
android:layout_marginStart="15.0dip"
|
android:layout_marginStart="15.0dip"
|
||||||
android:layout_marginEnd="15.0dip">
|
android:layout_marginEnd="15.0dip">
|
||||||
@@ -188,6 +213,31 @@
|
|||||||
android:max="100" />
|
android:max="100" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/set_width_layout"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="15.0dip"
|
||||||
|
android:layout_marginEnd="15.0dip"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/fullscreen_button_minimize">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:importantForAccessibility="no"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:text="@string/width"/>
|
||||||
|
|
||||||
|
<SeekBar
|
||||||
|
android:id="@+id/barcode_widthscaler"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:contentDescription="@string/setBarcodeWidth"
|
||||||
|
android:min="20"
|
||||||
|
android:max="100" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/fullscreen_button_minimize"
|
android:id="@+id/fullscreen_button_minimize"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|||||||
@@ -11,55 +11,74 @@ Katharine Chui
|
|||||||
SlavekB
|
SlavekB
|
||||||
mondstern
|
mondstern
|
||||||
IllusiveMan196
|
IllusiveMan196
|
||||||
Altonss
|
|
||||||
Michael Moroni
|
|
||||||
GM
|
|
||||||
Eric
|
|
||||||
Petr Novák
|
|
||||||
laralem
|
|
||||||
Joel A
|
|
||||||
Taco
|
|
||||||
大王叫我来巡山
|
大王叫我来巡山
|
||||||
|
Altonss
|
||||||
|
B o d o
|
||||||
|
Michael Moroni
|
||||||
|
Eric
|
||||||
|
Максим Горпиніч
|
||||||
|
GM
|
||||||
|
laralem
|
||||||
|
Petr Novák
|
||||||
|
Joel A
|
||||||
|
Priit Jõerüüt
|
||||||
|
Taco
|
||||||
|
Edgars Andersons
|
||||||
|
nadiafekihahmed
|
||||||
pfaffenrodt
|
pfaffenrodt
|
||||||
Scrambled777
|
|
||||||
Aayush Gupta
|
Aayush Gupta
|
||||||
HudobniVolk
|
Scrambled777
|
||||||
Nyatsuki
|
Silvério Santos
|
||||||
|
ikanakova
|
||||||
Giovanni Donisi
|
Giovanni Donisi
|
||||||
|
HudobniVolk
|
||||||
Jiri Grönroos
|
Jiri Grönroos
|
||||||
|
Nyatsuki
|
||||||
|
Balázs Meskó
|
||||||
|
Milo Ivir
|
||||||
|
josé m
|
||||||
Samantaz Fox
|
Samantaz Fox
|
||||||
Cliff Heraldo
|
Cliff Heraldo
|
||||||
Sergio Paredes
|
Sergio Paredes
|
||||||
Ankit Tiwari
|
Ankit Tiwari
|
||||||
Arno-github
|
Arno-github
|
||||||
Milo Ivir
|
|
||||||
Jose Delvani
|
Jose Delvani
|
||||||
Balázs Meskó
|
|
||||||
mdvhimself
|
mdvhimself
|
||||||
Milan Šalka
|
Milan Šalka
|
||||||
|
Kachelkaiser
|
||||||
Skrripy
|
Skrripy
|
||||||
huuhaa
|
huuhaa
|
||||||
Projjal Moitra
|
தமிழ் நேரம்
|
||||||
Quentin PAGÈS
|
|
||||||
ikanakova
|
|
||||||
ngocanhtve
|
|
||||||
Silvério Santos
|
|
||||||
waffshappen
|
waffshappen
|
||||||
|
Marnick L'Eau
|
||||||
|
ngocanhtve
|
||||||
|
Vasilis
|
||||||
|
Quentin PAGÈS
|
||||||
|
Projjal Moitra
|
||||||
|
Robin
|
||||||
|
JungHee Lee
|
||||||
Ziad OUALHADJ
|
Ziad OUALHADJ
|
||||||
Robin Liu
|
Robin Liu
|
||||||
Priit Jõerüüt
|
Renko
|
||||||
Denis Shilin
|
Denis Shilin
|
||||||
しいたけ
|
しいたけ
|
||||||
Alexander Ivanov
|
Alexander Ivanov
|
||||||
|
Fjuro
|
||||||
Miha Frangež
|
Miha Frangež
|
||||||
Viet Nguyen Hoang
|
Viet Nguyen Hoang
|
||||||
stavpup
|
stavpup
|
||||||
|
hajertabbane
|
||||||
ehrt74
|
ehrt74
|
||||||
Virginie
|
Virginie
|
||||||
|
Tim Trek
|
||||||
|
Ricky Tigg
|
||||||
|
Peter Dave Hello
|
||||||
Michael Gangolf
|
Michael Gangolf
|
||||||
rudy3
|
rudy3
|
||||||
Kim Seohyun
|
Kim Seohyun
|
||||||
Govind S Nair
|
Govind S Nair
|
||||||
Freddo espresso
|
Freddo espresso
|
||||||
|
Augustin LAVILLE
|
||||||
arshbeerSingh
|
arshbeerSingh
|
||||||
|
Aliaksandr Trush
|
||||||
MisterCosta96
|
MisterCosta96
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ _id,name,barcodeFormat
|
|||||||
015cf86e-c4b6-42b5-abed-5821492b2669,Campbells,ITF
|
015cf86e-c4b6-42b5-abed-5821492b2669,Campbells,ITF
|
||||||
016c8380-d433-4eb1-b7a0-df6fd9254ec6,Friendlies Pharmacy,CODE_128
|
016c8380-d433-4eb1-b7a0-df6fd9254ec6,Friendlies Pharmacy,CODE_128
|
||||||
0189b6a0-3f02-418f-872e-d5e354619a45,Mencke Gartencenter,EAN_8
|
0189b6a0-3f02-418f-872e-d5e354619a45,Mencke Gartencenter,EAN_8
|
||||||
|
01b239f4-d1db-4311-a33b-bc8bb9c71c19,McEwan,CODE_128
|
||||||
01ce8326-50e8-4787-9999-e509dfed15cb,Вигода Вопак,CODE_128
|
01ce8326-50e8-4787-9999-e509dfed15cb,Вигода Вопак,CODE_128
|
||||||
01eafcc6-ee41-447f-bbce-7a93ffb90b6c,Mario Mikke,EAN_13
|
01eafcc6-ee41-447f-bbce-7a93ffb90b6c,Mario Mikke,EAN_13
|
||||||
01f88e2d-3eb4-4242-a32b-1a847a28e140,Crodux,CODE_128
|
01f88e2d-3eb4-4242-a32b-1a847a28e140,Crodux,CODE_128
|
||||||
@@ -31,6 +32,7 @@ _id,name,barcodeFormat
|
|||||||
037f2420-273c-4ffe-9dd3-af22868b1b59,Al Pentolone,EAN_13
|
037f2420-273c-4ffe-9dd3-af22868b1b59,Al Pentolone,EAN_13
|
||||||
038516b8-3cdd-4f96-9582-97caf9dc3a47,Dier Specialist,CODE_39
|
038516b8-3cdd-4f96-9582-97caf9dc3a47,Dier Specialist,CODE_39
|
||||||
039784f4-4fef-497e-8f03-f026655394ef,террапевтика,EAN_13
|
039784f4-4fef-497e-8f03-f026655394ef,террапевтика,EAN_13
|
||||||
|
039932ff-caec-4d40-aa9a-0ed185b5cf5f,FNV,CODE_128
|
||||||
03b89b04-69cd-43cf-88eb-35760f092488,Мегаполис,CODE_128
|
03b89b04-69cd-43cf-88eb-35760f092488,Мегаполис,CODE_128
|
||||||
03d62f02-8266-493b-b4fd-95d5c853b87b,мта,EAN_13
|
03d62f02-8266-493b-b4fd-95d5c853b87b,мта,EAN_13
|
||||||
03fd0d65-b3dd-427b-9f7c-3554fe3dc99b,Happy Sport,EAN_13
|
03fd0d65-b3dd-427b-9f7c-3554fe3dc99b,Happy Sport,EAN_13
|
||||||
@@ -60,6 +62,7 @@ _id,name,barcodeFormat
|
|||||||
0777b427-2af5-4531-81c3-f7421dde9d63,Евразия Автозапчасти,EAN_13
|
0777b427-2af5-4531-81c3-f7421dde9d63,Евразия Автозапчасти,EAN_13
|
||||||
078a5228-818d-4a86-8726-c71dd27a3fdc,EU COVID-19 Certificado de Vacunacion,QR_CODE
|
078a5228-818d-4a86-8726-c71dd27a3fdc,EU COVID-19 Certificado de Vacunacion,QR_CODE
|
||||||
078fdcef-2e8a-4179-befe-5959cd588a7e,Клякса,EAN_13
|
078fdcef-2e8a-4179-befe-5959cd588a7e,Клякса,EAN_13
|
||||||
|
07a90343-0b80-4cb4-8571-b6a2419cff6e,Maracatú,CODE_128
|
||||||
07f645dc-3127-4050-94ac-41f42cacdb74,Cats & Dogs,EAN_8
|
07f645dc-3127-4050-94ac-41f42cacdb74,Cats & Dogs,EAN_8
|
||||||
081924f1-3eff-480a-a8a9-ec08eb4b75e7,Rossetti Market,EAN_13
|
081924f1-3eff-480a-a8a9-ec08eb4b75e7,Rossetti Market,EAN_13
|
||||||
0821c8d1-4556-4178-af1b-fe4d1977127d,Feedo,CODE_128
|
0821c8d1-4556-4178-af1b-fe4d1977127d,Feedo,CODE_128
|
||||||
@@ -84,11 +87,14 @@ _id,name,barcodeFormat
|
|||||||
09e1c670-eac2-4077-8a66-b990c3ba1ed8,Gamble & Brown Cafe,CODE_39
|
09e1c670-eac2-4077-8a66-b990c3ba1ed8,Gamble & Brown Cafe,CODE_39
|
||||||
09e38952-3559-4432-821a-84fdee4923f8,Стройка,EAN_13
|
09e38952-3559-4432-821a-84fdee4923f8,Стройка,EAN_13
|
||||||
0a047088-f9f9-47c5-a982-b307122f09fa,IGA Rewards,EAN_13
|
0a047088-f9f9-47c5-a982-b307122f09fa,IGA Rewards,EAN_13
|
||||||
|
0a058735-ecfd-4278-ae7a-9f6917193a3d,JBs Power Centre,CODE_128
|
||||||
|
0a124613-4513-4a4f-b89a-6c4b645e395b,BoniChoix,CODE_128
|
||||||
0a6c06b6-056d-4bf2-ae78-915a8c52d464,волгорост,EAN_13
|
0a6c06b6-056d-4bf2-ae78-915a8c52d464,волгорост,EAN_13
|
||||||
0a7c000b-39eb-4464-bc41-03d0e1f4a20f,Life Pharmacy ,CODE_128
|
0a7c000b-39eb-4464-bc41-03d0e1f4a20f,Life Pharmacy ,CODE_128
|
||||||
0ae08429-e2a2-4fe0-840a-e940ce9fd3e5,Zebra,EAN_13
|
0ae08429-e2a2-4fe0-840a-e940ce9fd3e5,Zebra,EAN_13
|
||||||
0b2502b7-f8d7-426e-b518-4482ee6115eb,Лоза,EAN_13
|
0b2502b7-f8d7-426e-b518-4482ee6115eb,Лоза,EAN_13
|
||||||
0b4c67fb-bf76-46e8-9a3b-cb0acfe47e71,Giocheria,CODE_39
|
0b4c67fb-bf76-46e8-9a3b-cb0acfe47e71,Giocheria,CODE_39
|
||||||
|
0b539afa-e6b5-42a0-8f03-50d5de9f4af0,MediaMarkt Club Karte,QR_CODE
|
||||||
0b600df8-f694-49d5-b5ee-56d0b47ab1bc,reima,EAN_13
|
0b600df8-f694-49d5-b5ee-56d0b47ab1bc,reima,EAN_13
|
||||||
0b82965b-29df-4c9e-ae5f-70a5d10f1d32,Fanølinjen,CODE_128
|
0b82965b-29df-4c9e-ae5f-70a5d10f1d32,Fanølinjen,CODE_128
|
||||||
0bb951c2-c644-4a0b-92c0-754d739a55be,ZALY,EAN_13
|
0bb951c2-c644-4a0b-92c0-754d739a55be,ZALY,EAN_13
|
||||||
@@ -128,8 +134,9 @@ _id,name,barcodeFormat
|
|||||||
0f650862-0a1c-4596-b2f9-30fc8d3bf8d3,Lila Bäcker,QR_CODE
|
0f650862-0a1c-4596-b2f9-30fc8d3bf8d3,Lila Bäcker,QR_CODE
|
||||||
0f69ba3f-6084-49a5-b959-24277008de45,CJ Express,CODE_128
|
0f69ba3f-6084-49a5-b959-24277008de45,CJ Express,CODE_128
|
||||||
0f936e1f-b3ac-4a34-aad7-a18bd76150f2,FOTOLAB,CODE_128
|
0f936e1f-b3ac-4a34-aad7-a18bd76150f2,FOTOLAB,CODE_128
|
||||||
|
0fafa67a-b4d2-4365-9f68-c167d43c7070,I TOURS,CODE_128
|
||||||
0fce03a0-6b7b-427c-a483-26a1169e73b0,EDMINS,EAN_13
|
0fce03a0-6b7b-427c-a483-26a1169e73b0,EDMINS,EAN_13
|
||||||
1,Accor Le Club,QR_CODE
|
1,Accor Live Limitless,QR_CODE
|
||||||
10,Aeroplan,CODE_128
|
10,Aeroplan,CODE_128
|
||||||
100,Esprit,ITF
|
100,Esprit,ITF
|
||||||
1000,Chemmart Pharmacy,CODE_128
|
1000,Chemmart Pharmacy,CODE_128
|
||||||
@@ -465,6 +472,7 @@ _id,name,barcodeFormat
|
|||||||
13,Amavita,EAN_13
|
13,Amavita,EAN_13
|
||||||
130,GNC,UPC_A
|
130,GNC,UPC_A
|
||||||
1300,IZOD,CODE_128
|
1300,IZOD,CODE_128
|
||||||
|
13004ca8-9095-40c2-aa98-1fcf6410efc7,Max Shop,CODE_128
|
||||||
1301,La Quinta Inns,CODE_128
|
1301,La Quinta Inns,CODE_128
|
||||||
1302,Pet Supplies Plus,UPC_A
|
1302,Pet Supplies Plus,UPC_A
|
||||||
1303,Piazza Italia,EAN_13
|
1303,Piazza Italia,EAN_13
|
||||||
@@ -501,8 +509,8 @@ _id,name,barcodeFormat
|
|||||||
1331,Bizzbee,QR_CODE
|
1331,Bizzbee,QR_CODE
|
||||||
1332,Blue Box,CODE_39
|
1332,Blue Box,CODE_39
|
||||||
1333,Brice,EAN_13
|
1333,Brice,EAN_13
|
||||||
1334,Bricoman,GS1_128
|
1334,Tecnomat,GS1_128
|
||||||
1335,Brico Marché,GS1_128
|
1335,Bricomarché,GS1_128
|
||||||
1336,Camaieu,CODE_128
|
1336,Camaieu,CODE_128
|
||||||
1337,Casino Supermarchés,EAN_13
|
1337,Casino Supermarchés,EAN_13
|
||||||
1338,Castorama,CODE_128
|
1338,Castorama,CODE_128
|
||||||
@@ -680,7 +688,7 @@ _id,name,barcodeFormat
|
|||||||
148f7495-e6f2-40b1-80cd-99b3632cb976,Slam,ITF
|
148f7495-e6f2-40b1-80cd-99b3632cb976,Slam,ITF
|
||||||
149,Höffner,ITF
|
149,Höffner,ITF
|
||||||
1490,Basko,EAN_13
|
1490,Basko,EAN_13
|
||||||
1491,Unes,EAN_13
|
1491,Unes,CODE_128
|
||||||
1492,Grande Cinema 3,EAN_13
|
1492,Grande Cinema 3,EAN_13
|
||||||
1493,Eurobrico,EAN_13
|
1493,Eurobrico,EAN_13
|
||||||
1494,Isola dei Tesori,EAN_13
|
1494,Isola dei Tesori,EAN_13
|
||||||
@@ -966,7 +974,7 @@ _id,name,barcodeFormat
|
|||||||
172,Jost,ITF
|
172,Jost,ITF
|
||||||
1720,Wheelup,CODE_39
|
1720,Wheelup,CODE_39
|
||||||
1721,BIG4,CODE_128
|
1721,BIG4,CODE_128
|
||||||
1722,Besson Chaussures,EAN_13
|
1722,Besson Chaussures,CODE_128
|
||||||
1723,Cactus,EAN_13
|
1723,Cactus,EAN_13
|
||||||
1724,Idea Bellezza,CODE_39
|
1724,Idea Bellezza,CODE_39
|
||||||
1725,Uyum,CODE_128
|
1725,Uyum,CODE_128
|
||||||
@@ -983,7 +991,7 @@ _id,name,barcodeFormat
|
|||||||
1733,Mondial Tissus,EAN_13
|
1733,Mondial Tissus,EAN_13
|
||||||
1734,Furet du nord,EAN_13
|
1734,Furet du nord,EAN_13
|
||||||
1735,Maxxess,EAN_13
|
1735,Maxxess,EAN_13
|
||||||
1736,Devianne,EAN_13
|
1736,Des Marques et Vous,EAN_13
|
||||||
1737,Colruyt,ITF
|
1737,Colruyt,ITF
|
||||||
1738,Paul,EAN_13
|
1738,Paul,EAN_13
|
||||||
1739,JouéClub,EAN_13
|
1739,JouéClub,EAN_13
|
||||||
@@ -1044,7 +1052,7 @@ _id,name,barcodeFormat
|
|||||||
179,Kastner & Öhler,EAN_13
|
179,Kastner & Öhler,EAN_13
|
||||||
1790,MY SIZE,CODE_39
|
1790,MY SIZE,CODE_39
|
||||||
1791,PetO,CODE_128
|
1791,PetO,CODE_128
|
||||||
1792,AVEVE,EAN_13
|
1792,Aveve,EAN_13
|
||||||
1793,BIO-Planet,ITF
|
1793,BIO-Planet,ITF
|
||||||
1794,Brico,EAN_13
|
1794,Brico,EAN_13
|
||||||
1795,Club,CODE_128
|
1795,Club,CODE_128
|
||||||
@@ -1343,9 +1351,10 @@ _id,name,barcodeFormat
|
|||||||
1e43877a-d4f1-4bff-bdb9-cd3346082a46,Scorpion Bay,EAN_13
|
1e43877a-d4f1-4bff-bdb9-cd3346082a46,Scorpion Bay,EAN_13
|
||||||
1e9469a4-8388-4ca9-a463-95ee73a0d953,FAMO,EAN_13
|
1e9469a4-8388-4ca9-a463-95ee73a0d953,FAMO,EAN_13
|
||||||
1e9a127a-0451-4565-9560-eaa097d3808b,Grill'd,CODE_128
|
1e9a127a-0451-4565-9560-eaa097d3808b,Grill'd,CODE_128
|
||||||
1ed46ee6-993a-4053-a016-a0d67e26b91b,Lidl SK,CODE_128
|
1ed46ee6-993a-4053-a016-a0d67e26b91b,Lidl,CODE_128
|
||||||
1f01c3b1-08f7-4365-a0f9-f1c9bcbdf58a,Fresco,CODE_128
|
1f01c3b1-08f7-4365-a0f9-f1c9bcbdf58a,Fresco,CODE_128
|
||||||
1f15d8f3-c35c-46d6-8038-4c9f91a18909,Покров,EAN_8
|
1f15d8f3-c35c-46d6-8038-4c9f91a18909,Покров,EAN_8
|
||||||
|
1f1ec99d-c8c6-42d3-ac6a-b9658a6e0a0d,xBarvy,EAN_13
|
||||||
1f661d7a-d355-4590-8d33-0d61630958cc,NDG,CODE_39
|
1f661d7a-d355-4590-8d33-0d61630958cc,NDG,CODE_39
|
||||||
1f6624c6-5acc-4983-ac17-31b9004232d7,Afvalpas Rijssen-Holten,QR_CODE
|
1f6624c6-5acc-4983-ac17-31b9004232d7,Afvalpas Rijssen-Holten,QR_CODE
|
||||||
1f69337f-7604-4e7a-9031-f0ab182e7cd7,Дешёвая Аптека Вита,CODE_128
|
1f69337f-7604-4e7a-9031-f0ab182e7cd7,Дешёвая Аптека Вита,CODE_128
|
||||||
@@ -1453,7 +1462,7 @@ _id,name,barcodeFormat
|
|||||||
2085,Billa,EAN_13
|
2085,Billa,EAN_13
|
||||||
2086,Billa,EAN_13
|
2086,Billa,EAN_13
|
||||||
2087,BIPA,EAN_13
|
2087,BIPA,EAN_13
|
||||||
2088,Penny,EAN_13
|
2088,PENNY,EAN_13
|
||||||
2089,Penny,EAN_13
|
2089,Penny,EAN_13
|
||||||
209,MCard,CODE_128
|
209,MCard,CODE_128
|
||||||
2090,Shoprite,CODE_128
|
2090,Shoprite,CODE_128
|
||||||
@@ -1492,6 +1501,7 @@ _id,name,barcodeFormat
|
|||||||
2112,Lindex,CODE_128
|
2112,Lindex,CODE_128
|
||||||
2113,Twilfit,CODE_128
|
2113,Twilfit,CODE_128
|
||||||
2114,aClass,CODE_128
|
2114,aClass,CODE_128
|
||||||
|
21143721-38a4-466f-b04d-a3e90cb62bad,L'angolo,CODE_128
|
||||||
2115,Clas Ohlson,CODE_128
|
2115,Clas Ohlson,CODE_128
|
||||||
2116,Agrimarket,CODE_128
|
2116,Agrimarket,CODE_128
|
||||||
2117,Starkki,CODE_128
|
2117,Starkki,CODE_128
|
||||||
@@ -1600,7 +1610,7 @@ _id,name,barcodeFormat
|
|||||||
2201,Avance,CODE_128
|
2201,Avance,CODE_128
|
||||||
2202,berca.be,EAN_13
|
2202,berca.be,EAN_13
|
||||||
2203,Brantano,EAN_13
|
2203,Brantano,EAN_13
|
||||||
2204,Brooklyn,EAN_13
|
2204,Brooklyn nv,EAN_13
|
||||||
2205,CAMELEON,CODE_128
|
2205,CAMELEON,CODE_128
|
||||||
2206,Carmi,CODE_39
|
2206,Carmi,CODE_39
|
||||||
2207,E5 mode,ITF
|
2207,E5 mode,ITF
|
||||||
@@ -1940,7 +1950,7 @@ _id,name,barcodeFormat
|
|||||||
2488,Proximus,CODE_128
|
2488,Proximus,CODE_128
|
||||||
2489,RS Bútor,CODE_128
|
2489,RS Bútor,CODE_128
|
||||||
248957ba-dbad-414e-86e4-009fc4e5beee,Самоцветы плюс,ITF
|
248957ba-dbad-414e-86e4-009fc4e5beee,Самоцветы плюс,ITF
|
||||||
249,Countdown,CODE_128
|
249,Woolworths,CODE_128
|
||||||
2490,SEIBU PRINCE CLUB,CODE_128
|
2490,SEIBU PRINCE CLUB,CODE_128
|
||||||
2491,サミット,EAN_13
|
2491,サミット,EAN_13
|
||||||
2492,The PUB,CODE_128
|
2492,The PUB,CODE_128
|
||||||
@@ -2024,6 +2034,7 @@ _id,name,barcodeFormat
|
|||||||
2557,Artex Fashion,EAN_13
|
2557,Artex Fashion,EAN_13
|
||||||
2558,Askot,CODE_128
|
2558,Askot,CODE_128
|
||||||
2559,BUTIK,EAN_8
|
2559,BUTIK,EAN_8
|
||||||
|
255d84f7-144d-4d63-b6fd-f00a8e94641f,HUK Autowelt,QR_CODE
|
||||||
256,Palmers,EAN_13
|
256,Palmers,EAN_13
|
||||||
2560,Dayli,EAN_13
|
2560,Dayli,EAN_13
|
||||||
2561,De Banier,CODE_128
|
2561,De Banier,CODE_128
|
||||||
@@ -2440,6 +2451,7 @@ _id,name,barcodeFormat
|
|||||||
28a46b11-8c45-4b2a-93dd-b7325a2fe013,Dialogues,CODE_128
|
28a46b11-8c45-4b2a-93dd-b7325a2fe013,Dialogues,CODE_128
|
||||||
28b5866e-f195-4d68-b8a0-02cdb611af4f,Да Здоров! аптека,EAN_13
|
28b5866e-f195-4d68-b8a0-02cdb611af4f,Да Здоров! аптека,EAN_13
|
||||||
28c5ee9a-cf66-4add-b71c-70b66be85570,Agraria,EAN_13
|
28c5ee9a-cf66-4add-b71c-70b66be85570,Agraria,EAN_13
|
||||||
|
28cc5dc7-61b4-4c95-a5a6-e125cc4bce9b,Aventurx,CODE_128
|
||||||
28d93baa-c331-4df8-a85d-65eb86199732,Solar Studio,CODE_128
|
28d93baa-c331-4df8-a85d-65eb86199732,Solar Studio,CODE_128
|
||||||
28fbdd64-8715-4cdc-8c3f-df7259b1ba65,NOHO,EAN_13
|
28fbdd64-8715-4cdc-8c3f-df7259b1ba65,NOHO,EAN_13
|
||||||
29,Heathrow Rewards,CODE_128
|
29,Heathrow Rewards,CODE_128
|
||||||
@@ -2582,6 +2594,7 @@ _id,name,barcodeFormat
|
|||||||
2b1eb78e-9684-4434-ba9b-41f00fc5beab,Sensation Profumerie,EAN_13
|
2b1eb78e-9684-4434-ba9b-41f00fc5beab,Sensation Profumerie,EAN_13
|
||||||
2b29bfc0-26a7-44cb-9d21-2a0bdb467320,Vertex Hotel,ITF
|
2b29bfc0-26a7-44cb-9d21-2a0bdb467320,Vertex Hotel,ITF
|
||||||
2b39b807-6375-404c-bfd7-7f3135654258,Планета Игрушек,EAN_13
|
2b39b807-6375-404c-bfd7-7f3135654258,Планета Игрушек,EAN_13
|
||||||
|
2b6062ec-39b1-4ac4-b6d6-cf19048c9f3f,Coripet,UPC_A
|
||||||
2b6992d5-615a-423a-b196-ab19a418686f,Mimco,CODE_128
|
2b6992d5-615a-423a-b196-ab19a418686f,Mimco,CODE_128
|
||||||
2b7d84ce-c573-44ea-8989-b23a13cf389b,Азбука Красоты,EAN_13
|
2b7d84ce-c573-44ea-8989-b23a13cf389b,Азбука Красоты,EAN_13
|
||||||
2bc9768c-56a2-4d7d-8f1c-0be9f208b71b,Profile,CODE_128
|
2bc9768c-56a2-4d7d-8f1c-0be9f208b71b,Profile,CODE_128
|
||||||
@@ -2852,6 +2865,7 @@ _id,name,barcodeFormat
|
|||||||
3199,Navyboot,EAN_13
|
3199,Navyboot,EAN_13
|
||||||
31d21202-2674-4c42-9a7e-a19b01d32b63,Vegetalis,EAN_13
|
31d21202-2674-4c42-9a7e-a19b01d32b63,Vegetalis,EAN_13
|
||||||
31d3cf0c-7522-4035-9256-7a712cb1a8b3,Канцелярия,EAN_13
|
31d3cf0c-7522-4035-9256-7a712cb1a8b3,Канцелярия,EAN_13
|
||||||
|
31db4e18-fb97-43d2-b026-c41f39d2faba,Bershka,CODE_128
|
||||||
31eccc6d-babd-4fee-9ae8-db9a00fc1c63,Pharmactiv,EAN_13
|
31eccc6d-babd-4fee-9ae8-db9a00fc1c63,Pharmactiv,EAN_13
|
||||||
31f60f6d-633f-42af-b387-e5d0b4e2f45f,SPINNS,EAN_13
|
31f60f6d-633f-42af-b387-e5d0b4e2f45f,SPINNS,EAN_13
|
||||||
32,Bauking,EAN_13
|
32,Bauking,EAN_13
|
||||||
@@ -3092,6 +3106,7 @@ _id,name,barcodeFormat
|
|||||||
3399,Taxi Jetax,CODE_128
|
3399,Taxi Jetax,CODE_128
|
||||||
339bb076-12fd-4e56-899f-3acb79f5da53,Hafenhotel Meereszeiten,CODE_128
|
339bb076-12fd-4e56-899f-3acb79f5da53,Hafenhotel Meereszeiten,CODE_128
|
||||||
33a430e4-35c7-43e7-98e8-5ce5d039ee70,VPZ,CODE_128
|
33a430e4-35c7-43e7-98e8-5ce5d039ee70,VPZ,CODE_128
|
||||||
|
33cb4886-5d06-473a-80b7-980ca2fb27c2,Bouwcenter Nobel,EAN_13
|
||||||
33d16d2d-f51e-44c3-92d8-2c3616af2d0f,Apotheke Peer Farmacia,CODE_128
|
33d16d2d-f51e-44c3-92d8-2c3616af2d0f,Apotheke Peer Farmacia,CODE_128
|
||||||
33dea27e-c7a4-4e40-8621-32da990f7d82,EU COVID-19 Vaccinationsintyg - Andra vaccination Skott,QR_CODE
|
33dea27e-c7a4-4e40-8621-32da990f7d82,EU COVID-19 Vaccinationsintyg - Andra vaccination Skott,QR_CODE
|
||||||
33e82e4f-5541-4be1-aa4c-0f2987cfd78f,Данди,EAN_13
|
33e82e4f-5541-4be1-aa4c-0f2987cfd78f,Данди,EAN_13
|
||||||
@@ -3452,6 +3467,7 @@ _id,name,barcodeFormat
|
|||||||
37,Bessmann,ITF
|
37,Bessmann,ITF
|
||||||
370,Virgin Atlantic,CODE_128
|
370,Virgin Atlantic,CODE_128
|
||||||
3700,Go Auto,CODE_128
|
3700,Go Auto,CODE_128
|
||||||
|
37003c25-7bc7-4dd9-8a3a-8406005d0dcf,Scouts en Gidsen Vlaanderen,CODE_128
|
||||||
3701,Good Earth,CODE_128
|
3701,Good Earth,CODE_128
|
||||||
3702,Hachem,CODE_128
|
3702,Hachem,CODE_128
|
||||||
3703,Le Magasin,CODE_128
|
3703,Le Magasin,CODE_128
|
||||||
@@ -3949,6 +3965,7 @@ _id,name,barcodeFormat
|
|||||||
4083,Каляев,EAN_13
|
4083,Каляев,EAN_13
|
||||||
4084,Shingle Inn,CODE_128
|
4084,Shingle Inn,CODE_128
|
||||||
4085,Golden Casket,CODE_128
|
4085,Golden Casket,CODE_128
|
||||||
|
40853977-7fdb-4815-a64e-85d2c70df347,OROCAJA,CODE_39
|
||||||
4086,Pet City,CODE_128
|
4086,Pet City,CODE_128
|
||||||
4087,chempro,EAN_13
|
4087,chempro,EAN_13
|
||||||
4088,merlo,CODE_39
|
4088,merlo,CODE_39
|
||||||
@@ -4313,7 +4330,7 @@ _id,name,barcodeFormat
|
|||||||
4387,Kremer,EAN_13
|
4387,Kremer,EAN_13
|
||||||
4388,Gartencenter Nickl,EAN_13
|
4388,Gartencenter Nickl,EAN_13
|
||||||
4389,Panarottis,QR_CODE
|
4389,Panarottis,QR_CODE
|
||||||
439,Alitalia,CODE_128
|
439,Volare ITA airways.,CODE_128
|
||||||
4390,Simply Asia,CODE_128
|
4390,Simply Asia,CODE_128
|
||||||
4391,Ultraliquors,CODE_128
|
4391,Ultraliquors,CODE_128
|
||||||
4392,Cum Books,CODE_128
|
4392,Cum Books,CODE_128
|
||||||
@@ -4565,6 +4582,7 @@ _id,name,barcodeFormat
|
|||||||
4599,Мокрый Нос,EAN_13
|
4599,Мокрый Нос,EAN_13
|
||||||
45b55fa2-835b-4ae5-a318-16a66b4ec85b,Євро Мікс,EAN_8
|
45b55fa2-835b-4ae5-a318-16a66b4ec85b,Євро Мікс,EAN_8
|
||||||
45cbba3f-f0d2-4837-8189-16b0ff2707f5,Барс,CODE_128
|
45cbba3f-f0d2-4837-8189-16b0ff2707f5,Барс,CODE_128
|
||||||
|
45e6b637-a991-45ce-b72d-8f4df03d9f6b,Tradition,CODE_128
|
||||||
45e6f6d3-e688-40f7-86e2-73e3803c86bd,KüstenCard mini/maxi,CODE_128
|
45e6f6d3-e688-40f7-86e2-73e3803c86bd,KüstenCard mini/maxi,CODE_128
|
||||||
45fa81a4-657e-414c-89ed-ebf1c49c0926,G'DAY REWARDS,CODE_128
|
45fa81a4-657e-414c-89ed-ebf1c49c0926,G'DAY REWARDS,CODE_128
|
||||||
45faf9e5-321c-44a7-b641-7acee8126349,EU COVID-19 Vaccinatiebewijs - Eerste vaccinatieschot,QR_CODE
|
45faf9e5-321c-44a7-b641-7acee8126349,EU COVID-19 Vaccinatiebewijs - Eerste vaccinatieschot,QR_CODE
|
||||||
@@ -4772,6 +4790,7 @@ _id,name,barcodeFormat
|
|||||||
4773,Maximiles,CODE_128
|
4773,Maximiles,CODE_128
|
||||||
4774,La Compagnie des Petits,CODE_128
|
4774,La Compagnie des Petits,CODE_128
|
||||||
4775,Totem Family,CODE_128
|
4775,Totem Family,CODE_128
|
||||||
|
477515a9-2257-4d19-af18-3dbcfeb4acd9,Omni,CODE_128
|
||||||
4776,La Jardinerie,CODE_128
|
4776,La Jardinerie,CODE_128
|
||||||
4777,La Plateforme du Bâtiment,EAN_13
|
4777,La Plateforme du Bâtiment,EAN_13
|
||||||
4778,Animal & Co,EAN_13
|
4778,Animal & Co,EAN_13
|
||||||
@@ -5049,6 +5068,7 @@ _id,name,barcodeFormat
|
|||||||
4adaa99b-282d-4abe-87c8-b16d3958f4c2,Тюменский ЦУМ,CODE_39
|
4adaa99b-282d-4abe-87c8-b16d3958f4c2,Тюменский ЦУМ,CODE_39
|
||||||
4ae5d40d-45ea-4188-bce8-eb3337733466,Garden Floridea,CODE_128
|
4ae5d40d-45ea-4188-bce8-eb3337733466,Garden Floridea,CODE_128
|
||||||
4b197111-0d79-4ac5-aecd-5dca6643e390,Евродом,EAN_13
|
4b197111-0d79-4ac5-aecd-5dca6643e390,Евродом,EAN_13
|
||||||
|
4b50787c-052c-48e9-8bae-b01373cef1b8,Fbo Clothing,CODE_128
|
||||||
4b511f9a-5c9c-4b9f-8c71-1631cb78456a,Семейная Аптека,EAN_13
|
4b511f9a-5c9c-4b9f-8c71-1631cb78456a,Семейная Аптека,EAN_13
|
||||||
4b8e7174-b85b-4b82-99ab-b1faee2dfb8f,Diper,EAN_13
|
4b8e7174-b85b-4b82-99ab-b1faee2dfb8f,Diper,EAN_13
|
||||||
4ba9de66-0015-49e1-a0d1-d24c2328eaa5,Witchery,EAN_13
|
4ba9de66-0015-49e1-a0d1-d24c2328eaa5,Witchery,EAN_13
|
||||||
@@ -5063,14 +5083,18 @@ _id,name,barcodeFormat
|
|||||||
4ccb26a9-3a58-487f-9bdf-5cc4b042c0b3,UNCS,CODE_128
|
4ccb26a9-3a58-487f-9bdf-5cc4b042c0b3,UNCS,CODE_128
|
||||||
4cd0da27-9a71-4eb0-88f4-23919b598828,Pins,CODE_128
|
4cd0da27-9a71-4eb0-88f4-23919b598828,Pins,CODE_128
|
||||||
4d28254f-9ec6-4262-aa28-ee0bd7620b00,Леонардо,EAN_13
|
4d28254f-9ec6-4262-aa28-ee0bd7620b00,Леонардо,EAN_13
|
||||||
|
4d4102e9-115a-4695-b764-c5534e1749a8,twd,EAN_13
|
||||||
4d7b0d6e-2680-4c6b-bdac-8985df7aa8a3,大昌,EAN_13
|
4d7b0d6e-2680-4c6b-bdac-8985df7aa8a3,大昌,EAN_13
|
||||||
|
4d8c62b4-b4c5-40b0-9117-6e5022cf7950,MilleMiglia,CODE_128
|
||||||
4dab7847-f728-4c34-80ea-a464238a3756,Волна,EAN_13
|
4dab7847-f728-4c34-80ea-a464238a3756,Волна,EAN_13
|
||||||
4db2f926-b58d-4821-8f85-b02d3e32fbcb,Дом посуды,EAN_13
|
4db2f926-b58d-4821-8f85-b02d3e32fbcb,Дом посуды,EAN_13
|
||||||
4dd50f0e-05a1-4a32-97c2-1e5b570d0d9b,MIA,EAN_13
|
4dd50f0e-05a1-4a32-97c2-1e5b570d0d9b,MIA,EAN_13
|
||||||
4dd586bf-d2ed-4357-898c-11b648bcb796,Детский парк,EAN_13
|
4dd586bf-d2ed-4357-898c-11b648bcb796,Детский парк,EAN_13
|
||||||
4dd5aa56-2f5c-4bb5-a281-211bb4e5463e,Joylab,CODE_128
|
4dd5aa56-2f5c-4bb5-a281-211bb4e5463e,Joylab,CODE_128
|
||||||
4e090085-f5bc-4f29-abcf-bb249dd3429d, SSENSE,CODE_128
|
4e090085-f5bc-4f29-abcf-bb249dd3429d, SSENSE,CODE_128
|
||||||
|
4e1001a2-a664-4d37-8b85-a71b02f9f6dc,xFarby,EAN_13
|
||||||
4e24761b-17a7-4b7d-b04a-16f54076d03b,Forum+,EAN_13
|
4e24761b-17a7-4b7d-b04a-16f54076d03b,Forum+,EAN_13
|
||||||
|
4e6622db-6fd3-405e-a60e-7157984da5ba,KiemKracht VZW,CODE_128
|
||||||
4e95cfa4-3011-41c2-ad87-0c560cbd218c,Lincolnshire Co-operative,DATA_MATRIX
|
4e95cfa4-3011-41c2-ad87-0c560cbd218c,Lincolnshire Co-operative,DATA_MATRIX
|
||||||
4eb5bcd8-9467-44ce-b54c-fc69521431be,Мир Обоев,CODE_128
|
4eb5bcd8-9467-44ce-b54c-fc69521431be,Мир Обоев,CODE_128
|
||||||
4ed66bc0-04ee-458b-aac7-6bb7bdd35e5c,Пивотека,CODE_39
|
4ed66bc0-04ee-458b-aac7-6bb7bdd35e5c,Пивотека,CODE_39
|
||||||
@@ -5300,6 +5324,7 @@ _id,name,barcodeFormat
|
|||||||
519,Alimerka,CODE_128
|
519,Alimerka,CODE_128
|
||||||
5190,Souris Mini,CODE_128
|
5190,Souris Mini,CODE_128
|
||||||
5191,Лакомка,EAN_13
|
5191,Лакомка,EAN_13
|
||||||
|
51917108-3469-4067-b1da-8697d60fcfa6,Kingston Frontenac Public Library,CODE_128
|
||||||
5192,AlphaZoo,CODE_128
|
5192,AlphaZoo,CODE_128
|
||||||
5193,БИГАМ,EAN_8
|
5193,БИГАМ,EAN_8
|
||||||
5194,Sebastiano,EAN_13
|
5194,Sebastiano,EAN_13
|
||||||
@@ -5406,6 +5431,7 @@ _id,name,barcodeFormat
|
|||||||
55cfc40e-469f-485f-ab26-823014fd8401,Seebauer,EAN_13
|
55cfc40e-469f-485f-ab26-823014fd8401,Seebauer,EAN_13
|
||||||
55db252f-70a8-4da7-b0c2-484c8445e750,Kreativmarkt Hamburg,EAN_13
|
55db252f-70a8-4da7-b0c2-484c8445e750,Kreativmarkt Hamburg,EAN_13
|
||||||
55e96a49-7157-43cc-aaa7-9867d37cb05f,Народная линия,EAN_13
|
55e96a49-7157-43cc-aaa7-9867d37cb05f,Народная линия,EAN_13
|
||||||
|
55eb9a72-cd1d-49f7-aec1-1f44f6207983,Lina Giorgi snc,CODE_39
|
||||||
55f414b7-b1a8-46f6-97ad-7f4f0867d8a9,EU COVID-19 Rokotustodistus - Toinen rokotus laukaus,QR_CODE
|
55f414b7-b1a8-46f6-97ad-7f4f0867d8a9,EU COVID-19 Rokotustodistus - Toinen rokotus laukaus,QR_CODE
|
||||||
56,Brax,CODE_128
|
56,Brax,CODE_128
|
||||||
560,Punt Roma,CODE_128
|
560,Punt Roma,CODE_128
|
||||||
@@ -5492,6 +5518,7 @@ _id,name,barcodeFormat
|
|||||||
5afc2de6-6129-43f5-9caf-be3572d65a90,Sisal,CODE_128
|
5afc2de6-6129-43f5-9caf-be3572d65a90,Sisal,CODE_128
|
||||||
5b01f59e-97db-4105-9aab-94f56099fc49,real,GS1_128
|
5b01f59e-97db-4105-9aab-94f56099fc49,real,GS1_128
|
||||||
5b1da0f0-143e-492d-83a9-ad22957a54c6,Metro Lifestyle,CODE_39
|
5b1da0f0-143e-492d-83a9-ad22957a54c6,Metro Lifestyle,CODE_39
|
||||||
|
5b502f6e-7c38-4708-ae56-04f97638692a,Баня Стил,CODE_128
|
||||||
5bb5ea85-8952-474e-be53-c5ac11f7428f,Farmec,EAN_13
|
5bb5ea85-8952-474e-be53-c5ac11f7428f,Farmec,EAN_13
|
||||||
5bb6dc04-3000-475f-a5d4-ba9427989809,Bimbostore Toys Center,EAN_13
|
5bb6dc04-3000-475f-a5d4-ba9427989809,Bimbostore Toys Center,EAN_13
|
||||||
5bf3f149-2217-45aa-b61b-eec9aeedf5d2,Werdich,CODE_39
|
5bf3f149-2217-45aa-b61b-eec9aeedf5d2,Werdich,CODE_39
|
||||||
@@ -5509,6 +5536,7 @@ _id,name,barcodeFormat
|
|||||||
5d3de23f-b72e-4920-9e3b-1a413979a779,CityCard,CODE_128
|
5d3de23f-b72e-4920-9e3b-1a413979a779,CityCard,CODE_128
|
||||||
5d426084-854e-493e-a10d-7ce5d34d31fe,Farmacie Comunali Firenze,CODE_128
|
5d426084-854e-493e-a10d-7ce5d34d31fe,Farmacie Comunali Firenze,CODE_128
|
||||||
5d51a06c-3af4-4400-9776-e3458190be87,Parisnail,EAN_13
|
5d51a06c-3af4-4400-9776-e3458190be87,Parisnail,EAN_13
|
||||||
|
5d5d4520-ee6c-45ea-b5f1-11282a0673f4,Arriva,CODE_128
|
||||||
5d695da3-f47b-4da8-b5ff-ea9d0fd9486b,Belaton,CODE_128
|
5d695da3-f47b-4da8-b5ff-ea9d0fd9486b,Belaton,CODE_128
|
||||||
5d866631-9858-4393-a5cf-eba96ca066cc,Kiwisun,CODE_128
|
5d866631-9858-4393-a5cf-eba96ca066cc,Kiwisun,CODE_128
|
||||||
5db03921-3703-40d3-ba27-f7d3ff5a40ba,Prodor Supermarché et Boucherie,EAN_13
|
5db03921-3703-40d3-ba27-f7d3ff5a40ba,Prodor Supermarché et Boucherie,EAN_13
|
||||||
@@ -5518,6 +5546,7 @@ _id,name,barcodeFormat
|
|||||||
5e18e98b-ad75-426a-a4ac-a80496906906,Beauty X,EAN_13
|
5e18e98b-ad75-426a-a4ac-a80496906906,Beauty X,EAN_13
|
||||||
5e27a7ae-ad95-4cce-b383-85a4eb822eaa,Supra Baby,EAN_13
|
5e27a7ae-ad95-4cce-b383-85a4eb822eaa,Supra Baby,EAN_13
|
||||||
5e402125-50f9-4de9-8769-ce4e0dc1d1a1,Romaest,CODE_128
|
5e402125-50f9-4de9-8769-ce4e0dc1d1a1,Romaest,CODE_128
|
||||||
|
5e46de16-6ebf-4d17-933f-2f782df8b3fb,Prima Company,CODE_128
|
||||||
5e6edac6-a458-4488-861c-f8f403f4b1e1,MABÙ,QR_CODE
|
5e6edac6-a458-4488-861c-f8f403f4b1e1,MABÙ,QR_CODE
|
||||||
5ee2ee34-5027-4535-a55f-657c1a092d5d,Lady Sharm,CODE_128
|
5ee2ee34-5027-4535-a55f-657c1a092d5d,Lady Sharm,CODE_128
|
||||||
5f01e866-3ef8-46e4-a40a-555594849eb7,ЦУМ,CODE_128
|
5f01e866-3ef8-46e4-a40a-555594849eb7,ЦУМ,CODE_128
|
||||||
@@ -5532,6 +5561,7 @@ _id,name,barcodeFormat
|
|||||||
6,ACS,CODE_128
|
6,ACS,CODE_128
|
||||||
60,Transgourmet,EAN_13
|
60,Transgourmet,EAN_13
|
||||||
600,Humanic,ITF
|
600,Humanic,ITF
|
||||||
|
60046ae3-b41c-4a08-a012-d8e921e8aab0,Multaparts,CODE_128
|
||||||
600bf563-b7b2-488a-9e21-0ccc63a67b1d,LAUF!,EAN_13
|
600bf563-b7b2-488a-9e21-0ccc63a67b1d,LAUF!,EAN_13
|
||||||
601,Beauty Alliance,CODE_128
|
601,Beauty Alliance,CODE_128
|
||||||
6014a435-c656-4bf7-bcd6-fa46ed28bac0,Окраина,EAN_13
|
6014a435-c656-4bf7-bcd6-fa46ed28bac0,Окраина,EAN_13
|
||||||
@@ -5554,10 +5584,12 @@ _id,name,barcodeFormat
|
|||||||
61,Centro,EAN_13
|
61,Centro,EAN_13
|
||||||
610,CAA,CODE_128
|
610,CAA,CODE_128
|
||||||
611,Calgary Co-op,EAN_13
|
611,Calgary Co-op,EAN_13
|
||||||
|
6110d522-b979-46ca-a313-ded4eac7db71,Telecomshop Twente,CODE_128
|
||||||
612,Canada Post,CODE_128
|
612,Canada Post,CODE_128
|
||||||
613,Canadian Tire,CODE_128
|
613,Canadian Tire,CODE_128
|
||||||
614,Change Lingerie,CODE_39
|
614,Change Lingerie,CODE_39
|
||||||
615,SCENE,CODE_128
|
615,SCENE,CODE_128
|
||||||
|
615a7629-0f60-4613-b41a-e1f571f5c20a,Goelia,CODE_128
|
||||||
615ddf35-4934-4442-b4df-54b065184476,Сигма,EAN_13
|
615ddf35-4934-4442-b4df-54b065184476,Сигма,EAN_13
|
||||||
616,Denny's,CODE_128
|
616,Denny's,CODE_128
|
||||||
617,DeSerres,CODE_128
|
617,DeSerres,CODE_128
|
||||||
@@ -5609,6 +5641,7 @@ _id,name,barcodeFormat
|
|||||||
639,National Car Rental,CODE_39
|
639,National Car Rental,CODE_39
|
||||||
63ace5b1-39bb-4486-87a8-692caab2c76b,куулклевер,QR_CODE
|
63ace5b1-39bb-4486-87a8-692caab2c76b,куулклевер,QR_CODE
|
||||||
63ad5b7e-ab54-45f2-9224-2da0122a21eb,Forum TC,EAN_13
|
63ad5b7e-ab54-45f2-9224-2da0122a21eb,Forum TC,EAN_13
|
||||||
|
63b32bf3-2e99-4487-bc45-7b70132fe53c,Checkers,CODE_128
|
||||||
63bcf094-bbc1-4caa-adfb-b6e015295f43,Парфюм Лидер,EAN_13
|
63bcf094-bbc1-4caa-adfb-b6e015295f43,Парфюм Лидер,EAN_13
|
||||||
63bee835-2e9d-4656-b7b6-4b9e9a024470,Арт-Квартал,EAN_13
|
63bee835-2e9d-4656-b7b6-4b9e9a024470,Арт-Квартал,EAN_13
|
||||||
63c87418-cb15-4294-a872-035a03da3a62,Belleplant,EAN_13
|
63c87418-cb15-4294-a872-035a03da3a62,Belleplant,EAN_13
|
||||||
@@ -5644,7 +5677,7 @@ _id,name,barcodeFormat
|
|||||||
657d61fe-7714-4aed-a3d5-6c718c6e9c2a,EU COVID-19 Vaccinationsattest - Første vaccinationsskud,QR_CODE
|
657d61fe-7714-4aed-a3d5-6c718c6e9c2a,EU COVID-19 Vaccinationsattest - Første vaccinationsskud,QR_CODE
|
||||||
658,Thrifty Foods,CODE_128
|
658,Thrifty Foods,CODE_128
|
||||||
659,Trade Secret,UPC_A
|
659,Trade Secret,UPC_A
|
||||||
659c40c9-f997-44a8-b6a8-a29df616c4b2, Alfa-Tec,EAN_13
|
659c40c9-f997-44a8-b6a8-a29df616c4b2,Alfa-Tec,EAN_13
|
||||||
65e6e477-57a3-41c1-88b2-330a6d0cf8bd,Nobis,PDF_417
|
65e6e477-57a3-41c1-88b2-330a6d0cf8bd,Nobis,PDF_417
|
||||||
65e848d6-edd5-401e-9b12-952a5c6fdf47,Джерела Здоров'я,CODE_39
|
65e848d6-edd5-401e-9b12-952a5c6fdf47,Джерела Здоров'я,CODE_39
|
||||||
66,BCF,CODE_128
|
66,BCF,CODE_128
|
||||||
@@ -5652,6 +5685,7 @@ _id,name,barcodeFormat
|
|||||||
661,WestJet Rewards,CODE_128
|
661,WestJet Rewards,CODE_128
|
||||||
66104d31-9ae9-440d-b316-0d07a4319af3,Farma Fedeltà,CODE_128
|
66104d31-9ae9-440d-b316-0d07a4319af3,Farma Fedeltà,CODE_128
|
||||||
662,Würzenbach Drogerie,EAN_13
|
662,Würzenbach Drogerie,EAN_13
|
||||||
|
662e6cc0-3ebe-47db-badf-b31b626ea70c,The Papanui Club,QR_CODE
|
||||||
66335d92-4622-4334-8384-4a6d5f61f239,Zinger,EAN_13
|
66335d92-4622-4334-8384-4a6d5f61f239,Zinger,EAN_13
|
||||||
664,American Eagle,ITF
|
664,American Eagle,ITF
|
||||||
665,TJX Style+,CODE_128
|
665,TJX Style+,CODE_128
|
||||||
@@ -5696,6 +5730,7 @@ _id,name,barcodeFormat
|
|||||||
687,Thai - Royal Orchid Plus,PDF_417
|
687,Thai - Royal Orchid Plus,PDF_417
|
||||||
688,SportIT,EAN_13
|
688,SportIT,EAN_13
|
||||||
689,Foster Calzature,EAN_13
|
689,Foster Calzature,EAN_13
|
||||||
|
68ac6315-08c6-471d-b2e0-ad42d1a091c8,100 Vetrine,UPC_A
|
||||||
68c2495e-937d-4e71-a4ad-85f066df0339,Jardival,EAN_13
|
68c2495e-937d-4e71-a4ad-85f066df0339,Jardival,EAN_13
|
||||||
68c69327-cce9-4de8-a062-b895c062ee60,Iden,EAN_13
|
68c69327-cce9-4de8-a062-b895c062ee60,Iden,EAN_13
|
||||||
68d4b527-e419-4346-8078-a4ef07a04f00,Lehner Versand,CODE_128
|
68d4b527-e419-4346-8078-a4ef07a04f00,Lehner Versand,CODE_128
|
||||||
@@ -5729,6 +5764,7 @@ _id,name,barcodeFormat
|
|||||||
6a5ac3f8-04cb-4d14-884f-1231b72228e8,Топаз,EAN_13
|
6a5ac3f8-04cb-4d14-884f-1231b72228e8,Топаз,EAN_13
|
||||||
6a7b1bc8-eca7-4323-9080-68af9414254f,CastoPro,CODE_128
|
6a7b1bc8-eca7-4323-9080-68af9414254f,CastoPro,CODE_128
|
||||||
6a85186a-bfd9-4078-a5da-db1b4e1fb526,Molders,CODE_128
|
6a85186a-bfd9-4078-a5da-db1b4e1fb526,Molders,CODE_128
|
||||||
|
6a8a8971-821c-46ce-a638-1a8585c9dedd,Booking.com,CODE_128
|
||||||
6aa89061-d0b5-46a2-9019-b1cb7146e485,Just Plastics,CODE_128
|
6aa89061-d0b5-46a2-9019-b1cb7146e485,Just Plastics,CODE_128
|
||||||
6aa9bd9a-b099-4997-9fa1-b0a7525c6ec7,AZ Casa,EAN_13
|
6aa9bd9a-b099-4997-9fa1-b0a7525c6ec7,AZ Casa,EAN_13
|
||||||
6ab113ff-77e9-4029-9b23-e420eda105e3,Ehrmann,CODE_39
|
6ab113ff-77e9-4029-9b23-e420eda105e3,Ehrmann,CODE_39
|
||||||
@@ -5767,6 +5803,7 @@ _id,name,barcodeFormat
|
|||||||
6faff0bd-9236-41f8-9c67-7b546c68085a,BVS,EAN_13
|
6faff0bd-9236-41f8-9c67-7b546c68085a,BVS,EAN_13
|
||||||
6fb31971-1cf0-468e-9f85-ebf6133ad3aa,у Палыча,CODE_128
|
6fb31971-1cf0-468e-9f85-ebf6133ad3aa,у Палыча,CODE_128
|
||||||
6fb45bab-d4be-49fd-8b58-d841110eb0cb,AL 48,EAN_13
|
6fb45bab-d4be-49fd-8b58-d841110eb0cb,AL 48,EAN_13
|
||||||
|
6fb4ec1e-c6b7-4597-82a3-5c8d4d69ad4f,Rachelle Béry,CODE_128
|
||||||
6fe38419-76d2-4b5c-983e-6dbed7822d62,GiorgioMare,CODE_128
|
6fe38419-76d2-4b5c-983e-6dbed7822d62,GiorgioMare,CODE_128
|
||||||
6fea059e-d9ec-4063-8ea4-cba5ac035942,L'arca di Noè,EAN_8
|
6fea059e-d9ec-4063-8ea4-cba5ac035942,L'arca di Noè,EAN_8
|
||||||
6ff46a57-e3c9-457e-bfb4-aa922c4c41b4,BENZ,CODE_128
|
6ff46a57-e3c9-457e-bfb4-aa922c4c41b4,BENZ,CODE_128
|
||||||
@@ -5855,6 +5892,7 @@ _id,name,barcodeFormat
|
|||||||
740308f3-fda8-4b83-9d86-d13592ef30ab,Dress Code,EAN_13
|
740308f3-fda8-4b83-9d86-d13592ef30ab,Dress Code,EAN_13
|
||||||
741,O'STIN,EAN_13
|
741,O'STIN,EAN_13
|
||||||
74135c63-c1ab-47b8-8d99-4d9dcf602eda,VOIX INTERIORS,CODE_128
|
74135c63-c1ab-47b8-8d99-4d9dcf602eda,VOIX INTERIORS,CODE_128
|
||||||
|
7415ddc5-3d77-410c-a6f8-ab399518a82c,Tradition,CODE_128
|
||||||
742,Reebok,CODE_128
|
742,Reebok,CODE_128
|
||||||
742069df-a468-45d5-8cf6-cc152b4aefaf,Bacher Garten-Center,EAN_13
|
742069df-a468-45d5-8cf6-cc152b4aefaf,Bacher Garten-Center,EAN_13
|
||||||
743,Savage,CODE_128
|
743,Savage,CODE_128
|
||||||
@@ -5902,6 +5940,7 @@ _id,name,barcodeFormat
|
|||||||
764,Васаби,CODE_128
|
764,Васаби,CODE_128
|
||||||
7648aaa6-671e-4396-9e4e-759aa66c9f4f,Bouwcenter,EAN_13
|
7648aaa6-671e-4396-9e4e-759aa66c9f4f,Bouwcenter,EAN_13
|
||||||
7649e44e-66e4-4af1-a913-87a40c8ae739,Office Centre,CODE_128
|
7649e44e-66e4-4af1-a913-87a40c8ae739,Office Centre,CODE_128
|
||||||
|
764a67a4-8087-41d1-b53a-d73b8380d5cf,Handy Home,CODE_128
|
||||||
765,Вестер,CODE_128
|
765,Вестер,CODE_128
|
||||||
766,Виктория,EAN_13
|
766,Виктория,EAN_13
|
||||||
767,Газпром АЗС,EAN_13
|
767,Газпром АЗС,EAN_13
|
||||||
@@ -5934,6 +5973,7 @@ _id,name,barcodeFormat
|
|||||||
780bd58f-acbb-493c-869d-63f7a93292f3,Schnitz,CODE_128
|
780bd58f-acbb-493c-869d-63f7a93292f3,Schnitz,CODE_128
|
||||||
781,Кофе Хауз,CODE_128
|
781,Кофе Хауз,CODE_128
|
||||||
782,Красный Куб,CODE_128
|
782,Красный Куб,CODE_128
|
||||||
|
78242148-6c07-4698-9ec1-56017dc687b6,Ideacasa Mercatone,EAN_13
|
||||||
782b0597-f7e4-4509-ba4b-a9fc35d72b4d,Рада,EAN_13
|
782b0597-f7e4-4509-ba4b-a9fc35d72b4d,Рада,EAN_13
|
||||||
782f7353-ec4c-49a8-9aac-1f7d28f4cab2,Remix Moda,EAN_13
|
782f7353-ec4c-49a8-9aac-1f7d28f4cab2,Remix Moda,EAN_13
|
||||||
783,Лукойл / Ликард,CODE_128
|
783,Лукойл / Ликард,CODE_128
|
||||||
@@ -5988,7 +6028,7 @@ _id,name,barcodeFormat
|
|||||||
7bd30784-434b-4d73-8dc1-5b5516723eda,Pascal Coste,EAN_13
|
7bd30784-434b-4d73-8dc1-5b5516723eda,Pascal Coste,EAN_13
|
||||||
7bd61c87-b62d-439a-92e9-cc435345cb53,Infinity Fashion,CODE_39
|
7bd61c87-b62d-439a-92e9-cc435345cb53,Infinity Fashion,CODE_39
|
||||||
7c138f2e-37f9-46d4-ac65-2b20ff90a629,Nai Harn Gym,CODE_39
|
7c138f2e-37f9-46d4-ac65-2b20ff90a629,Nai Harn Gym,CODE_39
|
||||||
7c1b39b5-b938-432e-b0be-3c196320bd37,Checkers,QR_CODE
|
7c1b39b5-b938-432e-b0be-3c196320bd37,Checkers,CODE_128
|
||||||
7c5a9dd0-28b0-4be1-b53f-cac4246990b4,Марафон Обувь,CODE_128
|
7c5a9dd0-28b0-4be1-b53f-cac4246990b4,Марафон Обувь,CODE_128
|
||||||
7c60823a-e9fc-447f-811d-589bf1f95342,Пчёлка маркет,UPC_A
|
7c60823a-e9fc-447f-811d-589bf1f95342,Пчёлка маркет,UPC_A
|
||||||
7c77ce3b-02ad-436b-a4aa-62a6d5d583e3,Plainview-Old Bethpage Public Library,CODABAR
|
7c77ce3b-02ad-436b-a4aa-62a6d5d583e3,Plainview-Old Bethpage Public Library,CODABAR
|
||||||
@@ -6004,6 +6044,7 @@ _id,name,barcodeFormat
|
|||||||
7ce87cdb-4c6b-437f-a693-dca518f7436a,Yo-get-it,CODE_39
|
7ce87cdb-4c6b-437f-a693-dca518f7436a,Yo-get-it,CODE_39
|
||||||
7d02542c-fac0-45b5-bc90-d74240715c56,Travis Perkins,CODE_128
|
7d02542c-fac0-45b5-bc90-d74240715c56,Travis Perkins,CODE_128
|
||||||
7d11f040-b0a2-4109-bdf1-25711d48d451,Consorzio Infarmacia,EAN_13
|
7d11f040-b0a2-4109-bdf1-25711d48d451,Consorzio Infarmacia,EAN_13
|
||||||
|
7d168ca5-9370-47bd-ac3e-bf1e1e26f1ec,RISPAWORLD,CODE_128
|
||||||
7d41888d-cd7d-42ef-bf93-9aeda5ae13f6,Kepro,EAN_13
|
7d41888d-cd7d-42ef-bf93-9aeda5ae13f6,Kepro,EAN_13
|
||||||
7d4345b8-448b-4e12-a1c5-c6e031de2352,Nove25,CODE_128
|
7d4345b8-448b-4e12-a1c5-c6e031de2352,Nove25,CODE_128
|
||||||
7d520d1c-611e-4e81-9937-41a9828e6b08,EU COVID-19 Vaccinatiebewijs,QR_CODE
|
7d520d1c-611e-4e81-9937-41a9828e6b08,EU COVID-19 Vaccinatiebewijs,QR_CODE
|
||||||
@@ -6014,6 +6055,7 @@ _id,name,barcodeFormat
|
|||||||
7da65ee3-d140-469c-b3ee-217272ac98d4,Kippie,QR_CODE
|
7da65ee3-d140-469c-b3ee-217272ac98d4,Kippie,QR_CODE
|
||||||
7db0f727-13b4-48c1-8618-550155a878a2,Imperial Games,CODE_128
|
7db0f727-13b4-48c1-8618-550155a878a2,Imperial Games,CODE_128
|
||||||
7db8a067-1c33-4cd9-9706-31a2592f719a,милый дом,GS1_128
|
7db8a067-1c33-4cd9-9706-31a2592f719a,милый дом,GS1_128
|
||||||
|
7dd14421-2fe6-494f-889b-dd8920f61091,Mastro Tortello,QR_CODE
|
||||||
7dd1b9ca-2a5b-4f3c-8c10-8bc216ff5d2f,Sokolov Jewelry,CODE_128
|
7dd1b9ca-2a5b-4f3c-8c10-8bc216ff5d2f,Sokolov Jewelry,CODE_128
|
||||||
7df2728d-3dc9-4724-8756-965e937674e2,Marriott Bonvoy,QR_CODE
|
7df2728d-3dc9-4724-8756-965e937674e2,Marriott Bonvoy,QR_CODE
|
||||||
7e3da299-047b-4981-8ff3-e5355c7289b2,GIROPHARM ,EAN_13
|
7e3da299-047b-4981-8ff3-e5355c7289b2,GIROPHARM ,EAN_13
|
||||||
@@ -6040,6 +6082,7 @@ _id,name,barcodeFormat
|
|||||||
8045996b-082d-4333-b631-54dc992ebef0,Coop,EAN_13
|
8045996b-082d-4333-b631-54dc992ebef0,Coop,EAN_13
|
||||||
805,Старик Хоттабыч,CODE_128
|
805,Старик Хоттабыч,CODE_128
|
||||||
806,Stockmann,CODE_128
|
806,Stockmann,CODE_128
|
||||||
|
8069f84c-3b04-4b0a-87fd-d89230547e8b,Happy Pets,QR_CODE
|
||||||
807,Сток-центр,EAN_13
|
807,Сток-центр,EAN_13
|
||||||
8070cf0a-9721-4fe7-b010-6fdca61349fc,Epping Plaza Hotel,CODE_128
|
8070cf0a-9721-4fe7-b010-6fdca61349fc,Epping Plaza Hotel,CODE_128
|
||||||
8077e001-6db6-4796-bd82-6716ea5e116e,Palace Cinemas,CODE_39
|
8077e001-6db6-4796-bd82-6716ea5e116e,Palace Cinemas,CODE_39
|
||||||
@@ -6061,6 +6104,7 @@ _id,name,barcodeFormat
|
|||||||
813f818a-e99d-49f2-af6e-653a9bcaab09,Bazar Avenue,EAN_13
|
813f818a-e99d-49f2-af6e-653a9bcaab09,Bazar Avenue,EAN_13
|
||||||
814,ФотоПлюс,CODE_128
|
814,ФотоПлюс,CODE_128
|
||||||
815,ЦентрОбувь,EAN_13
|
815,ЦентрОбувь,EAN_13
|
||||||
|
8153abb1-248f-4af9-a7f8-dd83cdacdc7f,TEKBIR MARKET,CODE_128
|
||||||
816,ЭКОНИКА,EAN_13
|
816,ЭКОНИКА,EAN_13
|
||||||
8166ded7-42b6-47b8-a5dc-032954e82db7,bugatti,EAN_13
|
8166ded7-42b6-47b8-a5dc-032954e82db7,bugatti,EAN_13
|
||||||
817,Эстель Адони,EAN_13
|
817,Эстель Адони,EAN_13
|
||||||
@@ -6071,7 +6115,7 @@ _id,name,barcodeFormat
|
|||||||
81c5ea7b-aa89-47f8-a22e-297207616f0b,Taurus Sports,CODE_128
|
81c5ea7b-aa89-47f8-a22e-297207616f0b,Taurus Sports,CODE_128
|
||||||
81dd0d8d-4613-400e-8cbd-b2189a88a22d,EULIVIA Apartments,CODE_128
|
81dd0d8d-4613-400e-8cbd-b2189a88a22d,EULIVIA Apartments,CODE_128
|
||||||
81e7b9b8-826c-4f9e-9c61-7568a454afa5,Industriya Krasoty,EAN_13
|
81e7b9b8-826c-4f9e-9c61-7568a454afa5,Industriya Krasoty,EAN_13
|
||||||
82,Desigual,CODE_39
|
82,Desigual,QR_CODE
|
||||||
820,Air Miles,EAN_13
|
820,Air Miles,EAN_13
|
||||||
820b5de7-a25a-4d30-ac74-3a70fe682bfd,Мир Электроники,CODE_128
|
820b5de7-a25a-4d30-ac74-3a70fe682bfd,Мир Электроники,CODE_128
|
||||||
821,Ajax Amsterdam,CODE_128
|
821,Ajax Amsterdam,CODE_128
|
||||||
@@ -6135,6 +6179,7 @@ _id,name,barcodeFormat
|
|||||||
848,Lake Side,ITF
|
848,Lake Side,ITF
|
||||||
848939e3-7e55-40af-a46a-a0b0b434bbcf,Планета ZOO,EAN_13
|
848939e3-7e55-40af-a46a-a0b0b434bbcf,Планета ZOO,EAN_13
|
||||||
849,Le Ballon,ITF
|
849,Le Ballon,ITF
|
||||||
|
8495d3db-8532-4bef-a58f-3a77479ff134,C&A,CODE_128
|
||||||
84a82d8b-1d4f-4673-b1e2-b115bbe5b618,Soul Origin,CODE_128
|
84a82d8b-1d4f-4673-b1e2-b115bbe5b618,Soul Origin,CODE_128
|
||||||
84faf272-0010-4f93-8aa1-154caaa11ac2,Pro-Duo Nur für Profis,EAN_8
|
84faf272-0010-4f93-8aa1-154caaa11ac2,Pro-Duo Nur für Profis,EAN_8
|
||||||
85,Diamond Club,CODE_128
|
85,Diamond Club,CODE_128
|
||||||
@@ -6194,6 +6239,7 @@ _id,name,barcodeFormat
|
|||||||
87737e38-8052-4fdc-a90a-3511b9157481,PETS&CO,CODE_128
|
87737e38-8052-4fdc-a90a-3511b9157481,PETS&CO,CODE_128
|
||||||
878,Jula,CODE_39
|
878,Jula,CODE_39
|
||||||
879,KappAhl,CODE_128
|
879,KappAhl,CODE_128
|
||||||
|
879a9dd3-45e3-4633-9376-9183fee6ab3e,Bernardi’s Marketplace,CODE_128
|
||||||
87b3f071-9af7-4163-b512-679717b696ac,Caucciu,EAN_13
|
87b3f071-9af7-4163-b512-679717b696ac,Caucciu,EAN_13
|
||||||
87b925d1-4d9a-47e3-9e54-deaef1981b77,Impfausweis,QR_CODE
|
87b925d1-4d9a-47e3-9e54-deaef1981b77,Impfausweis,QR_CODE
|
||||||
87d141a6-cac3-4d39-9357-a6365850e57f,Coeur de frais,CODE_128
|
87d141a6-cac3-4d39-9357-a6365850e57f,Coeur de frais,CODE_128
|
||||||
@@ -6247,13 +6293,14 @@ _id,name,barcodeFormat
|
|||||||
8a0dca6e-de83-4e48-a42d-a3009da56653,Park 'N Fly,CODE_39
|
8a0dca6e-de83-4e48-a42d-a3009da56653,Park 'N Fly,CODE_39
|
||||||
8a25357e-ebc3-4ae1-b7fc-a10ff3b1abd0,Конфил,CODE_128
|
8a25357e-ebc3-4ae1-b7fc-a10ff3b1abd0,Конфил,CODE_128
|
||||||
8a53dffe-df27-40f0-b2ff-58e53add0b3e,La Cartissima,EAN_13
|
8a53dffe-df27-40f0-b2ff-58e53add0b3e,La Cartissima,EAN_13
|
||||||
|
8a59226e-9895-4924-8616-345549a56aec,Munhowen Drinx,CODE_128
|
||||||
8a702666-368b-48a5-96fd-4e10aac5ae7f,Brooklyn Jeans,ITF
|
8a702666-368b-48a5-96fd-4e10aac5ae7f,Brooklyn Jeans,ITF
|
||||||
8a8095fe-f449-4242-83a1-0d3055874233,Little Sparrow,CODE_128
|
8a8095fe-f449-4242-83a1-0d3055874233,Little Sparrow,CODE_128
|
||||||
8a9c58f4-4db3-4aef-8cf0-d2caa0fcc4d1,EU COVID-19 Potrdilo o cepljenju,QR_CODE
|
8a9c58f4-4db3-4aef-8cf0-d2caa0fcc4d1,EU COVID-19 Potrdilo o cepljenju,QR_CODE
|
||||||
8aa58d48-ad60-4b6d-aa1d-054f94b6453b,Granola,PDF_417
|
8aa58d48-ad60-4b6d-aa1d-054f94b6453b,Granola,PDF_417
|
||||||
8ac5093b-8fc4-49d6-b271-dd845252b60c,Idea Verde Maschi,CODE_128
|
8ac5093b-8fc4-49d6-b271-dd845252b60c,Idea Verde Maschi,CODE_128
|
||||||
8ad83ece-2e55-4937-80c9-04584c598439,COM,EAN_13
|
8ad83ece-2e55-4937-80c9-04584c598439,COM,EAN_13
|
||||||
8b0f2db1-ae97-4af8-8e82-c4067a4ac322,Toyota,CODE_128
|
8b0f2db1-ae97-4af8-8e82-c4067a4ac322,Ma Toyota Extra,CODE_128
|
||||||
8b398aea-e5bd-484d-bdf2-5030bacf9157,Thèoria Milano,CODE_128
|
8b398aea-e5bd-484d-bdf2-5030bacf9157,Thèoria Milano,CODE_128
|
||||||
8b4c413c-effc-4912-9a34-6baea2972199,Karla,CODE_39
|
8b4c413c-effc-4912-9a34-6baea2972199,Karla,CODE_39
|
||||||
8b653178-4f49-4f73-9091-7763e039b539,Aléa Déco,CODE_128
|
8b653178-4f49-4f73-9091-7763e039b539,Aléa Déco,CODE_128
|
||||||
@@ -6304,6 +6351,7 @@ _id,name,barcodeFormat
|
|||||||
903,W.KRUK,CODE_128
|
903,W.KRUK,CODE_128
|
||||||
904,Galeria Wileńska,UPC_A
|
904,Galeria Wileńska,UPC_A
|
||||||
905,YES,EAN_13
|
905,YES,EAN_13
|
||||||
|
90574104-b485-489f-9872-3d32b7e07c59,America Today,CODE_128
|
||||||
906,ZiKO Klub,EAN_13
|
906,ZiKO Klub,EAN_13
|
||||||
9062c2a3-eeb1-4797-afb6-41a0394bb481,Městská knihovna - Česká Třebová,EAN_13
|
9062c2a3-eeb1-4797-afb6-41a0394bb481,Městská knihovna - Česká Třebová,EAN_13
|
||||||
90705634-f152-487c-97eb-27e1728285ef,Миртек,EAN_13
|
90705634-f152-487c-97eb-27e1728285ef,Миртек,EAN_13
|
||||||
@@ -6332,6 +6380,7 @@ _id,name,barcodeFormat
|
|||||||
91915513-4447-47b0-93ae-d489f6ee3a97,Chrome,EAN_8
|
91915513-4447-47b0-93ae-d489f6ee3a97,Chrome,EAN_8
|
||||||
92,Düsseldorf International,EAN_13
|
92,Düsseldorf International,EAN_13
|
||||||
920,Drummond Golf,CODE_39
|
920,Drummond Golf,CODE_39
|
||||||
|
92063e91-526a-4327-ba87-f487bfaec724,Rue du Commerce,CODE_128
|
||||||
920c9bd0-d85c-42c6-9301-fc1ddedd38c2,Idea Casa,CODE_128
|
920c9bd0-d85c-42c6-9301-fc1ddedd38c2,Idea Casa,CODE_128
|
||||||
920ce49c-9728-41f1-b9e9-9f9d06f53d92,Русские Самоцветы,EAN_13
|
920ce49c-9728-41f1-b9e9-9f9d06f53d92,Русские Самоцветы,EAN_13
|
||||||
921,NWZ,EAN_13
|
921,NWZ,EAN_13
|
||||||
@@ -6368,11 +6417,13 @@ _id,name,barcodeFormat
|
|||||||
935ef7c3-a93c-43e1-9abd-075bd05c3051,Форне,EAN_13
|
935ef7c3-a93c-43e1-9abd-075bd05c3051,Форне,EAN_13
|
||||||
936,Orlen - Vitay,CODE_128
|
936,Orlen - Vitay,CODE_128
|
||||||
937,Wojas,EAN_13
|
937,Wojas,EAN_13
|
||||||
|
937cef67-4a01-42fc-9f51-0a3f3210a686,Idea Città Company,GS1_128
|
||||||
938,Sizeer,CODE_128
|
938,Sizeer,CODE_128
|
||||||
939,T2 Tea,CODE_128
|
939,T2 Tea,CODE_128
|
||||||
93a8cca4-73cd-405c-8142-359a41127416,しまむらグループ,CODE_128
|
93a8cca4-73cd-405c-8142-359a41127416,しまむらグループ,CODE_128
|
||||||
93a9836f-0984-45ee-97c6-3e6675a34b11,Ludwig Beck,QR_CODE
|
93a9836f-0984-45ee-97c6-3e6675a34b11,Ludwig Beck,QR_CODE
|
||||||
93b76ad4-76f3-4132-8fe5-972f6ca5eb8a,Київфарм,EAN_13
|
93b76ad4-76f3-4132-8fe5-972f6ca5eb8a,Київфарм,EAN_13
|
||||||
|
93bda8ac-884e-4db0-ab72-09e12f86a3d2,Naturino Family Store,CODE_39
|
||||||
93c53a6b-2efb-4167-aa67-c4905f1692b1,ВелоДрайв,EAN_13
|
93c53a6b-2efb-4167-aa67-c4905f1692b1,ВелоДрайв,EAN_13
|
||||||
93d1d2d1-801d-4293-a1f1-cdf314ba341a,Nilufar,EAN_13
|
93d1d2d1-801d-4293-a1f1-cdf314ba341a,Nilufar,EAN_13
|
||||||
93d42408-df2a-42fd-a10c-9f9c725e8000,TuttintiMO,UPC_A
|
93d42408-df2a-42fd-a10c-9f9c725e8000,TuttintiMO,UPC_A
|
||||||
@@ -6420,6 +6471,7 @@ _id,name,barcodeFormat
|
|||||||
962,Монро,EAN_13
|
962,Монро,EAN_13
|
||||||
963,Jeans Symphony,EAN_13
|
963,Jeans Symphony,EAN_13
|
||||||
9630a33b-0869-4246-91db-80f928bd7b3a,Harfa Sport,EAN_13
|
9630a33b-0869-4246-91db-80f928bd7b3a,Harfa Sport,EAN_13
|
||||||
|
96394b6b-b91f-4fbd-991c-242b7189e0b0,Shoprite,CODE_128
|
||||||
963a19ff-687c-434a-a960-c5e9c6d27c1c,La Cage,CODE_128
|
963a19ff-687c-434a-a960-c5e9c6d27c1c,La Cage,CODE_128
|
||||||
964,Спектр,EAN_13
|
964,Спектр,EAN_13
|
||||||
964bee1b-84ac-42cb-ac20-b182e043a983,SIR,CODE_39
|
964bee1b-84ac-42cb-ac20-b182e043a983,SIR,CODE_39
|
||||||
@@ -6469,6 +6521,7 @@ _id,name,barcodeFormat
|
|||||||
989,Toys Center,EAN_13
|
989,Toys Center,EAN_13
|
||||||
98959593-9b79-4d3a-98bf-fd965d99825e,ташир пицца,PDF_417
|
98959593-9b79-4d3a-98bf-fd965d99825e,ташир пицца,PDF_417
|
||||||
98afc021-2350-4686-89de-03bc9bb686a4,Coeliac Australia,EAN_13
|
98afc021-2350-4686-89de-03bc9bb686a4,Coeliac Australia,EAN_13
|
||||||
|
98c597ea-20b1-4d9e-a6ae-0ed84e0f591d,Juttu,CODE_128
|
||||||
98d5694e-ee5e-4f60-9a32-0ac43d66f54f,Vaprio,CODE_128
|
98d5694e-ee5e-4f60-9a32-0ac43d66f54f,Vaprio,CODE_128
|
||||||
99,Ernsting's Family,ITF
|
99,Ernsting's Family,ITF
|
||||||
990,Nando's,CODE_128
|
990,Nando's,CODE_128
|
||||||
@@ -6530,6 +6583,7 @@ _id,name,barcodeFormat
|
|||||||
9dc29233-9613-4851-8630-15b7b39222c3,Kasztelan,CODE_128
|
9dc29233-9613-4851-8630-15b7b39222c3,Kasztelan,CODE_128
|
||||||
9dc3174d-0990-4d88-a4d6-3c7a6431160d,Янтарь,EAN_13
|
9dc3174d-0990-4d88-a4d6-3c7a6431160d,Янтарь,EAN_13
|
||||||
9dc63493-8062-498a-99be-db701dfc03a4,Farmacia,CODE_128
|
9dc63493-8062-498a-99be-db701dfc03a4,Farmacia,CODE_128
|
||||||
|
9dd46ad3-336b-4af2-9cbc-4526140558ef,Kiriel,EAN_13
|
||||||
9e02cf7a-da20-428d-a363-952f7a3fb25c,Kéddo,EAN_13
|
9e02cf7a-da20-428d-a363-952f7a3fb25c,Kéddo,EAN_13
|
||||||
9e82e20d-4da0-46c0-bb94-c2ba7b9b3d74,Индустрия красоты,EAN_13
|
9e82e20d-4da0-46c0-bb94-c2ba7b9b3d74,Индустрия красоты,EAN_13
|
||||||
9ec73fed-0974-4b7c-98e0-27aba810e8e1,Spielwarentraum,CODE_128
|
9ec73fed-0974-4b7c-98e0-27aba810e8e1,Spielwarentraum,CODE_128
|
||||||
@@ -6541,6 +6595,7 @@ _id,name,barcodeFormat
|
|||||||
9fd0773f-f0ee-476c-8351-c02fb65b9360,Plus Market,EAN_13
|
9fd0773f-f0ee-476c-8351-c02fb65b9360,Plus Market,EAN_13
|
||||||
a00761f0-abf1-4690-a95a-b18e41c527d2,Pet and Pool,CODE_128
|
a00761f0-abf1-4690-a95a-b18e41c527d2,Pet and Pool,CODE_128
|
||||||
a017f67b-3483-4587-97a0-2c5c4af6834e,SchuhMarke,CODE_128
|
a017f67b-3483-4587-97a0-2c5c4af6834e,SchuhMarke,CODE_128
|
||||||
|
a0284158-4eaf-4891-9768-f93e1049413a,Десятка,EAN_13
|
||||||
a04e9cdb-caec-4f4f-bf96-9e40fd90cb09,PharmaSave,CODE_128
|
a04e9cdb-caec-4f4f-bf96-9e40fd90cb09,PharmaSave,CODE_128
|
||||||
a05edd71-80dd-4e23-87cf-5df65a193281,Andre Tan,EAN_13
|
a05edd71-80dd-4e23-87cf-5df65a193281,Andre Tan,EAN_13
|
||||||
a08ccd9d-76ce-4245-8582-24d2840ff7b9,Chanel,CODABAR
|
a08ccd9d-76ce-4245-8582-24d2840ff7b9,Chanel,CODABAR
|
||||||
@@ -6562,6 +6617,7 @@ a238f465-ff8e-4077-b5fe-a1f250ed90d9,BJ's Wholesale,UPC_A
|
|||||||
a2756aea-2ca4-4870-811e-100871fdb73e,Pratiko,EAN_13
|
a2756aea-2ca4-4870-811e-100871fdb73e,Pratiko,EAN_13
|
||||||
a29668f6-dd2e-4281-917e-49e28ebff6a1,Koloria,CODE_128
|
a29668f6-dd2e-4281-917e-49e28ebff6a1,Koloria,CODE_128
|
||||||
a2b352d9-5d5d-4080-9f52-eb6a798aa6c6,Ferlenz,CODE_128
|
a2b352d9-5d5d-4080-9f52-eb6a798aa6c6,Ferlenz,CODE_128
|
||||||
|
a322cee9-b5c6-4384-a365-c970f335cc5c,Erdkorn,QR_CODE
|
||||||
a323e0ec-2b0b-4a82-a950-11f7516f2584,OnePass,EAN_13
|
a323e0ec-2b0b-4a82-a950-11f7516f2584,OnePass,EAN_13
|
||||||
a36556e0-433a-4b16-b72c-4751a386d707,EU COVID-19 Impfzertifikat - Erstimpfung,QR_CODE
|
a36556e0-433a-4b16-b72c-4751a386d707,EU COVID-19 Impfzertifikat - Erstimpfung,QR_CODE
|
||||||
a3828047-ff01-4eb4-be10-6e4d635ca029,Leffers,ITF
|
a3828047-ff01-4eb4-be10-6e4d635ca029,Leffers,ITF
|
||||||
@@ -6590,6 +6646,7 @@ a6060858-7d83-4f60-8318-b80635013f45,Detershop,EAN_13
|
|||||||
a645973d-7e87-46ab-8c77-0380ca06ae32,Perth Zoo,CODE_39
|
a645973d-7e87-46ab-8c77-0380ca06ae32,Perth Zoo,CODE_39
|
||||||
a65e3023-fa06-47c0-bfdc-4dc79f54c825,丁丁藥局,EAN_13
|
a65e3023-fa06-47c0-bfdc-4dc79f54c825,丁丁藥局,EAN_13
|
||||||
a69154f5-16a8-4543-bb49-b7a68bb3d301,EU COVID-19 Potvrda o cijepljenju,QR_CODE
|
a69154f5-16a8-4543-bb49-b7a68bb3d301,EU COVID-19 Potvrda o cijepljenju,QR_CODE
|
||||||
|
a69d8b79-a0e7-422b-a149-64c66b23aea4,Plus More,CODE_128
|
||||||
a6aa66ba-00b8-4922-b628-98cea029c9e2,Coop,EAN_13
|
a6aa66ba-00b8-4922-b628-98cea029c9e2,Coop,EAN_13
|
||||||
a6ab3df9-10bc-47df-bed4-839fe1e908be,零食物語,CODE_128
|
a6ab3df9-10bc-47df-bed4-839fe1e908be,零食物語,CODE_128
|
||||||
a6b2c527-afbc-4e71-ae24-e5e5e270d474,Pappert,PDF_417
|
a6b2c527-afbc-4e71-ae24-e5e5e270d474,Pappert,PDF_417
|
||||||
@@ -6599,6 +6656,7 @@ a7634961-1509-4902-9b25-714ef789e926,2HB,EAN_13
|
|||||||
a78ee36a-3682-404f-9c83-307c1a6b421e,Moda Lina,EAN_13
|
a78ee36a-3682-404f-9c83-307c1a6b421e,Moda Lina,EAN_13
|
||||||
a79b9a92-9821-4824-978e-1a257abfbaff,Wormland,CODE_128
|
a79b9a92-9821-4824-978e-1a257abfbaff,Wormland,CODE_128
|
||||||
a7b3e795-4746-45a4-9c80-d331fb051632,BonBon,EAN_13
|
a7b3e795-4746-45a4-9c80-d331fb051632,BonBon,EAN_13
|
||||||
|
a7e263c3-75fd-4ac2-98ea-0e7b3e425a74,SUPEREFECTIVO,CODE_39
|
||||||
a7f1c8c5-2895-4a74-98ac-9740e7c59922,Coffeelat,QR_CODE
|
a7f1c8c5-2895-4a74-98ac-9740e7c59922,Coffeelat,QR_CODE
|
||||||
a8090907-7e2e-4038-8831-0c72adaa0664,US FashionStore,EAN_13
|
a8090907-7e2e-4038-8831-0c72adaa0664,US FashionStore,EAN_13
|
||||||
a83b00dc-1bfd-41b6-9fee-3c7f5d33fef5,Baden,EAN_13
|
a83b00dc-1bfd-41b6-9fee-3c7f5d33fef5,Baden,EAN_13
|
||||||
@@ -6628,6 +6686,7 @@ aaa82398-d78f-46d6-bfb5-a40843e94cc8,CLEVER WEAR,EAN_13
|
|||||||
aabf2ea4-170c-42e4-906b-ea1253ebf580,Родные масла,EAN_13
|
aabf2ea4-170c-42e4-906b-ea1253ebf580,Родные масла,EAN_13
|
||||||
aac03de2-6c97-4bd9-8d72-a7bba15bea6d,La capsuleria,EAN_13
|
aac03de2-6c97-4bd9-8d72-a7bba15bea6d,La capsuleria,EAN_13
|
||||||
aae4f87d-ee8c-4ff0-9cb2-88c478b7a0dc,Bonjour,EAN_13
|
aae4f87d-ee8c-4ff0-9cb2-88c478b7a0dc,Bonjour,EAN_13
|
||||||
|
aae6aab3-e5fb-47c1-b6c1-c30c3f386793,Netto,CODE_128
|
||||||
aaf65c10-a78e-4b18-8c79-371d5cdef871,La Provençale,CODE_39
|
aaf65c10-a78e-4b18-8c79-371d5cdef871,La Provençale,CODE_39
|
||||||
ab0c09c4-d1cc-40a4-8b46-f101dc376655,Trade group SMIT,CODE_128
|
ab0c09c4-d1cc-40a4-8b46-f101dc376655,Trade group SMIT,CODE_128
|
||||||
ab0c5857-5b3d-4ac3-8910-ec6b8c49a0dc,Three,EAN_13
|
ab0c5857-5b3d-4ac3-8910-ec6b8c49a0dc,Three,EAN_13
|
||||||
@@ -6636,6 +6695,7 @@ ab245924-7af0-4996-84a2-f19a6b6a62fa,Hollister,CODE_128
|
|||||||
ab37459c-4368-4684-9ffa-3ac84c69e87a,ДомДоктор,EAN_13
|
ab37459c-4368-4684-9ffa-3ac84c69e87a,ДомДоктор,EAN_13
|
||||||
ab4a36d9-9a11-4575-a6cb-1bd053c6e00f,СБА,CODE_128
|
ab4a36d9-9a11-4575-a6cb-1bd053c6e00f,СБА,CODE_128
|
||||||
ab6de5de-ea68-47d6-87ad-884e63f63f48,EU COVID-19 Удостоверение за ваксинация - Първа ваксинация,QR_CODE
|
ab6de5de-ea68-47d6-87ad-884e63f63f48,EU COVID-19 Удостоверение за ваксинация - Първа ваксинация,QR_CODE
|
||||||
|
ab73cd57-b075-425f-afe6-868e56207a42,Rewe,QR_CODE
|
||||||
ab7a0e82-ad67-40fb-a85f-83cdd10fb44a,Depot,QR_CODE
|
ab7a0e82-ad67-40fb-a85f-83cdd10fb44a,Depot,QR_CODE
|
||||||
ab9d5459-25c3-4040-bff0-b7804375065f,Забіяка,CODE_128
|
ab9d5459-25c3-4040-bff0-b7804375065f,Забіяка,CODE_128
|
||||||
aba38815-1a55-456f-84b6-0321d8d34102,Андреич,EAN_13
|
aba38815-1a55-456f-84b6-0321d8d34102,Андреич,EAN_13
|
||||||
@@ -6676,11 +6736,13 @@ b000bec7-fe1d-4a01-8134-7e93c72fcf2c,фаэтон,EAN_13
|
|||||||
b00fc66a-460d-43c9-a5f1-86b0a92b125a,Дачник,CODE_128
|
b00fc66a-460d-43c9-a5f1-86b0a92b125a,Дачник,CODE_128
|
||||||
b0210273-794f-427b-bba1-c940a7aac7df,Helen,CODE_39
|
b0210273-794f-427b-bba1-c940a7aac7df,Helen,CODE_39
|
||||||
b0382f02-57d7-4d7a-a3f1-25ea85507c64,Laser Game Evolution,CODE_128
|
b0382f02-57d7-4d7a-a3f1-25ea85507c64,Laser Game Evolution,CODE_128
|
||||||
|
b059eafb-017b-49f0-9d74-62889d8ee777,City of Whitehorse,CODE_128
|
||||||
b063caac-e875-4475-8ae6-09a0f979fb85,CLUB SALUTE,CODE_39
|
b063caac-e875-4475-8ae6-09a0f979fb85,CLUB SALUTE,CODE_39
|
||||||
b07244fc-81d3-492b-a9e5-a813a57eea9c,Faciba,EAN_8
|
b07244fc-81d3-492b-a9e5-a813a57eea9c,Faciba,EAN_8
|
||||||
b07e5b4d-d658-4ba6-9305-d497af7a19ae,Nijhof Schoenen,ITF
|
b07e5b4d-d658-4ba6-9305-d497af7a19ae,Nijhof Schoenen,ITF
|
||||||
b086ef99-b8b8-45a9-80f5-33a4cb01aba8,spudshed,CODE_128
|
b086ef99-b8b8-45a9-80f5-33a4cb01aba8,spudshed,CODE_128
|
||||||
b0973d67-75d0-45e3-9f17-0f4cb80a4824,Motozem,CODE_128
|
b0973d67-75d0-45e3-9f17-0f4cb80a4824,Motozem,CODE_128
|
||||||
|
b0cfcd52-01a5-4533-8970-6e402e52bcb0,Brikon,UPC_A
|
||||||
b0e24b5a-4034-44b9-b22b-2a008d0bcde5,Eurodì,CODE_128
|
b0e24b5a-4034-44b9-b22b-2a008d0bcde5,Eurodì,CODE_128
|
||||||
b0efcdb1-872a-44f0-961a-a97ee45c7ba8,Porsche Group,QR_CODE
|
b0efcdb1-872a-44f0-961a-a97ee45c7ba8,Porsche Group,QR_CODE
|
||||||
b0f4291f-8d68-4071-8d10-cc212b4495cc,Iper d'Oriente,EAN_13
|
b0f4291f-8d68-4071-8d10-cc212b4495cc,Iper d'Oriente,EAN_13
|
||||||
@@ -6707,12 +6769,14 @@ b2ab5d25-1981-4120-be54-86ccda399861,Vitulano,UPC_A
|
|||||||
b2b50b52-83c6-43d3-bb13-008544e2cfa5,Turčianska knižnica,EAN_13
|
b2b50b52-83c6-43d3-bb13-008544e2cfa5,Turčianska knižnica,EAN_13
|
||||||
b2b7d24b-fdbc-468b-be59-b189d4d5fdf9,Het Certificaat B.V.,QR_CODE
|
b2b7d24b-fdbc-468b-be59-b189d4d5fdf9,Het Certificaat B.V.,QR_CODE
|
||||||
b2c03313-9621-4233-9b61-5faa8d2c66e0,JILL STUART,EAN_13
|
b2c03313-9621-4233-9b61-5faa8d2c66e0,JILL STUART,EAN_13
|
||||||
|
b2e520a4-c21a-4ba0-822b-c9ac5fe79f4d,BLUME2000,QR_CODE
|
||||||
b2f90e3a-4669-4cd4-8c31-65fbb91dc26e,Advantage Pharmacy,CODE_128
|
b2f90e3a-4669-4cd4-8c31-65fbb91dc26e,Advantage Pharmacy,CODE_128
|
||||||
b31982e9-7c22-4e92-8210-e08eaa123727,Linberg,EAN_13
|
b31982e9-7c22-4e92-8210-e08eaa123727,Linberg,EAN_13
|
||||||
b334927e-9574-457c-9a1f-1b7dd5928304,Farmanoi,CODE_128
|
b334927e-9574-457c-9a1f-1b7dd5928304,Farmanoi,CODE_128
|
||||||
b359db35-9be6-4369-b796-04b47b4044be,Signorizza,EAN_13
|
b359db35-9be6-4369-b796-04b47b4044be,Signorizza,EAN_13
|
||||||
b36ae43e-8a9c-41f7-8c54-d5ae673c94f5,Bio&Co,EAN_13
|
b36ae43e-8a9c-41f7-8c54-d5ae673c94f5,Bio&Co,EAN_13
|
||||||
b43d0b6b-db53-44a7-b518-30cace59c222,British Garden Centres,CODE_39
|
b43d0b6b-db53-44a7-b518-30cace59c222,British Garden Centres,CODE_39
|
||||||
|
b4606b36-853e-4014-9524-fc07fa6e1d4a,Cantina Rauscedo,EAN_13
|
||||||
b4663d4f-dd9f-43cc-ba0e-4ce9b0beccd2,Пивлавка,EAN_13
|
b4663d4f-dd9f-43cc-ba0e-4ce9b0beccd2,Пивлавка,EAN_13
|
||||||
b4725b6c-105f-4898-a8d5-ba426ddf9508,Yamazaki,CODE_128
|
b4725b6c-105f-4898-a8d5-ba426ddf9508,Yamazaki,CODE_128
|
||||||
b472df21-8f40-44ff-a11f-bbe1d76d6d58,Company Shop Group,CODE_39
|
b472df21-8f40-44ff-a11f-bbe1d76d6d58,Company Shop Group,CODE_39
|
||||||
@@ -6720,9 +6784,11 @@ b497667e-0c92-4db6-9579-63bbe35af881,Праздничный,QR_CODE
|
|||||||
b4b5583a-3d0e-458e-b800-3b43968a8421,Pirex,CODE_128
|
b4b5583a-3d0e-458e-b800-3b43968a8421,Pirex,CODE_128
|
||||||
b4c412d7-ad0b-4afd-aed8-0cf113f445ca,Аквафор,CODE_128
|
b4c412d7-ad0b-4afd-aed8-0cf113f445ca,Аквафор,CODE_128
|
||||||
b4e4e61f-8605-45b6-b672-fce67898ba4e,Schuhkay,EAN_8
|
b4e4e61f-8605-45b6-b672-fce67898ba4e,Schuhkay,EAN_8
|
||||||
|
b4f37441-b068-443f-bbfb-fca23c9f5eec,Tuttigiorni,EAN_13
|
||||||
b4f4c3c3-4ad3-4431-9048-1d6b0e47a649,Tezenis,CODE_128
|
b4f4c3c3-4ad3-4431-9048-1d6b0e47a649,Tezenis,CODE_128
|
||||||
b52836be-a999-4bf8-ba0b-5f2b9b96a509,Youth Hostels Luxembourg,CODE_128
|
b52836be-a999-4bf8-ba0b-5f2b9b96a509,Youth Hostels Luxembourg,CODE_128
|
||||||
b54963ea-a217-434b-b0fa-e8114fd6b999,Пинта,EAN_13
|
b54963ea-a217-434b-b0fa-e8114fd6b999,Пинта,EAN_13
|
||||||
|
b54ed01d-e46b-4f24-8ce9-e08f624f2ddb,IGA,CODE_128
|
||||||
b5656988-55fb-46c8-91ab-24a5b8422549,Moja Starówka,CODE_128
|
b5656988-55fb-46c8-91ab-24a5b8422549,Moja Starówka,CODE_128
|
||||||
b5695b84-a5cf-4286-87ab-afbe9368be1f,Tulipes,CODE_39
|
b5695b84-a5cf-4286-87ab-afbe9368be1f,Tulipes,CODE_39
|
||||||
b5dc4188-75d6-4cf1-b7f2-b0e85a57bc9a,Boulangeries Maison Toulorge,CODE_128
|
b5dc4188-75d6-4cf1-b7f2-b0e85a57bc9a,Boulangeries Maison Toulorge,CODE_128
|
||||||
@@ -6757,6 +6823,7 @@ b9c4e2bd-88ee-4345-b0c4-3828e076637c,Pro-Duo Exclusief Professionals,EAN_8
|
|||||||
b9f36613-ed74-441e-abce-66d465b83594,Accademia Italiana della Cucina,CODE_39
|
b9f36613-ed74-441e-abce-66d465b83594,Accademia Italiana della Cucina,CODE_39
|
||||||
b9f3eacc-e6d9-43e2-93f0-a1e63221b1fe,Più Medical,CODE_128
|
b9f3eacc-e6d9-43e2-93f0-a1e63221b1fe,Più Medical,CODE_128
|
||||||
b9fc9d9a-da0e-4fe2-82d8-5d6672263b4b,Kačka,CODE_128
|
b9fc9d9a-da0e-4fe2-82d8-5d6672263b4b,Kačka,CODE_128
|
||||||
|
ba063e76-f5be-4e98-a549-7040a825caf7,Trendevice,CODE_128
|
||||||
ba0d23c2-0030-4b68-9bec-6daf6c0db596,Zoomarket,CODE_128
|
ba0d23c2-0030-4b68-9bec-6daf6c0db596,Zoomarket,CODE_128
|
||||||
ba119be5-7382-453c-93be-625c555aec84,Vitaminas,CODE_128
|
ba119be5-7382-453c-93be-625c555aec84,Vitaminas,CODE_128
|
||||||
ba5aca20-b0fd-417d-8739-ba9b347c8fff,Клиника ЛМС,CODE_128
|
ba5aca20-b0fd-417d-8739-ba9b347c8fff,Клиника ЛМС,CODE_128
|
||||||
@@ -6822,6 +6889,7 @@ bfbe8661-ae7a-4338-bb37-fde8cd6c57a1,Хмель и Солод,EAN_13
|
|||||||
bfcd1bbc-3671-4a2b-99d4-8195c5246644,Metalmark,EAN_13
|
bfcd1bbc-3671-4a2b-99d4-8195c5246644,Metalmark,EAN_13
|
||||||
bfe5aac8-ea2d-41e0-ba15-af949e5437d7,Каприз,EAN_13
|
bfe5aac8-ea2d-41e0-ba15-af949e5437d7,Каприз,EAN_13
|
||||||
bff24292-b2e3-4322-9462-d5ecc80ce044,Halfords Motoring Club,QR_CODE
|
bff24292-b2e3-4322-9462-d5ecc80ce044,Halfords Motoring Club,QR_CODE
|
||||||
|
bricoman-it,Bricoman,CODE_128
|
||||||
c03f0f47-ce09-4bf1-95f8-c1d0c6f1a8ca,Coop,EAN_13
|
c03f0f47-ce09-4bf1-95f8-c1d0c6f1a8ca,Coop,EAN_13
|
||||||
c043ef0e-49a9-4f10-877f-974247cf0f16,IperBiobottega,EAN_13
|
c043ef0e-49a9-4f10-877f-974247cf0f16,IperBiobottega,EAN_13
|
||||||
c0712c54-a6a6-4695-b9ba-4f5a296b66cf,Apothical,EAN_13
|
c0712c54-a6a6-4695-b9ba-4f5a296b66cf,Apothical,EAN_13
|
||||||
@@ -6871,6 +6939,7 @@ c51b31d2-056b-41a0-9347-c4d02375df01,офисмаг,EAN_13
|
|||||||
c51c692c-9e90-48fb-9047-38d3bb7fec2d,Мясницкий Ряд,CODE_128
|
c51c692c-9e90-48fb-9047-38d3bb7fec2d,Мясницкий Ряд,CODE_128
|
||||||
c53f804f-29e6-4dc0-9f66-0b9b016cdade,Möbel Borst,CODE_39
|
c53f804f-29e6-4dc0-9f66-0b9b016cdade,Möbel Borst,CODE_39
|
||||||
c54a0027-fd79-457e-80eb-e73e1332e3e9,Ni Hao,CODE_128
|
c54a0027-fd79-457e-80eb-e73e1332e3e9,Ni Hao,CODE_128
|
||||||
|
c57001e2-db2b-4f15-8c49-29c6502a86e8,Underwood Meat Company,CODE_39
|
||||||
c5846a8f-687a-4de9-a5b5-b575488ac84b,Radhe Wholesale & Retail,EAN_13
|
c5846a8f-687a-4de9-a5b5-b575488ac84b,Radhe Wholesale & Retail,EAN_13
|
||||||
c59fc214-7895-40fc-8f94-9d1d800b66d2,Conradt,CODE_39
|
c59fc214-7895-40fc-8f94-9d1d800b66d2,Conradt,CODE_39
|
||||||
c5acc06c-0b7d-4e4d-bee3-2134e2fb3b9c,Belles Fleurs,EAN_13
|
c5acc06c-0b7d-4e4d-bee3-2134e2fb3b9c,Belles Fleurs,EAN_13
|
||||||
@@ -6910,6 +6979,7 @@ c9231cc7-92f2-447c-ad84-8d167c23e9cd,Zwitserse Apotheek,CODE_128
|
|||||||
c925f293-54ee-47ba-ba48-792945c5fa94,Смайл,UPC_A
|
c925f293-54ee-47ba-ba48-792945c5fa94,Смайл,UPC_A
|
||||||
c9295edb-4acf-4e21-b931-d07d1b97e9be,Weingärtner Gartencenter,EAN_13
|
c9295edb-4acf-4e21-b931-d07d1b97e9be,Weingärtner Gartencenter,EAN_13
|
||||||
c935a5b9-03f1-4194-8aa2-39545b376065,Alpina Intimo,CODE_39
|
c935a5b9-03f1-4194-8aa2-39545b376065,Alpina Intimo,CODE_39
|
||||||
|
c94a90ff-4118-4310-bcf2-588463110b83,knihovna Rosice,CODE_128
|
||||||
c964ff0f-5ac9-4976-967f-a55c7ec72e14,Mega Pet Warehouse,CODE_128
|
c964ff0f-5ac9-4976-967f-a55c7ec72e14,Mega Pet Warehouse,CODE_128
|
||||||
c998f7d2-6403-46c5-ba21-270195e61cd3,MAX & Co,EAN_13
|
c998f7d2-6403-46c5-ba21-270195e61cd3,MAX & Co,EAN_13
|
||||||
c9d387cb-7a0f-492f-a18d-f4d559ccbade,Информат,EAN_13
|
c9d387cb-7a0f-492f-a18d-f4d559ccbade,Информат,EAN_13
|
||||||
@@ -6921,10 +6991,13 @@ ca4944a1-3892-4803-8b04-b72cd996511f,Diadema,CODE_128
|
|||||||
ca650de4-55cc-4df6-8994-3378274bebf5,Moby Dick,CODE_128
|
ca650de4-55cc-4df6-8994-3378274bebf5,Moby Dick,CODE_128
|
||||||
caa55951-513c-4dca-b0bc-3cb80d85e4f2,PANORAMICO,EAN_13
|
caa55951-513c-4dca-b0bc-3cb80d85e4f2,PANORAMICO,EAN_13
|
||||||
cab2ae0e-10bc-4c58-b159-59f4e8566ca7,Hawkesbury Library Service,CODE_39
|
cab2ae0e-10bc-4c58-b159-59f4e8566ca7,Hawkesbury Library Service,CODE_39
|
||||||
|
cad853d8-b9fa-43d6-b37d-39274a571269,Harmony Beauty,EAN_8
|
||||||
caddfc56-1d2a-454c-bece-1516b13fa249,Millstream,EAN_13
|
caddfc56-1d2a-454c-bece-1516b13fa249,Millstream,EAN_13
|
||||||
|
cae4d233-caae-43ff-aaba-affdc99c2d98,ALTERNATURA d.o.o.,EAN_13
|
||||||
cae69560-d7e6-4cb7-9ac5-95199c15f9cc,Blumenmarkt Dietrich,CODE_128
|
cae69560-d7e6-4cb7-9ac5-95199c15f9cc,Blumenmarkt Dietrich,CODE_128
|
||||||
caff4297-2ae6-4315-9329-614c8510eb7f,Вместе Выгодно,CODE_128
|
caff4297-2ae6-4315-9329-614c8510eb7f,Вместе Выгодно,CODE_128
|
||||||
cb03988e-5063-4f48-aef2-9f959f9771a2,DVV,CODE_128
|
cb03988e-5063-4f48-aef2-9f959f9771a2,DVV,CODE_128
|
||||||
|
cb12d304-17dc-45ba-be1c-5602237320ce,Vero Moda,QR_CODE
|
||||||
cb1f1114-d1ea-4987-badc-7194d1ab1ca8,Zahradní Centrum,CODE_128
|
cb1f1114-d1ea-4987-badc-7194d1ab1ca8,Zahradní Centrum,CODE_128
|
||||||
cb4ead90-a2f7-41ba-80eb-d4970bed83bd,A-Kaart,CODABAR
|
cb4ead90-a2f7-41ba-80eb-d4970bed83bd,A-Kaart,CODABAR
|
||||||
cb7b9237-0c2d-437a-ba38-fa6decca977e,萊爾富,CODE_128
|
cb7b9237-0c2d-437a-ba38-fa6decca977e,萊爾富,CODE_128
|
||||||
@@ -6947,6 +7020,7 @@ cd121cb8-988c-454f-a4ac-10365bf4aa6c,Shop Santé,CODE_128
|
|||||||
cd26930f-c1ac-4543-a23c-0b90cfa0b1f7,36.6 Здоровье,EAN_13
|
cd26930f-c1ac-4543-a23c-0b90cfa0b1f7,36.6 Здоровье,EAN_13
|
||||||
cd38f71a-1a0a-4ba7-ac1d-43974fd42e1a,Gel Market,EAN_13
|
cd38f71a-1a0a-4ba7-ac1d-43974fd42e1a,Gel Market,EAN_13
|
||||||
cd73cbfb-68f5-4d67-9411-310695558c6b,NKC,CODE_128
|
cd73cbfb-68f5-4d67-9411-310695558c6b,NKC,CODE_128
|
||||||
|
cd840f28-f17c-44ed-9ec7-15b48aa2f0e1,Knihovna Matěje Josefa Sychry,EAN_13
|
||||||
cd9d6482-a7dd-4283-a776-f0982ade57a5,Biraghi,EAN_13
|
cd9d6482-a7dd-4283-a776-f0982ade57a5,Biraghi,EAN_13
|
||||||
cdd777ae-6fa4-458d-b7e5-f7c18fff857a,EU COVID-19 Vaccinationsintyg,QR_CODE
|
cdd777ae-6fa4-458d-b7e5-f7c18fff857a,EU COVID-19 Vaccinationsintyg,QR_CODE
|
||||||
cdd87d70-3e73-48a2-a88a-5e1083e41d0a,1000 мелочей,EAN_13
|
cdd87d70-3e73-48a2-a88a-5e1083e41d0a,1000 мелочей,EAN_13
|
||||||
@@ -6968,7 +7042,9 @@ cf4f5874-aef4-492c-ae9c-b47cb2f14224,Jardinerie Loiseau,EAN_13
|
|||||||
cfce4667-ff5d-44f0-8ba7-fbc44bbf2cb5,Orange Club,CODE_128
|
cfce4667-ff5d-44f0-8ba7-fbc44bbf2cb5,Orange Club,CODE_128
|
||||||
cfd15fb5-1bac-455b-a5f7-b808390fba06,Сакура Суши,EAN_8
|
cfd15fb5-1bac-455b-a5f7-b808390fba06,Сакура Суши,EAN_8
|
||||||
cff8ca3d-3620-4098-9b8b-e181f84f6ec8,365,CODE_128
|
cff8ca3d-3620-4098-9b8b-e181f84f6ec8,365,CODE_128
|
||||||
|
d0153291-afc6-4d0f-8120-74c0b321434a,SA Guild of Actors,CODE_128
|
||||||
d0540b51-9716-4d59-bc2f-1582b044c029,Wedding Price Card,CODE_128
|
d0540b51-9716-4d59-bc2f-1582b044c029,Wedding Price Card,CODE_128
|
||||||
|
d05b520c-091a-4a9b-84de-689484927109,Lotto Niedersachsen,DATA_MATRIX
|
||||||
d0a04b4f-df54-4fcd-b410-87ea5d0986aa,EU COVID-19 Očkovací preukaz - Záber na prvé očkovanie,QR_CODE
|
d0a04b4f-df54-4fcd-b410-87ea5d0986aa,EU COVID-19 Očkovací preukaz - Záber na prvé očkovanie,QR_CODE
|
||||||
d0b9a6b8-f724-4fe7-8195-e810297505af,Chocolaterie Albèrt,EAN_13
|
d0b9a6b8-f724-4fe7-8195-e810297505af,Chocolaterie Albèrt,EAN_13
|
||||||
d1018675-b1b2-44bc-91b6-a985d744836f,La Sirena,EAN_13
|
d1018675-b1b2-44bc-91b6-a985d744836f,La Sirena,EAN_13
|
||||||
@@ -7004,6 +7080,7 @@ d403852e-7683-49f0-9de5-6e1ec5ac842d,Andreas,CODE_128
|
|||||||
d4115422-7d2e-4001-9c49-4c1353c8b88d,Secom,EAN_13
|
d4115422-7d2e-4001-9c49-4c1353c8b88d,Secom,EAN_13
|
||||||
d44c1355-2941-4393-aeb8-1a7ad7122f67,HUALI MARKET,EAN_13
|
d44c1355-2941-4393-aeb8-1a7ad7122f67,HUALI MARKET,EAN_13
|
||||||
d4502068-af6b-43ab-b9a5-46dc1899e22a,Ябко,EAN_13
|
d4502068-af6b-43ab-b9a5-46dc1899e22a,Ябко,EAN_13
|
||||||
|
d4517693-3f1c-45a6-86f2-d60ad19d04e9,U Baristu,QR_CODE
|
||||||
d4934c41-3cae-40dd-bd5c-2ca88bdcf9f5,Bau-Buy,EAN_8
|
d4934c41-3cae-40dd-bd5c-2ca88bdcf9f5,Bau-Buy,EAN_8
|
||||||
d4b67cb7-cfbf-4bac-8711-2088b8592e5f,Wara,EAN_13
|
d4b67cb7-cfbf-4bac-8711-2088b8592e5f,Wara,EAN_13
|
||||||
d4e44512-0ac2-4d1f-8603-01cd0497416c,The co-operative,CODE_128
|
d4e44512-0ac2-4d1f-8603-01cd0497416c,The co-operative,CODE_128
|
||||||
@@ -7034,6 +7111,7 @@ d6eb202f-ba2f-4253-8f5d-1dce44d13bef,Канцлер,EAN_13
|
|||||||
d71e4888-dd0b-4aac-ae5b-937b17ee4149,FQCC,EAN_13
|
d71e4888-dd0b-4aac-ae5b-937b17ee4149,FQCC,EAN_13
|
||||||
d7893d3c-c704-4daa-955b-a97f061d0138,ВАБИ САБИ,CODE_128
|
d7893d3c-c704-4daa-955b-a97f061d0138,ВАБИ САБИ,CODE_128
|
||||||
d78fc335-cab2-40d7-a56c-333f568b36b4,социалочка,EAN_13
|
d78fc335-cab2-40d7-a56c-333f568b36b4,социалочка,EAN_13
|
||||||
|
d7959c14-98b1-4187-9088-494d1a7c5f9f,Canningvale,CODE_128
|
||||||
d79a1500-206d-407a-b111-724b898aa154,Sportsman's Warehouse,CODE_39
|
d79a1500-206d-407a-b111-724b898aa154,Sportsman's Warehouse,CODE_39
|
||||||
d7a18a8f-32b5-43f5-8290-5caf4297aaf8,Halfords Colleague Discount,CODE_128
|
d7a18a8f-32b5-43f5-8290-5caf4297aaf8,Halfords Colleague Discount,CODE_128
|
||||||
d7b8deb4-4006-4223-9600-331458fade3d,Пиватерра,EAN_13
|
d7b8deb4-4006-4223-9600-331458fade3d,Пиватерра,EAN_13
|
||||||
@@ -7100,6 +7178,7 @@ dema-be,DEMA,EAN_13
|
|||||||
df2f73ec-a3c1-4169-b47e-4742bcab704d,Digizenz,QR_CODE
|
df2f73ec-a3c1-4169-b47e-4742bcab704d,Digizenz,QR_CODE
|
||||||
df3228e8-78d0-42c7-8e45-30089e5267ea,Эдисон,EAN_13
|
df3228e8-78d0-42c7-8e45-30089e5267ea,Эдисон,EAN_13
|
||||||
df53a52a-320b-41ce-8ca0-92da86fcae0c,Koutný spol,CODE_93
|
df53a52a-320b-41ce-8ca0-92da86fcae0c,Koutný spol,CODE_93
|
||||||
|
df5ad302-ae2d-47db-b9c9-b5e030d3b553,ALDI,CODE_128
|
||||||
df62dc4f-b31a-4615-a289-94410da0ce7b,Melkior,CODE_128
|
df62dc4f-b31a-4615-a289-94410da0ce7b,Melkior,CODE_128
|
||||||
df668825-ed7c-4f05-b74b-47ec6daa69f0,Breakers,CODE_39
|
df668825-ed7c-4f05-b74b-47ec6daa69f0,Breakers,CODE_39
|
||||||
dfc5ba69-483e-46ab-8951-3afc7c6d7460,Chaussexpo,CODE_128
|
dfc5ba69-483e-46ab-8951-3afc7c6d7460,Chaussexpo,CODE_128
|
||||||
@@ -7112,6 +7191,7 @@ e0491f99-5f5b-4bfa-bb1d-f7cfe688ca26,Хмельная Миля,CODE_128
|
|||||||
e0663514-cb9c-413a-ad94-8b83dde796f8,Hommy,EAN_13
|
e0663514-cb9c-413a-ad94-8b83dde796f8,Hommy,EAN_13
|
||||||
e0b022eb-bc2b-4553-8345-5869e4f644e2,Life 2.0,CODE_39
|
e0b022eb-bc2b-4553-8345-5869e4f644e2,Life 2.0,CODE_39
|
||||||
e0b2fcbb-e302-4a5e-aa4b-3991fcee7831,KanclerCom,EAN_13
|
e0b2fcbb-e302-4a5e-aa4b-3991fcee7831,KanclerCom,EAN_13
|
||||||
|
e0d0863f-c345-4e3d-baf7-853414056795,Sport 2000,EAN_13
|
||||||
e0db8778-d9a2-4b6c-bece-1b2c4bef11c0,Everyone Fitness,CODE_39
|
e0db8778-d9a2-4b6c-bece-1b2c4bef11c0,Everyone Fitness,CODE_39
|
||||||
e0eadec9-539e-4316-b9bd-9e29d59c1abb,Containers for change,CODE_128
|
e0eadec9-539e-4316-b9bd-9e29d59c1abb,Containers for change,CODE_128
|
||||||
e132948b-f6a2-44cb-b0c1-d9366151a0e2, BSTRONG,CODE_128
|
e132948b-f6a2-44cb-b0c1-d9366151a0e2, BSTRONG,CODE_128
|
||||||
@@ -7146,11 +7226,13 @@ e435e3ee-a81f-40f8-86be-2def0a610ac1,Спорт-Марафон,EAN_13
|
|||||||
e4561f48-5c68-4c2e-88ea-7eeb531a8b41,Lubo,CODE_128
|
e4561f48-5c68-4c2e-88ea-7eeb531a8b41,Lubo,CODE_128
|
||||||
e456ceeb-d76a-4684-9e2a-54935e77daa5,Tendenze Calzature,EAN_13
|
e456ceeb-d76a-4684-9e2a-54935e77daa5,Tendenze Calzature,EAN_13
|
||||||
e4dfacd9-9513-4231-b09b-51af53151edd,Дворик,EAN_13
|
e4dfacd9-9513-4231-b09b-51af53151edd,Дворик,EAN_13
|
||||||
|
e4f5270b-5a69-41a3-a39e-e3e7e4460ddd,OSCARwash,QR_CODE
|
||||||
e4f54b47-0238-4fd6-9109-d5ce424981c6,Фламинго,EAN_13
|
e4f54b47-0238-4fd6-9109-d5ce424981c6,Фламинго,EAN_13
|
||||||
e5059f27-dc93-4296-b4d5-1162b692c5ec,Северная Звезда,CODE_128
|
e5059f27-dc93-4296-b4d5-1162b692c5ec,Северная Звезда,CODE_128
|
||||||
e550a9a1-c25b-4658-a9fa-38764c584693,Mon Grand Plaisir,QR_CODE
|
e550a9a1-c25b-4658-a9fa-38764c584693,Mon Grand Plaisir,QR_CODE
|
||||||
e55b3ee0-ac34-480c-8fd3-c63c3a6ae28c,Муниципальная Аптека,EAN_13
|
e55b3ee0-ac34-480c-8fd3-c63c3a6ae28c,Муниципальная Аптека,EAN_13
|
||||||
e55f98ef-9258-4eb7-97fb-7e97d2aacdaa,COOK Kitchen,QR_CODE
|
e55f98ef-9258-4eb7-97fb-7e97d2aacdaa,COOK Kitchen,QR_CODE
|
||||||
|
e5616ded-48e7-45d7-b706-a82ef5ab9667,OROCASH,CODE_39
|
||||||
e569e534-de02-4cde-a15e-ee5f3e70794e,Partyland,CODE_128
|
e569e534-de02-4cde-a15e-ee5f3e70794e,Partyland,CODE_128
|
||||||
e570f1ac-a109-4473-8644-9b6daf701d8d,najlepšia lekáreň,CODE_128
|
e570f1ac-a109-4473-8644-9b6daf701d8d,najlepšia lekáreň,CODE_128
|
||||||
e580263e-726d-4768-a756-1cec4966dbb6,Lower Plenty Hotel,CODE_128
|
e580263e-726d-4768-a756-1cec4966dbb6,Lower Plenty Hotel,CODE_128
|
||||||
@@ -7163,10 +7245,12 @@ e6b0d8c0-2e2b-4d2c-9c3d-4420ced94877,Багира,EAN_13
|
|||||||
e6b4a59b-4d9a-42c6-aae3-5baf468c1999,Evolution,EAN_13
|
e6b4a59b-4d9a-42c6-aae3-5baf468c1999,Evolution,EAN_13
|
||||||
e6c68ae5-12f0-4c8b-b5ca-8f725874c704,Полушка,EAN_13
|
e6c68ae5-12f0-4c8b-b5ca-8f725874c704,Полушка,EAN_13
|
||||||
e6e830c8-16b9-4382-9b84-93dca76ee66c,домаркет,CODE_128
|
e6e830c8-16b9-4382-9b84-93dca76ee66c,домаркет,CODE_128
|
||||||
e6edbb92-d988-4bf3-87f8-e9684b5a3983,UFS Dispensaries,CODE_39
|
e6ece7bc-ac39-45c6-b4f3-c225719c3a0e,Mikado,CODE_128
|
||||||
|
e6edbb92-d988-4bf3-87f8-e9684b5a3983,UFS Healthcare,CODE_39
|
||||||
e6efc01d-98bf-478e-a916-f51178a01690,Erborian,CODE_128
|
e6efc01d-98bf-478e-a916-f51178a01690,Erborian,CODE_128
|
||||||
e6f32c21-af1b-4da3-9c8e-36757cccde3b,Sally Beauty,CODE_128
|
e6f32c21-af1b-4da3-9c8e-36757cccde3b,Sally Beauty,CODE_128
|
||||||
e6f9e7a3-2b1f-4ec7-8c99-8c5d16988f56,Iндустрiя краси,EAN_13
|
e6f9e7a3-2b1f-4ec7-8c99-8c5d16988f56,Iндустрiя краси,EAN_13
|
||||||
|
e71a67d2-6898-4a05-91dd-7ae19095129f,FMBrikon,UPC_A
|
||||||
e71b01e0-cdf1-4f6b-bee6-d7e2fc9b3a81,Walder Schuhe,CODE_128
|
e71b01e0-cdf1-4f6b-bee6-d7e2fc9b3a81,Walder Schuhe,CODE_128
|
||||||
e760dd3f-aeb2-42a2-bf38-5866c061c2e9,Cash Piscines,CODE_128
|
e760dd3f-aeb2-42a2-bf38-5866c061c2e9,Cash Piscines,CODE_128
|
||||||
e79c474b-4ee0-4885-a9eb-7349bdc2bfc9,KIA,CODE_39
|
e79c474b-4ee0-4885-a9eb-7349bdc2bfc9,KIA,CODE_39
|
||||||
@@ -7200,6 +7284,7 @@ eaacfd6c-54dd-4bbd-81a2-0394b7b57496,Kmart,EAN_13
|
|||||||
eab09679-f885-46a1-8f96-3f82ea3b9d82,Niké,ITF
|
eab09679-f885-46a1-8f96-3f82ea3b9d82,Niké,ITF
|
||||||
eac387cc-ae67-4874-b420-12dae0150abc,Woss,EAN_13
|
eac387cc-ae67-4874-b420-12dae0150abc,Woss,EAN_13
|
||||||
eacb1c97-e7c2-4ed6-bf64-84db244fbdd5,Медтехника Ортосалон,EAN_13
|
eacb1c97-e7c2-4ed6-bf64-84db244fbdd5,Медтехника Ортосалон,EAN_13
|
||||||
|
eacdf92e-6601-437d-af01-15156a3ee199,Barossa Co-op,QR_CODE
|
||||||
eb01f161-6d42-4ae9-b381-2ca0be34cd6f,PiùMe,CODE_128
|
eb01f161-6d42-4ae9-b381-2ca0be34cd6f,PiùMe,CODE_128
|
||||||
eb2cfbfc-1d25-4ff7-9eb6-743a74c302c4,Клеопатра,EAN_13
|
eb2cfbfc-1d25-4ff7-9eb6-743a74c302c4,Клеопатра,EAN_13
|
||||||
eb32c9d7-80b8-4147-942f-3b94ad7dd8fd,Brico Pro,EAN_13
|
eb32c9d7-80b8-4147-942f-3b94ad7dd8fd,Brico Pro,EAN_13
|
||||||
@@ -7253,6 +7338,7 @@ ef56f2fe-b4b0-4639-a0dc-db4c6bd01d06,7я,QR_CODE
|
|||||||
ef8b1a62-353b-44e3-bfba-b1331b6509ab,Evoluphar,CODE_128
|
ef8b1a62-353b-44e3-bfba-b1331b6509ab,Evoluphar,CODE_128
|
||||||
ef8f92d7-a5a1-441e-8e91-133b64da57e5,Anabel Arto,CODE_128
|
ef8f92d7-a5a1-441e-8e91-133b64da57e5,Anabel Arto,CODE_128
|
||||||
efdfda06-b4ad-4bd6-ad00-41d6ab9aeaf8,Profi Center,CODE_128
|
efdfda06-b4ad-4bd6-ad00-41d6ab9aeaf8,Profi Center,CODE_128
|
||||||
|
effbec31-0ed6-4eb3-969b-17d99d340d78, Sedici Piadina,CODE_128
|
||||||
f01c0047-5952-4805-a48b-4d455d833777,ХозСити,EAN_13
|
f01c0047-5952-4805-a48b-4d455d833777,ХозСити,EAN_13
|
||||||
f032c0d2-9f71-47fa-9574-8970a917b63b,Brianza Biblioteche,EAN_13
|
f032c0d2-9f71-47fa-9574-8970a917b63b,Brianza Biblioteche,EAN_13
|
||||||
f0637a9d-47a8-44a0-8342-c409b6c55b6b,Baby,EAN_13
|
f0637a9d-47a8-44a0-8342-c409b6c55b6b,Baby,EAN_13
|
||||||
@@ -7269,6 +7355,7 @@ f1843eba-2bcd-49dc-be2c-1444ff5cfd91,EU COVID-19 Očkovací Průkaz,QR_CODE
|
|||||||
f1df75b9-1d7a-4cba-9e9d-f4411f4ea48b,Индейкин Дом,EAN_13
|
f1df75b9-1d7a-4cba-9e9d-f4411f4ea48b,Индейкин Дом,EAN_13
|
||||||
f1e508d1-b901-45ba-9ace-b98e96c8fd38,Dalbe,EAN_13
|
f1e508d1-b901-45ba-9ace-b98e96c8fd38,Dalbe,EAN_13
|
||||||
f1f1c15f-8a75-4a18-9b01-251778c8fb45,Optika Anda,CODE_128
|
f1f1c15f-8a75-4a18-9b01-251778c8fb45,Optika Anda,CODE_128
|
||||||
|
f1fe28ce-0c9a-4b64-a455-c9f14c3fa2be,PME Legend,CODE_128
|
||||||
f2153289-2b50-463f-91d4-37ceb62f304b,Колесо2,CODE_39
|
f2153289-2b50-463f-91d4-37ceb62f304b,Колесо2,CODE_39
|
||||||
f21a2eea-3a15-4765-8ea6-3f1ec10fdd87,EU COVID-19 Vaccinationsattest - Anden vaccination Skudt,QR_CODE
|
f21a2eea-3a15-4765-8ea6-3f1ec10fdd87,EU COVID-19 Vaccinationsattest - Anden vaccination Skudt,QR_CODE
|
||||||
f2292778-e0fe-4925-b939-b4716342fa44,Tread & Miller,CODE_128
|
f2292778-e0fe-4925-b939-b4716342fa44,Tread & Miller,CODE_128
|
||||||
@@ -7283,8 +7370,10 @@ f2a92584-5ef8-4220-b0ca-7aa48decd2e4,Artex Ieper,EAN_13
|
|||||||
f2b9fa76-c78f-4d2c-821f-70678bc8d4d5,Parfümerie Becker,EAN_8
|
f2b9fa76-c78f-4d2c-821f-70678bc8d4d5,Parfümerie Becker,EAN_8
|
||||||
f2c8f722-9c5f-423d-9989-deca7901aa11,Poetry,CODE_128
|
f2c8f722-9c5f-423d-9989-deca7901aa11,Poetry,CODE_128
|
||||||
f2d3f68c-7b77-4464-91d2-3162e74bea48,Neinver,EAN_13
|
f2d3f68c-7b77-4464-91d2-3162e74bea48,Neinver,EAN_13
|
||||||
|
f2dc6f84-01cc-4e13-aec2-2ce88367a27f,Ljekarne Prima Pharme,CODE_128
|
||||||
f3189d64-dd39-468b-872d-3bb70e4d416c,The Watergardens Hotel ,CODE_128
|
f3189d64-dd39-468b-872d-3bb70e4d416c,The Watergardens Hotel ,CODE_128
|
||||||
f3287ab2-0308-42f8-92dc-3147456a4a69,НУЖНО!,EAN_13
|
f3287ab2-0308-42f8-92dc-3147456a4a69,НУЖНО!,EAN_13
|
||||||
|
f359407e-234b-4fbb-af07-f3b293a51bbb,MaRinella,EAN_13
|
||||||
f35a3882-27b2-417d-8093-e87f8f25509a,Первый Семейный,CODE_128
|
f35a3882-27b2-417d-8093-e87f8f25509a,Первый Семейный,CODE_128
|
||||||
f3852d29-47fe-4528-83cd-5ae7b31fdb0e,Kraus,PDF_417
|
f3852d29-47fe-4528-83cd-5ae7b31fdb0e,Kraus,PDF_417
|
||||||
f3e63893-802b-4e40-9480-f3fbfda0a3e4,Аптека живика,EAN_13
|
f3e63893-802b-4e40-9480-f3fbfda0a3e4,Аптека живика,EAN_13
|
||||||
@@ -7297,6 +7386,7 @@ f49e49df-1b1c-4e19-994d-3a56c693d91c,GROSBASKET,EAN_13
|
|||||||
f4aefdf7-e66f-4980-a0ee-7e6f1afcc8df,Color Line,EAN_13
|
f4aefdf7-e66f-4980-a0ee-7e6f1afcc8df,Color Line,EAN_13
|
||||||
f4b16522-478d-4c84-bfa5-e0825ebf4917,bonVito,PDF_417
|
f4b16522-478d-4c84-bfa5-e0825ebf4917,bonVito,PDF_417
|
||||||
f4d0cac3-70a0-43dc-a204-fe5fd9ab428f,KüstenCard Flexi,CODE_128
|
f4d0cac3-70a0-43dc-a204-fe5fd9ab428f,KüstenCard Flexi,CODE_128
|
||||||
|
f4e09fa3-b712-4be5-915b-002082002246,Club VW Suisse,QR_CODE
|
||||||
f5002bd9-8e95-4c11-8a7c-e3d2fae42fe3,BCAA,CODE_128
|
f5002bd9-8e95-4c11-8a7c-e3d2fae42fe3,BCAA,CODE_128
|
||||||
f5356dd8-8762-4f36-8c50-f7383eccb840,Twój Market,EAN_13
|
f5356dd8-8762-4f36-8c50-f7383eccb840,Twój Market,EAN_13
|
||||||
f546e937-86b4-40eb-98cb-9a348d5dccec,МаксиФлора,EAN_13
|
f546e937-86b4-40eb-98cb-9a348d5dccec,МаксиФлора,EAN_13
|
||||||
@@ -7332,6 +7422,7 @@ f8f0bd64-d1ae-4560-9c22-0eed805f2016,Дивный Колибри,EAN_8
|
|||||||
f8fa2370-261e-4e19-ba9c-46cd33ead64d,Agri Sud Est,EAN_13
|
f8fa2370-261e-4e19-ba9c-46cd33ead64d,Agri Sud Est,EAN_13
|
||||||
f90691bf-2879-4424-b2d5-5c09ee9ff700,Кроха,CODE_128
|
f90691bf-2879-4424-b2d5-5c09ee9ff700,Кроха,CODE_128
|
||||||
f915ed01-85f9-4a61-921b-0d33eaf6fd23,ЗооОптТорг.Рф,EAN_13
|
f915ed01-85f9-4a61-921b-0d33eaf6fd23,ЗооОптТорг.Рф,EAN_13
|
||||||
|
f9223231-26b6-4f86-9d2e-5756488c2e74,Jack & Jones,QR_CODE
|
||||||
f93e7a30-4351-47e5-b8b2-3a9546ad9bb8,BOTICINAL POWERSANTÉ,EAN_13
|
f93e7a30-4351-47e5-b8b2-3a9546ad9bb8,BOTICINAL POWERSANTÉ,EAN_13
|
||||||
f940a1b8-c04b-4541-b307-7fdc1fa8eb91,Veggie Grill,CODE_128
|
f940a1b8-c04b-4541-b307-7fdc1fa8eb91,Veggie Grill,CODE_128
|
||||||
f9447f67-140e-402d-9a27-e7c11cefebda,Eleganza,CODE_128
|
f9447f67-140e-402d-9a27-e7c11cefebda,Eleganza,CODE_128
|
||||||
@@ -7350,6 +7441,7 @@ fa009005-250b-4994-a6ad-8043b28634fe,No One,CODE_128
|
|||||||
fa11b2c7-a768-4d4b-b03d-c845df6cb341,Terra Viva,CODE_128
|
fa11b2c7-a768-4d4b-b03d-c845df6cb341,Terra Viva,CODE_128
|
||||||
fa1670c0-1713-44f0-b57d-902b278ba741,нива,EAN_13
|
fa1670c0-1713-44f0-b57d-902b278ba741,нива,EAN_13
|
||||||
fa24b789-4774-41e1-8a52-216efc9de8ba,foodmaster,QR_CODE
|
fa24b789-4774-41e1-8a52-216efc9de8ba,foodmaster,QR_CODE
|
||||||
|
fa3bdecd-2216-4d2b-b39d-fb14681f62fc,Fusion Gyms,CODE_128
|
||||||
fa5593eb-2f35-4a7f-8c69-1c4a726759be,Форум,EAN_13
|
fa5593eb-2f35-4a7f-8c69-1c4a726759be,Форум,EAN_13
|
||||||
fa7407ee-0ddd-4727-bfc7-05c206c159d0,Toto,EAN_13
|
fa7407ee-0ddd-4727-bfc7-05c206c159d0,Toto,EAN_13
|
||||||
fa7f3968-0cba-4adb-b1bb-fb2083b98b2f,Der Bäcker Eifler,QR_CODE
|
fa7f3968-0cba-4adb-b1bb-fb2083b98b2f,Der Bäcker Eifler,QR_CODE
|
||||||
@@ -7360,6 +7452,7 @@ fac3cc98-d990-4106-b17a-e8b5afe1b843,Fidenza Village,CODE_128
|
|||||||
fadd868f-b34b-4604-8a24-c7fbcd8ea573,Big Marlin,EAN_13
|
fadd868f-b34b-4604-8a24-c7fbcd8ea573,Big Marlin,EAN_13
|
||||||
fae896a0-9c57-4ff8-be30-195fbf137a0b,Lotteria degli Scontrini,CODE_128
|
fae896a0-9c57-4ff8-be30-195fbf137a0b,Lotteria degli Scontrini,CODE_128
|
||||||
fafa23c9-5cda-4fb8-aab5-6faebc6386a8,NETTO,CODE_128
|
fafa23c9-5cda-4fb8-aab5-6faebc6386a8,NETTO,CODE_128
|
||||||
|
fb340faf-4fe5-4446-b811-217d615f5514, Abbonamento Musei,QR_CODE
|
||||||
fb507b68-ecf4-4397-969a-23e2427f76f2,Veritas,EAN_13
|
fb507b68-ecf4-4397-969a-23e2427f76f2,Veritas,EAN_13
|
||||||
fb5e84a1-5e9f-4fa5-ad36-c6060927c415,BIT BY BIT,CODE_128
|
fb5e84a1-5e9f-4fa5-ad36-c6060927c415,BIT BY BIT,CODE_128
|
||||||
fb6edc61-a282-4217-9b44-ac2611b5977c,Kierrätyskeskus,CODE_128
|
fb6edc61-a282-4217-9b44-ac2611b5977c,Kierrätyskeskus,CODE_128
|
||||||
@@ -7400,8 +7493,10 @@ fe488a32-17aa-4b93-8e88-b2df166b30b8,BIEMAR BOIS,CODE_39
|
|||||||
fe54303c-8e1c-4c62-8ee6-b9485e333419,Liverpool Library,CODE_128
|
fe54303c-8e1c-4c62-8ee6-b9485e333419,Liverpool Library,CODE_128
|
||||||
fe889ad0-ea52-4069-a051-b5ceb4c4b4e7,Аптека Гермес,EAN_13
|
fe889ad0-ea52-4069-a051-b5ceb4c4b4e7,Аптека Гермес,EAN_13
|
||||||
febc239e-ed07-45ac-905d-b6048a203784,Scarpamondo,EAN_13
|
febc239e-ed07-45ac-905d-b6048a203784,Scarpamondo,EAN_13
|
||||||
|
fed489b7-1d23-4b3f-b20f-52c229575de0,Autowaspark Kuzee,QR_CODE
|
||||||
fee32f93-2fe4-4fa1-ab62-159bdc375668,Покупочка,CODE_128
|
fee32f93-2fe4-4fa1-ab62-159bdc375668,Покупочка,CODE_128
|
||||||
fefcdd70-4aa8-4f78-b9e6-1dc18f9cd731,Button Blue,EAN_13
|
fefcdd70-4aa8-4f78-b9e6-1dc18f9cd731,Button Blue,EAN_13
|
||||||
|
ff50e5dc-1f3a-43a7-a55d-4a7d96b12757,Le Guidon Niortais,CODE_128
|
||||||
ff92fe3e-1b38-409f-9701-ee7665fccb5e,EU COVID-19 Certificado de Vacinação - Primeira injeção,QR_CODE
|
ff92fe3e-1b38-409f-9701-ee7665fccb5e,EU COVID-19 Certificado de Vacinação - Primeira injeção,QR_CODE
|
||||||
ff9fd337-4765-4ad1-90a3-62e4a78dc3ec,Нияма,QR_CODE
|
ff9fd337-4765-4ad1-90a3-62e4a78dc3ec,Нияма,QR_CODE
|
||||||
ffa57152-01bd-48bc-be45-46bac303c450,Мед Сервис,CODE_128
|
ffa57152-01bd-48bc-be45-46bac303c450,Мед Сервис,CODE_128
|
||||||
|
|||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user