Compare commits
1125 Commits
4.1.1-beta
...
master
Author | SHA1 | Date | |
---|---|---|---|
007e4404c1 | |||
![]() |
4bc578ef06 | ||
8a3002ade1 | |||
ca06073f37 | |||
52dd14d10b | |||
dd787effbc | |||
![]() |
7eac57b94d | ||
![]() |
ee0ba71c8f | ||
![]() |
ab64faeadb | ||
![]() |
1460f2aa4e | ||
![]() |
8925b3a5f8 | ||
eb0308cbed | |||
c90e01737c | |||
05c406657a | |||
fc402eef16 | |||
![]() |
e9cfc7bbfc | ||
![]() |
7e711d64e8 | ||
![]() |
80008d8f00 | ||
81267d54e3 | |||
![]() |
0dc921c603 | ||
![]() |
4e23b745f3 | ||
![]() |
ce91b47ad1 | ||
![]() |
250ed2f105 | ||
![]() |
4cde28cd72 | ||
![]() |
df63c258b3 | ||
![]() |
1b6992132e | ||
![]() |
55350b0e5d | ||
![]() |
8d532a442d | ||
![]() |
cc4091e165 | ||
![]() |
1f05f1d091 | ||
![]() |
cc04293ead | ||
e1cae2f698 | |||
84a3e46ff7 | |||
a9360c6dc8 | |||
5d9c975b98 | |||
0b47155862 | |||
8662775e21 | |||
![]() |
2ac948539c | ||
b93ea7193d | |||
b6b5c71cef | |||
![]() |
0cf62aea86 | ||
![]() |
f2f3366e2c | ||
4b7845c31e | |||
08519ebf27 | |||
![]() |
894b3ac5b5 | ||
![]() |
4135503a30 | ||
![]() |
7f9bd34a82 | ||
![]() |
64dfe4a814 | ||
![]() |
6568e3c588 | ||
![]() |
1109c08cf5 | ||
![]() |
9cfbcc932b | ||
![]() |
843224f348 | ||
![]() |
b5ee1afe05 | ||
![]() |
67649cc5fd | ||
![]() |
ee0e724b8a | ||
![]() |
d6e783f375 | ||
![]() |
1e89359333 | ||
![]() |
24f8804f60 | ||
![]() |
300b951014 | ||
![]() |
8b49007cca | ||
![]() |
4101dc7c17 | ||
![]() |
939cc6bbe2 | ||
![]() |
13e00f8462 | ||
![]() |
7d89ea0f5d | ||
![]() |
fe4d7b318e | ||
![]() |
0464624648 | ||
![]() |
d09f3772a3 | ||
![]() |
a7ff9e7825 | ||
![]() |
bc3f8cfff9 | ||
![]() |
063cc99d1a | ||
![]() |
739e75160d | ||
![]() |
889d0d6057 | ||
![]() |
f5a7820991 | ||
![]() |
580f93fa6f | ||
![]() |
654c12e9fb | ||
![]() |
7ab14756a6 | ||
![]() |
0a02d4e831 | ||
![]() |
ac3429f30f | ||
![]() |
6388650c77 | ||
![]() |
728534170c | ||
![]() |
f4d840462e | ||
![]() |
b08b127895 | ||
![]() |
d41872e6e2 | ||
![]() |
0602c2ea3f | ||
![]() |
afcff10862 | ||
![]() |
9e187fc04c | ||
![]() |
7d5b97fe00 | ||
![]() |
fd3b21b8e6 | ||
![]() |
071f682f77 | ||
![]() |
8723f75889 | ||
![]() |
c9666f5333 | ||
![]() |
a218b62742 | ||
![]() |
41b1d899d0 | ||
![]() |
ad18efd340 | ||
![]() |
cf0dc50df5 | ||
![]() |
994d3085bb | ||
![]() |
6292708ba0 | ||
![]() |
a26ca67892 | ||
![]() |
f2d6b6079e | ||
![]() |
4faee05823 | ||
![]() |
864701fd1e | ||
![]() |
80d50cd82b | ||
![]() |
521f609707 | ||
![]() |
96ff70d7d5 | ||
![]() |
658bfe38a3 | ||
![]() |
a74b2cd3d7 | ||
![]() |
414755c777 | ||
![]() |
3708b917c4 | ||
![]() |
986b13de68 | ||
![]() |
d391448870 | ||
![]() |
38d9b5f3b2 | ||
![]() |
2dafe5ed02 | ||
![]() |
939761695f | ||
![]() |
f1ba5230fc | ||
![]() |
a50f449f7c | ||
![]() |
fe3ed31830 | ||
![]() |
0ec33f8631 | ||
![]() |
6634010b97 | ||
![]() |
816ddf58a2 | ||
![]() |
d7741ca1c4 | ||
![]() |
a2cbe5d90b | ||
![]() |
7919d0e284 | ||
![]() |
92fe3b7dcd | ||
![]() |
63fd37c31f | ||
![]() |
aa10f0672e | ||
![]() |
a3694b59ec | ||
![]() |
9ecee0bb01 | ||
![]() |
b9e9bef182 | ||
51297ddc09 | |||
4d64705e59 | |||
![]() |
d642f19834 | ||
![]() |
51b25395c1 | ||
![]() |
4474562538 | ||
d93dce7857 | |||
d6fe2812c7 | |||
ed0f69d155 | |||
c4a17633f8 | |||
d426d4866a | |||
89adf5a26f | |||
117ee63b18 | |||
d27b5f8a51 | |||
![]() |
9671c250b9 | ||
2d5c270641 | |||
eda093a9b5 | |||
![]() |
544e9c214a | ||
![]() |
5c3dbcbd52 | ||
![]() |
cd5f86db00 | ||
![]() |
9adfe636d6 | ||
210e8ce0d4 | |||
b1a7deca4a | |||
fa96770c9c | |||
5be67693c2 | |||
9ee5e8a35e | |||
3372c1ffde | |||
94989687fa | |||
![]() |
52b9b4f5db | ||
![]() |
75a2fa3726 | ||
![]() |
2c1bde9398 | ||
![]() |
fd9794f3bf | ||
![]() |
a673d3f1b3 | ||
![]() |
f2c8e869b5 | ||
![]() |
b4f2d38e99 | ||
![]() |
d842b2d588 | ||
f4fd9a3c2f | |||
a215bd7313 | |||
3211279a53 | |||
2d4e281682 | |||
148f945f3b | |||
![]() |
aaa783ac45 | ||
![]() |
d70f92d4e5 | ||
![]() |
0f08400d63 | ||
![]() |
140a8f8e78 | ||
17c9d1c447 | |||
d8e23d8fa9 | |||
c4491eb0c6 | |||
4945468e02 | |||
![]() |
9845ae9539 | ||
![]() |
3a2fc67cb2 | ||
![]() |
148a43663c | ||
![]() |
4a45131359 | ||
![]() |
4128018a59 | ||
![]() |
0d509c90b1 | ||
![]() |
3ef58974c9 | ||
![]() |
df75fadfea | ||
![]() |
4254a7998a | ||
![]() |
17faa545e5 | ||
![]() |
506fb82dd0 | ||
![]() |
bc8eb1910e | ||
![]() |
fd1b15df77 | ||
![]() |
dd86c7436a | ||
![]() |
8860a0269c | ||
![]() |
ce02dda46c | ||
![]() |
f16a52d0fb | ||
![]() |
cc8ce40222 | ||
![]() |
b6a933fe85 | ||
![]() |
767eba3776 | ||
![]() |
320499a466 | ||
![]() |
52c2f3090d | ||
![]() |
d4df0170a3 | ||
![]() |
796b35e27c | ||
![]() |
051cdc895e | ||
![]() |
e23bdac995 | ||
![]() |
de0e8e1317 | ||
![]() |
b5b0046ef5 | ||
![]() |
92f16e054d | ||
![]() |
9470c848bf | ||
![]() |
c40026e594 | ||
![]() |
93eaa5a74b | ||
![]() |
5503b41be3 | ||
![]() |
bd716e1717 | ||
![]() |
7f8b716712 | ||
![]() |
1a7b59f2fc | ||
![]() |
9f62e44b52 | ||
![]() |
7c34552aa5 | ||
![]() |
57d784443a | ||
![]() |
e73ee5a1f2 | ||
![]() |
4277f0662a | ||
![]() |
604e9dcaad | ||
![]() |
c0dd84c665 | ||
7dc33d3b87 | |||
9bee0daeb5 | |||
![]() |
dd8a4430a9 | ||
47934620ea | |||
9e815aff2f | |||
d8393b24e1 | |||
1abe990847 | |||
3a92716019 | |||
9b947256c8 | |||
0586da3742 | |||
9d863e1ec0 | |||
![]() |
e080800aa8 | ||
e6f7728e42 | |||
ac11da1744 | |||
cad7bd19dc | |||
e1870b08e5 | |||
![]() |
7842aa447f | ||
![]() |
a23b2d63e5 | ||
![]() |
58faeb4fa2 | ||
![]() |
48e64d7761 | ||
![]() |
aef8f78d16 | ||
![]() |
2b36528327 | ||
![]() |
918252ae4b | ||
![]() |
63c650b68d | ||
![]() |
090b0ccc85 | ||
![]() |
0768dc9404 | ||
![]() |
d36351d76b | ||
![]() |
45a8e0dd71 | ||
![]() |
94da2a9756 | ||
![]() |
37aa1858a8 | ||
![]() |
82f8a489dd | ||
![]() |
96b69b89ae | ||
![]() |
d9da7625ed | ||
![]() |
c016258fb9 | ||
![]() |
855e48aea8 | ||
![]() |
b7e83d10dc | ||
![]() |
45ffdff324 | ||
![]() |
cd0729fa5e | ||
![]() |
30cfdfe784 | ||
16f2593d22 | |||
14ab0c4ce3 | |||
9eb1317143 | |||
910a38650d | |||
a1f166980d | |||
0598b94ab9 | |||
1310ad4f2e | |||
![]() |
4d32500d90 | ||
![]() |
67558b76a3 | ||
![]() |
7ab8914076 | ||
![]() |
b0eb819afa | ||
![]() |
416f42f42d | ||
![]() |
a319b26d82 | ||
![]() |
84537fdcef | ||
![]() |
30f24d5d33 | ||
![]() |
8c118eedc1 | ||
![]() |
4dbe3d07a3 | ||
![]() |
f1b1b23234 | ||
![]() |
540e4d2812 | ||
![]() |
93dd275969 | ||
![]() |
c79c45705d | ||
![]() |
ce31182a5c | ||
![]() |
174046f954 | ||
![]() |
3fc14ffbb8 | ||
![]() |
f579270886 | ||
![]() |
365bd7957e | ||
![]() |
d24c4ec187 | ||
![]() |
75ba5405bb | ||
![]() |
e0bf8ac5e5 | ||
![]() |
1a3d78a5bc | ||
![]() |
c205bc592c | ||
![]() |
308c8f966f | ||
![]() |
139ac28be6 | ||
![]() |
bbe53b8c01 | ||
![]() |
56a0c2c02e | ||
![]() |
122a5ea210 | ||
![]() |
aaa3d79b30 | ||
![]() |
cacf566794 | ||
![]() |
9b29ede6eb | ||
![]() |
9e9e46d0f8 | ||
![]() |
9901251cfc | ||
![]() |
e7ec93132d | ||
![]() |
7cec2ff525 | ||
![]() |
2ca8f4b8fe | ||
![]() |
ae66a462e7 | ||
![]() |
c85f15eb49 | ||
![]() |
e04cc5ea2b | ||
![]() |
3ed456c01f | ||
![]() |
f64b1360d9 | ||
![]() |
c9db496e59 | ||
![]() |
d915200faa | ||
![]() |
32abfe7037 | ||
![]() |
3db67b2288 | ||
![]() |
7488c9abdd | ||
![]() |
49ebb8b1c3 | ||
![]() |
55befca3aa | ||
![]() |
0cc3aa07ad | ||
![]() |
0a1c5bbfd2 | ||
![]() |
a17600c4ea | ||
![]() |
6d0315e4e6 | ||
![]() |
25a72da3a8 | ||
![]() |
6d8d11cd87 | ||
![]() |
3b1e345f14 | ||
![]() |
6b8708e1e3 | ||
![]() |
7edde06c11 | ||
![]() |
6803ac8642 | ||
![]() |
6b99edca94 | ||
![]() |
24384e7488 | ||
![]() |
14df196f34 | ||
![]() |
597c50bbf6 | ||
![]() |
96ed4d0b46 | ||
![]() |
39eb435817 | ||
![]() |
587c16fb1f | ||
![]() |
c4e7ebc020 | ||
![]() |
816b14e735 | ||
![]() |
56c87b146b | ||
![]() |
2e14d52c25 | ||
![]() |
d217265ae7 | ||
![]() |
5f27432518 | ||
![]() |
5f6ad03335 | ||
![]() |
8f05dc4ed4 | ||
![]() |
0b96cd9080 | ||
![]() |
f346d9b8ef | ||
![]() |
d5f583a0d2 | ||
![]() |
4abd16ab76 | ||
![]() |
ae17e9f8b7 | ||
![]() |
b9b43fe961 | ||
![]() |
a4b04798f2 | ||
![]() |
703c5f8691 | ||
![]() |
93d56fec28 | ||
![]() |
b7b3a37b52 | ||
![]() |
b6fbfd5756 | ||
![]() |
ca544082ba | ||
![]() |
bd30a77fc2 | ||
![]() |
65fbfb3dca | ||
![]() |
ab56de53eb | ||
![]() |
30a9a23b86 | ||
![]() |
6ba105f08c | ||
![]() |
d84a9892c8 | ||
![]() |
d0599bed7d | ||
![]() |
ca177ad69f | ||
![]() |
05ded4da52 | ||
![]() |
3cbfee7220 | ||
![]() |
ee0c2d708c | ||
![]() |
8115d89bf5 | ||
![]() |
78e6408962 | ||
![]() |
bc61b61ae1 | ||
![]() |
d746ebc143 | ||
![]() |
f2be0ee6d4 | ||
![]() |
156466235d | ||
![]() |
677303fa2c | ||
![]() |
1b95afdfc2 | ||
![]() |
57a4c65d2c | ||
![]() |
3868e70b23 | ||
![]() |
d204af42db | ||
![]() |
89604a8b4f | ||
![]() |
cdde5c11ee | ||
![]() |
10d1d1e0a0 | ||
![]() |
96b84e2ddd | ||
![]() |
3e20977195 | ||
![]() |
cad186e00a | ||
![]() |
e1c409c621 | ||
![]() |
8224976202 | ||
![]() |
9f26845cda | ||
![]() |
a08c9b221b | ||
![]() |
df2de39109 | ||
![]() |
1058608034 | ||
![]() |
95cad1ed70 | ||
![]() |
ee0613d720 | ||
![]() |
25a92f3714 | ||
![]() |
91cd263112 | ||
![]() |
58065575bf | ||
![]() |
71f8970300 | ||
![]() |
28ce83765a | ||
![]() |
fe2215d7b7 | ||
![]() |
236c34dbe6 | ||
![]() |
02af238c1b | ||
![]() |
d3cd22ec7c | ||
![]() |
7ac8c55b17 | ||
![]() |
d740dea1f7 | ||
![]() |
cb4c551c47 | ||
![]() |
c0589cba5c | ||
![]() |
f0b9dfa1e6 | ||
![]() |
8d90e81de7 | ||
![]() |
ef8d216eff | ||
![]() |
e33728a071 | ||
![]() |
1388ba58c1 | ||
![]() |
73db67c4e3 | ||
![]() |
697ed43e5a | ||
![]() |
38ee2d30f5 | ||
![]() |
a35c608a4c | ||
![]() |
3f537976e9 | ||
![]() |
90debfa60c | ||
![]() |
51d8ef7707 | ||
![]() |
3f782e762a | ||
![]() |
84717433df | ||
![]() |
b5ead56c4e | ||
![]() |
896d414032 | ||
![]() |
a5ecf67acd | ||
![]() |
c731c32001 | ||
![]() |
86a656e25d | ||
![]() |
6f6473ceee | ||
![]() |
cdde458fe7 | ||
![]() |
fd58c3595e | ||
![]() |
02a078df2a | ||
![]() |
ce8173891b | ||
![]() |
cb8db8670f | ||
![]() |
6dccd1f6eb | ||
![]() |
044ce0705a | ||
![]() |
5b053c645c | ||
![]() |
ee386d085c | ||
![]() |
329ad57e36 | ||
![]() |
6f694e8abe | ||
![]() |
ee67cd5362 | ||
![]() |
feaa3468d7 | ||
![]() |
4a8d42fe4b | ||
![]() |
abc595357f | ||
![]() |
a51d65f7cc | ||
![]() |
5849775660 | ||
![]() |
146a31d561 | ||
![]() |
2e49c78ea0 | ||
![]() |
3543aa40e6 | ||
![]() |
fc52bda69c | ||
![]() |
8762aa467b | ||
![]() |
feace62dcb | ||
![]() |
d5127e8a56 | ||
![]() |
23563bc4f9 | ||
![]() |
6a7087d4f5 | ||
![]() |
c012cdff64 | ||
![]() |
ed556d2bd4 | ||
![]() |
6662d4a48f | ||
![]() |
05f4215faf | ||
![]() |
d685a64f78 | ||
![]() |
a024ac674d | ||
![]() |
6416af3928 | ||
![]() |
7a79122b5a | ||
![]() |
3ab43d84fe | ||
![]() |
fdd4a9700c | ||
![]() |
3e140ce0ed | ||
![]() |
dfe8899b21 | ||
![]() |
7f88c8c3e1 | ||
![]() |
98efdfd8cf | ||
![]() |
a762cf70f6 | ||
![]() |
8f39fb267b | ||
![]() |
498ba2d69e | ||
![]() |
4887826a36 | ||
![]() |
1ed7661774 | ||
![]() |
06163f0ef8 | ||
![]() |
a6563f9a7e | ||
![]() |
97049bae46 | ||
![]() |
5340fc2ed4 | ||
![]() |
d9ec195233 | ||
![]() |
4a858de9da | ||
![]() |
81e57d2f38 | ||
![]() |
114168c1c1 | ||
![]() |
f6a096a322 | ||
![]() |
5bc51ec96b | ||
![]() |
72208680ff | ||
![]() |
b5fc1b911b | ||
![]() |
161f61ea96 | ||
![]() |
1757e16dea | ||
![]() |
9a7140744e | ||
![]() |
d984ee0a42 | ||
![]() |
ffbcefacbd | ||
![]() |
461338d99b | ||
![]() |
ee64468a8f | ||
![]() |
5ae35fb06e | ||
![]() |
2245fc368d | ||
a805d8292f | |||
14bcb62184 | |||
9ef0f1f1a2 | |||
b84b3e39d9 | |||
61bc1f4d72 | |||
c83f512382 | |||
d8d93efb20 | |||
778850d8ee | |||
763b629ddd | |||
1a25ebd1f2 | |||
76083b679f | |||
7a43179b47 | |||
2a89b6dc58 | |||
![]() |
3e7f38666e | ||
acde0b6951 | |||
![]() |
e188536d65 | ||
625ef9ce37 | |||
52530197c3 | |||
bf1bb53c96 | |||
49b98e8b10 | |||
7d6d659933 | |||
a762ac5fc2 | |||
a2b2a7956b | |||
5940eae3f6 | |||
![]() |
9f8f888f91 | ||
![]() |
be4f87184e | ||
![]() |
18e557cc1b | ||
![]() |
be21eac230 | ||
![]() |
6b3372e41a | ||
![]() |
daf45760ec | ||
![]() |
423be26cb5 | ||
![]() |
941ed5e0d1 | ||
![]() |
3a2b3fa568 | ||
![]() |
9d49ee0eae | ||
![]() |
9d49ec3972 | ||
![]() |
4262a7a413 | ||
![]() |
6a79e8b3db | ||
![]() |
a5f924ae77 | ||
![]() |
561b2e4b53 | ||
![]() |
2bdc26cb21 | ||
![]() |
dc380a9777 | ||
![]() |
d5ce47c82c | ||
![]() |
22ff003125 | ||
eb50493cc5 | |||
73d1215b23 | |||
45f8cf2248 | |||
6242f7cc2e | |||
1bdb2934f5 | |||
115c35cec1 | |||
7cd6d7da2d | |||
fd8ebb98a5 | |||
f02bacc877 | |||
5d250a4c39 | |||
7fdae2b25e | |||
e08f5253ce | |||
9fed6a0dda | |||
d4f70ce67d | |||
6afd09945b | |||
806355099e | |||
fa6aa62e56 | |||
![]() |
9d2bd1b37a | ||
![]() |
dc250e449f | ||
![]() |
05c10df239 | ||
![]() |
2ae0d9aa37 | ||
![]() |
b04c8509a7 | ||
![]() |
9d4c99acc7 | ||
![]() |
c5a564a4cd | ||
![]() |
1b16e0ffd4 | ||
![]() |
39b892523b | ||
![]() |
649f10f5b8 | ||
![]() |
e06b92fde7 | ||
![]() |
f1429faf3f | ||
![]() |
7f074c67e3 | ||
![]() |
917d6d01db | ||
![]() |
9ea0085ddb | ||
![]() |
a199f919b6 | ||
![]() |
5e63c73c3b | ||
![]() |
dfd3f42550 | ||
![]() |
b8e4c4ea3a | ||
![]() |
5522856f47 | ||
![]() |
1933b84f68 | ||
![]() |
203024b154 | ||
![]() |
8488921075 | ||
![]() |
5966594b44 | ||
![]() |
5d0b49b1c7 | ||
![]() |
d4721a5b7a | ||
![]() |
a552158ed4 | ||
![]() |
de5f347339 | ||
![]() |
9e8009fe06 | ||
![]() |
b2db424d20 | ||
![]() |
e2ac4303f3 | ||
![]() |
0dc9a0640a | ||
![]() |
7363fc81cb | ||
![]() |
629e7e92a4 | ||
![]() |
48f6a23a9b | ||
![]() |
e6fc1fd656 | ||
![]() |
e5c73e6dcd | ||
![]() |
fd5d636930 | ||
![]() |
f226734468 | ||
![]() |
d72c6347a3 | ||
![]() |
f099d3012e | ||
![]() |
7e09fe7fff | ||
![]() |
7c9b12301b | ||
![]() |
35d927f09e | ||
![]() |
74df76e9b0 | ||
![]() |
8494e7a753 | ||
![]() |
6eff27d4d8 | ||
![]() |
28d39375ba | ||
![]() |
c1965e2453 | ||
![]() |
91b293d211 | ||
595b0ab211 | |||
efa19c672a | |||
ed80d3fc62 | |||
7736c2d2ff | |||
3742f1f477 | |||
12278c350f | |||
![]() |
28aa153414 | ||
![]() |
21ebbf224b | ||
![]() |
6dd2fa100a | ||
![]() |
b4df085936 | ||
![]() |
1bdfd53753 | ||
73d596c645 | |||
8c46b941ae | |||
c4d05fe91f | |||
![]() |
ac355ef586 | ||
![]() |
346a64d3bc | ||
![]() |
b98e4c0347 | ||
![]() |
9b232a4a97 | ||
![]() |
1ec226511c | ||
![]() |
673f02cdd0 | ||
![]() |
edd7ffce02 | ||
![]() |
87c4416b50 | ||
![]() |
7efa770ed7 | ||
929d3727f8 | |||
0e4c715211 | |||
![]() |
f9768170b3 | ||
![]() |
f6ff98c5ed | ||
![]() |
0f97dddcd8 | ||
![]() |
b73cc62c16 | ||
![]() |
51ececc34a | ||
![]() |
88daf43c3a | ||
![]() |
32c5e8ae91 | ||
![]() |
7ebc470a7b | ||
![]() |
010867260c | ||
![]() |
0b4d14c223 | ||
![]() |
31d5556142 | ||
![]() |
b83689a20b | ||
![]() |
0e0ab56bd6 | ||
![]() |
d65b5de195 | ||
![]() |
9a9749d986 | ||
![]() |
299f037cce | ||
![]() |
cc4c3851fb | ||
![]() |
063729096a | ||
![]() |
f64b3c4135 | ||
![]() |
25464eff79 | ||
![]() |
312c140f7d | ||
![]() |
c2df28c1c7 | ||
![]() |
b33d6560d3 | ||
![]() |
715fed2764 | ||
![]() |
55a9a41722 | ||
![]() |
1b17e0d0ce | ||
![]() |
9c43de08db | ||
![]() |
c214705368 | ||
![]() |
c5456d442f | ||
![]() |
6105848d8e | ||
cc9d83b4ae | |||
![]() |
25bec328fa | ||
![]() |
310636413e | ||
![]() |
ae1f3f9389 | ||
![]() |
c5526a41d3 | ||
![]() |
2ff2ae7d98 | ||
![]() |
4b6ba27174 | ||
![]() |
aac0ceb577 | ||
![]() |
1171e3aaaf | ||
![]() |
0d1c7b7143 | ||
![]() |
304e0ea877 | ||
![]() |
4a1aa75cb2 | ||
![]() |
50bb647d8f | ||
![]() |
0f4080c166 | ||
38380462f1 | |||
8b3358aa13 | |||
![]() |
cbbf9b42b2 | ||
![]() |
c9362dcb8b | ||
![]() |
9b0beff9de | ||
![]() |
5eec61a7a9 | ||
![]() |
85f5c408c0 | ||
![]() |
2c333d4cc2 | ||
![]() |
449b1d63c5 | ||
![]() |
a727059945 | ||
![]() |
3b5bdad158 | ||
![]() |
2560464f8d | ||
![]() |
a055de9046 | ||
![]() |
41a5f7c539 | ||
![]() |
c3d02928c1 | ||
![]() |
0d18309583 | ||
![]() |
120215d3b8 | ||
![]() |
a8a94f5f88 | ||
![]() |
e3532c5787 | ||
![]() |
d647776d6c | ||
![]() |
35dc47fd62 | ||
![]() |
404933168f | ||
![]() |
a158b2418e | ||
![]() |
39bd08f1ea | ||
![]() |
06247a160d | ||
![]() |
4b2b90be8e | ||
![]() |
dee6a13b1c | ||
![]() |
63c21c087f | ||
![]() |
a7eda9faf9 | ||
![]() |
cccda1aadb | ||
![]() |
076d6a12a2 | ||
![]() |
2ff8974cc9 | ||
![]() |
161c9943c4 | ||
![]() |
fc2347e707 | ||
![]() |
8c654beb05 | ||
![]() |
23b6e1b8c7 | ||
![]() |
ea44f74cc4 | ||
![]() |
67dbe64683 | ||
![]() |
25234801df | ||
![]() |
13a1ff4f7c | ||
![]() |
e31daef26b | ||
![]() |
f3f4f7915d | ||
![]() |
69819ed692 | ||
![]() |
a93f1c2422 | ||
![]() |
a0975d635d | ||
![]() |
f03c4d4e62 | ||
![]() |
1d92a5336e | ||
![]() |
bf81680b56 | ||
![]() |
18892c6156 | ||
![]() |
8b91e0e1d3 | ||
![]() |
773a8f61e9 | ||
![]() |
a435f56f2e | ||
![]() |
6e23397905 | ||
![]() |
458971392e | ||
![]() |
6f17f69281 | ||
![]() |
5b9187d545 | ||
![]() |
648fac6904 | ||
![]() |
33919fe155 | ||
![]() |
66431ef7d3 | ||
![]() |
5b3c47fa19 | ||
![]() |
2d5160b232 | ||
![]() |
a2cf76cb88 | ||
![]() |
8d84b2c65f | ||
![]() |
c55f4058c7 | ||
![]() |
3b78711478 | ||
![]() |
a061ebd1e9 | ||
![]() |
4ed3cfc90e | ||
![]() |
1cd1d7ae88 | ||
![]() |
4b0726f939 | ||
![]() |
c6633be301 | ||
![]() |
11d99a4cf9 | ||
![]() |
a53b8c7fdb | ||
![]() |
1483c39029 | ||
![]() |
5a39f2053f | ||
![]() |
6fb6732a2d | ||
![]() |
bd00156ece | ||
![]() |
a6b9150983 | ||
![]() |
587811778d | ||
![]() |
4e5695a118 | ||
8a2275e56e | |||
a8c44c3096 | |||
![]() |
da62b1bfa9 | ||
![]() |
8bbeb11b59 | ||
![]() |
caee521edd | ||
![]() |
b607096317 | ||
![]() |
d8b85ba1b4 | ||
![]() |
23673a34d8 | ||
![]() |
af13555afb | ||
![]() |
de1e9fd8f4 | ||
![]() |
23af433e5d | ||
![]() |
6323b567de | ||
![]() |
fd603d8c9e | ||
![]() |
05e9ee97ca | ||
![]() |
0bf6feb731 | ||
![]() |
450d2bb3fa | ||
![]() |
0eabf19d23 | ||
![]() |
45bf766d1c | ||
![]() |
4a6fabd47d | ||
![]() |
ec5880290a | ||
![]() |
5f49633867 | ||
![]() |
cce6bba19d | ||
![]() |
f5d8c61a62 | ||
![]() |
6ec9f84eab | ||
![]() |
34ca1c51a0 | ||
![]() |
52b1b303bd | ||
![]() |
c98e692546 | ||
![]() |
1042f6de02 | ||
![]() |
2ed822e1da | ||
![]() |
b5634ed59f | ||
![]() |
187f0c0216 | ||
![]() |
71e9bbc830 | ||
![]() |
6297b9cc24 | ||
![]() |
e62fd40f88 | ||
![]() |
e010242469 | ||
![]() |
5476397af6 | ||
![]() |
f238b86dc7 | ||
![]() |
f5ad70fb28 | ||
![]() |
697c003678 | ||
![]() |
ffbcc302ea | ||
![]() |
1ded31491a | ||
![]() |
f8e2da3345 | ||
![]() |
8c77a0a323 | ||
![]() |
88717d5925 | ||
![]() |
6cb86245cb | ||
![]() |
8f393cd9c5 | ||
![]() |
38d892d9a1 | ||
![]() |
fb70b2be38 | ||
![]() |
a5e368d983 | ||
![]() |
de3fa0c71d | ||
![]() |
cbece0e841 | ||
![]() |
ac77f26eb2 | ||
![]() |
52b4a9429b | ||
![]() |
588bc2567e | ||
![]() |
d2d36c3d0f | ||
![]() |
8ef2bee62e | ||
![]() |
30bde8b040 | ||
![]() |
042522dc5a | ||
fdc9276170 | |||
413494a9ac | |||
![]() |
8e3996e2f0 | ||
![]() |
f46610314d | ||
![]() |
fdc6209656 | ||
![]() |
6def864b1f | ||
![]() |
fc40793534 | ||
![]() |
f533c5d4f5 | ||
![]() |
3a44a2f9bc | ||
![]() |
1bf512991b | ||
fb8b3ae73f | |||
![]() |
50d2d44ac2 | ||
![]() |
b929766b14 | ||
![]() |
d34371bfff | ||
![]() |
6bac82f7d6 | ||
![]() |
fc3f538e6b | ||
![]() |
939e33feeb | ||
![]() |
a175a9ea1c | ||
![]() |
969aec0f11 | ||
![]() |
871c93050c | ||
![]() |
7f9c22bdcd | ||
![]() |
c06e9bc807 | ||
![]() |
7b7f603d9c | ||
![]() |
f4a6a0ceb0 | ||
![]() |
adc8deffa9 | ||
![]() |
3484230ced | ||
40740b80d0 | |||
20f20218e0 | |||
![]() |
68c9745ce0 | ||
70c8ac1876 | |||
![]() |
bdfec4230b | ||
![]() |
093063b438 | ||
![]() |
bcab128332 | ||
![]() |
56500406e5 | ||
![]() |
9f5e57eec6 | ||
![]() |
5079e0cb29 | ||
![]() |
646948012d | ||
![]() |
399069537f | ||
![]() |
1c49ffd57f | ||
![]() |
8df3623d91 | ||
![]() |
61ad26e047 | ||
![]() |
51a6492477 | ||
7d26a8bc33 | |||
![]() |
e243b5c186 | ||
![]() |
043785fe35 | ||
![]() |
72332b5000 | ||
![]() |
e73aa6c1b0 | ||
![]() |
3410e410d2 | ||
![]() |
aba39505d9 | ||
![]() |
ebf9c8526d | ||
![]() |
f5ab4bbc98 | ||
![]() |
1764bb0f01 | ||
![]() |
271e47619e | ||
cd0c821bae | |||
6a1cb9f3eb | |||
![]() |
c6c5759a2c | ||
![]() |
b94ed46c8a | ||
![]() |
b0eb78218a | ||
![]() |
1ac618c29f | ||
![]() |
7840a07c95 | ||
![]() |
3f5b8ab607 | ||
![]() |
41fe5a3d05 | ||
![]() |
af87e5ed36 | ||
![]() |
797963e63d | ||
![]() |
6a1eafe980 | ||
![]() |
5e7414ada8 | ||
![]() |
8e391c9c7f | ||
![]() |
316039463f | ||
![]() |
8e320b235c | ||
![]() |
be28c50ffc | ||
![]() |
82db2e2091 | ||
![]() |
774f63aa89 | ||
![]() |
8375e1877a | ||
![]() |
b00fab090c | ||
![]() |
382961971d | ||
![]() |
04c5c819f8 | ||
![]() |
6249015bef | ||
![]() |
2fade7117b | ||
![]() |
49c396e746 | ||
be4737f9db | |||
![]() |
d27c059b23 | ||
![]() |
21a5771211 | ||
![]() |
501d83c229 | ||
![]() |
6651bbf14a | ||
![]() |
ddf1944883 | ||
![]() |
bf0eeb83e4 | ||
![]() |
d41c39849b | ||
![]() |
25294dd4a7 | ||
![]() |
d0f347c80d | ||
![]() |
44464e1946 | ||
![]() |
5a371d7200 | ||
![]() |
27fefb4c27 | ||
![]() |
efe58eeea9 | ||
![]() |
8e629ef596 | ||
![]() |
d188cefc07 | ||
![]() |
c5b6f92b0e | ||
![]() |
2d5cbe8799 | ||
c7c3b421f4 | |||
![]() |
adfa653062 | ||
![]() |
86f7cf3b2e | ||
![]() |
1cc885e4b7 | ||
![]() |
a4207b8348 | ||
![]() |
3e600f69f0 | ||
![]() |
205d90523c | ||
![]() |
906de6dd45 | ||
![]() |
3ff0927834 | ||
![]() |
14e5614adc | ||
![]() |
6ed89b2a1e | ||
![]() |
5272ac5a01 | ||
![]() |
46e6120af3 | ||
![]() |
600bf7d763 | ||
![]() |
10750f898f | ||
1d5ebe7bbd | |||
![]() |
2aa8db8f42 | ||
![]() |
f95d4582be | ||
![]() |
63889325cf | ||
![]() |
acbffd6d72 | ||
![]() |
b19da9cb66 | ||
![]() |
fd80aec51f | ||
![]() |
5776622276 | ||
![]() |
69ea3e1a7f | ||
![]() |
3d451f6f91 | ||
![]() |
387e2e46db | ||
![]() |
a7f1681902 | ||
![]() |
4b127bdf56 | ||
![]() |
dbb6125ab5 | ||
![]() |
b6d4ac6168 | ||
![]() |
9d20d08838 | ||
![]() |
f39ac80770 | ||
![]() |
41991b3b66 | ||
![]() |
53ec3e567a | ||
![]() |
176608bfc5 | ||
92b4094550 | |||
![]() |
45c6fccb89 | ||
![]() |
014329d7fe | ||
![]() |
dca01d0ed0 | ||
![]() |
493adaa5f2 | ||
![]() |
8451983163 | ||
![]() |
2b7e143812 | ||
9845a35c6e | |||
![]() |
b92ac9ffbc | ||
![]() |
f435f31523 | ||
![]() |
6abc61db7b | ||
![]() |
cd8ab8bfdb | ||
![]() |
24a6393aca | ||
![]() |
64fb22de74 | ||
![]() |
14ce4c82fb | ||
![]() |
7d1f4e992c | ||
![]() |
17b8b96767 | ||
![]() |
7ac5d64d19 | ||
![]() |
d9bd555e6a | ||
![]() |
b5bf994b8d | ||
8b216bd27b | |||
![]() |
a9bd11a4d7 | ||
129a95f359 | |||
8b65d4d519 | |||
![]() |
353297bc90 | ||
![]() |
63d24f7e89 | ||
![]() |
4b93c891c8 | ||
![]() |
6f85a4ebc1 | ||
![]() |
b37af9f5a5 | ||
3a26fd9ec9 | |||
![]() |
9cda8c5d29 | ||
![]() |
6212489001 | ||
![]() |
b4ff2fa815 | ||
![]() |
a11ebce6fb | ||
![]() |
fa75c1ec06 | ||
![]() |
79677d657e | ||
![]() |
50d1803a18 | ||
![]() |
34f9929b16 | ||
7b517b333a | |||
d1a9625d93 | |||
![]() |
056bf7ab58 | ||
![]() |
c4dc03f41d | ||
![]() |
6d7a21dc02 | ||
![]() |
9406efee8d | ||
![]() |
151e97b243 | ||
![]() |
1ba0f4d8d3 | ||
![]() |
4b8dbf0691 | ||
![]() |
98d7468f24 | ||
fa46d6cbd3 | |||
![]() |
a0c68a4e5a | ||
![]() |
f2f35b2fbd | ||
![]() |
a782dbd22f | ||
![]() |
c9da66d38f | ||
![]() |
dc93985834 | ||
![]() |
3e487ba22a | ||
6293bb4017 | |||
03a5057269 | |||
4a15514ba0 | |||
bb2853d857 | |||
![]() |
be84935ac3 | ||
![]() |
19691a1dc0 | ||
![]() |
5c6e54864d | ||
![]() |
dda1ae23c9 | ||
![]() |
f08c691b25 | ||
![]() |
0340406bd8 | ||
![]() |
32fb702872 | ||
![]() |
b510dbd0ec | ||
![]() |
e7f8dd6d80 | ||
![]() |
f985889811 | ||
![]() |
eb20fc1457 | ||
![]() |
67721112cc | ||
![]() |
070e3cf18c | ||
![]() |
991097fa34 | ||
![]() |
c4e87f66e6 | ||
![]() |
8d01653714 | ||
![]() |
db7b126bda | ||
![]() |
023329f021 | ||
![]() |
e66fdbaeac | ||
![]() |
bbbaea9224 | ||
![]() |
c7c18cf684 | ||
![]() |
4d501fed3e | ||
![]() |
8168ef5329 | ||
![]() |
608bc58771 | ||
![]() |
2cba1ec286 | ||
![]() |
b6eb65814f | ||
![]() |
a5a43ea0b9 | ||
![]() |
da356bb212 | ||
![]() |
c29ab3de29 | ||
![]() |
fceb4e050f | ||
![]() |
8feea02f68 | ||
![]() |
939e4f4d48 | ||
![]() |
a401ff32d9 | ||
![]() |
84e7fc60c2 | ||
![]() |
6821887263 | ||
![]() |
8f8ceb0597 | ||
![]() |
deb2403c23 | ||
![]() |
d65c722ef0 | ||
![]() |
1bdc1409e4 | ||
![]() |
467eca6c14 | ||
![]() |
da3abb7fb7 | ||
![]() |
a8a818225e | ||
![]() |
5e650869f2 | ||
![]() |
6e06d82b1a | ||
![]() |
79370f6a02 | ||
![]() |
d0dee1002d | ||
![]() |
7517fd976a | ||
![]() |
ac9e3e9ff3 | ||
![]() |
a8dce30022 | ||
![]() |
dac2e6e52e | ||
![]() |
b7c3534751 | ||
![]() |
2c04b7ca7c | ||
![]() |
4a43f1607c | ||
![]() |
fef0857050 | ||
![]() |
9078634fb7 | ||
![]() |
e71c56a146 | ||
![]() |
8f85116353 | ||
![]() |
1d6b9dd5d8 | ||
![]() |
2bd534fde9 | ||
![]() |
c05b358b49 | ||
![]() |
91255182d2 | ||
![]() |
5052f57ee6 | ||
![]() |
d651f6acf0 | ||
![]() |
ea2b91ca15 | ||
![]() |
e280227ee1 | ||
![]() |
bc4e4e9b5a | ||
![]() |
e732b36cb8 | ||
![]() |
894f370dad | ||
![]() |
ec04a0ff81 | ||
![]() |
b4be0f66dc | ||
![]() |
8bfbaee1f5 | ||
![]() |
458cfdd8a7 | ||
![]() |
2406e9a45d | ||
![]() |
d952b23b85 | ||
![]() |
0245ddb99e | ||
![]() |
40dd967903 | ||
![]() |
d524d452bd | ||
![]() |
0ac0586fba | ||
![]() |
3e470981a8 | ||
![]() |
09e416ab74 | ||
![]() |
1314b2f068 | ||
![]() |
4b70b6e035 | ||
![]() |
856b48675b | ||
![]() |
534a223cbf | ||
![]() |
625c43d786 | ||
![]() |
d1f79a63a1 | ||
![]() |
f4bf509fa7 | ||
![]() |
8ff4f0b88f | ||
![]() |
ee2a42bbe2 | ||
![]() |
bc1ec45855 | ||
![]() |
6d4939d88a | ||
![]() |
f7d263570d | ||
![]() |
1ea0f95863 | ||
![]() |
6003f6fd2a | ||
![]() |
ded029e4cb | ||
![]() |
e64ab75753 | ||
![]() |
2d11c45972 | ||
![]() |
63e5ccb7c3 | ||
![]() |
568d4cb769 | ||
![]() |
88297cc181 | ||
![]() |
e5ed6c33ed | ||
![]() |
1e7fbfd0a4 | ||
![]() |
87cd1a40f4 | ||
![]() |
0d7d6738df | ||
![]() |
c3dd4a3b7e | ||
![]() |
76b2492ba8 | ||
![]() |
758bcda581 | ||
![]() |
520d2f2ce0 | ||
![]() |
8855dc4820 | ||
![]() |
6fda457bbb | ||
![]() |
360426d851 | ||
![]() |
bad9ed000b | ||
![]() |
18b1b00f45 | ||
![]() |
7bd5653a5f | ||
![]() |
fb4e0f644a | ||
![]() |
7766832d5f | ||
![]() |
11ae42cb03 | ||
![]() |
de6ddb42ae | ||
![]() |
c100a032d6 | ||
![]() |
6b8eb120f0 | ||
![]() |
b9b79fdde2 | ||
![]() |
40ca5fe0a1 | ||
![]() |
e183c17c9f | ||
![]() |
d2003893e8 | ||
![]() |
22cd08165b | ||
![]() |
1f62a71cd5 | ||
![]() |
93fab8196d | ||
![]() |
5523a2a919 | ||
![]() |
d79045e47f | ||
![]() |
cffd93bfe6 | ||
![]() |
d2c762d29a | ||
![]() |
633601a0f3 |
10
.github/workflows/android.yml
vendored
@ -15,10 +15,10 @@ jobs:
|
|||||||
encodedString: ${{ secrets.KEYSTORE_BASE64 }}
|
encodedString: ${{ secrets.KEYSTORE_BASE64 }}
|
||||||
- name: Create key.properties
|
- name: Create key.properties
|
||||||
run: |
|
run: |
|
||||||
echo "storeFile=${{ steps.android_keystore.outputs.filePath }}" > filcnaplo/android/key.properties
|
echo "storeFile=${{ steps.android_keystore.outputs.filePath }}" > refilc/android/key.properties
|
||||||
echo "storePassword=${{ secrets.STORE_PASSWORD }}" >> filcnaplo/android/key.properties
|
echo "storePassword=${{ secrets.STORE_PASSWORD }}" >> refilc/android/key.properties
|
||||||
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> filcnaplo/android/key.properties
|
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> refilc/android/key.properties
|
||||||
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> filcnaplo/android/key.properties
|
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> refilc/android/key.properties
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: "zulu"
|
distribution: "zulu"
|
||||||
@ -32,7 +32,7 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: ./fix-pub.sh
|
run: ./fix-pub.sh
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cd filcnaplo && ./build.sh
|
run: cd refilc && ./build.sh
|
||||||
- name: Upload Android Release
|
- name: Upload Android Release
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
4
.github/workflows/ios.yml
vendored
@ -46,7 +46,7 @@ jobs:
|
|||||||
|
|
||||||
# Build and sign the ipa using a single flutter command
|
# Build and sign the ipa using a single flutter command
|
||||||
- name: Building IPA
|
- name: Building IPA
|
||||||
working-directory: filcnaplo
|
working-directory: refilc
|
||||||
run: bash build-ipa.sh
|
run: bash build-ipa.sh
|
||||||
|
|
||||||
# Collect the file and upload as artifact
|
# Collect the file and upload as artifact
|
||||||
@ -55,7 +55,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: release-ipa
|
name: release-ipa
|
||||||
# Path to the release files
|
# Path to the release files
|
||||||
path: filcnaplo/build/ios/ipa/*.ipa
|
path: refilc/build/ios/ipa/*.ipa
|
||||||
|
|
||||||
# Important! Cleanup: remove the certificate and provisioning profile from the runner!
|
# Important! Cleanup: remove the certificate and provisioning profile from the runner!
|
||||||
- name: Clean up keychain and provisioning profile
|
- name: Clean up keychain and provisioning profile
|
||||||
|
103
.gitignore
vendored
@ -1,52 +1,57 @@
|
|||||||
# See https://www.dartlang.org/guides/libraries/private-files
|
|
||||||
|
|
||||||
termek.txt
|
refilc/.flutter-plugins
|
||||||
|
refilc/.flutter-plugins-dependencies
|
||||||
|
refilc/pubspec.lock
|
||||||
|
refilc/.dart_tool/
|
||||||
|
# refilc/android/
|
||||||
|
# refilc/ios/
|
||||||
|
# refilc/windows/
|
||||||
|
# refilc/linux/
|
||||||
|
# refilc/macos/
|
||||||
|
refilc/build/
|
||||||
|
refilc/android/key.properties
|
||||||
|
refilc/android/debug.keystore
|
||||||
|
|
||||||
|
# refilc_desktop_ui/.flutter-plugins
|
||||||
|
# refilc_desktop_ui/.flutter-plugins-dependencies
|
||||||
|
# refilc_desktop_ui/pubspec.lock
|
||||||
|
# refilc_desktop_ui/.dart_tool/
|
||||||
|
|
||||||
|
refilc_kreta_api/.flutter-plugins
|
||||||
|
refilc_kreta_api/.flutter-plugins-dependencies
|
||||||
|
refilc_kreta_api/pubspec.lock
|
||||||
|
refilc_kreta_api/.dart_tool/
|
||||||
|
|
||||||
|
refilc_mobile_ui/.flutter-plugins
|
||||||
|
refilc_mobile_ui/.flutter-plugins-dependencies
|
||||||
|
refilc_mobile_ui/pubspec.lock
|
||||||
|
refilc_mobile_ui/.dart_tool/
|
||||||
|
|
||||||
|
# filcnaplo_premium/.flutter-plugins
|
||||||
|
# filcnaplo_premium/.flutter-plugins-dependencies
|
||||||
|
# filcnaplo_premium/pubspec.lock
|
||||||
|
# filcnaplo_premium/.dart_tool/
|
||||||
|
|
||||||
|
.vscode
|
||||||
|
.github
|
||||||
|
.idea
|
||||||
|
.gitmodules
|
||||||
|
.gradle
|
||||||
|
.kotlin
|
||||||
|
|
||||||
|
refilc/.DS_Store
|
||||||
.DS_Store
|
.DS_Store
|
||||||
filc3.properties
|
refilc/linux/flutter/
|
||||||
local.properties
|
.plugin_symlinks/
|
||||||
# Files and directories created by pub
|
refilc/macos/Flutter/
|
||||||
.dart_tool/
|
refilc/ios/Flutter/
|
||||||
.packages
|
refilc/ios/Runner/GeneratedPluginRegistrant.h
|
||||||
build/
|
refilc/ios/Runner/GeneratedPluginRegistrant.m
|
||||||
# If you're building an application, you may want to check-in your pubspec.lock
|
refilc/android/local.properties
|
||||||
pubspec.lock
|
refilc/android/debugkey.properties
|
||||||
|
refilc/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
|
||||||
|
|
||||||
# Directory created by dartdoc
|
tool_logs/build/*.log
|
||||||
# If you don't generate documentation locally you can remove this line.
|
tool_logs/d8dx_fix/*.log
|
||||||
doc/api/
|
tool_logs/pub_fix/*.log
|
||||||
|
refilc_mobile_ui/android/local.properties
|
||||||
# Avoid committing generated Javascript files:
|
|
||||||
*.dart.js
|
|
||||||
*.info.json # Produced by the --dump-info flag.
|
|
||||||
*.js # When generated by dart2js. Don't specify *.js if your
|
|
||||||
# project includes source files written in JavaScript.
|
|
||||||
*.js_
|
|
||||||
*.js.deps
|
|
||||||
*.js.map
|
|
||||||
|
|
||||||
*.txt
|
|
||||||
filcnaplo/linux/flutter/generated_plugin_registrant.cc
|
|
||||||
filcnaplo/linux/flutter/generated_plugin_registrant.h
|
|
||||||
filcnaplo/linux/flutter/generated_plugins.cmake
|
|
||||||
filcnaplo/macos/Flutter/GeneratedPluginRegistrant.swift
|
|
||||||
filcnaplo/windows/flutter/ephemeral/.plugin_symlinks/connectivity_plus
|
|
||||||
filcnaplo/windows/flutter/ephemeral/.plugin_symlinks/dynamic_color
|
|
||||||
filcnaplo/windows/flutter/ephemeral/.plugin_symlinks/flutter_acrylic
|
|
||||||
filcnaplo/windows/flutter/ephemeral/.plugin_symlinks/path_provider_windows
|
|
||||||
filcnaplo/windows/flutter/ephemeral/.plugin_symlinks/permission_handler_windows
|
|
||||||
filcnaplo/windows/flutter/ephemeral/.plugin_symlinks/share_plus_windows
|
|
||||||
filcnaplo/windows/flutter/ephemeral/.plugin_symlinks/url_launcher_windows
|
|
||||||
filcnaplo/windows/flutter/ephemeral/generated_config.cmake
|
|
||||||
filcnaplo/windows/flutter/generated_plugin_registrant.cc
|
|
||||||
filcnaplo/windows/flutter/generated_plugin_registrant.h
|
|
||||||
filcnaplo/windows/flutter/generated_plugins.cmake
|
|
||||||
filcnaplo/linux/flutter/generated_plugin_registrant.cc
|
|
||||||
filcnaplo/linux/flutter/generated_plugin_registrant.h
|
|
||||||
filcnaplo/linux/flutter/generated_plugins.cmake
|
|
||||||
filcnaplo/macos/Flutter/GeneratedPluginRegistrant.swift
|
|
||||||
filcnaplo/linux/flutter/generated_plugin_registrant.cc
|
|
||||||
filcnaplo/linux/flutter/generated_plugin_registrant.h
|
|
||||||
filcnaplo/linux/flutter/generated_plugins.cmake
|
|
||||||
filcnaplo/macos/Flutter/GeneratedPluginRegistrant.swift
|
|
||||||
.vscode/
|
|
||||||
key.properties
|
|
||||||
|
3
.idea/.gitignore
generated
vendored
@ -1,3 +0,0 @@
|
|||||||
# Default ignored files
|
|
||||||
/shelf/
|
|
||||||
/workspace.xml
|
|
30
.idea/libraries/Dart_SDK.xml
generated
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<component name="libraryTable">
|
||||||
|
<library name="Dart SDK">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/async" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/cli" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/collection" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/concurrent" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/convert" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/core" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/developer" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/ffi" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/html" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/indexed_db" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/io" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/isolate" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/js" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/js_interop" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/js_interop_unsafe" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/js_util" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/math" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/mirrors" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/svg" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/typed_data" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/web_audio" />
|
||||||
|
<root url="file://P:/flutter/bin/cache/dart-sdk/lib/web_gl" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC />
|
||||||
|
<SOURCES />
|
||||||
|
</library>
|
||||||
|
</component>
|
3
.idea/misc.xml
generated
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<project version="4">
|
||||||
|
<component name="ProjectRootManager" version="2" project-jdk-name="Android API 33, extension level 3 Platform" project-jdk-type="Android SDK" />
|
||||||
|
</project>
|
13
.idea/naplo.iml
generated
@ -60,8 +60,21 @@
|
|||||||
<excludeFolder url="file://$MODULE_DIR$/filcnaplo/linux/flutter/ephemeral/.plugin_symlinks/flutter_acrylic/build" />
|
<excludeFolder url="file://$MODULE_DIR$/filcnaplo/linux/flutter/ephemeral/.plugin_symlinks/flutter_acrylic/build" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/filcnaplo/linux/flutter/ephemeral/.plugin_symlinks/flutter_acrylic/.pub" />
|
<excludeFolder url="file://$MODULE_DIR$/filcnaplo/linux/flutter/ephemeral/.plugin_symlinks/flutter_acrylic/.pub" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/filcnaplo/linux/flutter/ephemeral/.plugin_symlinks/flutter_acrylic/.dart_tool" />
|
<excludeFolder url="file://$MODULE_DIR$/filcnaplo/linux/flutter/ephemeral/.plugin_symlinks/flutter_acrylic/.dart_tool" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/refilc/.dart_tool" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/refilc/.pub" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/refilc/build" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/refilc_kreta_api/.dart_tool" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/refilc_kreta_api/.pub" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/refilc_kreta_api/build" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/refilc_mobile_ui/.dart_tool" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/refilc_mobile_ui/.pub" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/refilc_mobile_ui/build" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/refilc_plus/.dart_tool" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/refilc_plus/.pub" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/refilc_plus/build" />
|
||||||
</content>
|
</content>
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="inheritedJdk" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
<orderEntry type="library" name="Dart SDK" level="project" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
5
.idea/vcs.xml
generated
@ -2,9 +2,6 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="VcsDirectoryMappings">
|
<component name="VcsDirectoryMappings">
|
||||||
<mapping directory="" vcs="Git" />
|
<mapping directory="" vcs="Git" />
|
||||||
<mapping directory="$PROJECT_DIR$/filcnaplo_desktop_ui" vcs="Git" />
|
<mapping directory="$PROJECT_DIR$/refilc_plus" vcs="Git" />
|
||||||
<mapping directory="$PROJECT_DIR$/filcnaplo_kreta_api" vcs="Git" />
|
|
||||||
<mapping directory="$PROJECT_DIR$/filcnaplo_mobile_ui" vcs="Git" />
|
|
||||||
<mapping directory="$PROJECT_DIR$/filcnaplo_premium" vcs="Git" />
|
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
33
.vscode/launch.json
vendored
@ -1,33 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "0.2.0",
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "filcnaplo",
|
|
||||||
"cwd": "filcnaplo",
|
|
||||||
"request": "launch",
|
|
||||||
"type": "dart",
|
|
||||||
"toolArgs": [
|
|
||||||
"--dart-define=APPVER=$(cat pubspec.yaml | grep version: | cut -d' ' -f2 | cut -d+ -f1)"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "filcnaplo release",
|
|
||||||
"cwd": "filcnaplo release",
|
|
||||||
"request": "launch",
|
|
||||||
"type": "dart",
|
|
||||||
"flutterMode": "release",
|
|
||||||
"program": "lib/main.dart",
|
|
||||||
"toolArgs": [
|
|
||||||
"--dart-define=APPVER=$(cat pubspec.yaml | grep version: | cut -d' ' -f2 | cut -d+ -f1)"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Flutter",
|
|
||||||
"program": "lib/main.dart",
|
|
||||||
"cwd": "filcnaplo",
|
|
||||||
"request": "launch",
|
|
||||||
"type": "dart",
|
|
||||||
"flutterMode": "debug"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
# Contribution guide
|
# Contribution guide (Hozzájárulási útmutató)
|
||||||
Köszönjük, ha programozással segíted a munkánkat!
|
Köszönjük, ha programozással segíted a munkánkat!
|
||||||
A folytatáshoz szükséged lesz egy Linux-ot vagy Windows-t futtató számítógépre, minimális programozási tapasztalatra és egy kis angoltudásra.
|
A folytatáshoz szükséged lesz egy MacOS-t, Linux-ot vagy Windows-t futtató számítógépre, minimális programozási tapasztalatra és egy kis angoltudásra.
|
||||||
Segít, ha már gyakorlottabb vagy a programozásban, és ha ismered a [Git](https://git-scm.com/) és a [GitHub](https://github.com/) működését. ;)
|
Segít, ha már gyakorlottabb vagy a programozásban, és ha ismered a [Git](https://git-scm.com/) és a [GitHub](https://github.com/) működését. ;)
|
||||||
|
|
||||||
## Miben segítsek?
|
## Miben segítsek?
|
||||||
@ -14,7 +14,7 @@ A legjobban annak örülünk, ha az [Issues](https://github.com/refilc/naplo/iss
|
|||||||
## Hogyan segítsek?
|
## Hogyan segítsek?
|
||||||
Nem ígérhetünk itt sem programozás-, sem Git-kurzust, de a projektspecifikus dolgokat leírjuk, és segítünk a Flutter telepítésében.
|
Nem ígérhetünk itt sem programozás-, sem Git-kurzust, de a projektspecifikus dolgokat leírjuk, és segítünk a Flutter telepítésében.
|
||||||
|
|
||||||
A **reFilc** a Google által pár éve létrehozott **[Flutter](https://flutter.dev/)** keretrendszert használja, aminek nyelve a **[Dart](https://dart.dev/)**. Ha ismered a C#, Java, C++, vagy egyéb hasonló programnyelvek működését, **nem fog nagy gondot okozni a használata.** A felhasználói felület létrehozásában az is segíthet, ha foglalkoztál már korábban weboldalakkal vagy alkalmazásfejlesztéssel.
|
A **reFilc** a Google által pár éve létrehozott **[Flutter](https://flutter.dev/)** keretrendszert használja, aminek nyelve a **[Dart](https://dart.dev/)**. Ha ismered a JavaScript, C#, Java, C++, vagy egyéb hasonló programnyelvek működését, **nem fog nagy gondot okozni a használata.** A felhasználói felület létrehozásában az is segíthet, ha foglalkoztál már korábban weboldalakkal vagy alkalmazásfejlesztéssel.
|
||||||
Ha még nem használtad a Flutter-t, mindenképp böngészd át a [YouTube csatornájukat](https://www.youtube.com/channel/UCwXdFgeE9KYzlDdR7TG9cMw).
|
Ha még nem használtad a Flutter-t, mindenképp böngészd át a [YouTube csatornájukat](https://www.youtube.com/channel/UCwXdFgeE9KYzlDdR7TG9cMw).
|
||||||
Kód vagy UI teszteléséhez Flutter telepítése nélkül is használhatod a [DartPad](https://dartpad.dev/)-et.
|
Kód vagy UI teszteléséhez Flutter telepítése nélkül is használhatod a [DartPad](https://dartpad.dev/)-et.
|
||||||
|
|
||||||
@ -24,13 +24,13 @@ Kód vagy UI teszteléséhez Flutter telepítése nélkül is használhatod a [D
|
|||||||
Ha nem értessz a Git-hez vagy a GitHub-hoz, ajánljuk figyelmedbe [ezt a cikket](https://medium.com/envienta-magyarorsz%C3%A1g/git-%C3%A9s-github-gyorstalpal%C3%B3-f2d78a732deb), viszont arra kérünk, hogy a használatukat ne a **reFilc**en próbáld ki először. Hozz létre egy saját Repo-t és abban tesztelgess. Ha már nagyjából kitapasztaltad, várjuk hozzájárulásodat.
|
Ha nem értessz a Git-hez vagy a GitHub-hoz, ajánljuk figyelmedbe [ezt a cikket](https://medium.com/envienta-magyarorsz%C3%A1g/git-%C3%A9s-github-gyorstalpal%C3%B3-f2d78a732deb), viszont arra kérünk, hogy a használatukat ne a **reFilc**en próbáld ki először. Hozz létre egy saját Repo-t és abban tesztelgess. Ha már nagyjából kitapasztaltad, várjuk hozzájárulásodat.
|
||||||
|
|
||||||
Készíts egy Fork-ot a saját GitHub fiókod alá.
|
Készíts egy Fork-ot a saját GitHub fiókod alá.
|
||||||
A **reFilc** legfrissebb, **épp fejlesztés alatt álló verzióját a [master branch](https://github.com/refilc/naplo/tree/master)-en találod**. Kérjük ide Commit-olj és ide célozd a Fork-odból a Pull Request-edet. Írd le benne, hogy mit változtattál és ha lehet, csatolj képernyőképet is.
|
A **reFilc** legfrissebb, **épp fejlesztés alatt álló verzióját a [dev branch](https://github.com/refilc/naplo/tree/dev)-en találod**. Kérjük ide Commit-olj és ide célozd a Fork-odból a Pull Request-edet. Írd le benne, hogy mit változtattál és ha lehet, csatolj képernyőképet is.
|
||||||
Minél gyakrabban készíts minél részletesebben elnevezett Commit-okat, hogy mások is el tudjanak igazodni az általad beküldött kódban.
|
Minél gyakrabban készíts minél részletesebben elnevezett Commit-okat, hogy mások is el tudjanak igazodni az általad beküldött kódban.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Az általad fejlesztett funkciók mellé a Changelog-ba odakerül a GitHub felhasználóneved.
|
Az általad fejlesztett funkciók mellé a Changelog-ba odakerül a GitHub felhasználóneved.
|
||||||
Ha jelentős és rendszeres hozzájáruló vagy, Discord-on megkaphatod a `DEV` rangot.
|
Ha jelentős és rendszeres hozzájáruló vagy, Discord-on megkaphatod a `Contributor` rangot, valamint kaphatsz kedvezményt a reFilc+ előfizetésekből és Merch-ekből!
|
||||||
|
|
||||||
Ha bárhol elakadtál vagy kérdésed van, keress bátran Discordon!
|
Ha bárhol elakadtál vagy kérdésed van, keress bátran Discord-on!
|
||||||
**Jó fejlesztést kívánunk!**
|
**Jó fejlesztést kívánunk!**
|
||||||
|
678
LICENSE
@ -1,29 +1,661 @@
|
|||||||
BSD 3-Clause License
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 19 November 2007
|
||||||
|
|
||||||
Copyright (c) 2023, reFilc
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
All rights reserved.
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Preamble
|
||||||
modification, are permitted provided that the following conditions are met:
|
|
||||||
|
|
||||||
1. Redistributions of source code must retain the above copyright notice, this
|
The GNU Affero General Public License is a free, copyleft license for
|
||||||
list of conditions and the following disclaimer.
|
software and other kinds of works, specifically designed to ensure
|
||||||
|
cooperation with the community in the case of network server software.
|
||||||
|
|
||||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
The licenses for most software and other practical works are designed
|
||||||
this list of conditions and the following disclaimer in the documentation
|
to take away your freedom to share and change the works. By contrast,
|
||||||
and/or other materials provided with the distribution.
|
our General Public Licenses are intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users.
|
||||||
|
|
||||||
3. Neither the name of the copyright holder nor the names of its
|
When we speak of free software, we are referring to freedom, not
|
||||||
contributors may be used to endorse or promote products derived from
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
this software without specific prior written permission.
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
Developers that use our General Public Licenses protect your rights
|
||||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
with two steps: (1) assert copyright on the software, and (2) offer
|
||||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
you this License which gives you legal permission to copy, distribute
|
||||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
and/or modify the software.
|
||||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
||||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
A secondary benefit of defending all users' freedom is that
|
||||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
improvements made in alternate versions of the program, if they
|
||||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
receive widespread use, become available for other developers to
|
||||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
incorporate. Many developers of free software are heartened and
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
encouraged by the resulting cooperation. However, in the case of
|
||||||
|
software used on network servers, this result may fail to come about.
|
||||||
|
The GNU General Public License permits making a modified version and
|
||||||
|
letting the public access it on a server without ever releasing its
|
||||||
|
source code to the public.
|
||||||
|
|
||||||
|
The GNU Affero General Public License is designed specifically to
|
||||||
|
ensure that, in such cases, the modified source code becomes available
|
||||||
|
to the community. It requires the operator of a network server to
|
||||||
|
provide the source code of the modified version running there to the
|
||||||
|
users of that server. Therefore, public use of a modified version, on
|
||||||
|
a publicly accessible server, gives the public access to the source
|
||||||
|
code of the modified version.
|
||||||
|
|
||||||
|
An older license, called the Affero General Public License and
|
||||||
|
published by Affero, was designed to accomplish similar goals. This is
|
||||||
|
a different license, not a version of the Affero GPL, but Affero has
|
||||||
|
released a new version of the Affero GPL which permits relicensing under
|
||||||
|
this license.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, if you modify the
|
||||||
|
Program, your modified version must prominently offer all users
|
||||||
|
interacting with it remotely through a computer network (if your version
|
||||||
|
supports such interaction) an opportunity to receive the Corresponding
|
||||||
|
Source of your version by providing access to the Corresponding Source
|
||||||
|
from a network server at no charge, through some standard or customary
|
||||||
|
means of facilitating copying of software. This Corresponding Source
|
||||||
|
shall include the Corresponding Source for any work covered by version 3
|
||||||
|
of the GNU General Public License that is incorporated pursuant to the
|
||||||
|
following paragraph.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the work with which it is combined will remain governed by version
|
||||||
|
3 of the GNU General Public License.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU Affero General Public License from time to time. Such new versions
|
||||||
|
will be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU Affero General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU Affero General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU Affero General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Affero General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Affero General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If your software can interact with users remotely through a computer
|
||||||
|
network, you should also make sure that it provides a way for users to
|
||||||
|
get its source. For example, if your program is a web application, its
|
||||||
|
interface could display a "Source" link that leads users to an archive
|
||||||
|
of the code. There are many ways you could offer source, and different
|
||||||
|
solutions will be better for different programs; see section 13 for the
|
||||||
|
specific requirements.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||||
|
<https://www.gnu.org/licenses/>.
|
||||||
|
111
README.md
@ -1,44 +1,67 @@
|
|||||||
<p align=center>
|
<p align=center>
|
||||||
<img src="https://media.discordapp.net/attachments/1111727410677825596/1113217167513624646/reFilc_Logo_Squircle.png?width=671&height=671" width=150>
|
<img src="https://raw.githubusercontent.com/Laky2k8/Refilc-2-Episode-1/refs/heads/master/refilc-2-real.png" width=150>
|
||||||
<h1 align=center><b>reFilc</b></h1>
|
<h1 align=center><b>reFilc</b></h1>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
#### Nem hivatalos e-napló alkalmazás az eKRÉTA rendszerhez - tanulóktól, tanulóknak.
|
#### Nem hivatalos e-napló alkalmazás az e-KRÉTA rendszerhez - tanulóktól, tanulóknak.
|
||||||
|
|
||||||
[](https://github.com/refilc/naplo/releases) [](https://dc.refilc.hu)
|
[](https://github.com/refilc/naplo/releases) [](https://discord.gg/refilc-1111649116020285532)
|
||||||
|
|
||||||
## Setup
|
## Környezet felállítása
|
||||||
|
|
||||||
### Clone the project
|
### Source code letöltése
|
||||||
|
|
||||||
```sh
|
*Az építhéshez szükséged lesz a refilc_plus repora is, amit itt találsz: [student-plus](https://git.qwit.cloud/refilc/student-plus)*
|
||||||
git clone --recursive https://github.com/refilc/naplo
|
|
||||||
cd naplo
|
```sh
|
||||||
```
|
git clone https://git.qwit.cloud/refilc/student-legacy.git --recursive
|
||||||
|
cd naplo
|
||||||
### Install packages
|
# ha ez nem töltött le refilc plus repoba értelmes dolgokat futtasd a többi parancsot is
|
||||||
|
rm -rf refilc_plus
|
||||||
Run `fix-pub.sh`
|
git clone https://git.qwit.cloud/refilc/student-plus.git refilc_plus
|
||||||
|
```
|
||||||
### Run the app
|
|
||||||
|
### Csomagok telepítése
|
||||||
```sh
|
|
||||||
cd filcnaplo
|
Menj be minden mappába és futtasd a következő parancsokat:
|
||||||
flutter run
|
```sh
|
||||||
```
|
flutter clean
|
||||||
|
flutter pub get
|
||||||
### Contribution
|
```
|
||||||
|
|
||||||
**Nézd meg a [Contribution guide](CONTRIBUTING.md)-ot!**
|
### Alkalmazás építése
|
||||||
|
|
||||||
Az összes (ugyan azon verzióhoz tartozó) contribution meg fog jelenni a release-nél. Kérjük, írd le a Discord nevedet a Description-be, hogy adhassunk rangot.
|
```sh
|
||||||
|
cd refilc
|
||||||
-------
|
flutter build apk --release
|
||||||
|
```
|
||||||
# Developers
|
|
||||||
|
*Ez egy apk fájlt fog építeni*
|
||||||
**annon:** a Filc napló készítője (ez az app a Filcen alapul)
|
|
||||||
|
### Contribution
|
||||||
**kima, mog, WolfY:** fő fejlesztők
|
|
||||||
|
**Nézd meg a [Contribution guide](CONTRIBUTING.md)-ot!**
|
||||||
**Regő, Pearoo:** weboldal design és community management
|
|
||||||
|
Az összes (ugyan azon verzióhoz tartozó) contribution meg fog jelenni a release-nél. Kérjük, írd le a Discord nevedet a Description-be, hogy adhassunk rangot.
|
||||||
|
|
||||||
|
-------
|
||||||
|
|
||||||
|
# Csapatunk
|
||||||
|
|
||||||
|
**Management**
|
||||||
|
- Zypherift
|
||||||
|
- hayn
|
||||||
|
- Pearoo
|
||||||
|
- Zizi
|
||||||
|
- mnus
|
||||||
|
- xou
|
||||||
|
|
||||||
|
**Designerek**
|
||||||
|
- dwe
|
||||||
|
- xou
|
||||||
|
|
||||||
|
**vrolandd, TMarccci:** head developer
|
||||||
|
|
||||||
|
**Péter:** video editor
|
||||||
|
|
||||||
|
***annon:** a régi Filc Napló fejlesztője (ez az app, ha bár sokban változott, alapjaiban a Filc-re épül)*
|
||||||
|
13
changelog.md
@ -1,13 +0,0 @@
|
|||||||
What's new:
|
|
||||||
|
|
||||||
- design tweak
|
|
||||||
- new premium ui
|
|
||||||
- premium fix
|
|
||||||
- rounding fix
|
|
||||||
- graph percentage fix
|
|
||||||
- fail warning
|
|
||||||
- Widget
|
|
||||||
- fix sent messages
|
|
||||||
- fix ios live activities
|
|
||||||
- Hibajavítások 🐛
|
|
||||||
- **Megérkezett a Filc Premium!** ✨
|
|
7
check-outdated.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
cd refilc && flutter pub outdated && cd ..
|
||||||
|
cd refilc_kreta_api && flutter pub outdated && cd ..
|
||||||
|
cd refilc_mobile_ui && flutter pub outdated && cd ..
|
||||||
|
# cd refilc_desktop_ui && flutter pub upgrade && cd ..
|
||||||
|
cd refilc_plus && flutter pub outdated && cd ..
|
||||||
|
|
||||||
|
echo Outdated version list above.
|
47
filcnaplo/.gitignore
vendored
@ -1,47 +0,0 @@
|
|||||||
# Miscellaneous
|
|
||||||
*.class
|
|
||||||
*.log
|
|
||||||
*.pyc
|
|
||||||
*.swp
|
|
||||||
.DS_Store
|
|
||||||
.atom/
|
|
||||||
.buildlog/
|
|
||||||
.history
|
|
||||||
.svn/
|
|
||||||
|
|
||||||
# IntelliJ related
|
|
||||||
*.iml
|
|
||||||
*.ipr
|
|
||||||
*.iws
|
|
||||||
.idea/
|
|
||||||
|
|
||||||
# The .vscode folder contains launch configuration and tasks you configure in
|
|
||||||
# VS Code which you may wish to be included in version control, so this line
|
|
||||||
# is commented out by default.
|
|
||||||
#.vscode/
|
|
||||||
|
|
||||||
# Flutter/Dart/Pub related
|
|
||||||
**/doc/api/
|
|
||||||
**/ios/Flutter/.last_build_id
|
|
||||||
.dart_tool/
|
|
||||||
.flutter-plugins
|
|
||||||
.flutter-plugins-dependencies
|
|
||||||
.packages
|
|
||||||
.pub-cache/
|
|
||||||
.pub/
|
|
||||||
/build/
|
|
||||||
|
|
||||||
# Web related
|
|
||||||
lib/generated_plugin_registrant.dart
|
|
||||||
|
|
||||||
# Symbolication related
|
|
||||||
app.*.symbols
|
|
||||||
|
|
||||||
# Obfuscation related
|
|
||||||
app.*.map.json
|
|
||||||
|
|
||||||
# Android Studio will place build artifacts here
|
|
||||||
/android/app/debug
|
|
||||||
/android/app/profile
|
|
||||||
/android/app/release
|
|
||||||
key.properties
|
|
@ -1,30 +0,0 @@
|
|||||||
# This file tracks properties of this Flutter project.
|
|
||||||
# Used by Flutter tool to assess capabilities and perform upgrades etc.
|
|
||||||
#
|
|
||||||
# This file should be version controlled.
|
|
||||||
|
|
||||||
version:
|
|
||||||
revision: 3c0bee85b8e43b860877922bdc411a7333db4d32
|
|
||||||
channel: beta
|
|
||||||
|
|
||||||
project_type: app
|
|
||||||
|
|
||||||
# Tracks metadata for the flutter migrate command
|
|
||||||
migration:
|
|
||||||
platforms:
|
|
||||||
- platform: root
|
|
||||||
create_revision: 3c0bee85b8e43b860877922bdc411a7333db4d32
|
|
||||||
base_revision: 3c0bee85b8e43b860877922bdc411a7333db4d32
|
|
||||||
- platform: macos
|
|
||||||
create_revision: 3c0bee85b8e43b860877922bdc411a7333db4d32
|
|
||||||
base_revision: 3c0bee85b8e43b860877922bdc411a7333db4d32
|
|
||||||
|
|
||||||
# User provided section
|
|
||||||
|
|
||||||
# List of Local paths (relative to this file) that should be
|
|
||||||
# ignored by the migrate tool.
|
|
||||||
#
|
|
||||||
# Files that are not part of the templates will be ignored by default.
|
|
||||||
unmanaged_files:
|
|
||||||
- 'lib/main.dart'
|
|
||||||
- 'ios/Runner.xcodeproj/project.pbxproj'
|
|
@ -1,29 +0,0 @@
|
|||||||
# This file configures the analyzer, which statically analyzes Dart code to
|
|
||||||
# check for errors, warnings, and lints.
|
|
||||||
#
|
|
||||||
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
|
|
||||||
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
|
|
||||||
# invoked from the command line by running `flutter analyze`.
|
|
||||||
|
|
||||||
# The following line activates a set of recommended lints for Flutter apps,
|
|
||||||
# packages, and plugins designed to encourage good coding practices.
|
|
||||||
include: package:flutter_lints/flutter.yaml
|
|
||||||
|
|
||||||
linter:
|
|
||||||
# The lint rules applied to this project can be customized in the
|
|
||||||
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
|
|
||||||
# included above or to enable additional rules. A list of all available lints
|
|
||||||
# and their documentation is published at
|
|
||||||
# https://dart-lang.github.io/linter/lints/index.html.
|
|
||||||
#
|
|
||||||
# Instead of disabling a lint rule for the entire project in the
|
|
||||||
# section below, it can also be suppressed for a single line of code
|
|
||||||
# or a specific dart file by using the `// ignore: name_of_lint` and
|
|
||||||
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
|
|
||||||
# producing the lint.
|
|
||||||
rules:
|
|
||||||
# avoid_print: false # Uncomment to disable the `avoid_print` rule
|
|
||||||
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
|
|
||||||
|
|
||||||
# Additional information about this file can be found at
|
|
||||||
# https://dart.dev/guides/language/analysis-options
|
|
12
filcnaplo/android/.gitignore
vendored
@ -1,12 +0,0 @@
|
|||||||
gradle-wrapper.jar
|
|
||||||
/.gradle
|
|
||||||
/captures/
|
|
||||||
/gradlew
|
|
||||||
/gradlew.bat
|
|
||||||
/local.properties
|
|
||||||
GeneratedPluginRegistrant.java
|
|
||||||
|
|
||||||
# Remember to never publicly share your keystore.
|
|
||||||
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
|
|
||||||
key.properties
|
|
||||||
.project
|
|
@ -1,99 +0,0 @@
|
|||||||
def localProperties = new Properties()
|
|
||||||
def localPropertiesFile = rootProject.file('local.properties')
|
|
||||||
if (localPropertiesFile.exists()) {
|
|
||||||
localPropertiesFile.withReader('UTF-8') { reader ->
|
|
||||||
localProperties.load(reader)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
def flutterRoot = localProperties.getProperty('flutter.sdk')
|
|
||||||
if (flutterRoot == null) {
|
|
||||||
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
|
|
||||||
}
|
|
||||||
|
|
||||||
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
|
||||||
if (flutterVersionCode == null) {
|
|
||||||
throw new GradleException("Undefined VersionCode")
|
|
||||||
}
|
|
||||||
|
|
||||||
def flutterVersionName = localProperties.getProperty('flutter.versionName')
|
|
||||||
if (flutterVersionName == null) {
|
|
||||||
throw new GradleException("Undefined VersionName")
|
|
||||||
}
|
|
||||||
|
|
||||||
apply plugin: 'com.android.application'
|
|
||||||
apply plugin: 'kotlin-android'
|
|
||||||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
|
||||||
|
|
||||||
def keystoreProperties = new Properties()
|
|
||||||
def keystorePropertiesFile = rootProject.file("key.properties")
|
|
||||||
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
||||||
|
|
||||||
android {
|
|
||||||
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
||||||
|
|
||||||
sourceSets {
|
|
||||||
main.java.srcDirs += 'src/main/kotlin'
|
|
||||||
}
|
|
||||||
|
|
||||||
lintOptions {
|
|
||||||
disable 'InvalidPackage'
|
|
||||||
disable "Instantiatable"
|
|
||||||
checkReleaseBuilds false
|
|
||||||
abortOnError false
|
|
||||||
}
|
|
||||||
|
|
||||||
defaultConfig {
|
|
||||||
applicationId "hu.refilc.naplo"
|
|
||||||
minSdkVersion 21
|
|
||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
|
||||||
versionCode flutterVersionCode.toInteger()
|
|
||||||
versionName flutterVersionName
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
||||||
multiDexEnabled true
|
|
||||||
}
|
|
||||||
|
|
||||||
compileOptions {
|
|
||||||
// Flag to enable support for the new language APIs
|
|
||||||
coreLibraryDesugaringEnabled true
|
|
||||||
// Sets Java compatibility to Java 8
|
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
|
||||||
}
|
|
||||||
|
|
||||||
signingConfigs {
|
|
||||||
release {
|
|
||||||
keyAlias keystoreProperties['keyAlias']
|
|
||||||
keyPassword keystoreProperties['keyPassword']
|
|
||||||
storeFile file(keystoreProperties['storeFile'])
|
|
||||||
storePassword keystoreProperties['storePassword']
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
buildTypes {
|
|
||||||
release {
|
|
||||||
signingConfig signingConfigs.release
|
|
||||||
shrinkResources false
|
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
buildFeatures {
|
|
||||||
viewBinding true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
flutter {
|
|
||||||
source '../..'
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation 'com.android.support:multidex:2.0.1'
|
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
||||||
implementation 'joda-time:joda-time:2.9.4'
|
|
||||||
androidTestImplementation 'androidx.test:runner:1.1.1'
|
|
||||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
|
|
||||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
|
|
||||||
implementation 'androidx.window:window:1.0.0'
|
|
||||||
implementation 'androidx.window:window-java:1.0.0'
|
|
||||||
}
|
|
5
filcnaplo/android/app/proguard-rules.pro
vendored
@ -1,5 +0,0 @@
|
|||||||
-keep class io.flutter.plugin.editing.** { *; }
|
|
||||||
-keep class androidx.lifecycle.DefaultLifecycleObserver
|
|
||||||
-keep class com.pauldemarco.flutter_blue.** { *; }
|
|
||||||
-keep class com.mr.flutter.plugin.filepicker.** { *; }
|
|
||||||
-keep class com.shockwave.**
|
|
@ -1,71 +0,0 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
xmlns:tools="http://schemas.android.com/tools" package="hu.refilc.naplo">
|
|
||||||
<application android:name="${applicationName}" android:label="reFilc" tools:replace="android:label" android:icon="@mipmap/ic_launcher"
|
|
||||||
android:requestLegacyExternalStorage="true">
|
|
||||||
<activity android:exported="true" android:name=".MainActivity"
|
|
||||||
android:launchMode="singleTop" android:theme="@style/LaunchTheme"
|
|
||||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
|
||||||
android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize"
|
|
||||||
android:showWhenLocked="true"
|
|
||||||
android:turnScreenOn="true">
|
|
||||||
<meta-data android:name="io.flutter.embedding.android.NormalTheme"
|
|
||||||
android:resource="@style/NormalTheme" />
|
|
||||||
<intent-filter>
|
|
||||||
<action android:name="android.intent.action.MAIN" />
|
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
|
||||||
</intent-filter>
|
|
||||||
<intent-filter android:autoVerify="true">
|
|
||||||
<action android:name="android.intent.action.VIEW" />
|
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
|
||||||
<category android:name="android.intent.category.BROWSABLE" />
|
|
||||||
<!-- Accepts URIs that begin with https://api.filcnaplo.hu -->
|
|
||||||
<data
|
|
||||||
android:scheme="https"
|
|
||||||
android:host="api.filcnaplo.hu"
|
|
||||||
android:pathPrefix="/callback" />
|
|
||||||
</intent-filter>
|
|
||||||
</activity>
|
|
||||||
<meta-data android:name="flutterEmbedding" android:value="2" />
|
|
||||||
|
|
||||||
<receiver android:name=".widget_timetable.WidgetTimetable"
|
|
||||||
android:exported="true">
|
|
||||||
<intent-filter>
|
|
||||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
|
||||||
<action android:name="list_widget.ACTION_WIDGET_CLICK_NAV_LEFT" />
|
|
||||||
<action android:name="list_widget.ACTION_WIDGET_CLICK_NAV_RIGHT" />
|
|
||||||
<action android:name="list_widget.ACTION_WIDGET_CLICK_NAV_TODAY" />
|
|
||||||
<action android:name="list_widget.ACTION_WIDGET_CLICK_NAV_REFRESH" />
|
|
||||||
<action android:name="list_widget.ACTION_WIDGET_CLICK_BUY_PREMIUM" />
|
|
||||||
</intent-filter>
|
|
||||||
|
|
||||||
<meta-data
|
|
||||||
android:name="android.appwidget.provider"
|
|
||||||
android:resource="@xml/home_widget_test_info" />
|
|
||||||
</receiver>
|
|
||||||
|
|
||||||
<service android:name=".widget_timetable.WidgetTimetableService"
|
|
||||||
android:permission="android.permission.BIND_REMOTEVIEWS" />
|
|
||||||
|
|
||||||
<receiver android:name="es.antonborri.home_widget.HomeWidgetBackgroundReceiver"
|
|
||||||
android:exported="true">
|
|
||||||
<intent-filter>
|
|
||||||
<action android:name="es.antonborri.home_widget.action.BACKGROUND" />
|
|
||||||
</intent-filter>
|
|
||||||
</receiver>
|
|
||||||
|
|
||||||
<service android:name="es.antonborri.home_widget.HomeWidgetBackgroundService"
|
|
||||||
android:permission="android.permission.BIND_JOB_SERVICE" android:exported="true" />
|
|
||||||
</application>
|
|
||||||
|
|
||||||
<!-- Permissions -->
|
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
|
||||||
<uses-permission android:name="android.permission.VIBRATE" />
|
|
||||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
|
||||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
|
||||||
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
|
|
||||||
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
|
|
||||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
||||||
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
|
||||||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
|
|
||||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
|
||||||
</manifest>
|
|
@ -1,9 +0,0 @@
|
|||||||
package hu.refilc.naplo;
|
|
||||||
|
|
||||||
import io.flutter.embedding.android.FlutterActivity;
|
|
||||||
|
|
||||||
import io.flutter.embedding.engine.FlutterEngine;
|
|
||||||
|
|
||||||
public class MainActivity extends FlutterActivity {
|
|
||||||
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
../../../../../../../../../filcnaplo_premium/android/database
|
|
@ -1 +0,0 @@
|
|||||||
../../../../../../../../../filcnaplo_premium/android/utils
|
|
@ -1 +0,0 @@
|
|||||||
../../../../../../../../../filcnaplo_premium/android/widget_timetable
|
|
Before Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 69 B |
@ -1,11 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<item>
|
|
||||||
<shape>
|
|
||||||
<gradient
|
|
||||||
android:startColor="#123323"
|
|
||||||
android:endColor="#20AC9B"
|
|
||||||
android:angle="135" />
|
|
||||||
</shape>
|
|
||||||
</item>
|
|
||||||
</selector>
|
|
Before Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 20 KiB |
@ -1,7 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<item android:drawable="@drawable/launch_gradient_background" />
|
|
||||||
<item>
|
|
||||||
<bitmap android:gravity="center" android:src="@mipmap/ic_splash"/>
|
|
||||||
</item>
|
|
||||||
</layer-list>
|
|
@ -1,11 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<item>
|
|
||||||
<shape>
|
|
||||||
<gradient
|
|
||||||
android:startColor="#123323"
|
|
||||||
android:endColor="#20AC9B"
|
|
||||||
android:angle="135" />
|
|
||||||
</shape>
|
|
||||||
</item>
|
|
||||||
</selector>
|
|
Before Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 103 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 69 B |
@ -1,11 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<item>
|
|
||||||
<shape>
|
|
||||||
<gradient
|
|
||||||
android:startColor="#123323"
|
|
||||||
android:endColor="#20AC9B"
|
|
||||||
android:angle="135" />
|
|
||||||
</shape>
|
|
||||||
</item>
|
|
||||||
</selector>
|
|
Before Width: | Height: | Size: 185 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 185 KiB |
@ -1,12 +0,0 @@
|
|||||||
<resources>
|
|
||||||
|
|
||||||
<style name="Widget.Android.AppWidget.Container" parent="android:Widget">
|
|
||||||
<item name="android:padding">?attr/appWidgetPadding</item>
|
|
||||||
<item name="android:background">@drawable/app_widget_background</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="Widget.Android.AppWidget.InnerView" parent="android:Widget">
|
|
||||||
<item name="android:padding">?attr/appWidgetPadding</item>
|
|
||||||
<item name="android:background">@drawable/app_widget_inner_view_background</item>
|
|
||||||
</style>
|
|
||||||
</resources>
|
|
@ -1,8 +0,0 @@
|
|||||||
org.gradle.jvmargs=-Xmx1536M \
|
|
||||||
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED \
|
|
||||||
--add-opens=java.base/java.lang=ALL-UNNAMED \
|
|
||||||
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED \
|
|
||||||
--add-opens=java.base/java.io=ALL-UNNAMED \
|
|
||||||
--add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED
|
|
||||||
android.useAndroidX=true
|
|
||||||
android.enableJetifier=true
|
|
@ -1,11 +0,0 @@
|
|||||||
include ':app'
|
|
||||||
|
|
||||||
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
|
|
||||||
def properties = new Properties()
|
|
||||||
|
|
||||||
assert localPropertiesFile.exists()
|
|
||||||
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
|
|
||||||
|
|
||||||
def flutterSdkPath = properties.getProperty("flutter.sdk")
|
|
||||||
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
|
|
||||||
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
|
|
@ -1,93 +0,0 @@
|
|||||||
Copyright 2011 The Montserrat Project Authors (https://github.com/JulietaUla/Montserrat)
|
|
||||||
|
|
||||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
||||||
This license is copied below, and is also available with a FAQ at:
|
|
||||||
http://scripts.sil.org/OFL
|
|
||||||
|
|
||||||
|
|
||||||
-----------------------------------------------------------
|
|
||||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
||||||
-----------------------------------------------------------
|
|
||||||
|
|
||||||
PREAMBLE
|
|
||||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
||||||
development of collaborative font projects, to support the font creation
|
|
||||||
efforts of academic and linguistic communities, and to provide a free and
|
|
||||||
open framework in which fonts may be shared and improved in partnership
|
|
||||||
with others.
|
|
||||||
|
|
||||||
The OFL allows the licensed fonts to be used, studied, modified and
|
|
||||||
redistributed freely as long as they are not sold by themselves. The
|
|
||||||
fonts, including any derivative works, can be bundled, embedded,
|
|
||||||
redistributed and/or sold with any software provided that any reserved
|
|
||||||
names are not used by derivative works. The fonts and derivatives,
|
|
||||||
however, cannot be released under any other type of license. The
|
|
||||||
requirement for fonts to remain under this license does not apply
|
|
||||||
to any document created using the fonts or their derivatives.
|
|
||||||
|
|
||||||
DEFINITIONS
|
|
||||||
"Font Software" refers to the set of files released by the Copyright
|
|
||||||
Holder(s) under this license and clearly marked as such. This may
|
|
||||||
include source files, build scripts and documentation.
|
|
||||||
|
|
||||||
"Reserved Font Name" refers to any names specified as such after the
|
|
||||||
copyright statement(s).
|
|
||||||
|
|
||||||
"Original Version" refers to the collection of Font Software components as
|
|
||||||
distributed by the Copyright Holder(s).
|
|
||||||
|
|
||||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
||||||
or substituting -- in part or in whole -- any of the components of the
|
|
||||||
Original Version, by changing formats or by porting the Font Software to a
|
|
||||||
new environment.
|
|
||||||
|
|
||||||
"Author" refers to any designer, engineer, programmer, technical
|
|
||||||
writer or other person who contributed to the Font Software.
|
|
||||||
|
|
||||||
PERMISSION & CONDITIONS
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
||||||
redistribute, and sell modified and unmodified copies of the Font
|
|
||||||
Software, subject to the following conditions:
|
|
||||||
|
|
||||||
1) Neither the Font Software nor any of its individual components,
|
|
||||||
in Original or Modified Versions, may be sold by itself.
|
|
||||||
|
|
||||||
2) Original or Modified Versions of the Font Software may be bundled,
|
|
||||||
redistributed and/or sold with any software, provided that each copy
|
|
||||||
contains the above copyright notice and this license. These can be
|
|
||||||
included either as stand-alone text files, human-readable headers or
|
|
||||||
in the appropriate machine-readable metadata fields within text or
|
|
||||||
binary files as long as those fields can be easily viewed by the user.
|
|
||||||
|
|
||||||
3) No Modified Version of the Font Software may use the Reserved Font
|
|
||||||
Name(s) unless explicit written permission is granted by the corresponding
|
|
||||||
Copyright Holder. This restriction only applies to the primary font name as
|
|
||||||
presented to the users.
|
|
||||||
|
|
||||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
||||||
Software shall not be used to promote, endorse or advertise any
|
|
||||||
Modified Version, except to acknowledge the contribution(s) of the
|
|
||||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
||||||
permission.
|
|
||||||
|
|
||||||
5) The Font Software, modified or unmodified, in part or in whole,
|
|
||||||
must be distributed entirely under this license, and must not be
|
|
||||||
distributed under any other license. The requirement for fonts to
|
|
||||||
remain under this license does not apply to any document created
|
|
||||||
using the Font Software.
|
|
||||||
|
|
||||||
TERMINATION
|
|
||||||
This license becomes null and void if any of the above conditions are
|
|
||||||
not met.
|
|
||||||
|
|
||||||
DISCLAIMER
|
|
||||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
||||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
||||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
||||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
||||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
||||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Before Width: | Height: | Size: 1.5 MiB |
Before Width: | Height: | Size: 1.4 MiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 735 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 4.7 KiB |
@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
flutter build apk --release --dart-define=APPVER=$(cat pubspec.yaml | grep version: | cut -d' ' -f2 | cut -d+ -f1) --no-tree-shake-icons
|
|
33
filcnaplo/ios/.gitignore
vendored
@ -1,33 +0,0 @@
|
|||||||
*.mode1v3
|
|
||||||
*.mode2v3
|
|
||||||
*.moved-aside
|
|
||||||
*.pbxuser
|
|
||||||
*.perspectivev3
|
|
||||||
**/*sync/
|
|
||||||
.sconsign.dblite
|
|
||||||
.tags*
|
|
||||||
**/.vagrant/
|
|
||||||
**/DerivedData/
|
|
||||||
Icon?
|
|
||||||
**/Pods/
|
|
||||||
**/.symlinks/
|
|
||||||
profile
|
|
||||||
xcuserdata
|
|
||||||
**/.generated/
|
|
||||||
Flutter/App.framework
|
|
||||||
Flutter/Flutter.framework
|
|
||||||
Flutter/Flutter.podspec
|
|
||||||
Flutter/Generated.xcconfig
|
|
||||||
Flutter/ephemeral/
|
|
||||||
Flutter/app.flx
|
|
||||||
Flutter/app.zip
|
|
||||||
Flutter/flutter_assets/
|
|
||||||
Flutter/flutter_export_environment.sh
|
|
||||||
ServiceDefinitions.json
|
|
||||||
Runner/GeneratedPluginRegistrant.*
|
|
||||||
|
|
||||||
# Exceptions to above rules.
|
|
||||||
!default.mode1v3
|
|
||||||
!default.mode2v3
|
|
||||||
!default.pbxuser
|
|
||||||
!default.perspectivev3
|
|
@ -1,15 +0,0 @@
|
|||||||
// This is a generated file; do not edit or check into version control.
|
|
||||||
FLUTTER_ROOT=/Users/kima/development/flutter
|
|
||||||
FLUTTER_APPLICATION_PATH=/Users/kima/Documents/refilc/app/naplo/filcnaplo
|
|
||||||
COCOAPODS_PARALLEL_CODE_SIGN=true
|
|
||||||
FLUTTER_TARGET=/Users/kima/Documents/refilc/app/naplo/filcnaplo/lib/main.dart
|
|
||||||
FLUTTER_BUILD_DIR=build
|
|
||||||
FLUTTER_BUILD_NAME=3.5.1
|
|
||||||
FLUTTER_BUILD_NUMBER=197
|
|
||||||
EXCLUDED_ARCHS[sdk=iphonesimulator*]=i386
|
|
||||||
EXCLUDED_ARCHS[sdk=iphoneos*]=armv7
|
|
||||||
DART_DEFINES=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==,RkxVVFRFUl9XRUJfQ0FOVkFTS0lUX1VSTD1odHRwczovL3d3dy5nc3RhdGljLmNvbS9mbHV0dGVyLWNhbnZhc2tpdC9iNGZiMTEyMTRkZDJkZGE2Y2UwMTJkZDk4ZWE0OThlOWU4YjkxMjYyLw==
|
|
||||||
DART_OBFUSCATION=false
|
|
||||||
TRACK_WIDGET_CREATION=true
|
|
||||||
TREE_SHAKE_ICONS=false
|
|
||||||
PACKAGE_CONFIG=/Users/kima/Documents/refilc/app/naplo/filcnaplo/.dart_tool/package_config.json
|
|
@ -1,15 +0,0 @@
|
|||||||
// This is a generated file; do not edit or check into version control.
|
|
||||||
FLUTTER_ROOT=/Users/kima/development/flutter
|
|
||||||
FLUTTER_APPLICATION_PATH=/Users/kima/Documents/refilc/app/naplo/filcnaplo
|
|
||||||
COCOAPODS_PARALLEL_CODE_SIGN=true
|
|
||||||
FLUTTER_TARGET=/Users/kima/Documents/refilc/app/naplo/filcnaplo/lib/main.dart
|
|
||||||
FLUTTER_BUILD_DIR=build
|
|
||||||
FLUTTER_BUILD_NAME=4.1.0
|
|
||||||
FLUTTER_BUILD_NUMBER=213
|
|
||||||
EXCLUDED_ARCHS[sdk=iphonesimulator*]=i386
|
|
||||||
EXCLUDED_ARCHS[sdk=iphoneos*]=armv7
|
|
||||||
DART_DEFINES=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==,RkxVVFRFUl9XRUJfQ0FOVkFTS0lUX1VSTD1odHRwczovL3d3dy5nc3RhdGljLmNvbS9mbHV0dGVyLWNhbnZhc2tpdC8yYTM0MDFjOWJiYjVhOWE5YWVjNzRkNGY3MzVkMThhOWRkM2ViZjJkLw==
|
|
||||||
DART_OBFUSCATION=false
|
|
||||||
TRACK_WIDGET_CREATION=true
|
|
||||||
TREE_SHAKE_ICONS=false
|
|
||||||
PACKAGE_CONFIG=/Users/kima/Documents/refilc/app/naplo/filcnaplo/.dart_tool/package_config.json
|
|
@ -1,14 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# This is a generated file; do not edit or check into version control.
|
|
||||||
export "FLUTTER_ROOT=/Users/kima/development/flutter"
|
|
||||||
export "FLUTTER_APPLICATION_PATH=/Users/kima/Documents/refilc/app/naplo/filcnaplo"
|
|
||||||
export "COCOAPODS_PARALLEL_CODE_SIGN=true"
|
|
||||||
export "FLUTTER_TARGET=/Users/kima/Documents/refilc/app/naplo/filcnaplo/lib/main.dart"
|
|
||||||
export "FLUTTER_BUILD_DIR=build"
|
|
||||||
export "FLUTTER_BUILD_NAME=4.1.0"
|
|
||||||
export "FLUTTER_BUILD_NUMBER=213"
|
|
||||||
export "DART_DEFINES=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==,RkxVVFRFUl9XRUJfQ0FOVkFTS0lUX1VSTD1odHRwczovL3d3dy5nc3RhdGljLmNvbS9mbHV0dGVyLWNhbnZhc2tpdC8yYTM0MDFjOWJiYjVhOWE5YWVjNzRkNGY3MzVkMThhOWRkM2ViZjJkLw=="
|
|
||||||
export "DART_OBFUSCATION=false"
|
|
||||||
export "TRACK_WIDGET_CREATION=true"
|
|
||||||
export "TREE_SHAKE_ICONS=false"
|
|
||||||
export "PACKAGE_CONFIG=/Users/kima/Documents/refilc/app/naplo/filcnaplo/.dart_tool/package_config.json"
|
|
@ -1,237 +0,0 @@
|
|||||||
PODS:
|
|
||||||
- app_group_directory (1.0.0):
|
|
||||||
- Flutter
|
|
||||||
- background_fetch (1.1.6):
|
|
||||||
- Flutter
|
|
||||||
- connectivity_plus (0.0.1):
|
|
||||||
- Flutter
|
|
||||||
- ReachabilitySwift
|
|
||||||
- DKImagePickerController/Core (4.3.4):
|
|
||||||
- DKImagePickerController/ImageDataManager
|
|
||||||
- DKImagePickerController/Resource
|
|
||||||
- DKImagePickerController/ImageDataManager (4.3.4)
|
|
||||||
- DKImagePickerController/PhotoGallery (4.3.4):
|
|
||||||
- DKImagePickerController/Core
|
|
||||||
- DKPhotoGallery
|
|
||||||
- DKImagePickerController/Resource (4.3.4)
|
|
||||||
- DKPhotoGallery (0.0.17):
|
|
||||||
- DKPhotoGallery/Core (= 0.0.17)
|
|
||||||
- DKPhotoGallery/Model (= 0.0.17)
|
|
||||||
- DKPhotoGallery/Preview (= 0.0.17)
|
|
||||||
- DKPhotoGallery/Resource (= 0.0.17)
|
|
||||||
- SDWebImage
|
|
||||||
- SwiftyGif
|
|
||||||
- DKPhotoGallery/Core (0.0.17):
|
|
||||||
- DKPhotoGallery/Model
|
|
||||||
- DKPhotoGallery/Preview
|
|
||||||
- SDWebImage
|
|
||||||
- SwiftyGif
|
|
||||||
- DKPhotoGallery/Model (0.0.17):
|
|
||||||
- SDWebImage
|
|
||||||
- SwiftyGif
|
|
||||||
- DKPhotoGallery/Preview (0.0.17):
|
|
||||||
- DKPhotoGallery/Model
|
|
||||||
- DKPhotoGallery/Resource
|
|
||||||
- SDWebImage
|
|
||||||
- SwiftyGif
|
|
||||||
- DKPhotoGallery/Resource (0.0.17):
|
|
||||||
- SDWebImage
|
|
||||||
- SwiftyGif
|
|
||||||
- file_picker (0.0.1):
|
|
||||||
- DKImagePickerController/PhotoGallery
|
|
||||||
- Flutter
|
|
||||||
- Flutter (1.0.0)
|
|
||||||
- flutter_custom_tabs (0.0.1):
|
|
||||||
- Flutter
|
|
||||||
- flutter_image_compress (1.0.0):
|
|
||||||
- Flutter
|
|
||||||
- Mantle
|
|
||||||
- SDWebImage
|
|
||||||
- SDWebImageWebPCoder
|
|
||||||
- flutter_local_notifications (0.0.1):
|
|
||||||
- Flutter
|
|
||||||
- flutter_native_image (0.0.1):
|
|
||||||
- Flutter
|
|
||||||
- flutter_native_splash (0.0.1):
|
|
||||||
- Flutter
|
|
||||||
- FMDB (2.7.5):
|
|
||||||
- FMDB/standard (= 2.7.5)
|
|
||||||
- FMDB/standard (2.7.5)
|
|
||||||
- home_widget (0.0.1):
|
|
||||||
- Flutter
|
|
||||||
- image_picker_ios (0.0.1):
|
|
||||||
- Flutter
|
|
||||||
- libwebp (1.2.4):
|
|
||||||
- libwebp/demux (= 1.2.4)
|
|
||||||
- libwebp/mux (= 1.2.4)
|
|
||||||
- libwebp/webp (= 1.2.4)
|
|
||||||
- libwebp/demux (1.2.4):
|
|
||||||
- libwebp/webp
|
|
||||||
- libwebp/mux (1.2.4):
|
|
||||||
- libwebp/demux
|
|
||||||
- libwebp/webp (1.2.4)
|
|
||||||
- live_activities (0.0.1):
|
|
||||||
- Flutter
|
|
||||||
- Mantle (2.2.0):
|
|
||||||
- Mantle/extobjc (= 2.2.0)
|
|
||||||
- Mantle/extobjc (2.2.0)
|
|
||||||
- open_file (0.0.1):
|
|
||||||
- Flutter
|
|
||||||
- package_info_plus (0.4.5):
|
|
||||||
- Flutter
|
|
||||||
- path_provider_foundation (0.0.1):
|
|
||||||
- Flutter
|
|
||||||
- FlutterMacOS
|
|
||||||
- permission_handler_apple (9.0.4):
|
|
||||||
- Flutter
|
|
||||||
- quick_actions_ios (0.0.1):
|
|
||||||
- Flutter
|
|
||||||
- ReachabilitySwift (5.0.0)
|
|
||||||
- SDWebImage (5.13.2):
|
|
||||||
- SDWebImage/Core (= 5.13.2)
|
|
||||||
- SDWebImage/Core (5.13.2)
|
|
||||||
- SDWebImageWebPCoder (0.9.1):
|
|
||||||
- libwebp (~> 1.0)
|
|
||||||
- SDWebImage/Core (~> 5.13)
|
|
||||||
- share_plus (0.0.1):
|
|
||||||
- Flutter
|
|
||||||
- sqflite (0.0.3):
|
|
||||||
- Flutter
|
|
||||||
- FMDB (>= 2.7.5)
|
|
||||||
- SwiftyGif (5.4.3)
|
|
||||||
- uni_links (0.0.1):
|
|
||||||
- Flutter
|
|
||||||
- url_launcher_ios (0.0.1):
|
|
||||||
- Flutter
|
|
||||||
- workmanager (0.0.1):
|
|
||||||
- Flutter
|
|
||||||
|
|
||||||
DEPENDENCIES:
|
|
||||||
- app_group_directory (from `.symlinks/plugins/app_group_directory/ios`)
|
|
||||||
- background_fetch (from `.symlinks/plugins/background_fetch/ios`)
|
|
||||||
- connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`)
|
|
||||||
- DKImagePickerController/PhotoGallery (from `https://github.com/zhangao0086/DKImagePickerController.git`)
|
|
||||||
- file_picker (from `.symlinks/plugins/file_picker/ios`)
|
|
||||||
- Flutter (from `Flutter`)
|
|
||||||
- flutter_custom_tabs (from `.symlinks/plugins/flutter_custom_tabs/ios`)
|
|
||||||
- flutter_image_compress (from `.symlinks/plugins/flutter_image_compress/ios`)
|
|
||||||
- flutter_local_notifications (from `.symlinks/plugins/flutter_local_notifications/ios`)
|
|
||||||
- flutter_native_image (from `.symlinks/plugins/flutter_native_image/ios`)
|
|
||||||
- flutter_native_splash (from `.symlinks/plugins/flutter_native_splash/ios`)
|
|
||||||
- home_widget (from `.symlinks/plugins/home_widget/ios`)
|
|
||||||
- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
|
|
||||||
- live_activities (from `.symlinks/plugins/live_activities/ios`)
|
|
||||||
- open_file (from `.symlinks/plugins/open_file/ios`)
|
|
||||||
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
|
|
||||||
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
|
|
||||||
- permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
|
|
||||||
- quick_actions_ios (from `.symlinks/plugins/quick_actions_ios/ios`)
|
|
||||||
- share_plus (from `.symlinks/plugins/share_plus/ios`)
|
|
||||||
- sqflite (from `.symlinks/plugins/sqflite/ios`)
|
|
||||||
- uni_links (from `.symlinks/plugins/uni_links/ios`)
|
|
||||||
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
|
|
||||||
- workmanager (from `.symlinks/plugins/workmanager/ios`)
|
|
||||||
|
|
||||||
SPEC REPOS:
|
|
||||||
trunk:
|
|
||||||
- DKPhotoGallery
|
|
||||||
- FMDB
|
|
||||||
- libwebp
|
|
||||||
- Mantle
|
|
||||||
- ReachabilitySwift
|
|
||||||
- SDWebImage
|
|
||||||
- SDWebImageWebPCoder
|
|
||||||
- SwiftyGif
|
|
||||||
|
|
||||||
EXTERNAL SOURCES:
|
|
||||||
app_group_directory:
|
|
||||||
:path: ".symlinks/plugins/app_group_directory/ios"
|
|
||||||
background_fetch:
|
|
||||||
:path: ".symlinks/plugins/background_fetch/ios"
|
|
||||||
connectivity_plus:
|
|
||||||
:path: ".symlinks/plugins/connectivity_plus/ios"
|
|
||||||
DKImagePickerController:
|
|
||||||
:git: https://github.com/zhangao0086/DKImagePickerController.git
|
|
||||||
file_picker:
|
|
||||||
:path: ".symlinks/plugins/file_picker/ios"
|
|
||||||
Flutter:
|
|
||||||
:path: Flutter
|
|
||||||
flutter_custom_tabs:
|
|
||||||
:path: ".symlinks/plugins/flutter_custom_tabs/ios"
|
|
||||||
flutter_image_compress:
|
|
||||||
:path: ".symlinks/plugins/flutter_image_compress/ios"
|
|
||||||
flutter_local_notifications:
|
|
||||||
:path: ".symlinks/plugins/flutter_local_notifications/ios"
|
|
||||||
flutter_native_image:
|
|
||||||
:path: ".symlinks/plugins/flutter_native_image/ios"
|
|
||||||
flutter_native_splash:
|
|
||||||
:path: ".symlinks/plugins/flutter_native_splash/ios"
|
|
||||||
home_widget:
|
|
||||||
:path: ".symlinks/plugins/home_widget/ios"
|
|
||||||
image_picker_ios:
|
|
||||||
:path: ".symlinks/plugins/image_picker_ios/ios"
|
|
||||||
live_activities:
|
|
||||||
:path: ".symlinks/plugins/live_activities/ios"
|
|
||||||
open_file:
|
|
||||||
:path: ".symlinks/plugins/open_file/ios"
|
|
||||||
package_info_plus:
|
|
||||||
:path: ".symlinks/plugins/package_info_plus/ios"
|
|
||||||
path_provider_foundation:
|
|
||||||
:path: ".symlinks/plugins/path_provider_foundation/darwin"
|
|
||||||
permission_handler_apple:
|
|
||||||
:path: ".symlinks/plugins/permission_handler_apple/ios"
|
|
||||||
quick_actions_ios:
|
|
||||||
:path: ".symlinks/plugins/quick_actions_ios/ios"
|
|
||||||
share_plus:
|
|
||||||
:path: ".symlinks/plugins/share_plus/ios"
|
|
||||||
sqflite:
|
|
||||||
:path: ".symlinks/plugins/sqflite/ios"
|
|
||||||
uni_links:
|
|
||||||
:path: ".symlinks/plugins/uni_links/ios"
|
|
||||||
url_launcher_ios:
|
|
||||||
:path: ".symlinks/plugins/url_launcher_ios/ios"
|
|
||||||
workmanager:
|
|
||||||
:path: ".symlinks/plugins/workmanager/ios"
|
|
||||||
|
|
||||||
CHECKOUT OPTIONS:
|
|
||||||
DKImagePickerController:
|
|
||||||
:commit: a727e44718a67e300089174e5591166045815ba4
|
|
||||||
:git: https://github.com/zhangao0086/DKImagePickerController.git
|
|
||||||
|
|
||||||
SPEC CHECKSUMS:
|
|
||||||
app_group_directory: 7bf9f8f9819ead554de29da7c25fb7a680d6a9a0
|
|
||||||
background_fetch: bc9b44b0bf8b434e282a2ac9be8662800a0296ed
|
|
||||||
connectivity_plus: 07c49e96d7fc92bc9920617b83238c4d178b446a
|
|
||||||
DKImagePickerController: b512c28220a2b8ac7419f21c491fc8534b7601ac
|
|
||||||
DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179
|
|
||||||
file_picker: ce3938a0df3cc1ef404671531facef740d03f920
|
|
||||||
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
|
|
||||||
flutter_custom_tabs: 7a10a08686955cb748e5d26e0ae586d30689bf89
|
|
||||||
flutter_image_compress: 5a5e9aee05b6553048b8df1c3bc456d0afaac433
|
|
||||||
flutter_local_notifications: 0c0b1ae97e741e1521e4c1629a459d04b9aec743
|
|
||||||
flutter_native_image: 9c0b7451838484458e5b0fae007b86a4c2d4bdfe
|
|
||||||
flutter_native_splash: 52501b97d1c0a5f898d687f1646226c1f93c56ef
|
|
||||||
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
|
|
||||||
home_widget: 2829415127ee92e876f816cbbe44c0b6601b8a37
|
|
||||||
image_picker_ios: 4a8aadfbb6dc30ad5141a2ce3832af9214a705b5
|
|
||||||
libwebp: f62cb61d0a484ba548448a4bd52aabf150ff6eef
|
|
||||||
live_activities: 9ff56a06a2d43ecd68f56deeed13b18a8304789c
|
|
||||||
Mantle: c5aa8794a29a022dfbbfc9799af95f477a69b62d
|
|
||||||
open_file: 02eb5cb6b21264bd3a696876f5afbfb7ca4f4b7d
|
|
||||||
package_info_plus: fd030dabf36271f146f1f3beacd48f564b0f17f7
|
|
||||||
path_provider_foundation: eaf5b3e458fc0e5fbb9940fb09980e853fe058b8
|
|
||||||
permission_handler_apple: 44366e37eaf29454a1e7b1b7d736c2cceaeb17ce
|
|
||||||
quick_actions_ios: 9e80dcfadfbc5d47d9cf8f47bcf428b11cf383d4
|
|
||||||
ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825
|
|
||||||
SDWebImage: 72f86271a6f3139cc7e4a89220946489d4b9a866
|
|
||||||
SDWebImageWebPCoder: 18503de6621dd2c420d680e33d46bf8e1d5169b0
|
|
||||||
share_plus: 599aa54e4ea31d4b4c0e9c911bcc26c55e791028
|
|
||||||
sqflite: 31f7eba61e3074736dff8807a9b41581e4f7f15a
|
|
||||||
SwiftyGif: 6c3eafd0ce693cad58bb63d2b2fb9bacb8552780
|
|
||||||
uni_links: d97da20c7701486ba192624d99bffaaffcfc298a
|
|
||||||
url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4
|
|
||||||
workmanager: 0afdcf5628bbde6924c21af7836fed07b42e30e6
|
|
||||||
|
|
||||||
PODFILE CHECKSUM: efe5e2e257c61a1c3d5be693ef1a8ea1c4b81d8f
|
|
||||||
|
|
||||||
COCOAPODS: 1.12.1
|
|
@ -1,25 +0,0 @@
|
|||||||
import UIKit
|
|
||||||
import Flutter
|
|
||||||
|
|
||||||
@UIApplicationMain
|
|
||||||
@objc class AppDelegate: FlutterAppDelegate {
|
|
||||||
override func application(
|
|
||||||
_ application: UIApplication,
|
|
||||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
|
||||||
) -> Bool {
|
|
||||||
GeneratedPluginRegistrant.register(with: self)
|
|
||||||
|
|
||||||
// here, Without this code the task will not work.
|
|
||||||
//SwiftFlutterForegroundTaskPlugin.setPluginRegistrantCallback(registerPlugins)
|
|
||||||
if #available(iOS 10.0, *) {
|
|
||||||
UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate
|
|
||||||
}
|
|
||||||
|
|
||||||
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// here
|
|
||||||
func registerPlugins(registry: FlutterPluginRegistry) {
|
|
||||||
GeneratedPluginRegistrant.register(with: registry)
|
|
||||||
}
|
|
Before Width: | Height: | Size: 69 B |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 17 KiB |
@ -1,71 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>BGTaskSchedulerPermittedIdentifiers</key>
|
|
||||||
<array>
|
|
||||||
<string>com.transistorsoft.fetch</string>
|
|
||||||
</array>
|
|
||||||
<key>CADisableMinimumFrameDurationOnPhone</key>
|
|
||||||
<true/>
|
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
|
||||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
||||||
<key>CFBundleExecutable</key>
|
|
||||||
<string>$(EXECUTABLE_NAME)</string>
|
|
||||||
<key>CFBundleIdentifier</key>
|
|
||||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
|
||||||
<string>6.0</string>
|
|
||||||
<key>CFBundleName</key>
|
|
||||||
<string>reFilc</string>
|
|
||||||
<key>CFBundlePackageType</key>
|
|
||||||
<string>APPL</string>
|
|
||||||
<key>CFBundleShortVersionString</key>
|
|
||||||
<string>$(FLUTTER_BUILD_NAME)</string>
|
|
||||||
<key>CFBundleSignature</key>
|
|
||||||
<string>????</string>
|
|
||||||
<key>CFBundleVersion</key>
|
|
||||||
<string>$(FLUTTER_BUILD_NUMBER)</string>
|
|
||||||
<key>ITSAppUsesNonExemptEncryption</key>
|
|
||||||
<false/>
|
|
||||||
<key>LSApplicationQueriesSchemes</key>
|
|
||||||
<array>
|
|
||||||
<string>https</string>
|
|
||||||
<string>http</string>
|
|
||||||
</array>
|
|
||||||
<key>LSRequiresIPhoneOS</key>
|
|
||||||
<true/>
|
|
||||||
<key>NSPhotoLibraryUsageDescription</key>
|
|
||||||
<string>The app requires the photo library to set a custom profile picture.</string>
|
|
||||||
<key>NSSupportsLiveActivities</key>
|
|
||||||
<true/>
|
|
||||||
<key>UIApplicationSupportsIndirectInputEvents</key>
|
|
||||||
<true/>
|
|
||||||
<key>UIBackgroundModes</key>
|
|
||||||
<array>
|
|
||||||
<string>fetch</string>
|
|
||||||
<string>processing</string>
|
|
||||||
</array>
|
|
||||||
<key>UILaunchStoryboardName</key>
|
|
||||||
<string>LaunchScreen</string>
|
|
||||||
<key>UIMainStoryboardFile</key>
|
|
||||||
<string>Main</string>
|
|
||||||
<key>UIStatusBarHidden</key>
|
|
||||||
<false/>
|
|
||||||
<key>UISupportedInterfaceOrientations</key>
|
|
||||||
<array>
|
|
||||||
<string>UIInterfaceOrientationPortrait</string>
|
|
||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
||||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
||||||
</array>
|
|
||||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
|
||||||
<array>
|
|
||||||
<string>UIInterfaceOrientationPortrait</string>
|
|
||||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
||||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
||||||
</array>
|
|
||||||
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
||||||
<false/>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
Before Width: | Height: | Size: 577 KiB |
@ -1,29 +0,0 @@
|
|||||||
import Foundation
|
|
||||||
|
|
||||||
class LessonData {
|
|
||||||
var icon: String
|
|
||||||
var index: String
|
|
||||||
var title: String
|
|
||||||
var subtitle: String
|
|
||||||
var description: String
|
|
||||||
var startDate: Date
|
|
||||||
var endDate: Date
|
|
||||||
var date: ClosedRange<Date>
|
|
||||||
var nextSubject: String
|
|
||||||
var nextRoom: String
|
|
||||||
|
|
||||||
init?() {
|
|
||||||
let sharedDefault = UserDefaults(suiteName: "group.refilc.livecard")!
|
|
||||||
|
|
||||||
self.icon = sharedDefault.string(forKey: "icon")!
|
|
||||||
self.index = sharedDefault.string(forKey: "index")!
|
|
||||||
self.title = sharedDefault.string(forKey: "title")!
|
|
||||||
self.subtitle = sharedDefault.string(forKey: "subtitle")!
|
|
||||||
self.description = sharedDefault.string(forKey: "description")!
|
|
||||||
self.startDate = Date(timeIntervalSince1970: Double(sharedDefault.string(forKey: "startDate")!)! / 1000)
|
|
||||||
self.endDate = Date(timeIntervalSince1970: Double(sharedDefault.string(forKey: "endDate")!)! / 1000)
|
|
||||||
date = self.startDate...self.endDate
|
|
||||||
self.nextSubject = sharedDefault.string(forKey: "nextSubject")!
|
|
||||||
self.nextRoom = sharedDefault.string(forKey: "nextRoom")!
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,150 +0,0 @@
|
|||||||
import ActivityKit
|
|
||||||
import WidgetKit
|
|
||||||
import SwiftUI
|
|
||||||
|
|
||||||
@main
|
|
||||||
struct Widgets: WidgetBundle {
|
|
||||||
var body: some Widget {
|
|
||||||
if #available(iOS 16.1, *) {
|
|
||||||
LiveCardWidget()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// We need to redefined live activities pipe
|
|
||||||
struct LiveActivitiesAppAttributes: ActivityAttributes, Identifiable {
|
|
||||||
public struct ContentState: Codable, Hashable { }
|
|
||||||
|
|
||||||
var id = UUID()
|
|
||||||
}
|
|
||||||
|
|
||||||
struct LockScreenLiveActivityView: View {
|
|
||||||
let context: ActivityViewContext<LiveActivitiesAppAttributes>
|
|
||||||
|
|
||||||
let lesson = LessonData()
|
|
||||||
|
|
||||||
var body: some View {
|
|
||||||
HStack(alignment: .center) {
|
|
||||||
Image(systemName: lesson!.icon)
|
|
||||||
.resizable()
|
|
||||||
.aspectRatio(contentMode: .fit)
|
|
||||||
.frame(width: CGFloat(30), height: CGFloat(30))
|
|
||||||
.padding(.leading, CGFloat(24))
|
|
||||||
|
|
||||||
VStack(alignment: .leading) {
|
|
||||||
HStack(alignment: .center) {
|
|
||||||
Text(lesson!.index + lesson!.title)
|
|
||||||
.font(.title3)
|
|
||||||
.bold()
|
|
||||||
|
|
||||||
Text(lesson!.subtitle)
|
|
||||||
.font(.subheadline)
|
|
||||||
.padding(.trailing, 12)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (lesson!.description != "") {
|
|
||||||
Text(lesson!.description)
|
|
||||||
.font(.subheadline)
|
|
||||||
}
|
|
||||||
|
|
||||||
HStack {
|
|
||||||
Image(systemName: "arrow.right")
|
|
||||||
.resizable()
|
|
||||||
.aspectRatio(contentMode: .fit)
|
|
||||||
.frame(width: CGFloat(8), height: CGFloat(8))
|
|
||||||
Text(lesson!.nextSubject)
|
|
||||||
.font(.caption)
|
|
||||||
Text(lesson!.nextRoom)
|
|
||||||
.font(.caption2)
|
|
||||||
}
|
|
||||||
}.padding(15)
|
|
||||||
|
|
||||||
Spacer()
|
|
||||||
|
|
||||||
Text(timerInterval: lesson!.date, countsDown: true)
|
|
||||||
.multilineTextAlignment(.center)
|
|
||||||
.frame(width: 85)
|
|
||||||
.font(.title)
|
|
||||||
.monospacedDigit()
|
|
||||||
.padding(.trailing, CGFloat(24))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@available(iOSApplicationExtension 16.1, *)
|
|
||||||
struct LiveCardWidget: Widget {
|
|
||||||
var body: some WidgetConfiguration {
|
|
||||||
/// Live Activity Notification
|
|
||||||
ActivityConfiguration(for: LiveActivitiesAppAttributes.self) { context in
|
|
||||||
LockScreenLiveActivityView(context: context)
|
|
||||||
/// Dynamic Island
|
|
||||||
} dynamicIsland: { context in
|
|
||||||
let lesson = LessonData()
|
|
||||||
|
|
||||||
/// Expanded
|
|
||||||
return DynamicIsland {
|
|
||||||
DynamicIslandExpandedRegion(.leading) {
|
|
||||||
VStack {
|
|
||||||
Spacer()
|
|
||||||
Image(systemName: lesson!.icon)
|
|
||||||
.resizable()
|
|
||||||
.aspectRatio(contentMode: .fit)
|
|
||||||
.frame(width: CGFloat(30), height: CGFloat(30))
|
|
||||||
.padding(.leading, CGFloat(6))
|
|
||||||
.padding(.bottom, CGFloat(6))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
DynamicIslandExpandedRegion(.center) {
|
|
||||||
VStack(alignment: .leading) {
|
|
||||||
Text(lesson!.index + lesson!.title)
|
|
||||||
.lineLimit(1)
|
|
||||||
.font(.title3)
|
|
||||||
.bold()
|
|
||||||
|
|
||||||
Text(lesson!.description)
|
|
||||||
.lineLimit(2)
|
|
||||||
.font(.caption)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
DynamicIslandExpandedRegion(.trailing) {
|
|
||||||
VStack {
|
|
||||||
Spacer()
|
|
||||||
Text(lesson!.subtitle)
|
|
||||||
.lineLimit(1)
|
|
||||||
.font(.subheadline)
|
|
||||||
Spacer()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Compact
|
|
||||||
} compactLeading: {
|
|
||||||
Label {
|
|
||||||
Text(lesson!.title)
|
|
||||||
} icon: {
|
|
||||||
Image(systemName: lesson!.icon)
|
|
||||||
}
|
|
||||||
.font(.caption2)
|
|
||||||
} compactTrailing: {
|
|
||||||
Text(timerInterval: lesson!.date, countsDown: true)
|
|
||||||
.multilineTextAlignment(.center)
|
|
||||||
.frame(width: 40)
|
|
||||||
.font(.caption2)
|
|
||||||
|
|
||||||
/// Collapsed
|
|
||||||
} minimal: {
|
|
||||||
VStack(alignment: .center) {
|
|
||||||
Image(systemName: lesson!.icon)
|
|
||||||
.resizable()
|
|
||||||
.aspectRatio(contentMode: .fit)
|
|
||||||
.frame(width: CGFloat(12), height: CGFloat(12))
|
|
||||||
|
|
||||||
Text(timerInterval: lesson!.date, countsDown: true)
|
|
||||||
.multilineTextAlignment(.center)
|
|
||||||
.monospacedDigit()
|
|
||||||
.font(.system(size: CGFloat(10)))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.keylineTint(.accentColor)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,180 +0,0 @@
|
|||||||
import 'dart:convert';
|
|
||||||
import 'dart:developer';
|
|
||||||
|
|
||||||
import 'package:filcnaplo/models/config.dart';
|
|
||||||
import 'package:filcnaplo/models/news.dart';
|
|
||||||
import 'package:filcnaplo/models/release.dart';
|
|
||||||
import 'package:filcnaplo/models/settings.dart';
|
|
||||||
import 'package:filcnaplo/models/supporter.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/school.dart';
|
|
||||||
import 'package:flutter/foundation.dart';
|
|
||||||
import 'package:http/http.dart' as http;
|
|
||||||
import 'package:connectivity_plus/connectivity_plus.dart';
|
|
||||||
|
|
||||||
class FilcAPI {
|
|
||||||
// Public API
|
|
||||||
static const schoolList = "https://api.refilc.hu/v1/public/school-list";
|
|
||||||
static const news = "https://api.refilc.hu/v1/public/news";
|
|
||||||
static const supporters = "https://api.refilc.hu/v1/public/supporters";
|
|
||||||
|
|
||||||
// Private API
|
|
||||||
static const config = "https://api.refilc.hu/v1/private/config";
|
|
||||||
static const reportApi = "https://api.refilc.hu/v1/private/crash-report";
|
|
||||||
static const premiumApi = "https://api.filcnaplo.hu/premium/activate";
|
|
||||||
// static const premiumScopesApi = "https://api.filcnaplo.hu/premium/scopes";
|
|
||||||
|
|
||||||
// Updates
|
|
||||||
static const repo = "refilc/naplo";
|
|
||||||
static const releases = "https://api.github.com/repos/$repo/releases";
|
|
||||||
|
|
||||||
static Future<bool> checkConnectivity() async =>
|
|
||||||
(await Connectivity().checkConnectivity()) != ConnectivityResult.none;
|
|
||||||
|
|
||||||
static Future<List<School>?> getSchools() async {
|
|
||||||
try {
|
|
||||||
http.Response res = await http.get(Uri.parse(schoolList));
|
|
||||||
|
|
||||||
if (res.statusCode == 200) {
|
|
||||||
List<School> schools = (jsonDecode(res.body) as List)
|
|
||||||
.cast<Map>()
|
|
||||||
.map((json) => School.fromJson(json))
|
|
||||||
.toList();
|
|
||||||
schools.add(School(
|
|
||||||
city: "Tiszabura",
|
|
||||||
instituteCode: "supporttest-reni-tiszabura-teszt01",
|
|
||||||
name: "FILC Éles Reni tiszabura-teszt",
|
|
||||||
));
|
|
||||||
return schools;
|
|
||||||
} else {
|
|
||||||
throw "HTTP ${res.statusCode}: ${res.body}";
|
|
||||||
}
|
|
||||||
} on Exception catch (error, stacktrace) {
|
|
||||||
log("ERROR: FilcAPI.getSchools: $error $stacktrace");
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static Future<Config?> getConfig(SettingsProvider settings) async {
|
|
||||||
final userAgent = SettingsProvider.defaultSettings().config.userAgent;
|
|
||||||
|
|
||||||
Map<String, String> headers = {
|
|
||||||
"x-filc-id": settings.xFilcId,
|
|
||||||
"user-agent": userAgent,
|
|
||||||
};
|
|
||||||
|
|
||||||
log("[CONFIG] x-filc-id: \"${settings.xFilcId}\"");
|
|
||||||
log("[CONFIG] user-agent: \"$userAgent\"");
|
|
||||||
|
|
||||||
try {
|
|
||||||
http.Response res = await http.get(Uri.parse(config), headers: headers);
|
|
||||||
|
|
||||||
if (res.statusCode == 200) {
|
|
||||||
if (kDebugMode) {
|
|
||||||
print(jsonDecode(res.body));
|
|
||||||
}
|
|
||||||
return Config.fromJson(jsonDecode(res.body));
|
|
||||||
} else if (res.statusCode == 429) {
|
|
||||||
res = await http.get(Uri.parse(config));
|
|
||||||
if (res.statusCode == 200) return Config.fromJson(jsonDecode(res.body));
|
|
||||||
}
|
|
||||||
throw "HTTP ${res.statusCode}: ${res.body}";
|
|
||||||
} on Exception catch (error, stacktrace) {
|
|
||||||
log("ERROR: FilcAPI.getConfig: $error $stacktrace");
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static Future<List<News>?> getNews() async {
|
|
||||||
try {
|
|
||||||
http.Response res = await http.get(Uri.parse(news));
|
|
||||||
|
|
||||||
if (res.statusCode == 200) {
|
|
||||||
return (jsonDecode(res.body) as List)
|
|
||||||
.cast<Map>()
|
|
||||||
.map((e) => News.fromJson(e))
|
|
||||||
.toList();
|
|
||||||
} else {
|
|
||||||
throw "HTTP ${res.statusCode}: ${res.body}";
|
|
||||||
}
|
|
||||||
} on Exception catch (error, stacktrace) {
|
|
||||||
log("ERROR: FilcAPI.getNews: $error $stacktrace");
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static Future<Supporters?> getSupporters() async {
|
|
||||||
try {
|
|
||||||
http.Response res = await http.get(Uri.parse(supporters));
|
|
||||||
|
|
||||||
if (res.statusCode == 200) {
|
|
||||||
return Supporters.fromJson(jsonDecode(res.body));
|
|
||||||
} else {
|
|
||||||
throw "HTTP ${res.statusCode}: ${res.body}";
|
|
||||||
}
|
|
||||||
} on Exception catch (error, stacktrace) {
|
|
||||||
log("ERROR: FilcAPI.getSupporters: $error $stacktrace");
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static Future<List<Release>?> getReleases() async {
|
|
||||||
try {
|
|
||||||
http.Response res = await http.get(Uri.parse(releases));
|
|
||||||
|
|
||||||
if (res.statusCode == 200) {
|
|
||||||
return (jsonDecode(res.body) as List)
|
|
||||||
.cast<Map>()
|
|
||||||
.map((e) => Release.fromJson(e))
|
|
||||||
.toList();
|
|
||||||
} else {
|
|
||||||
throw "HTTP ${res.statusCode}: ${res.body}";
|
|
||||||
}
|
|
||||||
} on Exception catch (error, stacktrace) {
|
|
||||||
log("ERROR: FilcAPI.getReleases: $error $stacktrace");
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static Future<http.StreamedResponse?> downloadRelease(
|
|
||||||
ReleaseDownload release) {
|
|
||||||
try {
|
|
||||||
var client = http.Client();
|
|
||||||
var request = http.Request('GET', Uri.parse(release.url));
|
|
||||||
return client.send(request);
|
|
||||||
} on Exception catch (error, stacktrace) {
|
|
||||||
log("ERROR: FilcAPI.downloadRelease: $error $stacktrace");
|
|
||||||
return Future.value(null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static Future<void> sendReport(ErrorReport report) async {
|
|
||||||
try {
|
|
||||||
http.Response res = await http.post(Uri.parse(reportApi), body: {
|
|
||||||
"os": report.os,
|
|
||||||
"version": report.version,
|
|
||||||
"error": report.error,
|
|
||||||
"stack_trace": report.stack,
|
|
||||||
});
|
|
||||||
|
|
||||||
if (res.statusCode != 200) {
|
|
||||||
throw "HTTP ${res.statusCode}: ${res.body}";
|
|
||||||
}
|
|
||||||
} on Exception catch (error, stacktrace) {
|
|
||||||
log("ERROR: FilcAPI.sendReport: $error $stacktrace");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class ErrorReport {
|
|
||||||
String stack;
|
|
||||||
String os;
|
|
||||||
String version;
|
|
||||||
String error;
|
|
||||||
|
|
||||||
ErrorReport({
|
|
||||||
required this.stack,
|
|
||||||
required this.os,
|
|
||||||
required this.version,
|
|
||||||
required this.error,
|
|
||||||
});
|
|
||||||
}
|
|
@ -1,133 +0,0 @@
|
|||||||
// ignore_for_file: avoid_print, use_build_context_synchronously
|
|
||||||
|
|
||||||
import 'package:filcnaplo/utils/jwt.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/absence_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/event_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/exam_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/grade_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/homework_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/message_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/note_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/timetable_provider.dart';
|
|
||||||
import 'package:filcnaplo/api/providers/user_provider.dart';
|
|
||||||
import 'package:filcnaplo/api/providers/database_provider.dart';
|
|
||||||
import 'package:filcnaplo/models/settings.dart';
|
|
||||||
import 'package:filcnaplo/models/user.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/client/api.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/client/client.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/student.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/week.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:provider/provider.dart';
|
|
||||||
import 'package:filcnaplo/api/nonce.dart';
|
|
||||||
|
|
||||||
enum LoginState {
|
|
||||||
missingFields,
|
|
||||||
invalidGrant,
|
|
||||||
failed,
|
|
||||||
normal,
|
|
||||||
inProgress,
|
|
||||||
success
|
|
||||||
}
|
|
||||||
|
|
||||||
Nonce getNonce(String nonce, String username, String instituteCode) {
|
|
||||||
Nonce nonceEncoder = Nonce(
|
|
||||||
key: [98, 97, 83, 115, 120, 79, 119, 108, 85, 49, 106, 77], nonce: nonce);
|
|
||||||
nonceEncoder
|
|
||||||
.encode(instituteCode.toUpperCase() + nonce + username.toUpperCase());
|
|
||||||
|
|
||||||
return nonceEncoder;
|
|
||||||
}
|
|
||||||
|
|
||||||
Future loginApi({
|
|
||||||
required String username,
|
|
||||||
required String password,
|
|
||||||
required String instituteCode,
|
|
||||||
required BuildContext context,
|
|
||||||
void Function(User)? onLogin,
|
|
||||||
void Function()? onSuccess,
|
|
||||||
}) async {
|
|
||||||
Provider.of<KretaClient>(context, listen: false).userAgent =
|
|
||||||
Provider.of<SettingsProvider>(context, listen: false).config.userAgent;
|
|
||||||
|
|
||||||
Map<String, String> headers = {
|
|
||||||
"content-type": "application/x-www-form-urlencoded",
|
|
||||||
};
|
|
||||||
|
|
||||||
String nonceStr = await Provider.of<KretaClient>(context, listen: false)
|
|
||||||
.getAPI(KretaAPI.nonce, json: false);
|
|
||||||
|
|
||||||
Nonce nonce = getNonce(nonceStr, username, instituteCode);
|
|
||||||
headers.addAll(nonce.header());
|
|
||||||
|
|
||||||
Map? res = await Provider.of<KretaClient>(context, listen: false)
|
|
||||||
.postAPI(KretaAPI.login,
|
|
||||||
headers: headers,
|
|
||||||
body: User.loginBody(
|
|
||||||
username: username,
|
|
||||||
password: password,
|
|
||||||
instituteCode: instituteCode,
|
|
||||||
));
|
|
||||||
if (res != null) {
|
|
||||||
if (res.containsKey("error")) {
|
|
||||||
if (res["error"] == "invalid_grant") {
|
|
||||||
return LoginState.invalidGrant;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (res.containsKey("access_token")) {
|
|
||||||
try {
|
|
||||||
Provider.of<KretaClient>(context, listen: false).accessToken =
|
|
||||||
res["access_token"];
|
|
||||||
Map? studentJson =
|
|
||||||
await Provider.of<KretaClient>(context, listen: false)
|
|
||||||
.getAPI(KretaAPI.student(instituteCode));
|
|
||||||
Student student = Student.fromJson(studentJson!);
|
|
||||||
var user = User(
|
|
||||||
username: username,
|
|
||||||
password: password,
|
|
||||||
instituteCode: instituteCode,
|
|
||||||
name: student.name,
|
|
||||||
student: student,
|
|
||||||
role: JwtUtils.getRoleFromJWT(res["access_token"])!,
|
|
||||||
);
|
|
||||||
|
|
||||||
if (onLogin != null) onLogin(user);
|
|
||||||
|
|
||||||
// Store User in the database
|
|
||||||
await Provider.of<DatabaseProvider>(context, listen: false)
|
|
||||||
.store
|
|
||||||
.storeUser(user);
|
|
||||||
Provider.of<UserProvider>(context, listen: false).addUser(user);
|
|
||||||
Provider.of<UserProvider>(context, listen: false).setUser(user.id);
|
|
||||||
|
|
||||||
// Get user data
|
|
||||||
try {
|
|
||||||
await Future.wait([
|
|
||||||
Provider.of<GradeProvider>(context, listen: false).fetch(),
|
|
||||||
Provider.of<TimetableProvider>(context, listen: false)
|
|
||||||
.fetch(week: Week.current()),
|
|
||||||
Provider.of<ExamProvider>(context, listen: false).fetch(),
|
|
||||||
Provider.of<HomeworkProvider>(context, listen: false).fetch(),
|
|
||||||
Provider.of<MessageProvider>(context, listen: false).fetchAll(),
|
|
||||||
Provider.of<NoteProvider>(context, listen: false).fetch(),
|
|
||||||
Provider.of<EventProvider>(context, listen: false).fetch(),
|
|
||||||
Provider.of<AbsenceProvider>(context, listen: false).fetch(),
|
|
||||||
]);
|
|
||||||
} catch (error) {
|
|
||||||
print("WARNING: failed to fetch user data: $error");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (onSuccess != null) onSuccess();
|
|
||||||
|
|
||||||
return LoginState.success;
|
|
||||||
} catch (error) {
|
|
||||||
print("ERROR: loginApi: $error");
|
|
||||||
// maybe check debug mode
|
|
||||||
// ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text("ERROR: $error")));
|
|
||||||
return LoginState.failed;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return LoginState.failed;
|
|
||||||
}
|
|
@ -1,288 +0,0 @@
|
|||||||
// ignore_for_file: no_leading_underscores_for_local_identifiers
|
|
||||||
|
|
||||||
import 'dart:async';
|
|
||||||
import 'dart:io';
|
|
||||||
|
|
||||||
import 'package:filcnaplo/helpers/subject.dart';
|
|
||||||
import 'package:filcnaplo/models/settings.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/lesson.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/week.dart';
|
|
||||||
import 'package:filcnaplo/utils/format.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/timetable_provider.dart';
|
|
||||||
import 'package:flutter/foundation.dart';
|
|
||||||
import 'package:live_activities/live_activities.dart';
|
|
||||||
import 'package:filcnaplo_mobile_ui/pages/home/live_card/live_card.i18n.dart';
|
|
||||||
|
|
||||||
enum LiveCardState {
|
|
||||||
empty,
|
|
||||||
duringLesson,
|
|
||||||
duringBreak,
|
|
||||||
morning,
|
|
||||||
afternoon,
|
|
||||||
night,
|
|
||||||
summary
|
|
||||||
}
|
|
||||||
|
|
||||||
class LiveCardProvider extends ChangeNotifier {
|
|
||||||
Lesson? currentLesson;
|
|
||||||
Lesson? nextLesson;
|
|
||||||
Lesson? prevLesson;
|
|
||||||
List<Lesson>? nextLessons;
|
|
||||||
|
|
||||||
LiveCardState currentState = LiveCardState.empty;
|
|
||||||
late Timer _timer;
|
|
||||||
late final TimetableProvider _timetable;
|
|
||||||
late final SettingsProvider _settings;
|
|
||||||
|
|
||||||
late Duration _delay;
|
|
||||||
|
|
||||||
final _liveActivitiesPlugin = LiveActivities();
|
|
||||||
String? _latestActivityId;
|
|
||||||
Map<String, String> _lastActivity = {};
|
|
||||||
|
|
||||||
bool _hasCheckedTimetable = false;
|
|
||||||
|
|
||||||
LiveCardProvider({
|
|
||||||
required TimetableProvider timetable,
|
|
||||||
required SettingsProvider settings,
|
|
||||||
}) : _timetable = timetable,
|
|
||||||
_settings = settings {
|
|
||||||
// Check if live card is enabled .areActivitiesEnabled()
|
|
||||||
_liveActivitiesPlugin.areActivitiesEnabled().then((value) {
|
|
||||||
// Console log
|
|
||||||
if (kDebugMode) {
|
|
||||||
print("Live card enabled: $value");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (value) {
|
|
||||||
_liveActivitiesPlugin.init(appGroupId: "group.refilc.livecard");
|
|
||||||
|
|
||||||
_liveActivitiesPlugin.getAllActivitiesIds().then((value) {
|
|
||||||
_latestActivityId = value.isNotEmpty ? value.first : null;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
_timer = Timer.periodic(const Duration(seconds: 1), (timer) => update());
|
|
||||||
_delay = settings.bellDelayEnabled
|
|
||||||
? Duration(seconds: settings.bellDelay)
|
|
||||||
: Duration.zero;
|
|
||||||
update();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void dispose() {
|
|
||||||
_timer.cancel();
|
|
||||||
if (Platform.isIOS) {
|
|
||||||
_liveActivitiesPlugin.areActivitiesEnabled().then((value) {
|
|
||||||
if (value) {
|
|
||||||
if (_latestActivityId != null) {
|
|
||||||
_liveActivitiesPlugin.endActivity(_latestActivityId!);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
super.dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Debugging
|
|
||||||
static DateTime _now() {
|
|
||||||
return DateTime.now();
|
|
||||||
}
|
|
||||||
|
|
||||||
String getFloorDifference() {
|
|
||||||
final prevFloor = prevLesson!.getFloor();
|
|
||||||
final nextFloor = nextLesson!.getFloor();
|
|
||||||
if (prevFloor == null || nextFloor == null || prevFloor == nextFloor) {
|
|
||||||
return "to room";
|
|
||||||
}
|
|
||||||
if (nextFloor == 0) {
|
|
||||||
return "ground floor";
|
|
||||||
}
|
|
||||||
if (nextFloor > prevFloor) {
|
|
||||||
return "up floor";
|
|
||||||
} else {
|
|
||||||
return "down floor";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Map<String, String> toMap() {
|
|
||||||
switch (currentState) {
|
|
||||||
case LiveCardState.duringLesson:
|
|
||||||
return {
|
|
||||||
"icon": currentLesson != null
|
|
||||||
? SubjectIcon.resolveName(subject: currentLesson?.subject)
|
|
||||||
: "book",
|
|
||||||
"index":
|
|
||||||
currentLesson != null ? '${currentLesson!.lessonIndex}. ' : "",
|
|
||||||
"title": currentLesson != null
|
|
||||||
? ShortSubject.resolve(subject: currentLesson?.subject).capital()
|
|
||||||
: "",
|
|
||||||
"subtitle": currentLesson?.room.replaceAll("_", " ") ?? "",
|
|
||||||
"description": currentLesson?.description ?? "",
|
|
||||||
"startDate": ((currentLesson?.start.millisecondsSinceEpoch ?? 0) -
|
|
||||||
_delay.inMilliseconds)
|
|
||||||
.toString(),
|
|
||||||
"endDate": ((currentLesson?.end.millisecondsSinceEpoch ?? 0) -
|
|
||||||
_delay.inMilliseconds)
|
|
||||||
.toString(),
|
|
||||||
"nextSubject": nextLesson != null
|
|
||||||
? ShortSubject.resolve(subject: nextLesson?.subject).capital()
|
|
||||||
: "",
|
|
||||||
"nextRoom": nextLesson?.room.replaceAll("_", " ") ?? "",
|
|
||||||
};
|
|
||||||
case LiveCardState.duringBreak:
|
|
||||||
final iconFloorMap = {
|
|
||||||
"to room": "chevron.right.2",
|
|
||||||
"up floor": "arrow.up.right",
|
|
||||||
"down floor": "arrow.down.left",
|
|
||||||
"ground floor": "arrow.down.left",
|
|
||||||
};
|
|
||||||
|
|
||||||
final diff = getFloorDifference();
|
|
||||||
|
|
||||||
return {
|
|
||||||
"icon": iconFloorMap[diff] ?? "cup.and.saucer",
|
|
||||||
"title": "Szünet",
|
|
||||||
"description": "go $diff".i18n.fill([
|
|
||||||
diff != "to room" ? (nextLesson!.getFloor() ?? 0) : nextLesson!.room
|
|
||||||
]),
|
|
||||||
"startDate": ((prevLesson?.end.millisecondsSinceEpoch ?? 0) -
|
|
||||||
_delay.inMilliseconds)
|
|
||||||
.toString(),
|
|
||||||
"endDate": ((nextLesson?.start.millisecondsSinceEpoch ?? 0) -
|
|
||||||
_delay.inMilliseconds)
|
|
||||||
.toString(),
|
|
||||||
"nextSubject": (nextLesson != null
|
|
||||||
? ShortSubject.resolve(subject: nextLesson?.subject)
|
|
||||||
: "")
|
|
||||||
.capital(),
|
|
||||||
"nextRoom": nextLesson?.room.replaceAll("_", " ") ?? "",
|
|
||||||
"index": "",
|
|
||||||
"subtitle": "",
|
|
||||||
};
|
|
||||||
default:
|
|
||||||
return {};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void update() async {
|
|
||||||
if (Platform.isIOS) {
|
|
||||||
_liveActivitiesPlugin.areActivitiesEnabled().then((value) {
|
|
||||||
if (value) {
|
|
||||||
final cmap = toMap();
|
|
||||||
if (!mapEquals(cmap, _lastActivity)) {
|
|
||||||
_lastActivity = cmap;
|
|
||||||
try {
|
|
||||||
if (_lastActivity.isNotEmpty) {
|
|
||||||
if (_latestActivityId == null) {
|
|
||||||
_liveActivitiesPlugin
|
|
||||||
.createActivity(_lastActivity)
|
|
||||||
.then((value) => _latestActivityId = value);
|
|
||||||
} else {
|
|
||||||
_liveActivitiesPlugin.updateActivity(
|
|
||||||
_latestActivityId!, _lastActivity);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (_latestActivityId != null) {
|
|
||||||
_liveActivitiesPlugin.endActivity(_latestActivityId!);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
if (kDebugMode) {
|
|
||||||
print('ERROR: Unable to create or update iOS LiveCard!');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
List<Lesson> today = _today(_timetable);
|
|
||||||
|
|
||||||
if (today.isEmpty && !_hasCheckedTimetable) {
|
|
||||||
_hasCheckedTimetable = true;
|
|
||||||
await _timetable.fetch(week: Week.current());
|
|
||||||
today = _today(_timetable);
|
|
||||||
}
|
|
||||||
|
|
||||||
_delay = _settings.bellDelayEnabled
|
|
||||||
? Duration(seconds: _settings.bellDelay)
|
|
||||||
: Duration.zero;
|
|
||||||
|
|
||||||
final now = _now().add(_delay);
|
|
||||||
|
|
||||||
// Filter cancelled lessons #20
|
|
||||||
// Filter label lessons #128
|
|
||||||
today = today
|
|
||||||
.where((lesson) =>
|
|
||||||
lesson.status?.name != "Elmaradt" &&
|
|
||||||
lesson.subject.id != '' &&
|
|
||||||
!lesson.isEmpty)
|
|
||||||
.toList();
|
|
||||||
|
|
||||||
if (today.isNotEmpty) {
|
|
||||||
// sort
|
|
||||||
today.sort((a, b) => a.start.compareTo(b.start));
|
|
||||||
|
|
||||||
final _lesson = today.firstWhere(
|
|
||||||
(l) => l.start.isBefore(now) && l.end.isAfter(now),
|
|
||||||
orElse: () => Lesson.fromJson({}));
|
|
||||||
|
|
||||||
if (_lesson.start.year != 0) {
|
|
||||||
currentLesson = _lesson;
|
|
||||||
} else {
|
|
||||||
currentLesson = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
final _next = today.firstWhere((l) => l.start.isAfter(now),
|
|
||||||
orElse: () => Lesson.fromJson({}));
|
|
||||||
nextLessons = today.where((l) => l.start.isAfter(now)).toList();
|
|
||||||
|
|
||||||
if (_next.start.year != 0) {
|
|
||||||
nextLesson = _next;
|
|
||||||
} else {
|
|
||||||
nextLesson = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
final _prev = today.lastWhere((l) => l.end.isBefore(now),
|
|
||||||
orElse: () => Lesson.fromJson({}));
|
|
||||||
|
|
||||||
if (_prev.start.year != 0) {
|
|
||||||
prevLesson = _prev;
|
|
||||||
} else {
|
|
||||||
prevLesson = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (now.isBefore(DateTime(now.year, DateTime.august, 31)) &&
|
|
||||||
now.isAfter(DateTime(now.year, DateTime.june, 14))) {
|
|
||||||
currentState = LiveCardState.summary;
|
|
||||||
} else if (currentLesson != null) {
|
|
||||||
currentState = LiveCardState.duringLesson;
|
|
||||||
} else if (nextLesson != null && prevLesson != null) {
|
|
||||||
currentState = LiveCardState.duringBreak;
|
|
||||||
} else if (now.hour >= 12 && now.hour < 20) {
|
|
||||||
currentState = LiveCardState.afternoon;
|
|
||||||
} else if (now.hour >= 20) {
|
|
||||||
currentState = LiveCardState.night;
|
|
||||||
} else if (now.hour >= 5 && now.hour <= 10) {
|
|
||||||
currentState = LiveCardState.morning;
|
|
||||||
} else {
|
|
||||||
currentState = LiveCardState.empty;
|
|
||||||
}
|
|
||||||
|
|
||||||
notifyListeners();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool get show => currentState != LiveCardState.empty;
|
|
||||||
|
|
||||||
Duration get delay => _delay;
|
|
||||||
|
|
||||||
bool _sameDate(DateTime a, DateTime b) =>
|
|
||||||
(a.year == b.year && a.month == b.month && a.day == b.day);
|
|
||||||
|
|
||||||
List<Lesson> _today(TimetableProvider p) => (p.getWeek(Week.current()) ?? [])
|
|
||||||
.where((l) => _sameDate(l.date, _now()))
|
|
||||||
.toList();
|
|
||||||
}
|
|
@ -1,85 +0,0 @@
|
|||||||
// ignore_for_file: use_build_context_synchronously
|
|
||||||
|
|
||||||
import 'dart:math';
|
|
||||||
|
|
||||||
import 'package:filcnaplo/api/client.dart';
|
|
||||||
import 'package:filcnaplo/models/news.dart';
|
|
||||||
import 'package:filcnaplo/models/settings.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:provider/provider.dart';
|
|
||||||
|
|
||||||
class NewsProvider extends ChangeNotifier {
|
|
||||||
// Private
|
|
||||||
late List<News> _news;
|
|
||||||
late int _state;
|
|
||||||
late int _fresh;
|
|
||||||
bool show = false;
|
|
||||||
late BuildContext _context;
|
|
||||||
|
|
||||||
// Public
|
|
||||||
List<News> get news => _news;
|
|
||||||
int get state => _fresh - 1;
|
|
||||||
|
|
||||||
NewsProvider({
|
|
||||||
List<News> initialNews = const [],
|
|
||||||
required BuildContext context,
|
|
||||||
}) {
|
|
||||||
_news = List.castFrom(initialNews);
|
|
||||||
_context = context;
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> restore() async {
|
|
||||||
// Load news state from the database
|
|
||||||
var state_ = Provider.of<SettingsProvider>(_context, listen: false).newsState;
|
|
||||||
|
|
||||||
if (state_ == -1) {
|
|
||||||
var news_ = await FilcAPI.getNews();
|
|
||||||
if (news_ != null) {
|
|
||||||
state_ = news_.length;
|
|
||||||
_news = news_;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
_state = state_;
|
|
||||||
Provider.of<SettingsProvider>(_context, listen: false).update(newsState: _state);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> fetch() async {
|
|
||||||
var news_ = await FilcAPI.getNews();
|
|
||||||
if (news_ == null) return;
|
|
||||||
|
|
||||||
_news = news_;
|
|
||||||
_fresh = news_.length - _state;
|
|
||||||
|
|
||||||
if (_fresh < 0) {
|
|
||||||
_state = news_.length;
|
|
||||||
Provider.of<SettingsProvider>(_context, listen: false).update(newsState: _state);
|
|
||||||
}
|
|
||||||
|
|
||||||
_fresh = max(_fresh, 0);
|
|
||||||
|
|
||||||
if (_fresh > 0) {
|
|
||||||
show = true;
|
|
||||||
notifyListeners();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void lock() => show = false;
|
|
||||||
|
|
||||||
void release() {
|
|
||||||
if (_fresh == 0) return;
|
|
||||||
|
|
||||||
_fresh--;
|
|
||||||
_state++;
|
|
||||||
|
|
||||||
Provider.of<SettingsProvider>(_context, listen: false).update(newsState: _state);
|
|
||||||
|
|
||||||
if (_fresh > 0) {
|
|
||||||
show = true;
|
|
||||||
} else {
|
|
||||||
show = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
notifyListeners();
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,88 +0,0 @@
|
|||||||
// ignore_for_file: use_build_context_synchronously
|
|
||||||
|
|
||||||
import 'dart:io';
|
|
||||||
|
|
||||||
import 'package:filcnaplo/api/providers/database_provider.dart';
|
|
||||||
import 'package:filcnaplo/api/providers/status_provider.dart';
|
|
||||||
import 'package:filcnaplo/api/providers/user_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/client/api.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/client/client.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/student.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/week.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/absence_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/event_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/exam_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/grade_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/homework_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/message_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/note_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/timetable_provider.dart';
|
|
||||||
import 'package:flutter/services.dart';
|
|
||||||
import 'package:flutter/widgets.dart';
|
|
||||||
import 'package:provider/provider.dart';
|
|
||||||
import 'package:home_widget/home_widget.dart';
|
|
||||||
|
|
||||||
// Mutex
|
|
||||||
bool lock = false;
|
|
||||||
|
|
||||||
Future<void> syncAll(BuildContext context) {
|
|
||||||
if (lock) return Future.value();
|
|
||||||
// Lock
|
|
||||||
lock = true;
|
|
||||||
|
|
||||||
// ignore: avoid_print
|
|
||||||
print("INFO Syncing all");
|
|
||||||
|
|
||||||
UserProvider user = Provider.of<UserProvider>(context, listen: false);
|
|
||||||
StatusProvider statusProvider = Provider.of<StatusProvider>(context, listen: false);
|
|
||||||
|
|
||||||
List<Future<void>> tasks = [];
|
|
||||||
int taski = 0;
|
|
||||||
|
|
||||||
Future<void> syncStatus(Future<void> future) async {
|
|
||||||
await future.onError((error, stackTrace) => null);
|
|
||||||
taski++;
|
|
||||||
statusProvider.triggerSync(current: taski, max: tasks.length);
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks = [
|
|
||||||
syncStatus(Provider.of<GradeProvider>(context, listen: false).fetch()),
|
|
||||||
syncStatus(Provider.of<TimetableProvider>(context, listen: false).fetch(week: Week.current())),
|
|
||||||
syncStatus(Provider.of<ExamProvider>(context, listen: false).fetch()),
|
|
||||||
syncStatus(Provider.of<HomeworkProvider>(context, listen: false).fetch(from: DateTime.now().subtract(const Duration(days: 30)))),
|
|
||||||
syncStatus(Provider.of<MessageProvider>(context, listen: false).fetchAll()),
|
|
||||||
syncStatus(Provider.of<NoteProvider>(context, listen: false).fetch()),
|
|
||||||
syncStatus(Provider.of<EventProvider>(context, listen: false).fetch()),
|
|
||||||
syncStatus(Provider.of<AbsenceProvider>(context, listen: false).fetch()),
|
|
||||||
|
|
||||||
// Sync student
|
|
||||||
syncStatus(() async {
|
|
||||||
if (user.user == null) return;
|
|
||||||
Map? studentJson = await Provider.of<KretaClient>(context, listen: false).getAPI(KretaAPI.student(user.instituteCode!));
|
|
||||||
if (studentJson == null) return;
|
|
||||||
Student student = Student.fromJson(studentJson);
|
|
||||||
|
|
||||||
user.user?.name = student.name;
|
|
||||||
|
|
||||||
// Store user
|
|
||||||
await Provider.of<DatabaseProvider>(context, listen: false).store.storeUser(user.user!);
|
|
||||||
}()),
|
|
||||||
];
|
|
||||||
|
|
||||||
Future<bool?> updateWidget() async {
|
|
||||||
try {
|
|
||||||
return HomeWidget.updateWidget(name: 'widget_timetable.WidgetTimetable');
|
|
||||||
} on PlatformException catch (exception) {
|
|
||||||
debugPrint('Error Updating Widget. $exception');
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return Future.wait(tasks).then((value) {
|
|
||||||
// Unlock
|
|
||||||
lock = false;
|
|
||||||
|
|
||||||
// Update Widget
|
|
||||||
if (Platform.isAndroid) updateWidget();
|
|
||||||
});
|
|
||||||
}
|
|
@ -1,231 +0,0 @@
|
|||||||
import 'dart:io';
|
|
||||||
import 'dart:math';
|
|
||||||
|
|
||||||
import 'package:dynamic_color/dynamic_color.dart';
|
|
||||||
import 'package:filcnaplo/api/client.dart';
|
|
||||||
import 'package:filcnaplo/api/providers/live_card_provider.dart';
|
|
||||||
import 'package:filcnaplo/api/providers/news_provider.dart';
|
|
||||||
import 'package:filcnaplo/api/providers/database_provider.dart';
|
|
||||||
import 'package:filcnaplo/api/providers/status_provider.dart';
|
|
||||||
import 'package:filcnaplo/models/config.dart';
|
|
||||||
import 'package:filcnaplo/theme/observer.dart';
|
|
||||||
import 'package:filcnaplo/theme/theme.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/client/client.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/grade_provider.dart';
|
|
||||||
import 'package:flutter/cupertino.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
|
||||||
import 'package:i18n_extension/i18n_widget.dart';
|
|
||||||
import 'package:material_color_utilities/palettes/core_palette.dart';
|
|
||||||
import 'package:provider/provider.dart';
|
|
||||||
|
|
||||||
// Mobile UI
|
|
||||||
import 'package:filcnaplo_mobile_ui/common/system_chrome.dart' as mobile;
|
|
||||||
import 'package:filcnaplo_mobile_ui/screens/login/login_route.dart' as mobile;
|
|
||||||
import 'package:filcnaplo_mobile_ui/screens/login/login_screen.dart' as mobile;
|
|
||||||
import 'package:filcnaplo_mobile_ui/screens/navigation/navigation_screen.dart'
|
|
||||||
as mobile;
|
|
||||||
import 'package:filcnaplo_mobile_ui/screens/settings/settings_route.dart'
|
|
||||||
as mobile;
|
|
||||||
import 'package:filcnaplo_mobile_ui/screens/settings/settings_screen.dart'
|
|
||||||
as mobile;
|
|
||||||
|
|
||||||
// Desktop UI
|
|
||||||
import 'package:filcnaplo_desktop_ui/screens/navigation/navigation_screen.dart'
|
|
||||||
as desktop;
|
|
||||||
import 'package:filcnaplo_desktop_ui/screens/login/login_screen.dart'
|
|
||||||
as desktop;
|
|
||||||
import 'package:filcnaplo_desktop_ui/screens/login/login_route.dart' as desktop;
|
|
||||||
|
|
||||||
// Providers
|
|
||||||
import 'package:filcnaplo/models/settings.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/absence_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/event_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/exam_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/homework_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/message_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/note_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/timetable_provider.dart';
|
|
||||||
import 'package:filcnaplo/api/providers/user_provider.dart';
|
|
||||||
import 'package:filcnaplo/api/providers/update_provider.dart';
|
|
||||||
import 'package:filcnaplo_mobile_ui/pages/grades/calculator/grade_calculator_provider.dart';
|
|
||||||
import 'package:flutter_displaymode/flutter_displaymode.dart';
|
|
||||||
import 'package:filcnaplo_premium/providers/premium_provider.dart';
|
|
||||||
|
|
||||||
class App extends StatelessWidget {
|
|
||||||
final SettingsProvider settings;
|
|
||||||
final UserProvider user;
|
|
||||||
final DatabaseProvider database;
|
|
||||||
|
|
||||||
const App(
|
|
||||||
{Key? key,
|
|
||||||
required this.database,
|
|
||||||
required this.settings,
|
|
||||||
required this.user})
|
|
||||||
: super(key: key);
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
mobile.setSystemChrome(context);
|
|
||||||
|
|
||||||
// Set high refresh mode #28
|
|
||||||
if (Platform.isAndroid) FlutterDisplayMode.setHighRefreshRate();
|
|
||||||
|
|
||||||
CorePalette? corePalette;
|
|
||||||
|
|
||||||
final status = StatusProvider();
|
|
||||||
final kreta = KretaClient(user: user, settings: settings, status: status);
|
|
||||||
final timetable =
|
|
||||||
TimetableProvider(user: user, database: database, kreta: kreta);
|
|
||||||
final premium = PremiumProvider(settings: settings);
|
|
||||||
|
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
||||||
FilcAPI.getConfig(settings).then((Config? config) {
|
|
||||||
if (config != null) settings.update(config: config);
|
|
||||||
});
|
|
||||||
premium.activate();
|
|
||||||
});
|
|
||||||
|
|
||||||
return MultiProvider(
|
|
||||||
providers: [
|
|
||||||
ChangeNotifierProvider<PremiumProvider>(create: (_) => premium),
|
|
||||||
ChangeNotifierProvider<SettingsProvider>(create: (_) => settings),
|
|
||||||
ChangeNotifierProvider<UserProvider>(create: (_) => user),
|
|
||||||
ChangeNotifierProvider<StatusProvider>(create: (_) => status),
|
|
||||||
Provider<KretaClient>(create: (_) => kreta),
|
|
||||||
Provider<DatabaseProvider>(create: (context) => database),
|
|
||||||
ChangeNotifierProvider<ThemeModeObserver>(
|
|
||||||
create: (context) =>
|
|
||||||
ThemeModeObserver(initialTheme: settings.theme)),
|
|
||||||
ChangeNotifierProvider<NewsProvider>(
|
|
||||||
create: (context) => NewsProvider(context: context)),
|
|
||||||
ChangeNotifierProvider<UpdateProvider>(
|
|
||||||
create: (context) => UpdateProvider(context: context)),
|
|
||||||
|
|
||||||
// User data providers
|
|
||||||
ChangeNotifierProvider<GradeProvider>(
|
|
||||||
create: (_) => GradeProvider(
|
|
||||||
settings: settings,
|
|
||||||
user: user,
|
|
||||||
database: database,
|
|
||||||
kreta: kreta)),
|
|
||||||
ChangeNotifierProvider<TimetableProvider>(create: (_) => timetable),
|
|
||||||
ChangeNotifierProvider<ExamProvider>(
|
|
||||||
create: (context) => ExamProvider(context: context)),
|
|
||||||
ChangeNotifierProvider<HomeworkProvider>(
|
|
||||||
create: (context) => HomeworkProvider(context: context)),
|
|
||||||
ChangeNotifierProvider<MessageProvider>(
|
|
||||||
create: (context) => MessageProvider(context: context)),
|
|
||||||
ChangeNotifierProvider<NoteProvider>(
|
|
||||||
create: (context) => NoteProvider(context: context)),
|
|
||||||
ChangeNotifierProvider<EventProvider>(
|
|
||||||
create: (context) => EventProvider(context: context)),
|
|
||||||
ChangeNotifierProvider<AbsenceProvider>(
|
|
||||||
create: (context) => AbsenceProvider(context: context)),
|
|
||||||
|
|
||||||
ChangeNotifierProvider<GradeCalculatorProvider>(
|
|
||||||
create: (_) => GradeCalculatorProvider(
|
|
||||||
settings: settings,
|
|
||||||
user: user,
|
|
||||||
database: database,
|
|
||||||
kreta: kreta)),
|
|
||||||
ChangeNotifierProvider<LiveCardProvider>(
|
|
||||||
create: (context) =>
|
|
||||||
LiveCardProvider(timetable: timetable, settings: settings))
|
|
||||||
],
|
|
||||||
child: Consumer<ThemeModeObserver>(
|
|
||||||
builder: (context, themeMode, child) {
|
|
||||||
return FutureBuilder<CorePalette?>(
|
|
||||||
future: DynamicColorPlugin.getCorePalette(),
|
|
||||||
builder: (context, snapshot) {
|
|
||||||
corePalette = snapshot.data;
|
|
||||||
return MaterialApp(
|
|
||||||
builder: (context, child) {
|
|
||||||
// Limit font size scaling to 1.0
|
|
||||||
double textScaleFactor =
|
|
||||||
min(MediaQuery.of(context).textScaleFactor, 1.0);
|
|
||||||
|
|
||||||
return I18n(
|
|
||||||
initialLocale: Locale(
|
|
||||||
settings.language, settings.language.toUpperCase()),
|
|
||||||
child: MediaQuery(
|
|
||||||
data: MediaQuery.of(context)
|
|
||||||
.copyWith(textScaleFactor: textScaleFactor),
|
|
||||||
child: child ?? Container(),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
title: "reFilc",
|
|
||||||
debugShowCheckedModeBanner: false,
|
|
||||||
theme: AppTheme.lightTheme(context, palette: corePalette),
|
|
||||||
darkTheme: AppTheme.darkTheme(context, palette: corePalette),
|
|
||||||
themeMode: themeMode.themeMode,
|
|
||||||
localizationsDelegates: const [
|
|
||||||
GlobalMaterialLocalizations.delegate,
|
|
||||||
GlobalWidgetsLocalizations.delegate,
|
|
||||||
GlobalCupertinoLocalizations.delegate,
|
|
||||||
],
|
|
||||||
supportedLocales: const [
|
|
||||||
Locale('en', 'EN'),
|
|
||||||
Locale('hu', 'HU'),
|
|
||||||
Locale('de', 'DE'),
|
|
||||||
],
|
|
||||||
localeListResolutionCallback: (locales, supported) {
|
|
||||||
Locale locale = const Locale('hu', 'HU');
|
|
||||||
|
|
||||||
for (var loc in locales ?? []) {
|
|
||||||
if (supported.contains(loc)) {
|
|
||||||
locale = loc;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return locale;
|
|
||||||
},
|
|
||||||
onGenerateRoute: (settings) => rootNavigator(settings),
|
|
||||||
initialRoute:
|
|
||||||
user.getUsers().isNotEmpty ? "navigation" : "login",
|
|
||||||
);
|
|
||||||
},
|
|
||||||
);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Route? rootNavigator(RouteSettings route) {
|
|
||||||
// if platform == android || platform == ios
|
|
||||||
if (Platform.isAndroid || Platform.isIOS) {
|
|
||||||
switch (route.name) {
|
|
||||||
case "login_back":
|
|
||||||
return CupertinoPageRoute(
|
|
||||||
builder: (context) => const mobile.LoginScreen(back: true));
|
|
||||||
case "login":
|
|
||||||
return _rootRoute(const mobile.LoginScreen());
|
|
||||||
case "navigation":
|
|
||||||
return _rootRoute(const mobile.NavigationScreen());
|
|
||||||
case "login_to_navigation":
|
|
||||||
return mobile.loginRoute(const mobile.NavigationScreen());
|
|
||||||
case "settings":
|
|
||||||
return mobile.settingsRoute(const mobile.SettingsScreen());
|
|
||||||
}
|
|
||||||
} else if (Platform.isWindows || Platform.isMacOS || Platform.isLinux) {
|
|
||||||
switch (route.name) {
|
|
||||||
case "login_back":
|
|
||||||
return CupertinoPageRoute(
|
|
||||||
builder: (context) => const desktop.LoginScreen(back: true));
|
|
||||||
case "login":
|
|
||||||
return _rootRoute(const desktop.LoginScreen());
|
|
||||||
case "navigation":
|
|
||||||
return _rootRoute(const desktop.NavigationScreen());
|
|
||||||
case "login_to_navigation":
|
|
||||||
return desktop.loginRoute(const desktop.NavigationScreen());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
Route _rootRoute(Widget widget) {
|
|
||||||
return PageRouteBuilder(pageBuilder: (context, _, __) => widget);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,165 +0,0 @@
|
|||||||
import 'dart:convert';
|
|
||||||
import 'package:filcnaplo/api/providers/database_provider.dart';
|
|
||||||
import 'package:filcnaplo/models/subject_lesson_count.dart';
|
|
||||||
import 'package:filcnaplo/models/user.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/week.dart';
|
|
||||||
// ignore: depend_on_referenced_packages
|
|
||||||
import 'package:sqflite_common/sqlite_api.dart';
|
|
||||||
|
|
||||||
// Models
|
|
||||||
import 'package:filcnaplo/models/settings.dart';
|
|
||||||
import 'package:filcnaplo/api/providers/user_provider.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/grade.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/lesson.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/exam.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/homework.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/message.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/note.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/event.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/absence.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/group_average.dart';
|
|
||||||
|
|
||||||
class DatabaseQuery {
|
|
||||||
DatabaseQuery({required this.db});
|
|
||||||
|
|
||||||
final Database db;
|
|
||||||
|
|
||||||
Future<SettingsProvider> getSettings(DatabaseProvider database) async {
|
|
||||||
Map settingsMap = (await db.query("settings")).elementAt(0);
|
|
||||||
SettingsProvider settings = SettingsProvider.fromMap(settingsMap, database: database);
|
|
||||||
return settings;
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<UserProvider> getUsers(SettingsProvider settings) async {
|
|
||||||
var userProvider = UserProvider(settings: settings);
|
|
||||||
List<Map> usersMap = await db.query("users");
|
|
||||||
for (var user in usersMap) {
|
|
||||||
userProvider.addUser(User.fromMap(user));
|
|
||||||
}
|
|
||||||
if (userProvider.getUsers().map((e) => e.id).contains(settings.lastAccountId)) {
|
|
||||||
userProvider.setUser(settings.lastAccountId);
|
|
||||||
} else {
|
|
||||||
if (usersMap.isNotEmpty) {
|
|
||||||
userProvider.setUser(userProvider.getUsers().first.id);
|
|
||||||
settings.update(lastAccountId: userProvider.id);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return userProvider;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class UserDatabaseQuery {
|
|
||||||
UserDatabaseQuery({required this.db});
|
|
||||||
|
|
||||||
final Database db;
|
|
||||||
|
|
||||||
Future<List<Grade>> getGrades({required String userId}) async {
|
|
||||||
List<Map> userData = await db.query("user_data", where: "id = ?", whereArgs: [userId]);
|
|
||||||
if (userData.isEmpty) return [];
|
|
||||||
String? gradesJson = userData.elementAt(0)["grades"] as String?;
|
|
||||||
if (gradesJson == null) return [];
|
|
||||||
List<Grade> grades = (jsonDecode(gradesJson) as List).map((e) => Grade.fromJson(e)).toList();
|
|
||||||
return grades;
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<Map<Week, List<Lesson>>> getLessons({required String userId}) async {
|
|
||||||
List<Map> userData = await db.query("user_data", where: "id = ?", whereArgs: [userId]);
|
|
||||||
if (userData.isEmpty) return {};
|
|
||||||
String? lessonsJson = userData.elementAt(0)["timetable"] as String?;
|
|
||||||
if (lessonsJson == null) return {};
|
|
||||||
if (jsonDecode(lessonsJson) is List) return {};
|
|
||||||
Map<Week, List<Lesson>> lessons = (jsonDecode(lessonsJson) as Map).cast<String, List>().map((key, value) {
|
|
||||||
return MapEntry(Week.fromId(int.parse(key)), value.cast<Map<String, Object?>>().map((e) => Lesson.fromJson(e)).toList());
|
|
||||||
}).cast();
|
|
||||||
return lessons;
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<List<Exam>> getExams({required String userId}) async {
|
|
||||||
List<Map> userData = await db.query("user_data", where: "id = ?", whereArgs: [userId]);
|
|
||||||
if (userData.isEmpty) return [];
|
|
||||||
String? examsJson = userData.elementAt(0)["exams"] as String?;
|
|
||||||
if (examsJson == null) return [];
|
|
||||||
List<Exam> exams = (jsonDecode(examsJson) as List).map((e) => Exam.fromJson(e)).toList();
|
|
||||||
return exams;
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<List<Homework>> getHomework({required String userId}) async {
|
|
||||||
List<Map> userData = await db.query("user_data", where: "id = ?", whereArgs: [userId]);
|
|
||||||
if (userData.isEmpty) return [];
|
|
||||||
String? homeworkJson = userData.elementAt(0)["homework"] as String?;
|
|
||||||
if (homeworkJson == null) return [];
|
|
||||||
List<Homework> homework = (jsonDecode(homeworkJson) as List).map((e) => Homework.fromJson(e)).toList();
|
|
||||||
return homework;
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<List<Message>> getMessages({required String userId}) async {
|
|
||||||
List<Map> userData = await db.query("user_data", where: "id = ?", whereArgs: [userId]);
|
|
||||||
if (userData.isEmpty) return [];
|
|
||||||
String? messagesJson = userData.elementAt(0)["messages"] as String?;
|
|
||||||
if (messagesJson == null) return [];
|
|
||||||
List<Message> messages = (jsonDecode(messagesJson) as List).map((e) => Message.fromJson(e)).toList();
|
|
||||||
return messages;
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<List<Note>> getNotes({required String userId}) async {
|
|
||||||
List<Map> userData = await db.query("user_data", where: "id = ?", whereArgs: [userId]);
|
|
||||||
if (userData.isEmpty) return [];
|
|
||||||
String? notesJson = userData.elementAt(0)["notes"] as String?;
|
|
||||||
if (notesJson == null) return [];
|
|
||||||
List<Note> notes = (jsonDecode(notesJson) as List).map((e) => Note.fromJson(e)).toList();
|
|
||||||
return notes;
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<List<Event>> getEvents({required String userId}) async {
|
|
||||||
List<Map> userData = await db.query("user_data", where: "id = ?", whereArgs: [userId]);
|
|
||||||
if (userData.isEmpty) return [];
|
|
||||||
String? eventsJson = userData.elementAt(0)["events"] as String?;
|
|
||||||
if (eventsJson == null) return [];
|
|
||||||
List<Event> events = (jsonDecode(eventsJson) as List).map((e) => Event.fromJson(e)).toList();
|
|
||||||
return events;
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<List<Absence>> getAbsences({required String userId}) async {
|
|
||||||
List<Map> userData = await db.query("user_data", where: "id = ?", whereArgs: [userId]);
|
|
||||||
if (userData.isEmpty) return [];
|
|
||||||
String? absencesJson = userData.elementAt(0)["absences"] as String?;
|
|
||||||
if (absencesJson == null) return [];
|
|
||||||
List<Absence> absences = (jsonDecode(absencesJson) as List).map((e) => Absence.fromJson(e)).toList();
|
|
||||||
return absences;
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<List<GroupAverage>> getGroupAverages({required String userId}) async {
|
|
||||||
List<Map> userData = await db.query("user_data", where: "id = ?", whereArgs: [userId]);
|
|
||||||
if (userData.isEmpty) return [];
|
|
||||||
String? groupAveragesJson = userData.elementAt(0)["group_averages"] as String?;
|
|
||||||
if (groupAveragesJson == null) return [];
|
|
||||||
List<GroupAverage> groupAverages = (jsonDecode(groupAveragesJson) as List).map((e) => GroupAverage.fromJson(e)).toList();
|
|
||||||
return groupAverages;
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<SubjectLessonCount> getSubjectLessonCount({required String userId}) async {
|
|
||||||
List<Map> userData = await db.query("user_data", where: "id = ?", whereArgs: [userId]);
|
|
||||||
if (userData.isEmpty) return SubjectLessonCount.fromMap({});
|
|
||||||
String? lessonCountJson = userData.elementAt(0)["subject_lesson_count"] as String?;
|
|
||||||
if (lessonCountJson == null) return SubjectLessonCount.fromMap({});
|
|
||||||
SubjectLessonCount lessonCount = SubjectLessonCount.fromMap(jsonDecode(lessonCountJson) as Map);
|
|
||||||
return lessonCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<DateTime> lastSeenGrade({required String userId}) async {
|
|
||||||
List<Map> userData = await db.query("user_data", where: "id = ?", whereArgs: [userId]);
|
|
||||||
if (userData.isEmpty) return DateTime(0);
|
|
||||||
int? lastSeenDate = userData.elementAt(0)["last_seen_grade"] as int?;
|
|
||||||
if (lastSeenDate == null) return DateTime(0);
|
|
||||||
DateTime lastSeen = DateTime.fromMillisecondsSinceEpoch(lastSeenDate);
|
|
||||||
return lastSeen;
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<Map<String, String>> renamedSubjects({required String userId}) async {
|
|
||||||
List<Map> userData = await db.query("user_data", where: "id = ?", whereArgs: [userId]);
|
|
||||||
if (userData.isEmpty) return {};
|
|
||||||
String? renamedSubjectsJson = userData.elementAt(0)["renamed_subjects"] as String?;
|
|
||||||
if (renamedSubjectsJson == null) return {};
|
|
||||||
return (jsonDecode(renamedSubjectsJson) as Map).map((key, value) => MapEntry(key.toString(), value.toString()));
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,112 +0,0 @@
|
|||||||
import 'dart:convert';
|
|
||||||
import 'package:filcnaplo/models/subject_lesson_count.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/week.dart';
|
|
||||||
// ignore: depend_on_referenced_packages
|
|
||||||
import 'package:sqflite_common/sqlite_api.dart';
|
|
||||||
|
|
||||||
// Models
|
|
||||||
import 'package:filcnaplo/models/settings.dart';
|
|
||||||
import 'package:filcnaplo/models/user.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/grade.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/lesson.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/exam.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/homework.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/message.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/note.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/event.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/absence.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/group_average.dart';
|
|
||||||
|
|
||||||
class DatabaseStore {
|
|
||||||
DatabaseStore({required this.db});
|
|
||||||
|
|
||||||
final Database db;
|
|
||||||
|
|
||||||
Future<void> storeSettings(SettingsProvider settings) async {
|
|
||||||
await db.update("settings", settings.toMap());
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> storeUser(User user) async {
|
|
||||||
List userRes = await db.query("users", where: "id = ?", whereArgs: [user.id]);
|
|
||||||
if (userRes.isNotEmpty) {
|
|
||||||
await db.update("users", user.toMap(), where: "id = ?", whereArgs: [user.id]);
|
|
||||||
} else {
|
|
||||||
await db.insert("users", user.toMap());
|
|
||||||
await db.insert("user_data", {"id": user.id});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> removeUser(String userId) async {
|
|
||||||
await db.delete("users", where: "id = ?", whereArgs: [userId]);
|
|
||||||
await db.delete("user_data", where: "id = ?", whereArgs: [userId]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class UserDatabaseStore {
|
|
||||||
UserDatabaseStore({required this.db});
|
|
||||||
|
|
||||||
final Database db;
|
|
||||||
|
|
||||||
Future<void> storeGrades(List<Grade> grades, {required String userId}) async {
|
|
||||||
String gradesJson = jsonEncode(grades.map((e) => e.json).toList());
|
|
||||||
await db.update("user_data", {"grades": gradesJson}, where: "id = ?", whereArgs: [userId]);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> storeLessons(Map<Week, List<Lesson>?> lessons, {required String userId}) async {
|
|
||||||
final map = lessons.map<String, List<Map<String, Object?>>>(
|
|
||||||
(k, v) => MapEntry(k.id.toString(), v!.where((e) => e.json != null).map((e) => e.json!).toList().cast()),
|
|
||||||
);
|
|
||||||
String lessonsJson = jsonEncode(map);
|
|
||||||
await db.update("user_data", {"timetable": lessonsJson}, where: "id = ?", whereArgs: [userId]);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> storeExams(List<Exam> exams, {required String userId}) async {
|
|
||||||
String examsJson = jsonEncode(exams.map((e) => e.json).toList());
|
|
||||||
await db.update("user_data", {"exams": examsJson}, where: "id = ?", whereArgs: [userId]);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> storeHomework(List<Homework> homework, {required String userId}) async {
|
|
||||||
String homeworkJson = jsonEncode(homework.map((e) => e.json).toList());
|
|
||||||
await db.update("user_data", {"homework": homeworkJson}, where: "id = ?", whereArgs: [userId]);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> storeMessages(List<Message> messages, {required String userId}) async {
|
|
||||||
String messagesJson = jsonEncode(messages.map((e) => e.json).toList());
|
|
||||||
await db.update("user_data", {"messages": messagesJson}, where: "id = ?", whereArgs: [userId]);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> storeNotes(List<Note> notes, {required String userId}) async {
|
|
||||||
String notesJson = jsonEncode(notes.map((e) => e.json).toList());
|
|
||||||
await db.update("user_data", {"notes": notesJson}, where: "id = ?", whereArgs: [userId]);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> storeEvents(List<Event> events, {required String userId}) async {
|
|
||||||
String eventsJson = jsonEncode(events.map((e) => e.json).toList());
|
|
||||||
await db.update("user_data", {"events": eventsJson}, where: "id = ?", whereArgs: [userId]);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> storeAbsences(List<Absence> absences, {required String userId}) async {
|
|
||||||
String absencesJson = jsonEncode(absences.map((e) => e.json).toList());
|
|
||||||
await db.update("user_data", {"absences": absencesJson}, where: "id = ?", whereArgs: [userId]);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> storeGroupAverages(List<GroupAverage> groupAverages, {required String userId}) async {
|
|
||||||
String groupAveragesJson = jsonEncode(groupAverages.map((e) => e.json).toList());
|
|
||||||
await db.update("user_data", {"group_averages": groupAveragesJson}, where: "id = ?", whereArgs: [userId]);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> storeSubjectLessonCount(SubjectLessonCount lessonCount, {required String userId}) async {
|
|
||||||
String lessonCountJson = jsonEncode(lessonCount.toMap());
|
|
||||||
await db.update("user_data", {"subject_lesson_count": lessonCountJson}, where: "id = ?", whereArgs: [userId]);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> storeLastSeenGrade(DateTime date, {required String userId}) async {
|
|
||||||
int lastSeenDate = date.millisecondsSinceEpoch;
|
|
||||||
await db.update("user_data", {"last_seen_grade": lastSeenDate}, where: "id = ?", whereArgs: [userId]);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> storeRenamedSubjects(Map<String, String> subjects, {required String userId}) async {
|
|
||||||
String renamedSubjectsJson = jsonEncode(subjects);
|
|
||||||
await db.update("user_data", {"renamed_subjects": renamedSubjectsJson}, where: "id = ?", whereArgs: [userId]);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,76 +0,0 @@
|
|||||||
import 'dart:math';
|
|
||||||
import 'dart:ui';
|
|
||||||
|
|
||||||
import 'package:filcnaplo/api/providers/database_provider.dart';
|
|
||||||
import 'package:filcnaplo/api/providers/status_provider.dart';
|
|
||||||
import 'package:filcnaplo/api/providers/user_provider.dart';
|
|
||||||
import 'package:filcnaplo/models/settings.dart';
|
|
||||||
import 'package:filcnaplo/helpers/notification_helper.i18n.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/client/client.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/models/grade.dart';
|
|
||||||
import 'package:filcnaplo_kreta_api/providers/grade_provider.dart';
|
|
||||||
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
|
|
||||||
|
|
||||||
class NotificationsHelper {
|
|
||||||
@pragma('vm:entry-point')
|
|
||||||
void backgroundJob() async {
|
|
||||||
// initialize providers
|
|
||||||
FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin =
|
|
||||||
FlutterLocalNotificationsPlugin();
|
|
||||||
DatabaseProvider database = DatabaseProvider();
|
|
||||||
await database.init();
|
|
||||||
SettingsProvider settingsProvider =
|
|
||||||
await database.query.getSettings(database);
|
|
||||||
UserProvider userProvider = await database.query.getUsers(settingsProvider);
|
|
||||||
|
|
||||||
if (userProvider.id != null && settingsProvider.notificationsEnabled) {
|
|
||||||
// refresh grades
|
|
||||||
final status = StatusProvider();
|
|
||||||
final kretaClient = KretaClient(
|
|
||||||
user: userProvider, settings: settingsProvider, status: status);
|
|
||||||
kretaClient.refreshLogin();
|
|
||||||
GradeProvider gradeProvider = GradeProvider(
|
|
||||||
settings: settingsProvider,
|
|
||||||
user: userProvider,
|
|
||||||
database: database,
|
|
||||||
kreta: kretaClient);
|
|
||||||
gradeProvider.fetch();
|
|
||||||
List<Grade> grades =
|
|
||||||
await database.userQuery.getGrades(userId: userProvider.id ?? "");
|
|
||||||
DateTime lastSeenGrade =
|
|
||||||
await database.userQuery.lastSeenGrade(userId: userProvider.id ?? "");
|
|
||||||
|
|
||||||
// loop through grades and see which hasn't been seen yet
|
|
||||||
for (Grade grade in grades) {
|
|
||||||
// if the grade was added over a week ago, don't show it to avoid notification spam
|
|
||||||
if (grade.seenDate.isAfter(lastSeenGrade) &&
|
|
||||||
grade.date.difference(DateTime.now()).inDays * -1 < 7) {
|
|
||||||
// send notificiation about new grade
|
|
||||||
const AndroidNotificationDetails androidNotificationDetails =
|
|
||||||
AndroidNotificationDetails('GRADES', 'Jegyek',
|
|
||||||
channelDescription: 'Értesítés jegyek beírásakor',
|
|
||||||
importance: Importance.max,
|
|
||||||
priority: Priority.max,
|
|
||||||
color: Color(0xFF3D7BF4),
|
|
||||||
ticker: 'Jegyek');
|
|
||||||
const NotificationDetails notificationDetails =
|
|
||||||
NotificationDetails(android: androidNotificationDetails);
|
|
||||||
await flutterLocalNotificationsPlugin.show(
|
|
||||||
// probably shouldn't use a random int
|
|
||||||
Random().nextInt(432234 * 2),
|
|
||||||
"title".i18n,
|
|
||||||
"body".i18n.fill([
|
|
||||||
grade.value.value.toString(),
|
|
||||||
grade.subject.isRenamed &&
|
|
||||||
settingsProvider.renamedSubjectsEnabled
|
|
||||||
? grade.subject.renamedTo!
|
|
||||||
: grade.subject.name
|
|
||||||
]),
|
|
||||||
notificationDetails);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// set grade seen status
|
|
||||||
gradeProvider.seenAll();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|