274 Commits

Author SHA1 Message Date
6290c27a7e chore: update l10n 2026-09-04 19:55:20 +02:00
a3a036440a fix: bold monochrome icon and notification tray icon silhouettes
Both were derived from a thin, mostly-transparent outline stroke.
Android renders adaptive monochrome icons and notification-tray icons
using only the alpha channel (system applies its own tint), so thin
strokes read as illegible scribbles when shrunk, and any opaque fill
sharing alpha with the outline collapses into one shapeless blob.

Regenerated monochrome_logo.png as a bold filled silhouette (derived
from the existing colored logo art) that keeps the eye holes as
transparent negative space, and rebuilt the ic_notification drawables
from the same source so the status-bar icon isn't a solid blob either.
2026-09-04 17:44:58 +02:00
062f1afe67 feat(notifications): add FCM debug status panel to developer settings
Adds an FcmStatus row + refresh-notification toggle to the Developer
settings subgroup: shows init state, token presence (last 6 chars),
notification permission (non-prompting), subscribed wakeup topic, and
last token-refresh time. Also registers on resumed sessions (app
reopened while already logged in), which previously only got FCM
registration via the explicit login/logout flow.
2026-09-04 16:26:23 +02:00
6d30767cb0 feat(notifications): add Firebase Cloud Messaging push support
Firebase project config, topic subscriptions synced to
login state and per-category settings, a client for the Go FCM
backend, and a settings UI to toggle push and its wakeup interval.
2026-09-04 16:17:34 +02:00
0e3c3c421f feat(notifications): add local notification diffing for FCM wakeups
Diffs grades/homework/tests/absences/lessons/messages against a
separate last-seen namespace on each silent FCM wakeup, and shows a
local notification per category for genuinely new items. Adds a
headless bootstrap so the background isolate can populate the
minimal app state KretaClient needs.
2026-09-04 16:17:32 +02:00
b6d1b221b8 ci: publish appbundle/apks to gitea package registry 2026-09-03 17:44:29 +02:00
e79c489de6 ci: release appbundle on main only 2026-09-03 17:41:00 +02:00
c9a034c0f8 ci: build an appbundle instead of an apk 2026-09-03 17:39:50 +02:00
4dbe0b71e6 fix(ci): persist PUB_CACHE across woodpecker steps
Each step runs in a fresh container from the builder image, so the
default /root/.pub-cache doesn't survive from `flutter pub get` into
the codegen/build steps. Point PUB_CACHE at a workspace-local path
instead, which is shared across steps.
2026-09-03 17:23:23 +02:00
eddfe52a51 ref(ci): switch to woodpecker ci 2026-09-03 17:20:03 +02:00
1f2f7e9d4e Merge pull request 'fixin maybe pt 2' (#43) from checkedearrabbit/firka:dev into dev
Reviewed-on: firka/firka#43
2026-09-02 11:09:07 +02:00
checkedear
5766eb6675 fixin maybe 3 2026-09-02 10:08:39 +02:00
b28bebcce1 Merge pull request 'fixin maybe' (#42) from checkedearrabbit/firka:dev into dev
Reviewed-on: firka/firka#42
2026-09-02 09:05:34 +02:00
checkedear
8fb5d5c89b fixin maybe 2 2026-09-02 07:56:35 +02:00
checkedear
f22ab629bc fixin maybe 2026-09-02 07:48:39 +02:00
zypherift
09ac4b7f61 delete mock from this repo 2026-08-28 13:16:42 +02:00
zypherift
5320625d83 add copy jwt 2026-08-28 13:12:40 +02:00
zypherift
eccdf90fd8 change mock data 2026-08-28 13:12:33 +02:00
zypherift
b4ccd52321 change gitignore 2026-08-28 10:57:10 +02:00
zypherift
4658366fd4 chore: bump l10n submodule 2026-08-28 10:50:09 +02:00
zypherift
aa77e25fe4 fix: mock server fills grade links and keeps sessions across restarts 2026-08-28 10:47:18 +02:00
zypherift
8984f8a915 feat: settings screen redesign with extras page and toggles 2026-08-28 10:47:10 +02:00
zypherift
4c28999d10 feat: surprise grades card and hide new grades until opened 2026-08-28 10:47:01 +02:00
zypherift
50274575f6 fix: mock server token claims and omission data 2026-08-27 20:44:05 +02:00
zypherift
fb8fad142a feat: clear account data and fix login redirect on logout 2026-08-27 20:43:48 +02:00
zypherift
2dccb59f7f fix: read grade kind from the correct api field 2026-08-27 20:43:42 +02:00
zypherift
7c9ade35f0 feat: add epic grades reveal screen 2026-08-27 20:43:33 +02:00
zypherift
ca9e6c3efa feat: add mock kréta server + login-screen mock mode toggle
Adds a standalone Go mock server (mock_kreta_server/) with an admin
GUI for editing student/grade/timetable/etc data, plus a login-screen
long-press toggle to point the app at it instead of the real e-Kréta
service for local testing. Also pulls in updated translations from
the firka-localization submodule.
2026-08-26 22:07:21 +02:00
a4af924653 ref: split core / grade themes up into multiple files 2026-08-16 15:16:41 +02:00
8bc52aadcb feat: groundwork for customization
- Bring customization page up to par with design
- Add a font picker
- Add a themes page
- Add theme previews
- Add a theming system
- Split built-in theme into core/grade themes
2026-08-16 15:02:37 +02:00
6101513a43 fix: make corner radius up to par with design 2026-08-16 12:41:07 +02:00
16e7ca49ca feat: initial customization screen
- Most buttons are stubs
2026-08-16 12:29:01 +02:00
dd05320346 update l10n 2026-08-16 11:39:02 +02:00
1f9512d03a fix: assign icons to all subjects with missing icons 2026-08-16 09:59:38 +02:00
d36992c7bc feat: track "Érettségi Felkészítő" as a subject 2026-08-16 09:55:41 +02:00
fd57184f99 fix(debug_screen): make test icons white 2026-08-16 09:51:32 +02:00
fa31c0d7a3 feat(home/tt): change transition animation to monthly tt 2026-08-16 09:51:05 +02:00
47e9047873 feat(home/tt): nav animations 2026-08-16 09:45:19 +02:00
7319878cb8 fix(home/tt): one haptic feedback per tap 2026-08-16 00:56:37 +02:00
3dc902b4cf fix: certain messages crashing flutter_html 2026-08-16 00:34:19 +02:00
71e1250932 fix: make error toasts dismissable 2026-08-16 00:23:43 +02:00
39651c2ab7 feat(home/*): add poll-to-refresh to each page 2026-08-16 00:15:44 +02:00
bffd1d66d9 feat(home/home): add a fade-in animation for cards 2026-08-15 23:52:20 +02:00
3480fb2ac0 fix: sync data in background if cache exists 2026-08-15 23:37:22 +02:00
f5a16da72d feat(timetable): seemless scrolling between weeks 2026-08-15 23:18:23 +02:00
04a441cd08 fix(settings): developer icon and stats for nerds icon 2026-08-15 23:05:21 +02:00
80856d1e8d fix: text overflow for developer options 2026-08-15 22:56:45 +02:00
9a74bd5178 fix: fix spacing around bottom nav icons 2026-08-15 22:54:18 +02:00
05c1cce469 fix: address all issues found by flutter analyze 2026-08-15 22:45:26 +02:00
0b1313d0be feat: refactor settings ui system 2026-08-15 22:15:47 +02:00
5a79c48e6d chore: update l10n 2026-08-15 21:39:17 +02:00
7bf9351b22 feat: refactor settings system
- Rename SettingsStore to SettingsRepository
- Migrate the `data.settings.group("settings").subGroup("customization")["theme"]`
pattern to use `Settings.themeBrightness.value`.
- Move settings definitions to SettingsSchema
- Use annotations for declaring metadata for settings
2026-08-15 21:28:39 +02:00
checkedear
368ad86f71 fix: timetable cache optimalizations 2026-08-02 21:06:52 +02:00
checkedear
46a508cc33 fix: refresh data on login 2026-08-02 21:05:53 +02:00
checkedear
2923d868e6 ref: reauth_cubit -> toast_cubit 2026-08-02 21:05:05 +02:00
checkedear
7f33b50822 ref: cache system rewrite 2026-08-01 11:09:28 +02:00
checkedear
54d792eb01 chore: update translations 2026-06-15 13:55:53 +02:00
checkedear
c8b402118c feat: omission card icon 2026-06-15 12:14:52 +02:00
checkedear
c0f3e61b90 fix: home_omissions icon and title 2026-06-15 11:58:04 +02:00
checkedear
9aaf43892f fix: omission info card 2026-06-15 11:50:46 +02:00
checkedear
a64a7f7509 feat: omissions 2026-06-15 11:39:20 +02:00
zypherift
1225e6763f remove crowdin file 2026-06-13 19:37:13 +02:00
zypherift
b159530de9 add copy to error screen 2026-06-13 19:36:21 +02:00
zypherift
5fb1f6cc30 fix debug build 2026-06-13 18:32:30 +02:00
checkedear
670968247a chore: update translations 2026-06-13 09:39:47 +02:00
5847301e70 Update README_de.md
Updated README_de.md to fit with the current README.md and README_en.md.
2026-06-13 03:19:53 +02:00
checkedear
6342f16d80 fix: build 2026-06-13 02:30:07 +02:00
checkedear
7167bf8da4 fix: grade chart design and indicate latest average 2026-06-13 02:08:01 +02:00
checkedear
7747e5d90b fix: grade card design 2026-06-13 01:16:29 +02:00
checkedear
49ec23c18e chore: update l10n 2026-06-13 00:18:41 +02:00
37e7cac61e Update README.md 2026-06-12 23:23:42 +02:00
d64ea1d2d6 Update README_en.md 2026-06-12 23:23:20 +02:00
d010544ff2 Update README_en.md 2026-06-12 23:10:38 +02:00
20d0cf9736 Update README_en.md 2026-06-12 23:09:03 +02:00
c8c299ba36 Update README_en.md 2026-06-12 23:00:53 +02:00
f3414499a7 Update README_en.md 2026-06-12 22:59:05 +02:00
4b1d113918 Update README_en.md 2026-06-12 21:59:50 +02:00
0e965a87b9 Update README_en.md 2026-06-12 21:01:25 +02:00
ead4dcd7b6 Update README_en.md 2026-06-12 20:59:10 +02:00
155d42d4d9 Update README_en.md 2026-06-12 20:57:00 +02:00
caa4db3254 Update README_en.md 2026-06-12 20:56:12 +02:00
4e64dd9959 Update README_en.md 2026-06-12 20:37:47 +02:00
07f6a5c562 Update README_en.md 2026-06-12 20:35:32 +02:00
f74ddb4c88 Update README_en.md 2026-06-12 20:23:04 +02:00
97b06044a4 Update README_en.md 2026-06-12 20:21:19 +02:00
2311556309 Update README_en.md 2026-06-12 20:19:25 +02:00
7a2bfb2cd8 Add CONTRIBUTING_de.md
A german version of CONTRIBUTING.md for all german speaking people.
2026-06-12 20:05:23 +02:00
39f683a0bf Update README.md 2026-06-12 20:01:58 +02:00
3576a3ab1e Update README_en.md 2026-06-12 20:01:27 +02:00
04af2c0402 Update README_de.md
Slight fix of boxes
2026-06-12 20:00:21 +02:00
70ff3ae8b9 Add README_de.md
Optional german README.md version for all german speaking people.
2026-06-12 19:58:35 +02:00
5a42884d20 Merge pull request 'Fixek + szöveg edit' (#31) from balint1414/firka:dev into dev
Reviewed-on: firka/firka#31
2026-06-11 18:13:02 +02:00
3fb0fd55de gitmodules: github>gitea 2026-06-11 16:00:36 +02:00
4c06daf02f Órarend szövegek szerkesztése 2026-06-11 15:52:50 +02:00
3d07b2b2ce Fordítás fix 2026-06-11 15:52:04 +02:00
9a45c5c456 Fix: Német órarend 2026-06-11 15:31:11 +02:00
checkedear
858d558cc3 feat: classroom name on lesson bottom sheet 2026-06-11 13:51:43 +02:00
checkedear
76f345cd6b fix: space under lesson slider 2026-06-11 13:29:55 +02:00
checkedear
e211d64ffb feat: shorten teacher's name 2026-06-11 13:29:20 +02:00
checkedear
c67ce7472a fix: event card on timetable 2026-06-11 12:25:13 +02:00
checkedear
2b9ac14d6e fix: active lesson on homepage 2026-06-11 11:50:12 +02:00
checkedear
eea10a4878 fix: lesson slider clipping 2026-06-11 11:27:13 +02:00
checkedear
1ef6ae6e87 fix: homework state update on homepage 2026-06-11 11:02:29 +02:00
checkedear
141431f378 fix: made whole homepage scrollable 2026-06-11 10:42:46 +02:00
checkedear
f0114e3976 fix: average calculations 2026-06-10 14:14:23 +02:00
checkedear
414a1ad254 feat: remove class average widget if there is no data 2026-06-09 13:21:41 +02:00
checkedear
d858c38bb1 fix: first lesson countdown 2026-06-09 12:49:52 +02:00
checkedear
87e3331428 revert: rounded subject average 2026-06-09 12:48:16 +02:00
checkedear
1d912abc7d tmp fix: themeless tests 2026-06-09 00:50:01 +02:00
3a2cdfce05 Update Jenkinsfile 2026-06-09 00:18:43 +02:00
c5ba318c3b Update Jenkinsfile 2026-06-09 00:15:02 +02:00
fe9a2b36f1 Update Jenkinsfile 2026-06-09 00:12:50 +02:00
80b05c1500 Update Jenkinsfile 2026-06-09 00:00:21 +02:00
2ed6a04bf5 Update Jenkinsfile 2026-06-08 23:40:57 +02:00
2d5ff89cad final shit 2026-06-08 23:13:11 +02:00
16b11564cc Update Jenkinsfile 2026-06-08 22:57:17 +02:00
1ca975f0bd Update Jenkinsfile 2026-06-08 22:50:44 +02:00
7985a11f99 Update Jenkinsfile 2026-06-08 22:32:02 +02:00
2cf95375cb jsdjsjsdjsdjsddjsdjsd 2026-06-08 22:24:34 +02:00
163b3a3135 i hate jenkins 2026-06-08 22:18:09 +02:00
e839b8fa70 Update Jenkinsfile 2026-06-08 22:12:48 +02:00
c6378c9d46 jsjsjdjjsjdj 2026-06-08 22:10:08 +02:00
51456b3b6e fuck you 2026-06-08 21:55:23 +02:00
checkedear
28f8f1d6f8 tmp fix: 50% weight grade style 2026-06-08 21:53:20 +02:00
d51c9d6411 Update Jenkinsfile 2026-06-08 21:52:12 +02:00
4ef2f479d6 Update Jenkinsfile 2026-06-08 21:42:18 +02:00
d81d261c52 Update Jenkinsfile 2026-06-08 21:35:15 +02:00
5baec2e65f Update Jenkinsfile 2026-06-08 21:33:52 +02:00
48ea97ecef Update Jenkinsfile 2026-06-08 21:33:02 +02:00
checkedear
1154997531 fix: gradle build 2026-06-08 20:55:55 +02:00
checkedear
dde05ce1db fix: navbar design 2026-06-08 20:40:57 +02:00
99ab6c07f7 update jenkins to that it only builds with developer keys for public access 2026-06-08 20:19:35 +02:00
checkedear
40c6b83627 fix: test bottom sheet design 2026-06-08 19:59:10 +02:00
checkedear
f4f6ddac72 fix: home_main 2026-06-08 19:57:46 +02:00
checkedear
938f2a56c6 fix: dismissed lesson design 2026-06-08 19:52:17 +02:00
checkedear
e1b571afa0 feat: test bottom sheet and design fixes 2026-06-04 12:20:43 +02:00
checkedear
729c281f1e ref: const constructors 2026-06-04 11:56:23 +02:00
checkedear
a61a41e677 ref: kreta_client 2026-05-17 19:40:49 +02:00
checkedear
e8f1f18725 feat: from, to params 2026-05-15 13:59:46 +02:00
checkedear
613b66bc22 ref: lesson widget 2026-04-29 21:21:36 +02:00
checkedear
1807d96895 fix: time left text for current lesson 2026-04-29 21:20:46 +02:00
checkedear
e06d2168c0 fix: display current lesson on homepage 2026-04-29 15:12:54 +02:00
checkedear
91603923bc fix: eplased lesson duration style pt. 2 2026-04-29 14:23:01 +02:00
checkedear
67e9ded2ed fix: dismiss modal by tapping on empty space 2026-04-27 17:08:27 +02:00
checkedear
e9aaa26e26 fix: currently viewed lesson indicator 2026-04-27 16:56:51 +02:00
checkedear
56f15a681c fix: timetable event overflow 2026-04-27 16:39:58 +02:00
checkedear
178ebf7271 fix: elapsed lesson duration style 2026-04-27 16:26:18 +02:00
checkedear
70c1397262 fix: subject grades overlap on switch 2026-04-27 16:20:18 +02:00
checkedear
a334901f84 fix: overall class average 2026-04-27 16:03:46 +02:00
checkedear
ddba6ad888 feat: show class grades 2026-04-27 15:49:31 +02:00
checkedear
780aaee1dd ref: grade utils 2026-04-26 23:53:51 +02:00
checkedear
09c408a6be feat: main page lessons carousel slider 2026-04-25 17:05:20 +02:00
checkedear
7847878551 feat: active and expanded lesson card 2026-04-25 17:04:32 +02:00
checkedear
09ef386eab fix: countdown widget design 2026-04-25 17:00:13 +02:00
checkedear
c19dd2f7eb feat: add borderColor to firka card 2026-04-25 16:58:33 +02:00
checkedear
39d4f49e99 fix: date format in test bottom sheet 2026-04-25 16:57:34 +02:00
checkedear
bbdbf406d4 fix: sun solid icon 2026-04-25 16:55:09 +02:00
checkedear
b17509f9db fix: timetable monthly view design 2026-04-21 22:41:48 +02:00
checkedear
9ec164daac ref: remove redundant files 2026-04-21 22:37:53 +02:00
checkedear
08f691d559 fix: subject card design 2026-04-21 22:36:30 +02:00
checkedear
ad9e2c6676 fix: grade subjects page design 2026-04-21 22:34:58 +02:00
checkedear
55dbf12a2f feat: main page with dates 2026-04-21 22:33:46 +02:00
checkedear
4fc13efc52 fix: bottom sheets 2026-04-19 16:30:26 +02:00
checkedear
5f16128bb0 feat: changable grade widget size 2026-04-19 15:53:56 +02:00
checkedear
4c8d73aa06 fix: B_16R font 2026-04-19 15:53:28 +02:00
checkedear
e4629d8489 fix: message content style and links 2026-04-19 15:52:33 +02:00
checkedear
f806dd8143 fix: test type alignment 2026-04-19 11:48:39 +02:00
checkedear
f653dc9fb4 fix: test type oveflow 2026-04-18 14:04:34 +02:00
checkedear
06249bfc3d fix: timetable style 2026-04-18 13:38:44 +02:00
checkedear
607f49bafc fix: test bubble style 2026-04-18 13:36:49 +02:00
checkedear
251e8de446 ref: lesson card 2026-04-18 13:36:09 +02:00
checkedear
21845f89a8 fix: firka_card margin and shadow 2026-04-18 13:32:19 +02:00
checkedear
25b1d06c06 fix: some fonts 2026-04-18 13:28:51 +02:00
checkedear
dd20aa6138 fix: get prev lesson 2026-04-15 22:17:45 +02:00
checkedear
9aa84c6fa1 fix: text grade title once again 2026-04-15 21:53:12 +02:00
checkedear
6c75acad66 fix: text grades title 2026-04-15 21:46:50 +02:00
checkedear
6311cafd51 fix: grade design 2026-04-15 18:57:03 +02:00
checkedear
1de32a35a4 fix: show grades by creation date 2026-04-15 16:29:02 +02:00
checkedear
f8a69a7561 feat: show tests on main home page 2026-04-15 16:26:35 +02:00
checkedear
f73c1127e7 feat: show notice board items as messages 2026-04-15 15:14:04 +02:00
checkedear
a369e4ab14 ref: kreta_api 2026-04-15 01:16:48 +02:00
checkedear
8b04b77327 ref: remove unused debug log 2026-04-15 01:00:37 +02:00
checkedear
d56db4fe3a fix: grade chart style 2026-04-14 14:58:18 +02:00
checkedear
e7c0a95638 fix: grade style 2026-04-13 15:30:32 +02:00
checkedear
fa66d9af14 ref: firka_card 2026-04-13 15:25:48 +02:00
checkedear
90c334d859 ref: getGradeColor and rounding accepts any num as grade 2026-04-13 15:23:34 +02:00
checkedear
cc9ebcf6b0 ref: kreta_api 2026-04-11 19:25:23 +02:00
checkedear
ac914aa02e Merge branch 'fix-long-message' into dev 2026-03-28 18:29:36 +01:00
checkedear
061f803f93 fix: long message overflow 2026-03-28 18:29:00 +01:00
checkedear
57c5e17b1c Merge branch 'fix-issue-29' into dev 2026-03-28 16:29:34 +01:00
checkedear
fa6f5390b1 Merge branch 'fix-issue-16' into dev 2026-03-28 16:27:18 +01:00
checkedear
21ff8f082f ref: firka_card 2026-03-28 13:23:51 +01:00
checkedear
3b09d072f0 feat: added 400% to the calculator 2026-03-27 20:15:01 +01:00
checkedear
84f8e75694 Merge branch 'fix-issue-16' into dev 2026-03-27 19:44:04 +01:00
checkedear
1a05cce49b fix: issue #16 2026-03-27 19:32:20 +01:00
checkedear
e732168a1b fix + ref: nav tap animation 2026-03-26 20:03:18 +01:00
zypherift
68035140b9 fix 2026-03-05 19:20:19 +01:00
zypherift
e004b7ee35 fix: higher res color wheel 2026-03-05 18:21:41 +01:00
zypherift
34718ed8ae Adjust webview loading fade timing 2026-03-05 18:19:37 +01:00
zypherift
03a5b5e767 feat: add disabled colors 2026-03-05 17:56:05 +01:00
zypherift
d30dc67626 push l10n 2026-03-05 17:55:50 +01:00
zypherift
d0a517ae1e feat: add privacy policy to domain browser, and add color change for url, and show url 2026-03-05 17:23:10 +01:00
32a6452c1b bump version string to 1.1.2 2026-03-05 14:52:55 +01:00
579bf6bcad firka(android): make room number chips have the same length
Closes: #13
2026-03-05 14:51:06 +01:00
4ecf0d1a3f firka_wear: fix RangeError in home_screen substring
Closes: #14
2026-03-05 13:29:02 +01:00
0675a5109a firka: ignore % grades and half year / end year grades
Closes: #22
2026-03-05 13:22:37 +01:00
bfb06d3e5f update l10n 2026-03-05 10:17:18 +01:00
71b4b6aec7 firka: ignore final and percent grades in averages 2026-03-05 10:15:55 +01:00
be6d28cfe3 firka: ignore subjects without grades in avg 2026-03-05 09:52:19 +01:00
8cfca13d1a firka: fix text style for hw bottom sheet
Closes: #19
2026-03-05 09:40:11 +01:00
632bb81408 firka: use textPrimaryLight for mark hw as done btn
Closes: #18
2026-03-05 09:33:47 +01:00
zypherift
f953dbd49f fix: null-safe percentage detection 2026-03-05 09:22:28 +01:00
zypherift
01e7e559ba fix: maybe fixed percentages being calculated into the grade? pls review 2026-03-05 09:22:28 +01:00
b6bfef7715 update docs 2026-03-05 09:06:26 +01:00
bf75f72bcd update codegen lock 2026-03-05 09:01:11 +01:00
zypherift
b0cb020d76 feat: smoother graph using 3 weighted avarages :O 2026-03-05 08:40:50 +01:00
zypherift
4239ffa00c chore: stream home data cache-first then refresh 2026-03-05 08:40:50 +01:00
zypherift
427b6f8086 fix: snap grade calculator weights to common percentages 2026-03-05 08:40:50 +01:00
zypherift
fbd2351073 fix: flashbang on new screen pushes 2026-03-05 08:40:50 +01:00
zypherift
150e90d19b edit: replace spinner with dave 2026-03-05 08:40:50 +01:00
zypherift
a6cf8b13c6 edit: fine tune wall collision vibration 2026-03-05 08:40:50 +01:00
zypherift
d8ae8471ab edit: l10n 2026-03-05 08:40:45 +01:00
zypherift
0e65f8e68c add: debug screen for acc 2026-03-04 23:02:25 +01:00
zypherift
3912ad593b edit: l10n 2026-03-04 23:02:25 +01:00
zypherift
1f6eaaeccc add: icons 2026-03-04 23:02:25 +01:00
40f188c2e2 codegen(firka): restore AndroidManifest.xml
flutter_launcher_icons replaces every icon inside
the AndroidManifest.xml which isn't ideal when having
multiple app icons
2026-03-04 21:34:27 +01:00
0aae3801b7 chore: update l10n for firka_wear 2026-03-04 21:17:17 +01:00
26902b7616 add build script for windows 2026-03-04 21:10:09 +01:00
ffaf2c77e0 bump version string to 1.1.1 2026-03-04 18:51:55 +01:00
23f7f7cd48 firka_wear: add error screen
Closes #12
2026-03-04 15:20:15 +01:00
c2879766eb build: run pub get and codegen 2026-03-04 10:55:40 +01:00
01cc08d5f3 codegen: generate missing .g.dart files 2026-03-04 09:56:52 +01:00
c386e1194b auto generate version code 2026-03-04 09:35:17 +01:00
67ed4e03eb firka: remov brotli again 2026-03-04 06:38:01 +01:00
c7d1f80e79 Merge pull request 'IOS Build fix' (#10) from devbeni/firka:dev into dev
Reviewed-on: firka/firka#10
2026-03-04 06:29:07 +01:00
7531e58114 Update project version to 1102 in Info.plist and project.pbxproj 2026-03-04 00:23:15 +01:00
c1e329cb5a Update subproject commit reference in l10n directory 2026-03-03 23:49:35 +01:00
dad52bf20e Merge branch 'dev' of https://git.firka.app/devbeni/firka into dev 2026-03-03 23:46:38 +01:00
5fb6d03d9c Remove Brotli subproject from Android app directory 2026-03-03 23:46:37 +01:00
1ef757d10f merge upstream 2026-03-03 23:46:10 +01:00
444abb83c2 Remove fmb_dart subproject from vendor directory 2026-03-03 23:44:24 +01:00
e835dcf6b1 firka: fix app icon changing
Closes: #9
2026-03-03 23:26:02 +01:00
e61a19fbbf Merge branch 'dev' of https://git.firka.app/devbeni/firka into dev 2026-03-03 23:23:30 +01:00
a937b854cd Update localization files and enhance build script for native assets handling 2026-03-03 23:22:43 +01:00
6d8f17ac00 Update object version and set development team for RunnerTests configuration 2026-03-03 23:11:25 +01:00
78dd4239cc merge upstream 2026-03-03 23:10:56 +01:00
39c5ca357e firka: remove package: 'firka'
Closes: #5
2026-03-03 23:08:45 +01:00
8249dbf03e remove dependency on brotli 2026-03-03 23:05:40 +01:00
c4e30ee4a6 Refactor project settings to improve folder exception handling and update object version 2026-03-03 22:31:16 +01:00
1291d20e55 Update app group identifiers to unify naming convention across the project 2026-03-03 22:14:04 +01:00
fb8d57c0ee Refactor entitlements and project settings to unify app group identifiers and update team identifiers 2026-03-03 22:11:16 +01:00
e79de0326c bump version codes for firka and firka_wear 2026-03-03 21:43:20 +01:00
de335af3c1 add build script 2026-03-03 20:29:56 +01:00
4be0bcd813 bump version to 1.1.0 and version code to 1100 2026-03-03 20:28:31 +01:00
zypherift
b3f46d8e84 Merge branch 'dev' of https://git.firka.app/firka/firka into dev 2026-03-03 20:17:38 +01:00
zypherift
e97246ee55 more vibration 2026-03-03 20:17:36 +01:00
zypherift
159fb73919 codegen 2026-03-03 20:17:01 +01:00
7c35a5675c Revert "accidentaly deleted"
This reverts commit 4c9eca217e.
2026-03-03 20:14:53 +01:00
45adddb7f7 add nix devshell 2026-03-03 20:11:10 +01:00
zypherift
4aad2bb292 l10n 2026-03-03 20:05:53 +01:00
zypherift
4c9eca217e accidentaly deleted 2026-03-03 20:05:46 +01:00
zypherift
ec6700e1cb Merge branch 'dev' of https://git.firka.app/firka/firka into dev 2026-03-03 20:00:42 +01:00
zypherift
b55595108f add assets to simulation 2026-03-03 20:00:24 +01:00
zypherift
8b3ab4a3a9 add colorwheel asset for new
loginscreen
2026-03-03 20:00:08 +01:00
zypherift
046b7926c4 nightmare: add simulation from scratch for collision and movement 2026-03-03 19:59:49 +01:00
zypherift
5626466107 disable drag bc login is fullscreen 2026-03-03 19:55:15 +01:00
zypherift
6c674bd596 finish webview 2026-03-03 19:53:34 +01:00
zypherift
9465a2b2a7 begin changing webview 2026-03-03 19:53:05 +01:00
484d8cf4cb codegen: add lock files 2026-03-03 18:40:59 +01:00
863f9c8077 firka_wear: add codegen script 2026-03-03 18:15:52 +01:00
a8983074dd firka: show weighted avg when adding ghost grades 2026-03-03 18:09:35 +01:00
e031c18ecb firka: fix Live Activity registration with fallback on resume and delayed retry 2026-03-03 17:37:39 +01:00
ba075c3b14 firka: add a section for ghost grades 2026-03-03 17:34:44 +01:00
32936c2aa5 firka: extract firka_common package with shared widgets (Isar kept separate)
- Create firka_common package with core helpers (debug, json, icon), theme,
  and shared widgets (FirkaCard, FirkaShadow, GradeWidget, GradeSmallCard,
  ClassIconWidget, FirkaIconWidget, DelayedSpinnerWidget, CounterDigitWidget)
- Keep Isar models (GenericCacheModel, TimetableCacheModel, HomeworkCacheModel,
  DatedCacheEntry, util) in firka and firka_wear - not moved to firka_common
- Update firka and firka_wear to depend on firka_common for shared UI only
- Add configurable roundGrade thresholds for firka settings
- Add package param to FirkaIconWidget for app asset paths
2026-03-03 15:33:11 +01:00
308 changed files with 20818 additions and 14412 deletions

1
.gitignore vendored
View File

@@ -105,3 +105,4 @@ firka/debug-info/
tool_logs/build/*.log
tool_logs/d8dx_fix/*.log
tool_logs/pub_fix/*.log
secrets/upload_certificate.pem

9
.gitmodules vendored
View File

@@ -1,9 +1,8 @@
[submodule "firka/lib/l10n"]
path = firka/lib/l10n
url = https://github.com/QwIT-Development/firka-localization
[submodule "firka/android/app/src/main/java/org/brotli"]
path = firka/android/app/src/main/java/org/brotli
url = https://git.firka.app/firka/org_brotli
url = https://git.firka.app/firka/firka-localization
branch = weblate
[submodule "firka_wear/lib/l10n"]
path = firka_wear/lib/l10n
url = https://github.com/qwit-development/firka-localization
url = https://git.firka.app/firka/firka-localization
branch = weblate

128
.woodpecker.yml Normal file
View File

@@ -0,0 +1,128 @@
when:
- event: [push, pull_request]
- event: manual
steps:
- name: submodules
image: git.firka.app/firka/firka-builder:latest
commands:
- git submodule update --init --recursive
- name: secrets
image: git.firka.app/firka/firka-builder:latest
environment:
UPLOAD_KEYSTORE_B64:
from_secret: upload_keystore_b64
KEYSTORE_PROPERTIES_B64:
from_secret: keystore_properties_b64
commands:
- echo "$UPLOAD_KEYSTORE_B64" | base64 -d > secrets/upload-keystore.jks
- echo "$KEYSTORE_PROPERTIES_B64" | base64 -d > secrets/keystore.properties
# Each step runs in a fresh container from the builder image -- only the
# workspace volume is shared between them. Pointing PUB_CACHE at a
# workspace-local dir (instead of the image's default /root/.pub-cache)
# is what lets `flutter pub get`'s downloads survive into later steps.
- name: dependencies
image: git.firka.app/firka/firka-builder:latest
commands:
- export PUB_CACHE="$CI_WORKSPACE/.pub-cache"
- cd firka
- flutter pub get
- name: codegen
image: git.firka.app/firka/firka-builder:latest
commands:
- export PUB_CACHE="$CI_WORKSPACE/.pub-cache"
- cd firka
- dart run scripts/codegen.dart
- name: build-release
image: git.firka.app/firka/firka-builder:latest
when:
- branch: main
commands:
- export PUB_CACHE="$CI_WORKSPACE/.pub-cache"
- cd firka
- flutter build appbundle --release
- name: build-debug
image: git.firka.app/firka/firka-builder:latest
when:
- branch:
exclude: main
commands:
- export PUB_CACHE="$CI_WORKSPACE/.pub-cache"
- cd firka
- flutter build apk --debug --split-per-abi
- name: publish-release
image: woodpeckercommunity/plugin-gitea-package:latest
pull: true
when:
- branch: main
settings:
user:
from_secret: gitea_username
password:
from_secret: gitea_token
owner: firka
package_name: firka
package_version: ${CI_COMMIT_SHA}
file_source: ./firka/build/app/outputs/bundle/release/app-release.aab
file_name: app-release.aab
update: 'true'
- name: publish-debug-arm64-v8a
image: woodpeckercommunity/plugin-gitea-package:latest
pull: true
when:
- branch:
exclude: main
settings:
user:
from_secret: gitea_username
password:
from_secret: gitea_token
owner: firka
package_name: firka
package_version: ${CI_COMMIT_SHA}
file_source: ./firka/build/app/outputs/flutter-apk/app-arm64-v8a-debug.apk
file_name: app-arm64-v8a-debug.apk
update: 'true'
- name: publish-debug-armeabi-v7a
image: woodpeckercommunity/plugin-gitea-package:latest
pull: true
when:
- branch:
exclude: main
settings:
user:
from_secret: gitea_username
password:
from_secret: gitea_token
owner: firka
package_name: firka
package_version: ${CI_COMMIT_SHA}
file_source: ./firka/build/app/outputs/flutter-apk/app-armeabi-v7a-debug.apk
file_name: app-armeabi-v7a-debug.apk
update: 'true'
- name: publish-debug-x86_64
image: woodpeckercommunity/plugin-gitea-package:latest
pull: true
when:
- branch:
exclude: main
settings:
user:
from_secret: gitea_username
password:
from_secret: gitea_token
owner: firka
package_name: firka
package_version: ${CI_COMMIT_SHA}
file_source: ./firka/build/app/outputs/flutter-apk/app-x86_64-debug.apk
file_name: app-x86_64-debug.apk
update: 'true'

View File

@@ -1,35 +1,19 @@
# Flutter telepítése
A firka androidra való lebuildeléséhez kötelező a saját Flutter fork használata, illetve minden más fajta --release buildhez is.
A Flutter telepítéséhez a dokumentáció [itt](https://docs.flutter.dev/get-started/install) található.
A Flutter zip letöltése helyett a custom engine-t cloneold le ([https://git.firka.app/firka/flutter/](https://git.firka.app/firka/flutter/))
# Brotli
A firka brotlival compresseli a libflutter-t buildelés közben ezért szükséges a projekt
buildeléséhez hogy a brotli a PATH-ben legyen
## Windows
- Töltsd le a `brotli-x64-windows-static.zip`-et a [google/brotli github repoból](https://github.com/google/brotli/releases/latest)
- Csomagold ki valahol (pl. C:\Users\\<username>\dev\brotli)
- Add hozzá a mappát ahova kicsomagoltad (C:\Users\\<username>\dev\brotli) a PATH-hez
- Ne felejtsd el újraindítani az IDE-det illetve parancssorodat utánna hogy frissüljön a PATH
## Linux/MacOS
Telepítsd fel a brotli packaget a distro-d package managerével
A projekt jelenleg a 3.41.2-es Flutter SDK-t használja.
# Keystore
[Secrets dokumentáció](secrets/README.md)
# Flutter l10n
# Fileok generálása
Flutter l10n fileok generálása
Flutter l10n és egyéb fileok generálása
```shell
Flutter gen-l10n --template-arb-file app_hu.arb
$ cd firka # vagy firka_wear
$ dart run scripts/codegen.dart
```
# Android debug build
@@ -42,20 +26,10 @@ $ Flutter build apk --debug --target-platform android-arm,android-arm64,android-
# Android release build
A release buildhez közelező egy keystore használata, illetve a saját Flutter engineünk használata.
A release buildhez közelező egy keystore használata.
## Custom Flutter engine setupolása
## Release appbundle buildelése (firka és firka_wear)
```shell
$ git clone https://git.firka.app/firka/flutter
$ cd flutter
$ . dev/tools/envsetup.sh
$ gclient sync -D
$ ./dev/tools/build_release.sh
```
## Release apk buildelése
```shell
$ ./tools/linux/build_apk.sh main
$ ./build.sh
```

35
CONTRIBUTING_de.md Normal file
View File

@@ -0,0 +1,35 @@
# Flutter installieren
Die Dokumentation zur Installation von Flutter findest du [hier](https://docs.flutter.dev/get-started/install).
Das Projekt verwendet derzeit das Flutter SDK 3.41.2.
# Keystore
[Dokumentation zu Secrets](secrets/README.md)
# Dateien generieren
Flutter-L10N-Dateien und andere Dateien generieren
```shell
$ cd firka # oder firka_wear
$ dart run scripts/codegen.dart
```
# Android-Debug-Build
Für den Dev-Build ist kein Keystore erforderlich
```shell
$ cd firka
$ flutter build apk --debug --target-platform android-arm,android-arm64,android-x64
```
# Android-Release-Build
Der Release-Build erfordert die Verwendung eines Keystores.
## Erstellen des Release-Appbundles (firka und firka_wear)
```shell
$ ./build.sh
```

View File

@@ -1,41 +1,24 @@
# Installing flutter
# Installing Flutter
To build firka you will have to use our custom Flutter fork,
and to make a release build you will have to use our custom
flutter engine.
The documentation for installing flutter can be found [here](https://docs.flutter.dev/get-started/install).
Instead of downloading the regular flutter zip, clone it from ([https://git.firka.app/firka/flutter/](https://git.firka.app/firka/flutter/)).
# Brotli
Firka uses brotli to compress libflutter during the build process to make the app smaller,
so building Firka requires you to have brotli in your path
## Windows
- Download `brotli-x64-windows-static.zip` from [google/brotli](https://github.com/google/brotli/releases/latest)
- Extract it to somewhere like C:\Users\\<username>\dev\brotli
- Add the directory (ex. C:\Users\\<username>\dev\brotli) to your PATH
- Don't forget to restart your IDE or terminal sessions for the PATH variable to update
## Linux/MacOS
Install it using your distro's package manager
Flutter installation documentation can be found [here](https://docs.flutter.dev/get-started/install).
The project currently uses Flutter SDK 3.41.2.
# Keystore
[Secrets docs](secrets/README_en.md)
[Secrets documentation](secrets/README.md)
# Flutter l10n
# Generating files
Generating flutter l10n files
Generating Flutter l10n and other files
```shell
flutter gen-l10n --template-arb-file app_hu.arb
$ cd firka # or firka_wear
$ dart run scripts/codegen.dart
```
# Android debug build
The dev build doesn't require using a custom keystore
The dev build does not require using a keystore
```shell
$ cd firka
$ flutter build apk --debug --target-platform android-arm,android-arm64,android-x64
@@ -43,20 +26,10 @@ $ flutter build apk --debug --target-platform android-arm,android-arm64,android-
# Android release build
The release build requires using a custom keystore and our custom flutter fork
The release build requires using a keystore.
## Setting up our flutter engine fork
## Building the release appbundle (firka and firka_wear)
```shell
$ git clone https://git.firka.app/firka/flutter
$ cd flutter
$ . dev/tools/envsetup.sh
$ gclient sync -D
$ ./dev/tools/build_release.sh
$ ./build.sh
```
## Building the release apk
```shell
$ ./tools/linux/build_apk.sh main
```

167
Jenkinsfile vendored
View File

@@ -1,167 +0,0 @@
pipeline {
agent {
label 'ubuntu'
}
environment {
PATH = "/home/jenkins/development/flutter/bin:${env.PATH}"
}
stages {
stage('Pre-build Cleanup') {
steps {
script {
sh '''#!/bin/sh
set -x
fusermount -u secrets || true
'''
}
}
}
stage('Decrypt main keys') {
when {
branch 'main'
}
steps {
script {
def userInput = input(
id: 'signaturePassword',
message: 'Please enter the signing key password:',
parameters: [
password(
defaultValue: '',
description: 'Enter the signing key password',
name: 'password'
)
]
)
env.PASSWORD = userInput.toString()
}
sh '''#!/bin/sh
echo \$PASSWORD | gocryptfs $HOME/android_secrets secrets/ -nonempty
'''
}
}
stage('Clone submodules') {
steps {
script {
sh 'git submodule update --init --recursive'
}
}
}
stage('Build firka') {
steps {
sh 'bash -c "./tools/linux/build_apk.sh ' + env.BRANCH_NAME + '"'
}
}
stage('Rename Release APKs') {
when {
branch 'main'
}
steps {
script {
sh '''#!/bin/sh
set -e
APK_DIR="firka/build/app/outputs/flutter-apk"
# Find all release APKs and rename them
for apk_file in $APK_DIR/app-*-release.apk; do
if [ -f "$apk_file" ]; then
# Extract ABI from filename (e.g., app-arm64-v8a-release.apk -> arm64-v8a)
basename_file=$(basename "$apk_file")
abi=$(echo "$basename_file" | sed 's/app-//; s/-release.apk//')
# Create new filename
new_name="app.firka.naplo_${abi}.apk"
new_path="$APK_DIR/$new_name"
echo "Renaming $apk_file to $new_path"
mv "$apk_file" "$new_path"
fi
done
ls -la $APK_DIR/app.firka.naplo_*.apk || echo "APK files not found"
'''
}
}
}
stage('Calculate Version Code') {
steps {
script {
sh '''#!/bin/sh
set -e
cd firka
# Calculate version code based on git commits (same logic as build script)
COMMIT_COUNT=$(git rev-list --count HEAD)
BASE_BUILD_NUMBER=$((1300 + COMMIT_COUNT))
if [ "$BRANCH_NAME" = "main" ]; then
# For main branch, highest version code is BASE + 3000 (x64 build)
VERSION_CODE=$((BASE_BUILD_NUMBER + 3000))
else
# For debug builds, version code is BASE + 0
VERSION_CODE=$BASE_BUILD_NUMBER
fi
echo "Calculated version code: $VERSION_CODE"
echo "$VERSION_CODE" > ../version_code.txt
'''
env.VERSION_CODE = readFile('version_code.txt').trim()
echo "Setting VERSION_CODE environment variable to: ${env.VERSION_CODE}"
}
}
}
stage('Publish debug artifacts') {
when {
not {
branch 'main'
}
}
steps {
archiveArtifacts artifacts: 'firka/build/app/outputs/flutter-apk/app-debug.apk', fingerprint: true
}
}
stage('Publish release AABs artifacts') {
when {
branch 'main'
}
steps {
archiveArtifacts artifacts: 'firka/build/app/outputs/bundle/release/*.aab', fingerprint: true
sh 'rm firka/build/app/outputs/bundle/release/*.aab'
}
}
stage('Publish release APKs artifacts') {
when {
branch 'main'
}
steps {
archiveArtifacts artifacts: 'firka/build/app/outputs/flutter-apk/app.firka.naplo_*.apk', fingerprint: true
sh 'rm firka/build/app/outputs/flutter-apk/app.firka.naplo_*.apk'
}
}
stage('Post Cleanup') {
steps {
script {
sh '''
rm firka/build/app/outputs/bundle/release/*.aab || true
rm firka/build/app/outputs/flutter-apk/app.firka.naplo_*.apk || true
rm firka/build/app/outputs/flutter-apk/app-debug.apk || true
rm version_code.txt || true
git checkout -- firka/pubspec.yaml || true
git checkout -- firka/lib/helpers/firka_bundle.dart || true
'''
}
}
}
}
}

View File

@@ -1,13 +1,49 @@
# Firka Napló
# <img src="https://git.firka.app/firka/readme-files/raw/branch/main/dave.png" height="40" /> Firka
| <sub>HU</sub> [Magyar](README.md) | <sub>EN</sub> [English](README_en.md) |
|-----------------------------------|---------------------------------------|
| <sub>HU</sub> [Magyar](README.md) | <sub>EN</sub> [English](README_en.md) | <sub>DE</sub> [Deutsch](README_de.md) |
|-----------------------------------|---------------------------------------|---------------------------------------|
[![Crowdin](https://badges.crowdin.net/firka/localized.svg)](https://crowdin.com/project/firka)
<a href="https://translate.firka.app/engage/firka-naplo/"><img src="https://translate.firka.app/widget/firka-naplo/firka-app/en/svg-badge.svg" alt="Fordítás állapota"></a>
<a href="https://status.firka.app/"><img src="https://status.firka.app/api/badge/1/uptime/24?label=Üzemidő&suffix=%" alt="Üzemidő"></a>
<a href="https://builds.firka.app/job/Firka%20Beta/"><img src="https://img.shields.io/jenkins/build?jobUrl=https%3A%2F%2Fbuilds.firka.app%2Fjob%2FFirka%2520Beta%2F&label=Build" alt="Build állapota"></a>
## A projektről
### Azért kezdtünk neki ennek a projektnek, mert úgy véltük, hogy a hivatalos alkalmazás nem volt elég jó. A Firka egy teljesen nyílt forráskódú, közösség által karbantartott alternatíva, és ez még csak a kezdet. Minden verzióval gyorsabb, testreszabhatóbb és felhasználóbarátabb lesz.
Firka egy alternatív [megnevezetlen naplóra] egy kliens alkalmazás. Az alkalmazás célja
egy modern, felhasználóbarát felület biztosítása a(z) [megnevezetlen napló] rendszerhez.
<img src="https://git.firka.app/firka/readme-files/raw/branch/main/firka_features.png" width="100%" />
A [fejlesztői környezet beállítsa](CONTRIBUTING.md)
<br />
## Mik egyáltalán az alkalmazás funkciói?
### Lásd előre, mi vár rád
A főképernyő megmutatja a közelgő óráidat, hogy soha ne érjen meglepetés. Szűrj tantárgy, dolgozatok, vagy bármi más alapján, ami számodra fontos. Az alsó sáv teljesen testreszabható – tedd oda, amit használsz, és rejtsd el, amit nem.
### Jegyek, a te feltételeid szerint
Nem vagy felkészülve a jegyeidre? Ez a beállítás elrejti őket, amíg egyesével meg nem nyitod őket, így kényelmes tempóban dolgozhatod fel minden kudarcodat.
### Pontosan mennyire vagy rossz matekból?
A jegyek oldalon grafikon mutatja az összesített átlagodat, így végig követheted, ahogyan lassan süllyed a félév során. Minden tantárgyhoz külön grafikon is tartozik, ha pontosan tudni akarod melyik a tettes.
### Szabj testre mindent
A beállítások képernyőn olyan lehetőségek is vannak, amelyekről nem is tudtad, hogy szükséged van rájuk. Állítsd be a csengő eltolását, hogy másodpercre pontosan tudd, mikor ér véget az óra.
Balkezes mód is van, mert úgy tűnik, van, aki nem volt szerencsés az életben.
## Mit támogattok?
Jelenleg **Androidot** és **iOS-t** támogatunk.
<br />
Tervezzük a böngészős támogatást is!
## Contribution
Az első lépéseket a [közreműködési útmutatóban](CONTRIBUTING_en.md) találod.
## Közösség
[Discord](https://discord.gg/xTspd3zzRZ)

51
README_de.md Normal file
View File

@@ -0,0 +1,51 @@
# <img src="https://git.firka.app/firka/readme-files/raw/branch/main/dave.png" height="40" /> Firka
| <sub>HU</sub> [Magyar](README.md) | <sub>EN</sub> [English](README_en.md) | <sub>DE</sub> [Deutsch](README_de.md) |
|-----------------------------------|---------------------------------------|---------------------------------------|
<a href="https://translate.firka.app/engage/firka-naplo/"><img src="https://translate.firka.app/widget/firka-naplo/firka-app/en/svg-badge.svg" alt="Translation status"></a>
<a href="https://status.firka.app/"><img src="https://status.firka.app/api/badge/1/uptime/24?label=Uptime&suffix=%" alt="Uptime"></a>
<a href="https://builds.firka.app/job/Firka%20Beta/"><img src="https://img.shields.io/jenkins/build?jobUrl=https%3A%2F%2Fbuilds.firka.app%2Fjob%2FFirka%2520Beta%2F&label=Build" alt="Build status"></a>
### Wir haben diese App entwickelt, weil die offizielle App viel zu wünschen übrig ließ. Firka ist eine vollständig open-source, von der Community gepflegte Alternative, und wir stehen erst am Anfang. Mit jedem Release wird sie schneller, anpassbarer und benutzerfreundlicher.
<img src="https://git.firka.app/firka/readme-files/raw/branch/main/firka_features.png" width="100%" />
<br />
## Was sind überhaupt die Funktionen der App?
### Sieh, was ansteht
Der Startbildschirm zeigt deine anstehenden Lektionen an, damit du nie unvorbereitet bist. Filtere nach Fach, Prüfungen oder was auch immer dir gerade wichtig ist. Die untere Leiste ist vollständig anpassbar: Zeige an was du nutzt und verstecke was du nicht brauchst.
### Noten, ganz nach deinen Vorstellungen
Emotional nicht bereit für deine eigenen Noten? Diese Einstellung hält sie verborgen, bis du jede einzelne antippst, damit du deine Misserfolge in einem angenehmen Tempo verarbeiten kannst.
### Wie schlecht bist du eigentlich in Mathe?
Die Noten-Seite enthält ein Diagramm deines Gesamtdurchschnitts, sodass du beobachten kannst, wie er im Laufe des Semesters langsam sinkt. Jedes Fach hat zudem ein eigenes Diagramm, falls du genau wissen möchtest, welches dafür verantwortlich ist.
### Alles anpassen
Der Einstellungsbildschirm bietet Optionen, von denen du nicht wusstest, dass du sie brauchst. Passe die Glockenverzögerung an, damit du auf die Sekunde genau weißt, wann der Unterricht endet. Es gibt auch einen Linkshänder-Modus, denn anscheinend benutzen manche Leute ihr Handy falsch.
## Was wird unterstützt?
Derzeit unterstützen wir **Android** und **iOS**.
<br />
Wir planen, auch deinen Browser zu unterstützen!
## Mitwirken
Wir würden uns sehr über deine Hilfe freuen.
Du kannst im [Leitfaden zum unterstützen](CONTRIBUTING_de.md) loslegen.
## Community
[Discord](https://discord.gg/xTspd3zzRZ)

View File

@@ -1,13 +1,51 @@
# Firka
# <img src="https://git.firka.app/firka/readme-files/raw/branch/main/dave.png" height="40" /> Firka
| <sub>HU</sub> [Magyar](README.md) | <sub>EN</sub> [English](README_en.md) |
|-----------------------------------|---------------------------------------|
| <sub>HU</sub> [Magyar](README.md) | <sub>EN</sub> [English](README_en.md) | <sub>DE</sub> [Deutsch](README_de.md) |
|-----------------------------------|---------------------------------------|---------------------------------------|
[![Crowdin](https://badges.crowdin.net/firka/localized.svg)](https://crowdin.com/project/firka)
<a href="https://translate.firka.app/engage/firka-naplo/"><img src="https://translate.firka.app/widget/firka-naplo/firka-app/en/svg-badge.svg" alt="Translation status"></a>
<a href="https://status.firka.app/"><img src="https://status.firka.app/api/badge/1/uptime/24?label=Uptime&suffix=%" alt="Uptime"></a>
<a href="https://builds.firka.app/job/Firka%20Beta/"><img src="https://img.shields.io/jenkins/build?jobUrl=https%3A%2F%2Fbuilds.firka.app%2Fjob%2FFirka%2520Beta%2F&label=Build" alt="Build status"></a>
## The project
### We built this because the official app left a lot to be desired. Firka is a fully open source, community maintained alternative and we're just getting started. Faster, more customizable, and more user friendly with every release.
Firka is an alternative client for [an application to be named]. The app's goal is to be a modern
user friendly app for the [to be named] system.
[Contribution guide](CONTRIBUTING_en.md)
<img src="https://git.firka.app/firka/readme-files/raw/branch/main/firka_features.png" width="100%" />
<br />
## What even are the app's features?
### See what's coming
The home screen shows your upcoming lessons so you're never caught off guard. Filter by subject, exams, or whatever you actually care about. The bottom bar is fully customizable, put what you use, hide what you don't.
### Grades, on your terms
Emotionally unprepared for your own grades? This setting keeps them hidden until you tap each one open, so you can process your failures at a comfortable pace.
### How bad are you at maths, exactly?
The grades page has a graph of your overall average, so you can watch it slowly decline over the semester. Each subject also gets its own graph, in case you wanted to know exactly which one is responsible.
### Customize everything
The settings screen has options you didn't know you needed. Adjust the bell offset so you know exactly when class ends down to the second. Left-handed mode exists too, because apparently some people use their phones wrong.
## What do you support?
Currently, we support **Android** and **iOS**.
<br />
We're planning on supporting your browser also!
## Contribution
We would really appriciate your help.
You can get started at the [contribution guide](CONTRIBUTING_en.md).
## Community
[Discord](https://discord.gg/xTspd3zzRZ)

52
build.ps1 Normal file
View File

@@ -0,0 +1,52 @@
$ErrorActionPreference = 'Stop'
$ROOT = $PSScriptRoot
$SHA = (git -C $ROOT rev-parse --short HEAD)
$COMMIT_COUNT = [int](git -C $ROOT rev-list --count HEAD)
function Build-App {
param([string]$App)
$pubspec = Join-Path $ROOT $App "pubspec.yaml"
if (-not (Test-Path $pubspec)) {
Write-Error "Not found: $pubspec"
}
$versionLine = Get-Content $pubspec | Select-String -Pattern '^\s*version:\s*' | Select-Object -First 1
if (-not $versionLine) {
Write-Error "No version line in $pubspec"
}
$line = $versionLine.Line
if ($line -match '^\s*version:\s*([^+\s]+)') {
$baseVersion = $Matches[1].Trim()
} else {
Write-Error "Could not parse version from: $line"
}
$buildName = "${baseVersion}-${SHA}"
$versionCode = 2000 + $COMMIT_COUNT
if ($App -eq "firka_wear") {
$versionCode += 1
}
Write-Host "Building $App : version $buildName (version code: $versionCode)"
Push-Location (Join-Path $ROOT $App)
try {
flutter pub get
dart run scripts/codegen.dart
flutter build appbundle --build-name="$buildName" --build-number="$versionCode" --verbose
} finally {
Pop-Location
}
}
$target = if ($args.Count -gt 0) { $args[0] } else { "all" }
switch ($target) {
"firka" { Build-App firka }
"firka_wear" { Build-App firka_wear }
"all" { Build-App firka; Build-App firka_wear }
default {
Write-Error "Usage: $MyInvocation.MyCommand.Name [firka|firka_wear|all]"
}
}

41
build.sh Normal file
View File

@@ -0,0 +1,41 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")" && pwd)"
SHA=$(git -C "$ROOT" rev-parse --short HEAD)
COMMIT_COUNT=$(git -C "$ROOT" rev-list --count HEAD)
build_app() {
local APP="$1"
local PUBSPEC="$ROOT/$APP/pubspec.yaml"
if [[ ! -f "$PUBSPEC" ]]; then
echo "Not found: $PUBSPEC" >&2
return 1
fi
local VERSION_LINE BASE_VERSION BUILD_NAME VERSION_CODE
VERSION_LINE=$(grep -E '^\s*version:\s*' "$PUBSPEC" | head -1)
BASE_VERSION=$(echo "$VERSION_LINE" | sed -E 's/^[[:space:]]*version:[[:space:]]*([^+]+).*/\1/' | tr -d ' ')
BUILD_NAME="${BASE_VERSION}-${SHA}"
VERSION_CODE=$((2000 + COMMIT_COUNT))
[[ "$APP" == "firka_wear" ]] && VERSION_CODE=$((VERSION_CODE + 1))
echo "Building $APP: version $BUILD_NAME (version code: $VERSION_CODE)"
cd "$ROOT/$APP"
flutter pub get
dart run scripts/codegen.dart
flutter build appbundle --build-name="$BUILD_NAME" --build-number="$VERSION_CODE" --verbose
}
case "${1:-all}" in
firka) build_app firka ;;
firka_wear) build_app firka_wear ;;
all) build_app firka && build_app firka_wear ;;
*)
echo "Usage: $0 [firka|firka_wear|all]" >&2
exit 1
;;
esac

48
cache.md Normal file
View File

@@ -0,0 +1,48 @@
# Cache
Entry:
név|típus|
-|-|
latestElement|idő|
createdAt|idő|
response|Json|
Legutóbbi = Legutóbbi sikeres adatlekérdezés listájának legfrissebb elemének ideje.
## Timetable
TimetableDay entry.
Frissíteni|Korábbi|Múlt hét|Jelenlegi hét|Jövő hét|Későbbi|
-|-|-|-|-|-|
belépéskor?|✖️|✖️|✔️|✔️|✖️|
kijelzéskor?|✖️|✖️|✖️|✖️|✔️|
Új mulasztáskor a mulasztás napját MINDIG frissíti.
## Értékelések/Tesztek/Faliújság/Feljegyzések/Házi feladatok
Frissíteni|Korábbi|Legutóbbi létrehozástól|
-|-|-|
belépéskor?|✖️|✔️|
kijelzéskor?|✖️|✖️|
## Mulasztások
Összes
## Egyéb
Belépéskor
--------
# IMPL
### GenericCache
Entry:
név|típus|
-|-|
userId|id|
createdAt|idő|
response|Json|

View File

@@ -1,32 +1,27 @@
import java.io.FileInputStream
import java.util.Properties
plugins {
id("com.android.application")
id("kotlin-android")
// START: FlutterFire Configuration
id("com.google.gms.google-services")
// END: FlutterFire Configuration
id("org.jetbrains.kotlin.plugin.compose")
id("org.jetbrains.kotlin.android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin")
}
android {
namespace = "app.firka.naplo"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
isCoreLibraryDesugaringEnabled = true
}
buildFeatures {
compose = true
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
defaultConfig {
applicationId = "app.firka.naplo"
// You can update the following values to match your application needs.
@@ -36,14 +31,11 @@ android {
versionCode = flutter.versionCode
versionName = flutter.versionName
}
val secretsDir = File(projectDir.absolutePath, "../../../secrets/")
val propsFile = File(secretsDir, "keystore.properties")
if (propsFile.exists()) {
val props = Properties().apply { FileInputStream(propsFile).use { load(it) } }
val store = File(secretsDir, props["storeFile"].toString())
signingConfigs {
create("release") {
storeFile = store
@@ -57,7 +49,6 @@ android {
}
}
}
buildTypes {
getByName("debug") {
applicationIdSuffix = ".debug"
@@ -65,20 +56,29 @@ android {
}
release {
val config = signingConfigs.findByName("release")
if (config != null) {
signingConfig = config
}
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
compilerOptions {
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
}
}
configurations.all {
resolutionStrategy {
force("androidx.test.espresso:espresso-core:3.6.1")
force("androidx.test.espresso:espresso-idling-resource:3.6.1")
}
}
dependencies {
implementation("androidx.glance:glance-appwidget:1.1.1")
implementation("com.google.android.gms:play-services-wearable:18.1.0")
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4")
}
// Ensure .env exists before Flutter bundles assets (copy from .env.example if missing)
val envFile = file("${project.projectDir}/../../.env")
val envExampleFile = file("${project.projectDir}/../../.env.example")
@@ -93,7 +93,6 @@ tasks.register("ensureEnv") {
tasks.matching { it.name.startsWith("compileFlutterBuild") }.configureEach {
dependsOn("ensureEnv")
}
flutter {
source = "../.."
}

View File

@@ -0,0 +1,29 @@
{
"project_info": {
"project_number": "219357380322",
"project_id": "firka-4633b",
"storage_bucket": "firka-4633b.firebasestorage.app"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:219357380322:android:5b776732799faa5c08a8bb",
"android_client_info": {
"package_name": "app.firka.naplo"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyD-3VE9--eKRDGm1UW_P9JLaM2Hyd2Wfx4"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}

View File

@@ -1,2 +1 @@
-keep class org.brotli.** { *; }
-keep class app.firka.naplo.glance.** { *; }

View File

@@ -4,6 +4,7 @@
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
<application android:label="Firka Debug"
<application android:name="app.firka.naplo.AppMain"
android:label="Firka Debug"
android:usesCleartextTraffic="true" />
</manifest>
</manifest>

View File

@@ -0,0 +1,29 @@
{
"project_info": {
"project_number": "219357380322",
"project_id": "firka-4633b",
"storage_bucket": "firka-4633b.firebasestorage.app"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:219357380322:android:5b776732799faa5c08a8bb",
"android_client_info": {
"package_name": "app.firka.naplo.debug"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyD-3VE9--eKRDGm1UW_P9JLaM2Hyd2Wfx4"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}

View File

@@ -11,7 +11,6 @@
android:name=".AppMain"
android:icon="@mipmap/launcher_icon">
<service
android:name=".WearSyncForegroundService"
android:exported="false"
@@ -685,6 +684,13 @@
<meta-data
android:name="com.google.android.wearable.standalone"
android:value="true" />
<!-- Small status-bar icon for FCM notification-payload messages that
Android displays automatically (data-only wakeups instead go
through LocalNotificationService, which sets its own icon). -->
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/ic_notification" />
</application>
<!-- Required to query activities that can process text, see:

View File

@@ -16,6 +16,7 @@ import androidx.glance.layout.padding
import androidx.glance.layout.width
import androidx.glance.text.FontWeight
import androidx.glance.text.Text
import androidx.glance.text.TextAlign
import androidx.glance.text.TextStyle
import app.firka.naplo.model.Colors
import app.firka.naplo.glance.WidgetLesson
@@ -31,6 +32,7 @@ fun LessonCard(
colors: Colors,
modifier: GlanceModifier = GlanceModifier,
roomBadgeWidthDp: Float = 48f,
subjectColumnWidthDp: Float = 226f,
) {
Box(modifier =
modifier
@@ -49,17 +51,21 @@ fun LessonCard(
Box(modifier = GlanceModifier.padding(12.dp)) {
Row {
Row(modifier = GlanceModifier.fillMaxWidth()) {
val badgeStyle = TextStyle(
color = ColorProvider(colors.textSecondary, colors.textSecondary),
fontSize = 14.sp,
fontWeight = FontWeight.Bold
fontWeight = FontWeight.Bold,
textAlign = TextAlign.Center
)
val badgePadding = GlanceModifier.padding(8.dp, 4.dp)
val lessonNumberBadgeModifier = GlanceModifier.cornerRadius(16.dp).width(24.dp)
val roomBadgeModifier = GlanceModifier.cornerRadius(16.dp).width(roomBadgeWidthDp.dp)
Row(modifier = GlanceModifier.width(226.dp), verticalAlignment = Alignment.CenterVertically) {
Row(
modifier = GlanceModifier.width(subjectColumnWidthDp.dp),
verticalAlignment = Alignment.CenterVertically,
) {
if (lesson.lessonNumber != null) {
Box(
modifier = lessonNumberBadgeModifier.background(bgColor),
@@ -79,12 +85,14 @@ fun LessonCard(
}
// TODO: Add subject icons
Text(
lesson.name,
text = lesson.name,
style = TextStyle(
color = ColorProvider(colors.textPrimary, colors.textPrimary),
fontSize = 14.sp,
fontWeight = FontWeight.Bold
),
maxLines = 1,
modifier = GlanceModifier.fillMaxWidth(),
)
}
@@ -98,15 +106,18 @@ fun LessonCard(
),
)
Spacer(modifier = GlanceModifier.width(8.dp))
val roomName = (lesson.roomName ?: "N/A").take(5)
val roomName = lesson.roomName ?: "N/A"
Box(
modifier = roomBadgeModifier.background(colors.a15p),
contentAlignment = Alignment.Center,
) {
Text(
roomName,
text = roomName,
style = badgeStyle,
modifier = GlanceModifier.padding(4.dp, 4.dp),
maxLines = 1,
modifier = GlanceModifier
.fillMaxWidth()
.padding(4.dp, 4.dp),
)
}
}

View File

@@ -116,8 +116,10 @@ class TimetableWidget : GlanceAppWidget() {
val displayLessons = data.lessons.take(maxLessons)
val lessonChunks = displayLessons.chunked(2)
val showDate = maxLessons > 1
val maxRoomNameLen = displayLessons.maxOfOrNull { (it.roomName ?: "N/A").take(5).length } ?: 0
val roomBadgeWidthDp = if (maxRoomNameLen <= 3) 28f else 48f
val roomBadgeWidthDp = 48f
val minWidthForTimeAndChipDp = 8f + 40f + roomBadgeWidthDp
val subjectColumnWidthDp = (size.width.value - 2 * paddingDp - 32f - minWidthForTimeAndChipDp)
.coerceIn(80f, 226f)
val dateSectionHeight = if (showDate) headerHeightDp + spacerDp else 0f
val lessonListHeight = when (val n = displayLessons.size) {
0 -> 0f
@@ -148,7 +150,12 @@ class TimetableWidget : GlanceAppWidget() {
for (chunk in lessonChunks) {
Column {
for (lesson in chunk) {
LessonCard(lesson, data.colors, roomBadgeWidthDp = roomBadgeWidthDp)
LessonCard(
lesson,
data.colors,
roomBadgeWidthDp = roomBadgeWidthDp,
subjectColumnWidthDp = subjectColumnWidthDp,
)
Spacer(modifier = GlanceModifier.height(spacerDp.dp))
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 957 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

View File

@@ -1,5 +1,5 @@
import com.android.build.gradle.BaseExtension
import org.jetbrains.kotlin.gradle.plugin.extraProperties
import com.android.build.api.dsl.ApplicationExtension
import com.android.build.api.dsl.LibraryExtension
allprojects {
repositories {
@@ -14,33 +14,26 @@ rootProject.layout.buildDirectory.value(newBuildDir)
subprojects {
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
// fix for verifyReleaseResources
// note(4831c0): taken from https://github.com/isar/isar/issues/1662
// note(4831c0): and adapted to kotlin
afterEvaluate {
if (plugins.hasPlugin("com.android.application") || plugins.hasPlugin("com.android.library")) {
val androidExtension = extensions.getByName("android") as BaseExtension
androidExtension.apply {
compileSdkVersion(36)
buildToolsVersion = "36.1.0"
}
}
if (hasProperty("android")) {
val androidExtension = extensions.getByName("android") as BaseExtension
androidExtension.apply {
// Set namespace if it's not already set
if (!extraProperties.has("namespace")) {
extraProperties["namespace"] = project.group.toString()
if (plugins.hasPlugin("com.android.application")) {
extensions.configure<ApplicationExtension> {
compileSdk = 37
defaultConfig {
// buildToolsVersion can be set here if needed
}
}
}
if (plugins.hasPlugin("com.android.library")) {
extensions.configure<LibraryExtension> {
compileSdk = 37
}
}
}
// ===============================
project.layout.buildDirectory.value(newSubprojectBuildDir)
}
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}
}

View File

@@ -11,3 +11,7 @@ org.gradle.parallel=true
org.gradle.daemon=true
# Better Kotlin incremental compilation (warm builds)
kotlin.incremental.useClasspathSnapshot=true
# This builtInKotlin flag was added automatically by Flutter migrator
android.builtInKotlin=false
android.newDsl=false

View File

@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-all.zip

View File

@@ -18,9 +18,12 @@ pluginManagement {
plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "8.11.1" apply false
id("org.jetbrains.kotlin.android") version "2.1.0" apply false
id("org.jetbrains.kotlin.plugin.compose") version "2.1.0" apply false
id("com.android.application") version "9.2.0" apply false
// START: FlutterFire Configuration
id("com.google.gms.google-services") version("4.4.4") apply false
// END: FlutterFire Configuration
id("org.jetbrains.kotlin.android") version "2.3.10" apply false
id("org.jetbrains.kotlin.plugin.compose") version "2.3.10" apply false
}
include(":app")

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 18 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -0,0 +1,6 @@
<svg width="108" height="48" viewBox="0 0 108 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="108" height="48" rx="12" fill="#F3FBDE"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M30.6555 15.6657C30.968 15.3533 31.3919 15.1777 31.8338 15.1777C32.2758 15.1777 32.6996 15.3533 33.0122 15.6657L34.3338 16.9874C34.6463 17.2999 34.8218 17.7238 34.8218 18.1657C34.8218 18.6077 34.6463 19.0315 34.3338 19.344L33.0122 20.6657L29.3338 16.9874L30.6555 15.6657ZM28.1555 18.1657L23.9888 22.3324C23.6762 22.6449 23.5006 23.0687 23.5005 23.5107V24.8324C23.5005 25.2744 23.6761 25.6983 23.9886 26.0109C24.3012 26.3235 24.7251 26.499 25.1672 26.499H26.4888C26.9308 26.499 27.3547 26.3233 27.6672 26.0107L31.8338 21.844L28.1555 18.1657Z" fill="#A7DC22"/>
<path d="M21.0005 25.666H20.1672C19.7251 25.666 19.3012 25.8416 18.9886 26.1542C18.6761 26.4667 18.5005 26.8907 18.5005 27.3327C18.5005 27.7747 18.6761 28.1986 18.9886 28.5112C19.3012 28.8238 19.7251 28.9993 20.1672 28.9993H31.8338C32.2758 28.9993 32.6998 29.1749 33.0123 29.4875C33.3249 29.8001 33.5005 30.224 33.5005 30.666C33.5005 31.108 33.3249 31.532 33.0123 31.8445C32.6998 32.1571 32.2758 32.3327 31.8338 32.3327H28.5005" stroke="#A7DC22" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M47.648 29.5V19.996H44.208V18.3H52.944V19.996H49.504V29.5H47.648ZM56.7006 29.692C55.922 29.692 55.2286 29.516 54.6206 29.164C54.0233 28.8013 53.5486 28.3053 53.1966 27.676C52.8553 27.0467 52.6846 26.3213 52.6846 25.5C52.6846 24.6787 52.8606 23.9533 53.2126 23.324C53.5646 22.6947 54.0446 22.204 54.6526 21.852C55.2713 21.4893 55.9753 21.308 56.7646 21.308C57.4793 21.308 58.1246 21.4947 58.7006 21.868C59.2766 22.2307 59.73 22.7587 60.0606 23.452C60.402 24.1453 60.5726 24.972 60.5726 25.932H54.2846L54.5246 25.708C54.5246 26.1987 54.6313 26.6253 54.8446 26.988C55.058 27.34 55.3406 27.612 55.6926 27.804C56.0446 27.996 56.434 28.092 56.8606 28.092C57.3513 28.092 57.7566 27.9853 58.0766 27.772C58.3966 27.548 58.6473 27.26 58.8286 26.908L60.4126 27.58C60.1886 28.0067 59.9006 28.38 59.5486 28.7C59.2073 29.02 58.7966 29.2653 58.3166 29.436C57.8473 29.6067 57.3086 29.692 56.7006 29.692ZM54.6366 24.78L54.3806 24.556H58.8926L58.6526 24.78C58.6526 24.3427 58.5566 23.9853 58.3646 23.708C58.1726 23.42 57.9273 23.2067 57.6286 23.068C57.3406 22.9187 57.0366 22.844 56.7166 22.844C56.3966 22.844 56.0766 22.9187 55.7566 23.068C55.4366 23.2067 55.17 23.42 54.9566 23.708C54.7433 23.9853 54.6366 24.3427 54.6366 24.78ZM55.5326 20.46L57.3886 18.3H59.4686L57.4046 20.46H55.5326ZM61.9764 29.5V21.5H63.6564L63.7364 22.572C63.9817 22.156 64.2964 21.8413 64.6804 21.628C65.0644 21.4147 65.5017 21.308 65.9924 21.308C66.6324 21.308 67.1764 21.452 67.6244 21.74C68.0724 22.028 68.3977 22.4653 68.6004 23.052C68.835 22.4867 69.1657 22.0547 69.5924 21.756C70.019 21.4573 70.5204 21.308 71.0964 21.308C72.0244 21.308 72.739 21.6067 73.2404 22.204C73.7417 22.7907 73.987 23.6973 73.9764 24.924V29.5H72.2004V25.404C72.2004 24.764 72.131 24.2733 71.9924 23.932C71.8537 23.58 71.667 23.3347 71.4324 23.196C71.1977 23.0573 70.9257 22.988 70.6164 22.988C70.0617 22.9773 69.6297 23.1747 69.3204 23.58C69.0217 23.9853 68.8724 24.5667 68.8724 25.324V29.5H67.0804V25.404C67.0804 24.764 67.011 24.2733 66.8724 23.932C66.7444 23.58 66.563 23.3347 66.3284 23.196C66.0937 23.0573 65.8217 22.988 65.5124 22.988C64.9577 22.9773 64.5257 23.1747 64.2164 23.58C63.9177 23.9853 63.7684 24.5667 63.7684 25.324V29.5H61.9764ZM80.6845 29.5L80.6045 27.996V25.388C80.6045 24.844 80.5458 24.3907 80.4285 24.028C80.3218 23.6547 80.1405 23.372 79.8845 23.18C79.6392 22.9773 79.3085 22.876 78.8925 22.876C78.5085 22.876 78.1725 22.956 77.8845 23.116C77.5965 23.276 77.3512 23.5267 77.1485 23.868L75.5805 23.292C75.7512 22.94 75.9752 22.6147 76.2525 22.316C76.5405 22.0067 76.8978 21.7613 77.3245 21.58C77.7618 21.3987 78.2845 21.308 78.8925 21.308C79.6712 21.308 80.3218 21.4627 80.8445 21.772C81.3672 22.0707 81.7512 22.5027 81.9965 23.068C82.2525 23.6333 82.3805 24.316 82.3805 25.116L82.3325 29.5H80.6845ZM78.3805 29.692C77.4205 29.692 76.6738 29.4787 76.1405 29.052C75.6178 28.6253 75.3565 28.0227 75.3565 27.244C75.3565 26.412 75.6338 25.7773 76.1885 25.34C76.7538 24.9027 77.5378 24.684 78.5405 24.684H80.6845V26.06H79.1165C78.4018 26.06 77.9005 26.1613 77.6125 26.364C77.3245 26.556 77.1805 26.8333 77.1805 27.196C77.1805 27.5053 77.3032 27.7507 77.5485 27.932C77.8045 28.1027 78.1565 28.188 78.6045 28.188C79.0098 28.188 79.3618 28.0973 79.6605 27.916C79.9592 27.7347 80.1885 27.4947 80.3485 27.196C80.5192 26.8973 80.6045 26.5613 80.6045 26.188H81.1325C81.1325 27.276 80.9138 28.1347 80.4765 28.764C80.0392 29.3827 79.3405 29.692 78.3805 29.692ZM77.5965 20.46L79.4525 18.3H81.5325L79.4685 20.46H77.5965ZM85.829 27.26L84.741 26.028L88.901 21.5H91.061L85.829 27.26ZM84.117 29.5V18.3H85.909V29.5H84.117ZM89.205 29.5L86.389 25.356L87.557 24.108L91.333 29.5H89.205Z" fill="#394C0A"/>
</svg>

After

Width:  |  Height:  |  Size: 4.8 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -0,0 +1,5 @@
<svg width="108" height="48" viewBox="0 0 108 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="108" height="48" rx="12" fill="#F3FBDE"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M26.8026 15.9055C26.7524 15.8382 26.6891 15.7817 26.6166 15.7394C26.544 15.6971 26.4637 15.6699 26.3804 15.6593C26.2971 15.6487 26.2125 15.655 26.1317 15.6778C26.0509 15.7007 25.9755 15.7396 25.9101 15.7922C24.3129 17.0742 23.2594 18.9127 22.9609 20.9388C22.4141 20.5413 21.9344 20.0589 21.5401 19.5097C21.4866 19.4349 21.4173 19.3729 21.3371 19.328C21.2569 19.2831 21.1678 19.2564 21.0761 19.2499C20.9845 19.2434 20.8925 19.2572 20.8067 19.2902C20.721 19.3233 20.6436 19.3749 20.5801 19.4413C19.4795 20.5926 18.774 22.0644 18.5658 23.6435C18.3576 25.2225 18.6575 26.8268 19.4221 28.2241C20.1866 29.6213 21.3761 30.7388 22.8182 31.4148C24.2604 32.0908 25.8803 32.2902 27.4433 31.984C29.0063 31.6778 30.4312 30.882 31.5117 29.7118C32.5922 28.5416 33.2721 27.0579 33.453 25.4755C33.6338 23.893 33.3062 22.2941 32.5176 20.9104C31.729 19.5266 30.5204 18.4298 29.0667 17.7788C28.1732 17.3443 27.3967 16.7019 26.8026 15.9055ZM29.1251 25.8755C29.1248 26.3275 29.0264 26.7741 28.8367 27.1844C28.6471 27.5948 28.3707 27.959 28.0266 28.2522C27.6825 28.5453 27.2789 28.7603 26.8437 28.8823C26.4084 29.0044 25.9519 29.0305 25.5056 28.959C25.0592 28.8875 24.6337 28.7199 24.2584 28.468C23.8831 28.2161 23.5669 27.8857 23.3317 27.4998C23.0964 27.1138 22.9477 26.6814 22.8958 26.2323C22.8438 25.7833 22.8899 25.3283 23.0309 24.8988C23.5542 25.2863 24.1559 25.5738 24.8084 25.7322C24.986 24.5915 25.5528 23.5475 26.4126 22.7772C27.1634 22.8772 27.8524 23.2465 28.3513 23.8164C28.8503 24.3863 29.1252 25.118 29.1251 25.8755Z" fill="#A7DC22"/>
<path d="M49.008 29.692C48.4213 29.692 47.8827 29.6227 47.392 29.484C46.912 29.3453 46.4853 29.1533 46.112 28.908C45.7493 28.6627 45.4453 28.3907 45.2 28.092C44.9653 27.7827 44.8 27.4627 44.704 27.132L46.528 26.572C46.6667 26.9667 46.9387 27.3133 47.344 27.612C47.7493 27.9107 48.2507 28.0653 48.848 28.076C49.5413 28.076 50.0907 27.932 50.496 27.644C50.9013 27.356 51.104 26.9773 51.104 26.508C51.104 26.0813 50.9333 25.7347 50.592 25.468C50.2507 25.1907 49.792 24.9773 49.216 24.828L47.84 24.476C47.3173 24.3373 46.8427 24.1347 46.416 23.868C46 23.6013 45.6693 23.2653 45.424 22.86C45.1893 22.4547 45.072 21.9747 45.072 21.42C45.072 20.3747 45.4133 19.564 46.096 18.988C46.7787 18.4013 47.7547 18.108 49.024 18.108C49.7387 18.108 50.3627 18.22 50.896 18.444C51.44 18.6573 51.888 18.956 52.24 19.34C52.592 19.7133 52.8533 20.14 53.024 20.62L51.232 21.196C51.072 20.7693 50.7947 20.4173 50.4 20.14C50.0053 19.8627 49.5147 19.724 48.928 19.724C48.32 19.724 47.84 19.868 47.488 20.156C47.1467 20.444 46.976 20.844 46.976 21.356C46.976 21.772 47.1093 22.0973 47.376 22.332C47.6533 22.556 48.0267 22.7267 48.496 22.844L49.872 23.18C50.8747 23.4253 51.6533 23.8467 52.208 24.444C52.7627 25.0413 53.04 25.7027 53.04 26.428C53.04 27.068 52.8853 27.6333 52.576 28.124C52.2667 28.6147 51.808 28.9987 51.2 29.276C50.6027 29.5533 49.872 29.692 49.008 29.692ZM57.9416 29.692C57.099 29.692 56.4536 29.484 56.0056 29.068C55.5683 28.6413 55.3496 28.0333 55.3496 27.244V19.004H57.1256V26.908C57.1256 27.2813 57.211 27.564 57.3816 27.756C57.563 27.948 57.8243 28.044 58.1656 28.044C58.2723 28.044 58.3896 28.0227 58.5176 27.98C58.6456 27.9373 58.7896 27.8573 58.9496 27.74L59.6056 29.1C59.3283 29.292 59.051 29.436 58.7736 29.532C58.4963 29.6387 58.219 29.692 57.9416 29.692ZM54.0216 23.036V21.5H59.2856V23.036H54.0216ZM62.2229 25.244C62.2229 24.38 62.3882 23.6707 62.7189 23.116C63.0495 22.5613 63.4762 22.1507 63.9989 21.884C64.5322 21.6067 65.0869 21.468 65.6629 21.468V23.18C65.1722 23.18 64.7082 23.2493 64.2709 23.388C63.8442 23.516 63.4975 23.7293 63.2309 24.028C62.9642 24.3267 62.8309 24.7213 62.8309 25.212L62.2229 25.244ZM61.0389 29.5V21.5H62.8309V29.5H61.0389ZM70.4194 29.692C69.6407 29.692 68.9474 29.516 68.3394 29.164C67.742 28.8013 67.2674 28.3053 66.9154 27.676C66.574 27.0467 66.4034 26.3213 66.4034 25.5C66.4034 24.6787 66.5794 23.9533 66.9314 23.324C67.2834 22.6947 67.7634 22.204 68.3714 21.852C68.99 21.4893 69.694 21.308 70.4834 21.308C71.198 21.308 71.8434 21.4947 72.4194 21.868C72.9954 22.2307 73.4487 22.7587 73.7794 23.452C74.1207 24.1453 74.2914 24.972 74.2914 25.932H68.0034L68.2434 25.708C68.2434 26.1987 68.35 26.6253 68.5634 26.988C68.7767 27.34 69.0594 27.612 69.4114 27.804C69.7634 27.996 70.1527 28.092 70.5794 28.092C71.07 28.092 71.4754 27.9853 71.7954 27.772C72.1154 27.548 72.366 27.26 72.5474 26.908L74.1314 27.58C73.9074 28.0067 73.6194 28.38 73.2674 28.7C72.926 29.02 72.5154 29.2653 72.0354 29.436C71.566 29.6067 71.0274 29.692 70.4194 29.692ZM68.3554 24.78L68.0994 24.556H72.6114L72.3714 24.78C72.3714 24.3427 72.2754 23.9853 72.0834 23.708C71.8914 23.42 71.646 23.2067 71.3474 23.068C71.0594 22.9187 70.7554 22.844 70.4354 22.844C70.1154 22.844 69.7954 22.9187 69.4754 23.068C69.1554 23.2067 68.8887 23.42 68.6754 23.708C68.462 23.9853 68.3554 24.3427 68.3554 24.78ZM80.5439 29.5L80.4639 27.996V25.388C80.4639 24.844 80.4052 24.3907 80.2879 24.028C80.1812 23.6547 79.9999 23.372 79.7439 23.18C79.4985 22.9773 79.1679 22.876 78.7519 22.876C78.3679 22.876 78.0319 22.956 77.7439 23.116C77.4559 23.276 77.2105 23.5267 77.0079 23.868L75.4399 23.292C75.6105 22.94 75.8345 22.6147 76.1119 22.316C76.3999 22.0067 76.7572 21.7613 77.1839 21.58C77.6212 21.3987 78.1439 21.308 78.7519 21.308C79.5305 21.308 80.1812 21.4627 80.7039 21.772C81.2265 22.0707 81.6105 22.5027 81.8559 23.068C82.1119 23.6333 82.2399 24.316 82.2399 25.116L82.1919 29.5H80.5439ZM78.2399 29.692C77.2799 29.692 76.5332 29.4787 75.9999 29.052C75.4772 28.6253 75.2159 28.0227 75.2159 27.244C75.2159 26.412 75.4932 25.7773 76.0479 25.34C76.6132 24.9027 77.3972 24.684 78.3999 24.684H80.5439V26.06H78.9759C78.2612 26.06 77.7599 26.1613 77.4719 26.364C77.1839 26.556 77.0399 26.8333 77.0399 27.196C77.0399 27.5053 77.1625 27.7507 77.4079 27.932C77.6639 28.1027 78.0159 28.188 78.4639 28.188C78.8692 28.188 79.2212 28.0973 79.5199 27.916C79.8185 27.7347 80.0479 27.4947 80.2079 27.196C80.3785 26.8973 80.4639 26.5613 80.4639 26.188H80.9919C80.9919 27.276 80.7732 28.1347 80.3359 28.764C79.8985 29.3827 79.1999 29.692 78.2399 29.692ZM85.7665 27.26L84.6785 26.028L88.8385 21.5H90.9985L85.7665 27.26ZM84.0545 29.5V18.3H85.8465V29.5H84.0545ZM89.1425 29.5L86.3265 25.356L87.4945 24.108L91.2705 29.5H89.1425Z" fill="#394C0A"/>
</svg>

After

Width:  |  Height:  |  Size: 6.3 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 8.8 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 20 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -0,0 +1,5 @@
<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="tabler:play-card-star-filled">
<path id="Vector" d="M14.1667 1.66667C14.8297 1.66667 15.4656 1.93006 15.9344 2.3989C16.4033 2.86774 16.6667 3.50363 16.6667 4.16667V15.8333C16.6667 16.4964 16.4033 17.1323 15.9344 17.6011C15.4656 18.0699 14.8297 18.3333 14.1667 18.3333H5.83333C5.17029 18.3333 4.53441 18.0699 4.06557 17.6011C3.59673 17.1323 3.33333 16.4964 3.33333 15.8333V4.16667C3.33333 3.50363 3.59673 2.86774 4.06557 2.3989C4.53441 1.93006 5.17029 1.66667 5.83333 1.66667H14.1667ZM14.175 15H14.1667C13.9543 15.0002 13.75 15.0816 13.5955 15.2274C13.4411 15.3732 13.3481 15.5725 13.3357 15.7845C13.3232 15.9965 13.3922 16.2053 13.5286 16.3682C13.6649 16.5311 13.8583 16.6357 14.0692 16.6608L14.175 16.6667C14.396 16.6667 14.608 16.5789 14.7643 16.4226C14.9205 16.2663 15.0083 16.0543 15.0083 15.8333C15.0083 15.6123 14.9205 15.4004 14.7643 15.2441C14.608 15.0878 14.396 15 14.175 15ZM10.025 7.08333L9.92917 7.0875C9.60917 7.12083 9.32583 7.315 9.18083 7.60667L8.75583 8.4625L7.8075 8.60083C7.455 8.65 7.1575 8.89833 7.04583 9.24083L7.01833 9.345C6.9866 9.50024 6.99456 9.66098 7.04146 9.81233C7.08837 9.96368 7.17271 10.1007 7.28667 10.2108L7.97 10.875L7.80833 11.8142C7.75 12.1742 7.8975 12.5283 8.18667 12.7375L8.27583 12.7942C8.41247 12.8713 8.56621 12.9131 8.7231 12.9157C8.87998 12.9183 9.03503 12.8817 9.17417 12.8092L10.0258 12.3625L10.875 12.8083C11.1892 12.975 11.575 12.9483 11.8667 12.7367L11.95 12.67C12.1842 12.4542 12.2967 12.1325 12.2417 11.8133L12.08 10.875L12.7658 10.2092C13.0242 9.9575 13.1158 9.5825 13.005 9.24167L12.97 9.15C12.9051 9.00436 12.8044 8.87758 12.6771 8.78153C12.5499 8.68548 12.4003 8.6233 12.2425 8.60083L11.2942 8.4625L10.8708 7.6075C10.793 7.44983 10.6727 7.31709 10.5233 7.22431C10.374 7.13152 10.2016 7.0824 10.0258 7.0825M5.84167 3.33333H5.83333C5.62093 3.33357 5.41664 3.4149 5.26219 3.56071C5.10775 3.70651 5.0148 3.90579 5.00236 4.11783C4.98991 4.32986 5.0589 4.53865 5.19522 4.70153C5.33155 4.8644 5.52492 4.96908 5.73583 4.99417L5.84167 5C6.06268 5 6.27464 4.9122 6.43092 4.75592C6.5872 4.59964 6.675 4.38768 6.675 4.16667C6.675 3.94565 6.5872 3.73369 6.43092 3.57741C6.27464 3.42113 6.06268 3.33333 5.84167 3.33333Z" fill="#A7DC22"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -0,0 +1,3 @@
<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<path id="Star 9" d="M10.5 0L11.047 7.18922C11.1594 8.66653 12.3335 9.84055 13.8108 9.95296L21 10.5L13.8108 11.047C12.3335 11.1594 11.1594 12.3335 11.047 13.8108L10.5 21L9.95296 13.8108C9.84055 12.3335 8.66653 11.1594 7.18923 11.047L0 10.5L7.18922 9.95296C8.66653 9.84055 9.84055 8.66653 9.95296 7.18923L10.5 0Z" fill="#A7DC22"/>
</svg>

After

Width:  |  Height:  |  Size: 503 B

View File

@@ -0,0 +1,3 @@
<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<path id="Star 11" d="M12.5 0L13.1885 9.0478C13.3009 10.5251 14.4749 11.6991 15.9522 11.8115L25 12.5L15.9522 13.1885C14.4749 13.3009 13.3009 14.4749 13.1885 15.9522L12.5 25L11.8115 15.9522C11.6991 14.4749 10.5251 13.3009 9.0478 13.1885L0 12.5L9.0478 11.8115C10.5251 11.6991 11.6991 10.5251 11.8115 9.0478L12.5 0Z" fill="#A7DC22"/>
</svg>

After

Width:  |  Height:  |  Size: 504 B

View File

@@ -0,0 +1,3 @@
<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="9.87586" height="9.87586" viewBox="0 0 9.87586 9.87586" fill="none" xmlns="http://www.w3.org/2000/svg">
<path id="Star 10" d="M4.93793 0L5.15681 2.87656C5.23175 3.86143 6.01443 4.64411 6.9993 4.71905L9.87586 4.93793L6.9993 5.15681C6.01443 5.23175 5.23175 6.01443 5.15681 6.9993L4.93793 9.87586L4.71905 6.9993C4.64411 6.01443 3.86143 5.23175 2.87656 5.15681L0 4.93793L2.87656 4.71905C3.86143 4.64411 4.64411 3.86143 4.71905 2.87656L4.93793 0Z" fill="#A7DC22"/>
</svg>

After

Width:  |  Height:  |  Size: 549 B

View File

@@ -0,0 +1,3 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M19.7069 7.70643C19.8891 7.51783 19.9899 7.26523 19.9876 7.00303C19.9853 6.74083 19.8801 6.49002 19.6947 6.30461C19.5093 6.1192 19.2585 6.01403 18.9963 6.01176C18.7341 6.00948 18.4815 6.11027 18.2929 6.29243L8.99992 15.5854L5.70692 12.2924C5.51832 12.1103 5.26571 12.0095 5.00352 12.0118C4.74132 12.014 4.49051 12.1192 4.3051 12.3046C4.11969 12.49 4.01452 12.7408 4.01224 13.003C4.00997 13.2652 4.11076 13.5178 4.29292 13.7064L8.29292 17.7064C8.48045 17.8939 8.73476 17.9992 8.99992 17.9992C9.26508 17.9992 9.51939 17.8939 9.70692 17.7064L19.7069 7.70643Z" fill="#A7DC22"/>
</svg>

After

Width:  |  Height:  |  Size: 726 B

View File

@@ -0,0 +1,10 @@
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_2679_4048)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.5 0.5C1.96957 0.5 1.46086 0.710714 1.08579 1.08579C0.710714 1.46086 0.5 1.96957 0.5 2.5V9.5C0.5 10.0304 0.710714 10.5391 1.08579 10.9142C1.46086 11.2893 1.96957 11.5 2.5 11.5H9.5C10.0304 11.5 10.5391 11.2893 10.9142 10.9142C11.2893 10.5391 11.5 10.0304 11.5 9.5V2.5C11.5 1.96957 11.2893 1.46086 10.9142 1.08579C10.5391 0.710714 10.0304 0.5 9.5 0.5H2.5ZM9.8535 3.8535C9.94458 3.7592 9.99498 3.6329 9.99384 3.5018C9.9927 3.3707 9.94011 3.24529 9.84741 3.15259C9.75471 3.05989 9.6293 3.0073 9.4982 3.00616C9.3671 3.00502 9.2408 3.05542 9.1465 3.1465L4.5 7.793L2.8535 6.1465C2.7592 6.05542 2.6329 6.00502 2.5018 6.00616C2.3707 6.0073 2.24529 6.05989 2.15259 6.15259C2.05989 6.24529 2.0073 6.3707 2.00616 6.5018C2.00502 6.6329 2.05542 6.7592 2.1465 6.8535L4.1465 8.8535C4.24026 8.94724 4.36742 8.99989 4.5 8.99989C4.63258 8.99989 4.75974 8.94724 4.8535 8.8535L9.8535 3.8535Z" fill="#A7DC22"/>
</g>
<defs>
<clipPath id="clip0_2679_4048">
<rect width="12" height="12" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -1,3 +1,3 @@
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.5 3C13.5 2.73478 13.3946 2.48043 13.2071 2.29289C13.0196 2.10536 12.7652 2 12.5 2C12.2348 2 11.9804 2.10536 11.7929 2.29289C11.6054 2.48043 11.5 2.73478 11.5 3V4C11.5 4.26522 11.6054 4.51957 11.7929 4.70711C11.9804 4.89464 12.2348 5 12.5 5C12.7652 5 13.0196 4.89464 13.2071 4.70711C13.3946 4.51957 13.5 4.26522 13.5 4V3ZM6.207 4.293C6.0184 4.11084 5.7658 4.01005 5.5036 4.01233C5.2414 4.0146 4.99059 4.11977 4.80518 4.30518C4.61977 4.49059 4.5146 4.7414 4.51233 5.0036C4.51005 5.2658 4.61084 5.5184 4.793 5.707L5.793 6.707C5.9816 6.88916 6.2342 6.98995 6.4964 6.98767C6.7586 6.9854 7.00941 6.88023 7.19482 6.69482C7.38023 6.50941 7.4854 6.2586 7.48767 5.9964C7.48995 5.7342 7.38916 5.4816 7.207 5.293L6.207 4.293ZM20.207 4.293C20.0195 4.10553 19.7652 4.00021 19.5 4.00021C19.2348 4.00021 18.9805 4.10553 18.793 4.293L17.793 5.293C17.6108 5.4816 17.51 5.7342 17.5123 5.9964C17.5146 6.2586 17.6198 6.50941 17.8052 6.69482C17.9906 6.88023 18.2414 6.9854 18.5036 6.98767C18.7658 6.98995 19.0184 6.88916 19.207 6.707L20.207 5.707C20.3945 5.51947 20.4998 5.26516 20.4998 5C20.4998 4.73484 20.3945 4.48053 20.207 4.293ZM12.5 7C11.1739 7 9.90215 7.52678 8.96447 8.46447C8.02678 9.40215 7.5 10.6739 7.5 12C7.5 13.3261 8.02678 14.5979 8.96447 15.5355C9.90215 16.4732 11.1739 17 12.5 17C13.8261 17 15.0979 16.4732 16.0355 15.5355C16.9732 14.5979 17.5 13.3261 17.5 12C17.5 10.6739 16.9732 9.40215 16.0355 8.46447C15.0979 7.52678 13.8261 7 12.5 7ZM3.5 11C3.23478 11 2.98043 11.1054 2.79289 11.2929C2.60536 11.4804 2.5 11.7348 2.5 12C2.5 12.2652 2.60536 12.5196 2.79289 12.7071C2.98043 12.8946 3.23478 13 3.5 13H4.5C4.76522 13 5.01957 12.8946 5.20711 12.7071C5.39464 12.5196 5.5 12.2652 5.5 12C5.5 11.7348 5.39464 11.4804 5.20711 11.2929C5.01957 11.1054 4.76522 11 4.5 11H3.5ZM20.5 11C20.2348 11 19.9804 11.1054 19.7929 11.2929C19.6054 11.4804 19.5 11.7348 19.5 12C19.5 12.2652 19.6054 12.5196 19.7929 12.7071C19.9804 12.8946 20.2348 13 20.5 13H21.5C21.7652 13 22.0196 12.8946 22.2071 12.7071C22.3946 12.5196 22.5 12.2652 22.5 12C22.5 11.7348 22.3946 11.4804 22.2071 11.2929C22.0196 11.1054 21.7652 11 21.5 11H20.5ZM7.207 18.707C7.30251 18.6148 7.37869 18.5044 7.4311 18.3824C7.48351 18.2604 7.5111 18.1292 7.51225 17.9964C7.5134 17.8636 7.4881 17.7319 7.43782 17.609C7.38754 17.4862 7.31329 17.3745 7.2194 17.2806C7.1255 17.1867 7.01385 17.1125 6.89095 17.0622C6.76806 17.0119 6.63638 16.9866 6.5036 16.9877C6.37082 16.9889 6.2396 17.0165 6.1176 17.0689C5.99559 17.1213 5.88525 17.1975 5.793 17.293L4.793 18.293C4.69749 18.3852 4.62131 18.4956 4.5689 18.6176C4.51649 18.7396 4.4889 18.8708 4.48775 19.0036C4.4866 19.1364 4.5119 19.2681 4.56218 19.391C4.61246 19.5138 4.68671 19.6255 4.7806 19.7194C4.8745 19.8133 4.98615 19.8875 5.10905 19.9378C5.23194 19.9881 5.36362 20.0134 5.4964 20.0123C5.62918 20.0111 5.7604 19.9835 5.8824 19.9311C6.00441 19.8787 6.11475 19.8025 6.207 19.707L7.207 18.707ZM19.207 17.293C19.0184 17.1108 18.7658 17.01 18.5036 17.0123C18.2414 17.0146 17.9906 17.1198 17.8052 17.3052C17.6198 17.4906 17.5146 17.7414 17.5123 18.0036C17.51 18.2658 17.6108 18.5184 17.793 18.707L18.793 19.707C18.9816 19.8892 19.2342 19.99 19.4964 19.9877C19.7586 19.9854 20.0094 19.8802 20.1948 19.6948C20.3802 19.5094 20.4854 19.2586 20.4877 18.9964C20.49 18.7342 20.3892 18.4816 20.207 18.293L19.207 17.293ZM13.5 20C13.5 19.7348 13.3946 19.4804 13.2071 19.2929C13.0196 19.1054 12.7652 19 12.5 19C12.2348 19 11.9804 19.1054 11.7929 19.2929C11.6054 19.4804 11.5 19.7348 11.5 20V21C11.5 21.2652 11.6054 21.5196 11.7929 21.7071C11.9804 21.8946 12.2348 22 12.5 22C12.7652 22 13.0196 21.8946 13.2071 21.7071C13.3946 21.5196 13.5 21.2652 13.5 21V20Z" fill="#FFFFFF"/>
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 3C13 2.73478 12.8946 2.48043 12.7071 2.29289C12.5196 2.10536 12.2652 2 12 2C11.7348 2 11.4804 2.10536 11.2929 2.29289C11.1054 2.48043 11 2.73478 11 3V4C11 4.26522 11.1054 4.51957 11.2929 4.70711C11.4804 4.89464 11.7348 5 12 5C12.2652 5 12.5196 4.89464 12.7071 4.70711C12.8946 4.51957 13 4.26522 13 4V3ZM5.707 4.293C5.5184 4.11084 5.2658 4.01005 5.0036 4.01233C4.7414 4.0146 4.49059 4.11977 4.30518 4.30518C4.11977 4.49059 4.0146 4.7414 4.01233 5.0036C4.01005 5.2658 4.11084 5.5184 4.293 5.707L5.293 6.707C5.4816 6.88916 5.7342 6.98995 5.9964 6.98767C6.2586 6.9854 6.50941 6.88023 6.69482 6.69482C6.88023 6.50941 6.9854 6.2586 6.98767 5.9964C6.98995 5.7342 6.88916 5.4816 6.707 5.293L5.707 4.293ZM19.707 4.293C19.5195 4.10553 19.2652 4.00021 19 4.00021C18.7348 4.00021 18.4805 4.10553 18.293 4.293L17.293 5.293C17.1108 5.4816 17.01 5.7342 17.0123 5.9964C17.0146 6.2586 17.1198 6.50941 17.3052 6.69482C17.4906 6.88023 17.7414 6.9854 18.0036 6.98767C18.2658 6.98995 18.5184 6.88916 18.707 6.707L19.707 5.707C19.8945 5.51947 19.9998 5.26516 19.9998 5C19.9998 4.73484 19.8945 4.48053 19.707 4.293ZM12 7C10.6739 7 9.40215 7.52678 8.46447 8.46447C7.52678 9.40215 7 10.6739 7 12C7 13.3261 7.52678 14.5979 8.46447 15.5355C9.40215 16.4732 10.6739 17 12 17C13.3261 17 14.5979 16.4732 15.5355 15.5355C16.4732 14.5979 17 13.3261 17 12C17 10.6739 16.4732 9.40215 15.5355 8.46447C14.5979 7.52678 13.3261 7 12 7ZM3 11C2.73478 11 2.48043 11.1054 2.29289 11.2929C2.10536 11.4804 2 11.7348 2 12C2 12.2652 2.10536 12.5196 2.29289 12.7071C2.48043 12.8946 2.73478 13 3 13H4C4.26522 13 4.51957 12.8946 4.70711 12.7071C4.89464 12.5196 5 12.2652 5 12C5 11.7348 4.89464 11.4804 4.70711 11.2929C4.51957 11.1054 4.26522 11 4 11H3ZM20 11C19.7348 11 19.4804 11.1054 19.2929 11.2929C19.1054 11.4804 19 11.7348 19 12C19 12.2652 19.1054 12.5196 19.2929 12.7071C19.4804 12.8946 19.7348 13 20 13H21C21.2652 13 21.5196 12.8946 21.7071 12.7071C21.8946 12.5196 22 12.2652 22 12C22 11.7348 21.8946 11.4804 21.7071 11.2929C21.5196 11.1054 21.2652 11 21 11H20ZM6.707 18.707C6.80251 18.6148 6.87869 18.5044 6.9311 18.3824C6.98351 18.2604 7.0111 18.1292 7.01225 17.9964C7.0134 17.8636 6.9881 17.7319 6.93782 17.609C6.88754 17.4862 6.81329 17.3745 6.7194 17.2806C6.6255 17.1867 6.51385 17.1125 6.39095 17.0622C6.26806 17.0119 6.13638 16.9866 6.0036 16.9877C5.87082 16.9889 5.7396 17.0165 5.6176 17.0689C5.49559 17.1213 5.38525 17.1975 5.293 17.293L4.293 18.293C4.19749 18.3852 4.12131 18.4956 4.0689 18.6176C4.01649 18.7396 3.9889 18.8708 3.98775 19.0036C3.9866 19.1364 4.0119 19.2681 4.06218 19.391C4.11246 19.5138 4.18671 19.6255 4.2806 19.7194C4.3745 19.8133 4.48615 19.8875 4.60905 19.9378C4.73194 19.9881 4.86362 20.0134 4.9964 20.0123C5.12918 20.0111 5.2604 19.9835 5.3824 19.9311C5.50441 19.8787 5.61475 19.8025 5.707 19.707L6.707 18.707ZM18.707 17.293C18.5184 17.1108 18.2658 17.01 18.0036 17.0123C17.7414 17.0146 17.4906 17.1198 17.3052 17.3052C17.1198 17.4906 17.0146 17.7414 17.0123 18.0036C17.01 18.2658 17.1108 18.5184 17.293 18.707L18.293 19.707C18.4816 19.8892 18.7342 19.99 18.9964 19.9877C19.2586 19.9854 19.5094 19.8802 19.6948 19.6948C19.8802 19.5094 19.9854 19.2586 19.9877 18.9964C19.99 18.7342 19.8892 18.4816 19.707 18.293L18.707 17.293ZM13 20C13 19.7348 12.8946 19.4804 12.7071 19.2929C12.5196 19.1054 12.2652 19 12 19C11.7348 19 11.4804 19.1054 11.2929 19.2929C11.1054 19.4804 11 19.7348 11 20V21C11 21.2652 11.1054 21.5196 11.2929 21.7071C11.4804 21.8946 11.7348 22 12 22C12.2652 22 12.5196 21.8946 12.7071 21.7071C12.8946 21.5196 13 21.2652 13 21V20Z" fill="#FFFFFF"/>
</svg>

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

22
firka/codegen-lock.yaml Normal file
View File

@@ -0,0 +1,22 @@
icons:
"flutter_launcher_icons.yaml": "c600507ca0df7cebd0f708124842512a14ed3d597b779176200d6ba25b1335b1"
"pubspec.yaml": "5d40f014d654e257bc58e8ebfb2468a5ed7f75d913a67fb89314b9fda1c257a6"
"assets/images/logos/colored_logo.webp": "4b4fa99d144fe6694aa4487ba1b26aeecafae41e3c877836cd7da28d61a77983"
"assets/images/logos/monochrome_logo.png": "188d2b0a64c70323b09bcee721663d6698fb557066f20ddaec97bba6869c1c6c"
"assets/images/logos/colored_logo_without_mustache.png": "d11cff9f38985885873bfdd2d84e61f8fab03803eada94d4caac1545ef3685f3"
"assets/images/logos/colored_logo_only_mustache.png": "bad6220c11bdfb1dfe04e5173bd2ebedd3999689d4b3a68fc63dc520c96dd33b"
l10n:
"l10n.yml": "a57bc304cac4a2b0235593586f17f400a5165d67fc9aadeaa11893cfa36ee082"
"lib/l10n/app_pl.arb": "a8426455757e587c7635c3a62c650a4aae2a0cac1de1175e8ab7fb0d3b387537"
"lib/l10n/app_de.arb": "c498950bbc917e35b1910451ad9fbd4e625db89151f07558e846a7c119a583af"
"lib/l10n/app_en.arb": "159405752b5e73eedbe546a59567550091926a37cf9cf6ce78dd58f1a0dd1d4b"
"lib/l10n/app_hu.arb": "c7fba2a8f91217433698d766e9451d8fad86ae71021adf714639fc3907a34891"
isar:
"lib/data/models/app_settings_model.dart": "5eb5af345f1347f104257f0999763650fe2673f9da1754bd12d3f756fe5c9723"
"lib/data/models/token_model.dart": "8c957cd07e473827d78fd8fd4fb6c1336b636a69c25c93618e1e7f94b7cf0683"
"lib/data/models/homework_cache_model.dart": "45789970b27d5790cdc54c292ef2f5feaa5f4e293b8a8862fd676d5eb3e25d29"
"lib/data/models/generic_cache_model.dart": "62003ec1fd73a0fa6786d337acdef42b9a6eb9efaa78d17eaf4fe091504b8490"
"lib/data/models/timetable_cache_model.dart": "b972bf51e399f8d20d4f9ad660082d4cc4a9798df9ac9d6ec9ef6ac640205572"
splash:
"flutter_native_splash.yaml": "0fd4a85d6f950d97298e99916927649940ffcfdadfc136ceee126fed0dbaa9f2"
"assets/images/logos/splash.png": "88fbebc3d686cb9095bcce362029b69978b1b14270e465e91d962b1425db1152"

1
firka/firebase.json Normal file
View File

@@ -0,0 +1 @@
{"flutter":{"platforms":{"android":{"default":{"projectId":"firka-4633b","appId":"1:219357380322:android:5b776732799faa5c08a8bb","fileOutput":"android/app/google-services.json"}},"dart":{"lib/firebase_options.dart":{"projectId":"firka-4633b","configurations":{"android":"1:219357380322:android:5b776732799faa5c08a8bb"}}}}}}

View File

@@ -2,15 +2,15 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.ubiquity-kvstore-identifier</key>
<string>$(TeamIdentifierPrefix)app.firka.firka</string>
<key>com.apple.security.application-groups</key>
<array>
<string>group.app.firka.firkaa</string>
<string>group.app.firka.firka</string>
</array>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)app.firka.shared</string>
</array>
<key>com.apple.developer.ubiquity-kvstore-identifier</key>
<string>$(TeamIdentifierPrefix)app.firka.firkaa</string>
</dict>
</plist>

View File

@@ -31,7 +31,7 @@ class WatchL10n {
private let languageKey = "watch_language"
private let syncWithiPhoneKey = "watch_sync_language_with_iphone"
private let lastAppliedSharedLanguageVersionKey = "watch_last_applied_shared_language_version"
private static let appGroupID = "group.app.firka.firkaa"
private static let appGroupID = "group.app.firka.firka"
private var appGroupDefaults: UserDefaults? {
UserDefaults(suiteName: Self.appGroupID)
}

View File

@@ -30,7 +30,7 @@ class DataStore {
(error == "token_expired" || error == "no_token") && recoveryAttempted && !isRecoveringToken
}
private let appGroupID = "group.app.firka.firkaa"
private let appGroupID = "group.app.firka.firka"
private let cacheFileName = "watch_data.json"
private let lastHandledSessionStateVersionKey = "firka.watch.last_handled_session_state_version"
private let lastHandledSessionActiveStudentIdNormKey = "firka.watch.last_handled_session_active_student_id_norm"

View File

@@ -5,7 +5,7 @@ import SwiftUI
// MARK: - Complication Localization Helper
private struct ComplicationL10n {
private static let appGroupID = "group.app.firka.firkaa"
private static let appGroupID = "group.app.firka.firka"
enum Language: String {
case hungarian = "hu"
@@ -63,7 +63,7 @@ private struct ComplicationL10n {
// MARK: - Watch Cache Loader
private struct WatchCacheLoader {
private static let appGroupID = "group.app.firka.firkaa"
private static let appGroupID = "group.app.firka.firka"
private static let cacheFileName = "watch_data.json"
static func loadWidgetData() -> WidgetData? {

View File

@@ -2,11 +2,11 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.ubiquity-kvstore-identifier</key>
<string>$(TeamIdentifierPrefix)app.firka.firka</string>
<key>com.apple.security.application-groups</key>
<array>
<string>group.app.firka.firkaa</string>
<string>group.app.firka.firka</string>
</array>
<key>com.apple.developer.ubiquity-kvstore-identifier</key>
<string>$(TeamIdentifierPrefix)app.firka.firkaa</string>
</dict>
</plist>

View File

@@ -2,11 +2,11 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.application-groups</key>
<array>
<string>group.app.firka.firkaa</string>
</array>
<key>com.apple.developer.ubiquity-kvstore-identifier</key>
<string>$(TeamIdentifierPrefix)$(CFBundleIdentifier)</string>
<key>com.apple.security.application-groups</key>
<array>
<string>group.app.firka.firka</string>
</array>
</dict>
</plist>

View File

@@ -2,7 +2,7 @@ import WidgetKit
import SwiftUI
import AppIntents
private let appGroup = "group.app.firka.firkaa"
private let appGroup = "group.app.firka.firka"
// MARK: - Navigation Intents (iOS 16+, used by Controls and Shortcuts)
@@ -46,7 +46,7 @@ struct OpenTimetableIntent: AppIntent {
@available(iOS 18.0, *)
struct HomeControl: ControlWidget {
static let kind = "app.firka.firkaa.control.home"
static let kind = "app.firka.firka.control.home"
var body: some ControlWidgetConfiguration {
StaticControlConfiguration(kind: Self.kind) {
@@ -63,7 +63,7 @@ struct HomeControl: ControlWidget {
@available(iOS 18.0, *)
struct GradesControl: ControlWidget {
static let kind = "app.firka.firkaa.control.grades"
static let kind = "app.firka.firka.control.grades"
var body: some ControlWidgetConfiguration {
StaticControlConfiguration(kind: Self.kind) {
@@ -80,7 +80,7 @@ struct GradesControl: ControlWidget {
@available(iOS 18.0, *)
struct TimetableControl: ControlWidget {
static let kind = "app.firka.firkaa.control.timetable"
static let kind = "app.firka.firka.control.timetable"
var body: some ControlWidgetConfiguration {
StaticControlConfiguration(kind: Self.kind) {

View File

@@ -4,11 +4,11 @@
<dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.security.application-groups</key>
<array>
<string>group.app.firka.firkaa</string>
</array>
<key>com.apple.developer.ubiquity-kvstore-identifier</key>
<string>$(TeamIdentifierPrefix)$(CFBundleIdentifier)</string>
<key>com.apple.security.application-groups</key>
<array>
<string>group.app.firka.firka</string>
</array>
</dict>
</plist>

View File

@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 70;
objectVersion = 54;
objects = {
/* Begin PBXBuildFile section */
@@ -222,35 +222,35 @@
/* End PBXFileReference section */
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
4F0EA0512F2BD2A2003CC89E /* PBXFileSystemSynchronizedBuildFileExceptionSet */ = {
4F0EA0512F2BD2A2003CC89E /* Exceptions for "HomeWidgetsExtension" folder in "Runner" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
Controls/AppControls.swift,
);
target = 97C146ED1CF9000F007C117D /* Runner */;
};
4F4E70D02EF565FF00C90AD1 /* PBXFileSystemSynchronizedBuildFileExceptionSet */ = {
4F4E70D02EF565FF00C90AD1 /* Exceptions for "LiveActivityWidget" folder in "Runner" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
ActivityAttributes.swift,
);
target = 97C146ED1CF9000F007C117D /* Runner */;
};
4F5966082F2F0EB100A3DB03 /* PBXFileSystemSynchronizedBuildFileExceptionSet */ = {
4F5966082F2F0EB100A3DB03 /* Exceptions for "FirkaWatchComplications" folder in "FirkaWatchComplicationsExtension" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
Info.plist,
);
target = 4F5965FC2F2F0EAF00A3DB03 /* FirkaWatchComplicationsExtension */;
};
4F6C1D3E2ECD3FBD00F819D7 /* PBXFileSystemSynchronizedBuildFileExceptionSet */ = {
4F6C1D3E2ECD3FBD00F819D7 /* Exceptions for "LiveActivityWidget" folder in "LiveActivityWidget" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
Info.plist,
);
target = 4F30C7642E8FBF9D008BB46C /* LiveActivityWidget */;
};
4FE64E472F27B07B006F9205 /* PBXFileSystemSynchronizedBuildFileExceptionSet */ = {
4FE64E472F27B07B006F9205 /* Exceptions for "HomeWidgetsExtension" folder in "HomeWidgetsExtension" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
Info.plist,
@@ -260,10 +260,55 @@
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */
/* Begin PBXFileSystemSynchronizedRootGroup section */
4F30C76A2E8FBF9D008BB46C /* LiveActivityWidget */ = {isa = PBXFileSystemSynchronizedRootGroup; exceptions = (4F4E70D02EF565FF00C90AD1 /* PBXFileSystemSynchronizedBuildFileExceptionSet */, 4F6C1D3E2ECD3FBD00F819D7 /* PBXFileSystemSynchronizedBuildFileExceptionSet */, ); explicitFileTypes = {}; explicitFolders = (); path = LiveActivityWidget; sourceTree = "<group>"; };
4F5966002F2F0EAF00A3DB03 /* FirkaWatchComplications */ = {isa = PBXFileSystemSynchronizedRootGroup; exceptions = (4F5966082F2F0EB100A3DB03 /* PBXFileSystemSynchronizedBuildFileExceptionSet */, ); explicitFileTypes = {}; explicitFolders = (); path = FirkaWatchComplications; sourceTree = "<group>"; };
4FE64E362F27B07A006F9205 /* HomeWidgetsExtension */ = {isa = PBXFileSystemSynchronizedRootGroup; exceptions = (4F0EA0512F2BD2A2003CC89E /* PBXFileSystemSynchronizedBuildFileExceptionSet */, 4FE64E472F27B07B006F9205 /* PBXFileSystemSynchronizedBuildFileExceptionSet */, ); explicitFileTypes = {}; explicitFolders = (); path = HomeWidgetsExtension; sourceTree = "<group>"; };
4FF81B7B2F2EB4C100E95BA0 /* FirkaWatch Watch App */ = {isa = PBXFileSystemSynchronizedRootGroup; explicitFileTypes = {}; explicitFolders = (); path = "FirkaWatch Watch App"; sourceTree = "<group>"; };
4F30C76A2E8FBF9D008BB46C /* LiveActivityWidget */ = {
isa = PBXFileSystemSynchronizedRootGroup;
exceptions = (
4F4E70D02EF565FF00C90AD1 /* Exceptions for "LiveActivityWidget" folder in "Runner" target */,
4F6C1D3E2ECD3FBD00F819D7 /* Exceptions for "LiveActivityWidget" folder in "LiveActivityWidget" target */,
);
explicitFileTypes = {
};
explicitFolders = (
);
path = LiveActivityWidget;
sourceTree = "<group>";
};
4F5966002F2F0EAF00A3DB03 /* FirkaWatchComplications */ = {
isa = PBXFileSystemSynchronizedRootGroup;
exceptions = (
4F5966082F2F0EB100A3DB03 /* Exceptions for "FirkaWatchComplications" folder in "FirkaWatchComplicationsExtension" target */,
);
explicitFileTypes = {
};
explicitFolders = (
);
path = FirkaWatchComplications;
sourceTree = "<group>";
};
4FE64E362F27B07A006F9205 /* HomeWidgetsExtension */ = {
isa = PBXFileSystemSynchronizedRootGroup;
exceptions = (
4F0EA0512F2BD2A2003CC89E /* Exceptions for "HomeWidgetsExtension" folder in "Runner" target */,
4FE64E472F27B07B006F9205 /* Exceptions for "HomeWidgetsExtension" folder in "HomeWidgetsExtension" target */,
);
explicitFileTypes = {
};
explicitFolders = (
);
path = HomeWidgetsExtension;
sourceTree = "<group>";
};
4FF81B7B2F2EB4C100E95BA0 /* FirkaWatch Watch App */ = {
isa = PBXFileSystemSynchronizedRootGroup;
exceptions = (
);
explicitFileTypes = {
};
explicitFolders = (
);
path = "FirkaWatch Watch App";
sourceTree = "<group>";
};
/* End PBXFileSystemSynchronizedRootGroup section */
/* Begin PBXFrameworksBuildPhase section */
@@ -711,14 +756,10 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
@@ -775,7 +816,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build\n";
shellScript = "set -e\nNATIVE_ASSETS_DIR=\"$FLUTTER_APPLICATION_PATH/$FLUTTER_BUILD_DIR/native_assets\"\ncase \"$FLUTTER_BUILD_DIR\" in\n /*) NATIVE_ASSETS_DIR=\"$FLUTTER_BUILD_DIR/native_assets\" ;;\nesac\nif [ -d \"$FLUTTER_APPLICATION_PATH/.dart_tool/hooks_runner\" ]; then\n find \"$FLUTTER_APPLICATION_PATH/.dart_tool/hooks_runner\" -exec xattr -c {} \\; 2>/dev/null || true\nfi\nif [ -d \"$NATIVE_ASSETS_DIR\" ]; then\n find \"$NATIVE_ASSETS_DIR\" -exec xattr -c {} \\; 2>/dev/null || true\nfi\n/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build\n";
};
D576F90540C8E625A9A12317 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
@@ -807,14 +848,10 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
@@ -1030,27 +1067,27 @@
};
name = Profile;
};
249021D4217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
249021D4217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1101;
DEVELOPMENT_TEAM = UT7MSP4GWZ;
CURRENT_PROJECT_VERSION = 1102;
DEVELOPMENT_TEAM = R9PZGUCNJ3;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "Firka Testing";
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.education";
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = Firka;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.education";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.9;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firkaa;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firka;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
@@ -1071,7 +1108,8 @@
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1101;
CURRENT_PROJECT_VERSION = 1102;
DEVELOPMENT_TEAM = R9PZGUCNJ3;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firka.RunnerTests;
@@ -1090,7 +1128,8 @@
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1101;
CURRENT_PROJECT_VERSION = 1102;
DEVELOPMENT_TEAM = R9PZGUCNJ3;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firka.RunnerTests;
@@ -1107,7 +1146,8 @@
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1101;
CURRENT_PROJECT_VERSION = 1102;
DEVELOPMENT_TEAM = R9PZGUCNJ3;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firka.RunnerTests;
@@ -1122,9 +1162,9 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB41CF90195004384FC /* WidgetExtension.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AppIcon;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = AppIcon;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
@@ -1134,8 +1174,8 @@
CODE_SIGN_ENTITLEMENTS = LiveActivityWidget.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1101;
DEVELOPMENT_TEAM = UT7MSP4GWZ;
CURRENT_PROJECT_VERSION = 1102;
DEVELOPMENT_TEAM = R9PZGUCNJ3;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
@@ -1153,7 +1193,7 @@
MARKETING_VERSION = "$(FLUTTER_BUILD_NAME)";
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firkaa.LiveActivityWidget;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firka.LiveActivityWidget;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SKIP_INSTALL = YES;
@@ -1173,9 +1213,9 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB41CF90195004384FC /* WidgetExtension.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AppIcon;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = AppIcon;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
@@ -1185,8 +1225,8 @@
CODE_SIGN_ENTITLEMENTS = LiveActivityWidget.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1101;
DEVELOPMENT_TEAM = UT7MSP4GWZ;
CURRENT_PROJECT_VERSION = 1102;
DEVELOPMENT_TEAM = R9PZGUCNJ3;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
@@ -1203,7 +1243,7 @@
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MARKETING_VERSION = "$(FLUTTER_BUILD_NAME)";
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firkaa.LiveActivityWidget;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firka.LiveActivityWidget;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SKIP_INSTALL = YES;
@@ -1221,9 +1261,9 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB41CF90195004384FC /* WidgetExtension.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AppIcon;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = AppIcon;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
@@ -1233,8 +1273,8 @@
CODE_SIGN_ENTITLEMENTS = LiveActivityWidget.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1101;
DEVELOPMENT_TEAM = UT7MSP4GWZ;
CURRENT_PROJECT_VERSION = 1102;
DEVELOPMENT_TEAM = R9PZGUCNJ3;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
@@ -1251,7 +1291,7 @@
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MARKETING_VERSION = "$(FLUTTER_BUILD_NAME)";
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firkaa.LiveActivityWidget;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firka.LiveActivityWidget;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SKIP_INSTALL = YES;
@@ -1269,9 +1309,9 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD)";
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AppIcon;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = AppIcon;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
@@ -1280,8 +1320,8 @@
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_ENTITLEMENTS = FirkaWatchComplicationsExtension.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1101;
DEVELOPMENT_TEAM = UT7MSP4GWZ;
CURRENT_PROJECT_VERSION = 1102;
DEVELOPMENT_TEAM = R9PZGUCNJ3;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
@@ -1301,7 +1341,7 @@
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firkaa.watchkitapp.complications;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firka.watchkitapp.complications;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = watchos;
SKIP_INSTALL = YES;
@@ -1322,9 +1362,9 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD)";
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AppIcon;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = AppIcon;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
@@ -1333,8 +1373,8 @@
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_ENTITLEMENTS = FirkaWatchComplicationsExtension.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1101;
DEVELOPMENT_TEAM = UT7MSP4GWZ;
CURRENT_PROJECT_VERSION = 1102;
DEVELOPMENT_TEAM = R9PZGUCNJ3;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
@@ -1352,7 +1392,7 @@
MARKETING_VERSION = 1.0;
MTL_FAST_MATH = YES;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firkaa.watchkitapp.complications;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firka.watchkitapp.complications;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = watchos;
SKIP_INSTALL = YES;
@@ -1372,9 +1412,9 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD)";
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AppIcon;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = AppIcon;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
@@ -1383,8 +1423,8 @@
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_ENTITLEMENTS = FirkaWatchComplicationsExtension.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1101;
DEVELOPMENT_TEAM = UT7MSP4GWZ;
CURRENT_PROJECT_VERSION = 1102;
DEVELOPMENT_TEAM = R9PZGUCNJ3;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
@@ -1402,7 +1442,7 @@
MARKETING_VERSION = 1.0;
MTL_FAST_MATH = YES;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firkaa.watchkitapp.complications;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firka.watchkitapp.complications;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = watchos;
SKIP_INSTALL = YES;
@@ -1422,9 +1462,9 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB41CF90195004384FC /* WidgetExtension.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AppIcon;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = AppIcon;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
@@ -1434,8 +1474,8 @@
CODE_SIGN_ENTITLEMENTS = HomeWidgetsExtension.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1101;
DEVELOPMENT_TEAM = UT7MSP4GWZ;
CURRENT_PROJECT_VERSION = 1102;
DEVELOPMENT_TEAM = R9PZGUCNJ3;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
@@ -1454,7 +1494,7 @@
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firkaa.HomeWidgetsExtension;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firka.HomeWidgetsExtension;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SKIP_INSTALL = YES;
@@ -1473,9 +1513,9 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB41CF90195004384FC /* WidgetExtension.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AppIcon;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = AppIcon;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
@@ -1485,8 +1525,8 @@
CODE_SIGN_ENTITLEMENTS = HomeWidgetsExtension.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1101;
DEVELOPMENT_TEAM = UT7MSP4GWZ;
CURRENT_PROJECT_VERSION = 1102;
DEVELOPMENT_TEAM = R9PZGUCNJ3;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
@@ -1503,7 +1543,7 @@
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MARKETING_VERSION = "$(FLUTTER_BUILD_NAME)";
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firkaa.HomeWidgetsExtension;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firka.HomeWidgetsExtension;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SKIP_INSTALL = YES;
@@ -1520,9 +1560,9 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB41CF90195004384FC /* WidgetExtension.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AppIcon;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = AppIcon;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
@@ -1532,8 +1572,8 @@
CODE_SIGN_ENTITLEMENTS = HomeWidgetsExtension.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1101;
DEVELOPMENT_TEAM = UT7MSP4GWZ;
CURRENT_PROJECT_VERSION = 1102;
DEVELOPMENT_TEAM = R9PZGUCNJ3;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
@@ -1550,7 +1590,7 @@
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MARKETING_VERSION = "$(FLUTTER_BUILD_NAME)";
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firkaa.HomeWidgetsExtension;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firka.HomeWidgetsExtension;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SKIP_INSTALL = YES;
@@ -1563,13 +1603,13 @@
};
name = Profile;
};
4FF81B9C2F2EB4C300E95BA0 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
4FF81B9C2F2EB4C300E95BA0 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD)";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AppIcon;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
@@ -1579,14 +1619,15 @@
CODE_SIGN_ENTITLEMENTS = "FirkaWatch Watch App/FirkaWatch Watch App.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = UT7MSP4GWZ;
DEVELOPMENT_TEAM = R9PZGUCNJ3;
ENABLE_PREVIEWS = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = FirkaWatch;
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
INFOPLIST_KEY_WKCompanionAppBundleIdentifier = app.firka.firkaa;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = FirkaWatch;
INFOPLIST_KEY_NSSupportsLiveActivities = YES;
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
INFOPLIST_KEY_WKCompanionAppBundleIdentifier = app.firka.firka;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
@@ -1596,7 +1637,7 @@
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firkaa.watchkitapp;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firka.watchkitapp;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = watchos;
@@ -1615,13 +1656,13 @@
};
name = Debug;
};
4FF81B9D2F2EB4C300E95BA0 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
4FF81B9D2F2EB4C300E95BA0 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD)";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AppIcon;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
@@ -1631,14 +1672,15 @@
CODE_SIGN_ENTITLEMENTS = "FirkaWatch Watch App/FirkaWatch Watch App.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = UT7MSP4GWZ;
DEVELOPMENT_TEAM = R9PZGUCNJ3;
ENABLE_PREVIEWS = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = FirkaWatch;
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
INFOPLIST_KEY_WKCompanionAppBundleIdentifier = app.firka.firkaa;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = FirkaWatch;
INFOPLIST_KEY_NSSupportsLiveActivities = YES;
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
INFOPLIST_KEY_WKCompanionAppBundleIdentifier = app.firka.firka;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
@@ -1646,7 +1688,7 @@
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MARKETING_VERSION = 1.0;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firkaa.watchkitapp;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firka.watchkitapp;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = watchos;
@@ -1664,13 +1706,13 @@
};
name = Release;
};
4FF81B9E2F2EB4C300E95BA0 /* Profile */ = {
isa = XCBuildConfiguration;
buildSettings = {
4FF81B9E2F2EB4C300E95BA0 /* Profile */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD)";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AppIcon;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_OBJC_WEAK = YES;
@@ -1680,14 +1722,15 @@
CODE_SIGN_ENTITLEMENTS = "FirkaWatch Watch App/FirkaWatch Watch App.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = UT7MSP4GWZ;
DEVELOPMENT_TEAM = R9PZGUCNJ3;
ENABLE_PREVIEWS = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = FirkaWatch;
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
INFOPLIST_KEY_WKCompanionAppBundleIdentifier = app.firka.firkaa;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = FirkaWatch;
INFOPLIST_KEY_NSSupportsLiveActivities = YES;
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
INFOPLIST_KEY_WKCompanionAppBundleIdentifier = app.firka.firka;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
@@ -1695,7 +1738,7 @@
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MARKETING_VERSION = 1.0;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firkaa.watchkitapp;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firka.watchkitapp;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = watchos;
@@ -1828,27 +1871,27 @@
};
name = Release;
};
97C147061CF9000F007C117D /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
buildSettings = {
97C147061CF9000F007C117D /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1101;
DEVELOPMENT_TEAM = UT7MSP4GWZ;
CURRENT_PROJECT_VERSION = 1102;
DEVELOPMENT_TEAM = R9PZGUCNJ3;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "Firka Testing";
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.education";
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = Firka;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.education";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.9;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firkaa;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firka;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
@@ -1864,27 +1907,27 @@
};
name = Debug;
};
97C147071CF9000F007C117D /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
97C147071CF9000F007C117D /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1101;
DEVELOPMENT_TEAM = UT7MSP4GWZ;
CURRENT_PROJECT_VERSION = 1102;
DEVELOPMENT_TEAM = R9PZGUCNJ3;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "Firka Testing";
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.education";
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = Firka;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.education";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.9;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firkaa;
PRODUCT_BUNDLE_IDENTIFIER = app.firka.firka;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";

View File

@@ -30,8 +30,8 @@ import BackgroundTasks
widgetDeepLinkChannel = FlutterMethodChannel(name: "firka.app/widget_deep_link", binaryMessenger: controller.binaryMessenger)
widgetDeepLinkChannel?.setMethodCallHandler { [weak self] (call: FlutterMethodCall, result: @escaping FlutterResult) in
if call.method == "getPendingDeepLink" {
if let controlNav = UserDefaults(suiteName: "group.app.firka.firkaa")?.string(forKey: "controlNavigation") {
UserDefaults(suiteName: "group.app.firka.firkaa")?.removeObject(forKey: "controlNavigation")
if let controlNav = UserDefaults(suiteName: "group.app.firka.firka")?.string(forKey: "controlNavigation") {
UserDefaults(suiteName: "group.app.firka.firka")?.removeObject(forKey: "controlNavigation")
result(controlNav)
} else if let link = self?.pendingWidgetDeepLink {
self?.pendingWidgetDeepLink = nil

Binary file not shown.

Before

Width:  |  Height:  |  Size: 660 B

After

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -11,7 +11,7 @@ class HomeWidgetMethodChannel {
switch call.method {
case "getAppGroupDirectory":
if let containerURL = FileManager.default.containerURL(
forSecurityApplicationGroupIdentifier: "group.app.firka.firkaa"
forSecurityApplicationGroupIdentifier: "group.app.firka.firka"
) {
result(containerURL.path)
} else {

View File

@@ -1,89 +1,89 @@
<?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>app.firka.timetable.refresh</string>
</array>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>CFBundleAllowMixedLocalizations</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<dict>
<key>BGTaskSchedulerPermittedIdentifiers</key>
<array>
<string>app.firka.timetable.refresh</string>
</array>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>CFBundleAllowMixedLocalizations</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>Firka Testing</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleLocalizations</key>
<array>
<string>en</string>
<key>CFBundleLocalizations</key>
<array>
<string>en</string>
<string>hu</string>
<string>de</string>
</array>
<key>CFBundleDisplayName</key>
<string>Firka Testing</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>firka</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FLUTTER_BUILD_NAME)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>app.firka.firkaa</string>
<key>CFBundleURLSchemes</key>
<array>
<string>firka</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>1101</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
<string>hu</string>
<string>de</string>
</array>
<key>CFBundleName</key>
<string>firka</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FLUTTER_BUILD_NAME)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>CFBundleURLName</key>
<string>app.firka.firka</string>
<key>CFBundleURLSchemes</key>
<array>
<string>firka</string>
</array>
</dict>
<key>NSSupportsLiveActivities</key>
</array>
<key>CFBundleVersion</key>
<string>1102</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSSupportsLiveActivitiesFrequentUpdates</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>UIBackgroundModes</key>
<array>
<string>remote-notification</string>
<string>fetch</string>
<string>processing</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<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>UIStatusBarHidden</key>
<false/>
</dict>
<key>NSSupportsLiveActivities</key>
<true/>
<key>NSSupportsLiveActivitiesFrequentUpdates</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>UIBackgroundModes</key>
<array>
<string>remote-notification</string>
<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>
</dict>
</plist>

View File

@@ -4,17 +4,17 @@
<dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.ubiquity-kvstore-identifier</key>
<string>$(TeamIdentifierPrefix)app.firka.firka</string>
<key>com.apple.developer.usernotifications.time-sensitive</key>
<true/>
<key>com.apple.security.application-groups</key>
<array>
<string>group.app.firka.firkaa</string>
<string>group.app.firka.firka</string>
</array>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)app.firka.shared</string>
</array>
<key>com.apple.developer.ubiquity-kvstore-identifier</key>
<string>$(TeamIdentifierPrefix)app.firka.firkaa</string>
</dict>
</plist>

View File

@@ -32,7 +32,7 @@ enum TokenError: Error {
class TokenManager {
static let shared = TokenManager()
private let appGroupID = "group.app.firka.firkaa"
private let appGroupID = "group.app.firka.firka"
private let tokenFileName = "watch_token.json"
private static let keychainService = "app.firka.watch.token"

View File

@@ -12,7 +12,7 @@ struct WidgetData: Codable {
static func load() -> WidgetData? {
guard let containerURL = FileManager.default.containerURL(
forSecurityApplicationGroupIdentifier: "group.app.firka.firkaa"
forSecurityApplicationGroupIdentifier: "group.app.firka.firka"
) else {
lastError = "No App Group container"
return nil

File diff suppressed because it is too large Load Diff

View File

@@ -1,169 +0,0 @@
import 'package:kreta_api/kreta_api.dart';
import 'kreta_client.dart';
bool getStudentFL = false;
bool getClassGroupsFL = false;
bool getNoticeBoardStreamFL = false;
bool getInfoBoardStreamFL = false;
bool getGradesStreamFL = false;
bool getSubjectAverageStreamFL = false;
bool getHomeworkStreamFL = false;
bool getTimeTableStreamFL = false;
bool getTestsStreamFL = false;
bool getOmissionsStreamFL = false;
extension KretaStream on KretaClient {
Stream<ApiResponse<Student>> getStudentStream({
bool cacheOnly = true,
}) async* {
while (getStudentFL) {
await Future.delayed(Duration(milliseconds: 10));
}
getStudentFL = true;
yield await getStudent(forceCache: true);
if (!cacheOnly) {
yield await getStudent(forceCache: false);
}
getStudentFL = false;
}
Stream<ApiResponse<List<ClassGroup>>> getClassGroupsStream({
bool cacheOnly = true,
}) async* {
while (getClassGroupsFL) {
await Future.delayed(Duration(milliseconds: 10));
}
getClassGroupsFL = true;
yield await getClassGroups(forceCache: true);
if (!cacheOnly) {
yield await getClassGroups(forceCache: false);
}
getClassGroupsFL = false;
}
Stream<ApiResponse<List<NoticeBoardItem>>> getNoticeBoardStream({
bool cacheOnly = true,
}) async* {
while (getNoticeBoardStreamFL) {
await Future.delayed(Duration(milliseconds: 10));
}
getNoticeBoardStreamFL = true;
yield await getNoticeBoard(forceCache: true);
if (!cacheOnly) {
yield await getNoticeBoard(forceCache: false);
}
getNoticeBoardStreamFL = false;
}
Stream<ApiResponse<List<InfoBoardItem>>> getInfoBoardStream({
bool cacheOnly = true,
}) async* {
while (getInfoBoardStreamFL) {
await Future.delayed(Duration(milliseconds: 10));
}
getInfoBoardStreamFL = true;
yield await getInfoBoard(forceCache: true);
if (!cacheOnly) {
yield await getInfoBoard(forceCache: false);
}
getInfoBoardStreamFL = false;
}
Stream<ApiResponse<List<Grade>>> getGradesStream({
bool cacheOnly = true,
}) async* {
while (getGradesStreamFL) {
await Future.delayed(Duration(milliseconds: 10));
}
getGradesStreamFL = true;
yield await getGrades(forceCache: true);
if (!cacheOnly) {
yield await getGrades(forceCache: false);
}
getGradesStreamFL = false;
}
Stream<ApiResponse<List<SubjectAverage>>> getSubjectAverageStream(
ClassGroup classGroup, {
bool cacheOnly = true,
}) async* {
while (getSubjectAverageStreamFL) {
await Future.delayed(Duration(milliseconds: 10));
}
getSubjectAverageStreamFL = true;
yield await getSubjectAverage(classGroup, forceCache: true);
if (!cacheOnly) {
yield await getSubjectAverage(classGroup, forceCache: false);
}
getSubjectAverageStreamFL = false;
}
Stream<ApiResponse<List<Homework>>> getHomeworkStream({
bool cacheOnly = true,
}) async* {
while (getHomeworkStreamFL) {
await Future.delayed(Duration(milliseconds: 10));
}
getHomeworkStreamFL = true;
yield await getHomework(forceCache: true);
if (!cacheOnly) {
yield await getHomework(forceCache: false);
}
getHomeworkStreamFL = false;
}
Stream<ApiResponse<List<Lesson>>> getTimeTableStream(
DateTime from,
DateTime to, {
bool cacheOnly = true,
}) async* {
while (getTimeTableStreamFL) {
await Future.delayed(Duration(milliseconds: 10));
}
getTimeTableStreamFL = true;
yield await getTimeTable(from, to, forceCache: true);
if (!cacheOnly) {
yield await getTimeTable(from, to, forceCache: false);
}
getTimeTableStreamFL = false;
}
Stream<ApiResponse<List<Test>>> getTestsStream({
bool cacheOnly = true,
}) async* {
while (getTestsStreamFL) {
await Future.delayed(Duration(milliseconds: 10));
}
getTestsStreamFL = true;
yield await getTests(forceCache: true);
if (!cacheOnly) {
yield await getTests(forceCache: false);
}
getTestsStreamFL = false;
}
Stream<ApiResponse<List<Omission>>> getOmissionsStream({
bool cacheOnly = true,
}) async* {
while (getOmissionsStreamFL) {
await Future.delayed(Duration(milliseconds: 10));
}
getOmissionsStreamFL = true;
yield await getOmissions(forceCache: true);
if (!cacheOnly) {
yield await getOmissions(forceCache: false);
}
getOmissionsStreamFL = false;
}
}

View File

@@ -55,8 +55,7 @@ class LiveActivityBackendClient {
'roomName': lesson.roomName,
'isSubstitution': lesson.substituteTeacher != null,
'substituteTeacher': lesson.substituteTeacher,
'isCancelled':
lesson.state.name?.toLowerCase().contains('elmarad') ?? false,
'isCancelled': lesson.state.name.toLowerCase().contains('elmarad'),
'lastModified': validLastModified.toIso8601String(),
};
}).toList();
@@ -141,8 +140,7 @@ class LiveActivityBackendClient {
'roomName': lesson.roomName,
'isSubstitution': lesson.substituteTeacher != null,
'substituteTeacher': lesson.substituteTeacher,
'isCancelled':
lesson.state.name?.toLowerCase().contains('elmarad') ?? false,
'isCancelled': lesson.state.name.toLowerCase().contains('elmarad'),
'lastModified': validLastModified.toIso8601String(),
};
}).toList();

View File

@@ -0,0 +1,138 @@
import 'package:dio/dio.dart';
import 'package:logging/logging.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
/// Client for registering FCM push tokens with firka's backend, mirroring
/// LiveActivityBackendClient's conventions (same backend, same auth scheme).
/// Requires the backend to expose the `/notifications/*` routes below.
class NotificationBackendClient {
static final Logger _logger = Logger('NotificationBackendClient');
final Dio _dio;
NotificationBackendClient({Dio? dio}) : _dio = dio ?? Dio() {
if (!dotenv.isInitialized) {
throw StateError(
'NotificationBackendClient created before dotenv finished loading',
);
}
final baseUrl = dotenv.env['BACKEND_BASE_URL'];
final apiKey = dotenv.env['BACKEND_API_KEY'] ?? '';
_dio.options.baseUrl = baseUrl!;
_dio.options.connectTimeout = const Duration(seconds: 10);
_dio.options.receiveTimeout = const Duration(seconds: 10);
_dio.options.headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'x-api-key': apiKey,
};
_logger.info('Notification backend configured successfully!');
}
/// Register (or refresh) an FCM token for a student, with the current
/// notification category preferences.
Future<bool> registerToken({
required String fcmToken,
required String studentId,
required bool notifyAll,
required bool notifyGrades,
required bool notifyHomeworkTests,
required bool notifyAbsences,
required bool notifyLessons,
required bool notifyMessages,
String? language,
}) async {
try {
final response = await _dio.post(
'/notifications/fcm-token',
data: {
'fcmToken': fcmToken,
'studentId': studentId,
'notifyAll': notifyAll,
'notifyGrades': notifyGrades,
'notifyHomeworkTests': notifyHomeworkTests,
'notifyAbsences': notifyAbsences,
'notifyLessons': notifyLessons,
'notifyMessages': notifyMessages,
'language': ?language,
},
);
if (response.statusCode == 200 || response.statusCode == 201) {
_logger.info('FCM token registered successfully');
return true;
}
_logger.warning('Failed to register FCM token: ${response.statusCode}');
return false;
} catch (e) {
_logger.severe('Error registering FCM token: $e');
return false;
}
}
/// Update notification category preferences for an already-registered token.
Future<bool> updatePreferences({
required String fcmToken,
required bool notifyAll,
required bool notifyGrades,
required bool notifyHomeworkTests,
required bool notifyAbsences,
required bool notifyLessons,
required bool notifyMessages,
}) async {
try {
final response = await _dio.put(
'/notifications/preferences',
data: {
'fcmToken': fcmToken,
'notifyAll': notifyAll,
'notifyGrades': notifyGrades,
'notifyHomeworkTests': notifyHomeworkTests,
'notifyAbsences': notifyAbsences,
'notifyLessons': notifyLessons,
'notifyMessages': notifyMessages,
},
);
if (response.statusCode == 200) {
_logger.info('Notification preferences updated successfully');
return true;
}
_logger.warning(
'Failed to update notification preferences: ${response.statusCode}',
);
return false;
} catch (e) {
_logger.severe('Error updating notification preferences: $e');
return false;
}
}
/// Unregister an FCM token (called on logout or when push is disabled).
Future<bool> unregisterToken({required String fcmToken}) async {
try {
final response = await _dio.delete(
'/notifications/fcm-token',
data: {'fcmToken': fcmToken},
);
if (response.statusCode == 200) {
_logger.info('FCM token unregistered successfully');
return true;
}
_logger.warning(
'Failed to unregister FCM token: ${response.statusCode}',
);
return false;
} catch (e) {
_logger.severe('Error unregistering FCM token: $e');
return false;
}
}
}

View File

@@ -0,0 +1,42 @@
import "dart:io";
import "package:firka/app/app_state.dart";
import "package:firka/app/initialization.dart";
import "package:firka/services/fcm_service.dart";
import "package:firka/services/watch_sync_helper.dart";
import "package:firka_common/data/models/token_model.dart";
import "package:kreta_api/kreta_api.dart";
Future<void> completeLogin(
AppInitialization data,
TokenGrantResponse resp,
) async {
var tokenModel = TokenModel.fromResp(resp);
await data.isar.writeTxn(() async {
await data.isar.tokenModels.put(tokenModel);
});
await data.settings.setSelectedAccountKey(tokenModel.key);
await initializeApp();
if (data.client != null) {
await FcmService.onUserLogin(
client: data.client!,
settingsStore: data.settings,
);
}
if (Platform.isIOS) {
final watchInstalled = await WatchSyncHelper.isWatchAppInstalled();
if (watchInstalled) {
try {
await WatchSyncHelper.saveTokenToiCloud(tokenModel);
} catch (_) {}
try {
await WatchSyncHelper.sendTokenToWatch();
} catch (_) {}
}
}
}

View File

@@ -0,0 +1,38 @@
import "package:dio/dio.dart";
import "package:firka_common/core/consts.dart";
import "package:firka/app/app_state.dart";
import "package:firka/core/dev/mock_backend.dart";
import "package:kreta_api/kreta_api.dart";
Future<TokenGrantResponse> mockLogin(String username, String password) async {
final headers = <String, String>{
"content-type": "application/x-www-form-urlencoded; charset=UTF-8",
"accept": "*/*",
"user-agent": initData.userAgent,
};
final formData = <String, String>{
"grant_type": "password",
"username": username,
"password": password,
"client_id": Constants.clientId,
};
final response = await dio.post(
MockBackend.rewrite(KretaLoginEndpoints.tokenGrantUrl),
options: Options(headers: headers),
data: formData,
);
switch (response.statusCode) {
case 200:
return TokenGrantResponse.fromJson(response.data);
case 401:
throw Exception("Invalid credentials");
default:
throw Exception(
"Failed to get access token, response code: ${response.statusCode}",
);
}
}

View File

@@ -1,20 +1,21 @@
import 'package:dio/dio.dart';
import 'package:firka/data/models/token_model.dart';
import 'package:kreta_api/kreta_api.dart' hide KretaEndpoints;
import 'package:firka_common/core/consts.dart';
import 'package:firka_common/data/models/token_model.dart';
import 'package:firka/app/app_state.dart';
import 'consts.dart';
import 'package:firka/core/dev/mock_backend.dart';
import 'package:kreta_api/kreta_api.dart';
Future<TokenGrantResponse> getAccessToken(String code) async {
final headers = <String, String>{
"content-type": "application/x-www-form-urlencoded; charset=UTF-8",
"accept": "*/*",
"user-agent": Constants.userAgent,
"user-agent": initData.userAgent,
};
final formData = <String, String>{
"code": code,
"code_verifier": KretaEndpoints.codeVerifier,
"code_verifier": KretaLoginEndpoints.codeVerifier,
"redirect_uri":
"https://mobil.e-kreta.hu/ellenorzo-student/prod/oauthredirect",
"client_id": Constants.clientId,
@@ -23,7 +24,7 @@ Future<TokenGrantResponse> getAccessToken(String code) async {
try {
final response = await dio.post(
KretaEndpoints.tokenGrantUrl,
MockBackend.rewrite(KretaLoginEndpoints.tokenGrantUrl),
options: Options(headers: headers),
data: formData,
);
@@ -47,18 +48,18 @@ const _tokenRefreshRetryDelays = [1000, 3000, 5000];
Future<TokenGrantResponse> extendToken(TokenModel model) async {
logger.info(
"Extending token for user: ${model.studentId}, institute: ${model.iss}",
"Extending token for user: ${model.username}, institute: ${model.iss}",
);
final headers = <String, String>{
"content-type": "application/x-www-form-urlencoded; charset=UTF-8",
"accept": "*/*",
"user-agent": Constants.userAgent,
"user-agent": initData.userAgent,
};
final formData = <String, String>{
"institute_code": model.iss!,
"refresh_token": model.refreshToken!,
"institute_code": model.iss,
"refresh_token": model.refreshToken,
"grant_type": "refresh_token",
"client_id": Constants.clientId,
};
@@ -76,7 +77,7 @@ Future<TokenGrantResponse> extendToken(TokenModel model) async {
}
final response = await dio.post(
KretaEndpoints.tokenGrantUrl,
MockBackend.rewrite(KretaLoginEndpoints.tokenGrantUrl),
options: Options(headers: headers),
data: formData,
);
@@ -84,20 +85,20 @@ Future<TokenGrantResponse> extendToken(TokenModel model) async {
switch (response.statusCode) {
case 200:
logger.info(
"Token extended successfully for user: ${model.studentId}",
"Token extended successfully for user: ${model.username}",
);
return TokenGrantResponse.fromJson(response.data);
case 400:
case 401:
logger.warning(
"Token refresh failed (${response.statusCode}) - refresh token invalid for user: ${model.studentId}",
"Token refresh failed (${response.statusCode}) - refresh token invalid for user: ${model.username}",
);
throw response.statusCode == 400
? TokenExpiredException()
: InvalidGrantException();
default:
logger.warning(
"Token refresh failed (${response.statusCode}) for user: ${model.studentId}, attempt ${attempt + 1}",
"Token refresh failed (${response.statusCode}) for user: ${model.username}, attempt ${attempt + 1}",
);
lastError = Exception(
"Failed to get access token, response code: ${response.statusCode}",
@@ -111,19 +112,19 @@ Future<TokenGrantResponse> extendToken(TokenModel model) async {
rethrow;
} on DioException catch (e) {
logger.warning(
"Token refresh network error for user: ${model.studentId}, attempt ${attempt + 1}: $e",
"Token refresh network error for user: ${model.username}, attempt ${attempt + 1}: $e",
);
lastError = e;
continue;
} catch (e) {
logger.severe("Token refresh exception for user: ${model.studentId}: $e");
logger.severe("Token refresh exception for user: ${model.username}: $e");
lastError = e is Exception ? e : Exception(e.toString());
continue;
}
}
logger.severe(
"All token refresh attempts failed for user: ${model.studentId}",
"All token refresh attempts failed for user: ${model.username}",
);
throw lastError ?? Exception("Token refresh failed after all retries");
}

View File

@@ -1,15 +1,15 @@
import 'dart:typed_data';
import 'package:dio/dio.dart';
import 'package:firka_common/core/consts.dart';
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:firka/api/client/kreta_client.dart';
import 'package:firka/core/bloc/home_refresh_cubit.dart';
import 'package:firka/core/bloc/profile_picture_cubit.dart';
import 'package:firka/core/bloc/reauth_cubit.dart';
import 'package:firka/core/bloc/toast_cubit.dart';
import 'package:firka/core/bloc/settings_cubit.dart';
import 'package:firka/core/bloc/theme_cubit.dart';
import 'package:firka/data/models/token_model.dart';
import 'package:firka/core/settings.dart';
import 'package:firka/core/settings/settings_repository.dart';
import 'package:firka/l10n/app_localizations.dart';
import 'package:logging/logging.dart';
import 'package:package_info_plus/package_info_plus.dart';
@@ -48,20 +48,20 @@ class AppInitialization {
final Directory appDir;
final PackageInfo packageInfo;
final DeviceInfo devInfo;
late KretaClient client;
List<TokenModel> tokens;
KretaClient? client;
bool hasWatchListener = false;
/// Set by the wear pairing modal; called when watch sends init_done or sync_done to dismiss the sheet.
void Function()? dismissWearPairingSheet;
Uint8List? profilePicture;
SettingsStore settings;
ThemeCubit? themeCubit;
SettingsCubit? settingsCubit;
ProfilePictureCubit? profilePictureCubit;
ReauthCubit? reauthCubit;
HomeRefreshCubit? homeRefreshCubit;
SettingsRepository settings;
final ThemeCubit themeCubit = ThemeCubit();
final SettingsCubit settingsCubit = SettingsCubit();
final ProfilePictureCubit profilePictureCubit = ProfilePictureCubit();
final ToastCubit toastCubit = ToastCubit();
final HomeRefreshCubit homeRefreshCubit = HomeRefreshCubit();
AppLocalizations l10n;
String userAgent;
final GlobalKey<NavigatorState> navigatorKey;
AppInitialization({
@@ -69,9 +69,13 @@ class AppInitialization {
required this.appDir,
required this.devInfo,
required this.packageInfo,
required this.tokens,
required this.settings,
required this.l10n,
required this.navigatorKey,
});
}) : userAgent = Platform.isAndroid
? "${Constants.applicationId}/${Constants.applicationVersion}"
"/${devInfo.model}"
"/${devInfo.versionRelease}"
"/${devInfo.versionSdkInt}"
: "eKretaStudent/264745 CFNetwork/1494.0.7 Darwin/23.4.0";
}

View File

@@ -1,29 +1,25 @@
import 'dart:async';
import 'dart:io';
import 'dart:ui' as ui;
import 'package:firka_common/data/database.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/scheduler.dart';
import 'package:flutter/services.dart';
import 'package:firka/app/app_state.dart';
import 'package:firka/core/bloc/home_refresh_cubit.dart';
import 'package:firka/core/bloc/profile_picture_cubit.dart';
import 'package:firka/core/bloc/reauth_cubit.dart';
import 'package:firka/core/bloc/settings_cubit.dart';
import 'package:firka/core/bloc/theme_cubit.dart';
import 'package:firka/services/active_account_helper.dart';
import 'package:firka/api/client/kreta_client.dart';
import 'package:firka/data/models/app_settings_model.dart';
import 'package:firka/data/models/generic_cache_model.dart';
import 'package:firka/data/models/homework_cache_model.dart';
import 'package:firka/data/models/timetable_cache_model.dart';
import 'package:firka/data/models/token_model.dart';
import 'package:firka_common/data/models/token_model.dart';
import 'package:firka/services/fcm_service.dart';
import 'package:firka/services/live_activity_service.dart';
import 'package:firka/core/settings.dart';
import 'package:firka/core/settings/settings_effects.dart';
import 'package:firka/core/settings/settings_repository.dart';
import 'package:firka/core/settings/settings_schema.dart';
import 'package:firka/core/settings/title_font.dart';
import 'package:firka/services/watch_sync_helper.dart';
import 'package:firka/l10n/app_localizations_de.dart';
import 'package:firka/l10n/app_localizations_en.dart';
import 'package:firka/l10n/app_localizations_hu.dart';
import 'package:firka/core/swear_generator.dart';
import 'package:firka/ui/phone/screens/themes/builtin_theme_id.dart';
import 'package:firka/ui/theme/style.dart';
import 'package:intl/intl.dart';
import 'package:logging/logging.dart';
@@ -32,47 +28,23 @@ import 'package:isar_community/isar.dart';
import 'package:package_info_plus/package_info_plus.dart';
import 'package:path_provider/path_provider.dart';
Isar? isarInit;
Future<Isar> initDB() async {
if (isarInit != null) return isarInit!;
final dir = await getApplicationDocumentsDirectory();
isarInit = await Isar.open(
[
TokenModelSchema,
GenericCacheModelSchema,
TimetableCacheModelSchema,
HomeworkCacheModelSchema,
AppSettingsModelSchema,
HomeworkDoneModelSchema,
],
inspector: true,
directory: dir.path,
);
return isarInit!;
}
Future<void> initLang(AppInitialization data) async {
String? languageCode;
switch ((data.settings.group("settings").subGroup("application")["language"]
as SettingsItemsRadio)
.activeIndex) {
case 1: // hu
switch (Settings.language.value) {
case AppLanguage.hu:
data.l10n = AppLocalizationsHu();
languageCode = 'hu';
break;
case 2: // en
case AppLanguage.en:
data.l10n = AppLocalizationsEn();
languageCode = 'en';
break;
case 3: // de
case AppLanguage.de:
data.l10n = AppLocalizationsDe();
languageCode = 'de';
break;
default: // auto
case AppLanguage.auto:
switch (ui.PlatformDispatcher.instance.locale.languageCode) {
case 'hu':
data.l10n = AppLocalizationsHu();
@@ -107,44 +79,77 @@ Future<void> initLang(AppInitialization data) async {
void initTheme(AppInitialization data) {
final themeCubit = data.themeCubit;
if (themeCubit == null) return;
final brightness =
SchedulerBinding.instance.platformDispatcher.platformBrightness;
switch ((data.settings.group("settings").subGroup("customization")["theme"]
as SettingsItemsRadio)
.activeIndex) {
case 1:
appStyle = lightStyle;
final titleFont = Settings.titleFont.value;
final titleWeight = Settings.titleWeight.value;
final fonts = buildAppFonts(
headingFamily: titleFont.fontFamily,
headingWeight: titleWeight,
supportsWeight: titleFont.supportsWeight,
);
appHeadingTextCase = switch (Settings.titleCapitalization.value) {
TitleCapitalization.lower => HeadingTextCase.lower,
TitleCapitalization.upper => HeadingTextCase.upper,
TitleCapitalization.normal => HeadingTextCase.normal,
};
FirkaStyle baseStyle;
final coreId = Settings.selectedCoreThemeId.value;
final gradeId = Settings.selectedGradeThemeId.value;
switch (Settings.themeBrightness.value) {
case ThemeBrightness.light:
baseStyle = styleFor(
coreId: coreId,
gradeId: gradeId,
isLight: true,
fonts: fonts,
);
themeCubit.setLightMode(true);
break;
case 2:
appStyle = darkStyle;
case ThemeBrightness.dark:
baseStyle = styleFor(
coreId: coreId,
gradeId: gradeId,
isLight: false,
fonts: fonts,
);
themeCubit.setLightMode(false);
break;
default:
case ThemeBrightness.auto:
if (brightness == Brightness.dark) {
appStyle = darkStyle;
baseStyle = styleFor(
coreId: coreId,
gradeId: gradeId,
isLight: false,
fonts: fonts,
);
themeCubit.setLightMode(false);
} else {
appStyle = lightStyle;
baseStyle = styleFor(
coreId: coreId,
gradeId: gradeId,
isLight: true,
fonts: fonts,
);
themeCubit.setLightMode(true);
}
}
}
appStyle = baseStyle;
}
Future<void> _initData(AppInitialization init) async {
init.themeCubit ??= ThemeCubit();
init.settingsCubit ??= SettingsCubit();
init.profilePictureCubit ??= ProfilePictureCubit();
init.reauthCubit ??= ReauthCubit();
init.homeRefreshCubit ??= HomeRefreshCubit();
await init.settings.load(init.isar.appSettingsModels);
await init.settings.loadAll();
final selectedThemeId = Settings.selectedThemeId.value;
final normalized = normalizeSelectedThemeId(selectedThemeId);
if (normalized != selectedThemeId) {
await Settings.selectedThemeId.set(normalized);
}
await initLang(init);
initTheme(init);
init.settings = SettingsStore(init.l10n);
await init.settings.load(init.isar.appSettingsModels);
var dispatcher = SchedulerBinding.instance.platformDispatcher;
@@ -153,10 +158,7 @@ Future<void> _initData(AppInitialization init) async {
};
dispatcher.onLocaleChanged = () {
final languageSetting =
init.settings.group("settings").subGroup("application")["language"]
as SettingsItemsRadio;
final isAutoLanguage = languageSetting.activeIndex == 0;
final isAutoLanguage = Settings.language.value == AppLanguage.auto;
if (!isAutoLanguage) {
return;
}
@@ -170,13 +172,10 @@ Future<void> _initData(AppInitialization init) async {
"[Init] System locale changed in auto mode: $previousLocale -> $nextLocale",
);
}
init.themeCubit?.refresh();
init.themeCubit.refresh();
}());
};
resetOldTimeTableCache(init.isar);
resetOldHomeworkCache(init.isar);
var didRunFreshInstallCleanup = false;
if (Platform.isIOS) {
try {
@@ -187,50 +186,65 @@ Future<void> _initData(AppInitialization init) async {
'[Init] Fresh-install cleanup completed; skipping startup iCloud recovery on this launch',
);
} else {
await WatchSyncHelper.checkAndRecoverFromiCloud(
isar: init.isar,
tokens: init.tokens,
);
await WatchSyncHelper.checkAndRecoverFromiCloud(isar: init.isar);
}
} catch (e) {
logger.warning('[Init] iCloud bootstrap/recovery failed: $e');
}
}
final allTokens = await init.isar.tokenModels.where().findAll();
init.tokens = allTokens;
final token = init.settings.getSelectedToken();
if (token == null) {
logger.warning("[Init] No token available!");
init.client = null;
return;
}
logger.fine("Initializing kréta client as: ${token.username}");
init.client = KretaClient(token);
if (allTokens.isNotEmpty) {
final token = pickActiveToken(tokens: allTokens, settings: init.settings);
if (token == null) {
logger.warning(
"[Init] Tokens disappeared during initialization; skipping client setup",
);
return;
// A resumed session (app reopened with an already-logged-in account)
// never goes through login_finish.dart's onUserLogin call, so without
// this the FCM token would only ever get (re-)registered for a user who
// explicitly logs out and back in. Safe to call on every startup:
// onUserLogin() itself no-ops if notifyAll is off or permission is denied.
unawaited(FcmService.onUserLogin(client: init.client!));
// Don't block first paint on the network: render whatever is already
// cached, then stream in student/timetable/grades/etc. as they arrive.
unawaited(() async {
try {
await init.client!.init();
} catch (e) {
logger.warning("[Init] Failed to initialize KretaClient: $e");
if (!isTokenExpired(e)) {
init.toastCubit.setActiveToast(.error, e);
}
}
logger.fine("Initializing kréta client as: ${token.studentId}");
init.client = KretaClient(token, init.isar, init.reauthCubit!);
init.homeRefreshCubit.requestRefresh();
if (Platform.isIOS) {
final expiryDate = token.expiryDate;
if (expiryDate != null && expiryDate.isAfter(DateTime.now())) {
init.reauthCubit?.clear();
await init.client!.renewCache(reInit: false);
init.homeRefreshCubit.requestRefresh();
}());
if (Platform.isIOS) {
final expiryDate = token.expiryDate;
if (expiryDate.isAfter(DateTime.now())) {
init.toastCubit.clear();
}
unawaited(() async {
try {
await WatchSyncHelper.saveTokenToiCloud(token);
} catch (e) {
logger.warning('[Init] Failed to sync active token to iCloud: $e');
}
unawaited(() async {
try {
await WatchSyncHelper.saveTokenToiCloud(token);
} catch (e) {
logger.warning('[Init] Failed to sync active token to iCloud: $e');
}
try {
await WatchSyncHelper.sendTokenModelToWatch(token);
} catch (e) {
logger.warning('[Init] Failed to sync active token to Watch: $e');
}
}());
}
try {
await WatchSyncHelper.sendTokenModelToWatch(token);
} catch (e) {
logger.warning('[Init] Failed to sync active token to Watch: $e');
}
}());
}
final dataDir = await getApplicationDocumentsDirectory();
@@ -239,12 +253,14 @@ Future<void> _initData(AppInitialization init) async {
if (await pfpFile.exists()) {
init.profilePicture = await pfpFile.readAsBytes();
}
init.homeRefreshCubit.requestRefresh();
}
Future<AppInitialization> initializeApp() async {
Future<void> initializeApp() async {
if (initDone) {
await _initData(initData);
return initData;
return;
}
final isar = await initDB();
final tokens = await isar.tokenModels.where().findAll();
@@ -274,16 +290,18 @@ Future<AppInitialization> initializeApp() async {
logger.fine("Fetched device info: ${devInfoFetched ? "yes" : "no"}");
logger.fine("Using device info: ${devInfo.toString()}");
var init = AppInitialization(
initData = AppInitialization(
isar: isar,
appDir: await getApplicationDocumentsDirectory(),
devInfo: devInfo,
packageInfo: await PackageInfo.fromPlatform(),
tokens: tokens,
settings: SettingsStore(AppLocalizationsHu()),
settings: SettingsRepository(isar),
l10n: AppLocalizationsHu(),
navigatorKey: navigatorKey,
);
initData.settings.cubit = initData.settingsCubit;
Settings = initData.settings;
registerSettingsEffects(initData.settings, initData);
if (Platform.isIOS) {
try {
@@ -297,9 +315,17 @@ Future<AppInitialization> initializeApp() async {
}
}
await _initData(init);
try {
await FcmService.initialize().timeout(const Duration(seconds: 8));
} on TimeoutException catch (e, st) {
logger.warning('FcmService init timed out: $e', e, st);
} catch (e, st) {
logger.severe('Failed to initialize FcmService: $e', e, st);
}
return init;
await _initData(initData);
initDone = true;
}
Future<void> setupLogging() async {

View File

@@ -10,12 +10,13 @@ import 'package:firka/app/initialization.dart';
import 'package:firka/core/bloc/home_refresh_cubit.dart';
import 'package:firka/core/settings.dart';
import 'package:firka/core/bloc/profile_picture_cubit.dart';
import 'package:firka/core/bloc/reauth_cubit.dart';
import 'package:firka/core/bloc/toast_cubit.dart';
import 'package:firka/core/bloc/settings_cubit.dart';
import 'package:firka/core/bloc/theme_cubit.dart';
import 'package:firka/core/firka_bundle.dart';
import 'package:firka/routing/app_router.dart';
import 'package:firka/services/watch_sync_helper.dart';
import 'package:firka/ui/theme/style.dart';
import 'package:firka/ui/phone/pages/extras/main_wear_pair.dart';
import 'package:firka/l10n/app_localizations.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
@@ -30,17 +31,33 @@ class InitializationScreen extends StatefulWidget {
class _InitializationScreenState extends State<InitializationScreen> {
GoRouter? _router;
final Future<AppInitialization> _init = initializeApp().timeout(
const Duration(seconds: 20),
);
final Future<void> _init = initializeApp();
ThemeData _buildTheme(FirkaStyle style) {
return ThemeData(
scaffoldBackgroundColor: style.colors.background,
canvasColor: style.colors.background,
bottomSheetTheme: const BottomSheetThemeData(
backgroundColor: Colors.transparent,
),
colorScheme: ColorScheme.fromSeed(
seedColor: style.colors.accent,
brightness: style.isLight ? Brightness.light : Brightness.dark,
surface: style.colors.card,
),
useMaterial3: false,
);
}
@override
Widget build(BuildContext context) {
return FutureBuilder<AppInitialization>(
return FutureBuilder<void>(
future: _init,
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.done) {
if (snapshot.hasError) {
initDone = false;
logger.shout(
"Error in InitializationScreen",
snapshot.error.toString(),
@@ -65,10 +82,6 @@ class _InitializationScreenState extends State<InitializationScreen> {
);
}
assert(snapshot.data != null);
initData = snapshot.data!;
initDone = true;
FlutterNativeSplash.remove();
WatchSyncHelper.initialize();
@@ -95,24 +108,20 @@ class _InitializationScreenState extends State<InitializationScreen> {
switch (msg["id"]) {
case "ping":
if (initData.tokens.isNotEmpty) {
logger.finest("WatchOS IPC [Phone -> Watch]: pong");
unawaited(
WatchSyncHelper.sendMessageToWatch({'id': 'pong'}),
);
_router?.go('/home');
WidgetsBinding.instance.addPostFrameCallback((_) {
final ctx = navigatorKey.currentContext;
if (ctx != null && ctx.mounted) {
logger.info('Watch init_data: ${jsonEncode(msg)}');
showWearBottomSheet(
ctx,
initData,
Platform.isAndroid ? msg['model'] : 'Apple Watch',
);
}
});
}
logger.finest("WatchOS IPC [Phone -> Watch]: pong");
unawaited(WatchSyncHelper.sendMessageToWatch({'id': 'pong'}));
_router?.go('/home');
WidgetsBinding.instance.addPostFrameCallback((_) {
final ctx = navigatorKey.currentContext;
if (ctx != null && ctx.mounted) {
logger.info('Watch init_data: ${jsonEncode(msg)}');
showWearBottomSheet(
ctx,
initData,
Platform.isAndroid ? msg['model'] : 'Apple Watch',
);
}
});
break;
case "init_done":
case "sync_done":
@@ -139,7 +148,7 @@ class _InitializationScreenState extends State<InitializationScreen> {
);
}
await WatchSyncHelper.runWearSyncInForeground(
initData.client,
initData.client!,
);
}
});
@@ -147,7 +156,7 @@ class _InitializationScreenState extends State<InitializationScreen> {
unawaited(() async {
try {
await WatchSyncHelper.startWearSyncServiceWithFreshCache(
initData.client,
initData.client!,
initData.appDir.path,
);
} catch (e) {
@@ -165,11 +174,11 @@ class _InitializationScreenState extends State<InitializationScreen> {
appRouter = _router;
}
final themeCubit = initData.themeCubit!;
final settingsCubit = initData.settingsCubit!;
final profilePictureCubit = initData.profilePictureCubit!;
final reauthCubit = initData.reauthCubit!;
final homeRefreshCubit = initData.homeRefreshCubit!;
final themeCubit = initData.themeCubit;
final settingsCubit = initData.settingsCubit;
final profilePictureCubit = initData.profilePictureCubit;
final reauthCubit = initData.toastCubit;
final homeRefreshCubit = initData.homeRefreshCubit;
return MultiBlocProvider(
providers: [
BlocProvider<ThemeCubit>.value(value: themeCubit),
@@ -177,43 +186,51 @@ class _InitializationScreenState extends State<InitializationScreen> {
BlocProvider<ProfilePictureCubit>.value(
value: profilePictureCubit,
),
BlocProvider<ReauthCubit>.value(value: reauthCubit),
BlocProvider<ToastCubit>.value(value: reauthCubit),
BlocProvider<HomeRefreshCubit>.value(value: homeRefreshCubit),
],
child: MaterialApp.router(
title: 'Firka',
key: const ValueKey('firkaApp'),
routerConfig: _router!,
theme: ThemeData(
primarySwatch: Colors.lightGreen,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
localizationsDelegates: const [
AppLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
],
supportedLocales: AppLocalizations.supportedLocales,
builder: (context, child) {
return BlocBuilder<ThemeCubit, ThemeState>(
builder: (context, themeState) {
final isLight = themeState.isLightMode;
final overlay = SystemUiOverlayStyle(
statusBarColor: Colors.transparent,
statusBarIconBrightness: isLight
? Brightness.dark
: Brightness.light,
statusBarBrightness: isLight
? Brightness.light
: Brightness.dark,
systemStatusBarContrastEnforced: false,
);
child: BlocBuilder<ThemeCubit, ThemeState>(
builder: (context, themeState) {
final isLight = themeState.isLightMode;
final overlay = SystemUiOverlayStyle(
statusBarColor: Colors.transparent,
statusBarIconBrightness: isLight
? Brightness.dark
: Brightness.light,
statusBarBrightness: isLight
? Brightness.light
: Brightness.dark,
systemStatusBarContrastEnforced: false,
);
SystemChrome.setSystemUIOverlayStyle(overlay);
final themeMode = isLight ? ThemeMode.light : ThemeMode.dark;
final fallbackBg = isLight
? lightStyle.colors.background
: darkStyle.colors.background;
SystemChrome.setSystemUIOverlayStyle(overlay);
return MaterialApp.router(
title: 'Firka',
key: const ValueKey('firkaApp'),
routerConfig: _router!,
theme: _buildTheme(lightStyle),
darkTheme: _buildTheme(darkStyle),
themeMode: themeMode,
localizationsDelegates: const [
AppLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
],
supportedLocales: AppLocalizations.supportedLocales,
builder: (context, child) {
return AnnotatedRegion<SystemUiOverlayStyle>(
value: overlay,
child: child ?? const SizedBox.shrink(),
child: ColoredBox(
color: fallbackBg,
child: child ?? const SizedBox.shrink(),
),
);
},
);

View File

@@ -1,23 +0,0 @@
import 'package:kreta_api/kreta_api.dart';
double calculateAverage(List<Grade> sortedGrades) {
double totalWeight = 0.0;
double weightedSum = 0.0;
for (final grade in sortedGrades) {
final value = grade.numericValue;
final weight = grade.weightPercentage;
if (value != null && weight != null) {
weightedSum += value * weight;
totalWeight += weight;
}
}
if (totalWeight == 0) {
return double.parse(0.0.toStringAsFixed(2));
}
final avg = weightedSum / totalWeight;
return double.parse(avg.toStringAsFixed(2));
}

View File

@@ -0,0 +1,52 @@
import "package:flutter/services.dart";
import "package:flutter_bloc/flutter_bloc.dart";
import "package:logging/logging.dart";
import "package:firka/core/settings/settings_repository.dart";
import "package:firka/core/settings/settings_schema.dart";
final Logger _logger = Logger('AppIconPickerCubit');
class AppIconPickerState {
final String activeIcon;
final bool saving;
const AppIconPickerState({required this.activeIcon, this.saving = false});
AppIconPickerState copyWith({String? activeIcon, bool? saving}) =>
AppIconPickerState(
activeIcon: activeIcon ?? this.activeIcon,
saving: saving ?? this.saving,
);
}
class AppIconPickerCubit extends Cubit<AppIconPickerState> {
AppIconPickerCubit(String initialIcon)
: super(AppIconPickerState(activeIcon: initialIcon));
void select(String icon) {
if (state.saving) return;
emit(state.copyWith(activeIcon: icon));
}
/// Persists the selected icon and swaps the platform's launcher icon.
Future<void> save(List<String> allIconKeys) async {
if (state.saving) return;
emit(state.copyWith(saving: true));
await Settings.appIcon.set(state.activeIcon);
await Future.delayed(Duration(seconds: 1));
_logger.info(allIconKeys.join(","));
_logger.info(state.activeIcon);
const channel = MethodChannel('firka.app/main');
_logger.info(
await channel.invokeMethod('set_icon', {
"icon": state.activeIcon == "original" ? null : state.activeIcon,
"icons": allIconKeys.join(","),
}),
);
}
}

View File

@@ -1,19 +0,0 @@
import 'package:flutter_bloc/flutter_bloc.dart';
class ReauthState {
final bool needsReauth;
const ReauthState({this.needsReauth = false});
}
class ReauthCubit extends Cubit<ReauthState> {
ReauthCubit() : super(const ReauthState());
void setNeedsReauth(bool value) {
emit(ReauthState(needsReauth: value));
}
void clear() {
emit(const ReauthState(needsReauth: false));
}
}

View File

@@ -0,0 +1,37 @@
import 'package:firka/ui/phone/pages/extras/firka_toast.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
enum ActiveToastType { fetching, error, reauth, none }
class ToastState {
final ActiveToastType type;
final Object? extra;
const ToastState(this.type, [this.extra]);
Widget? buildWidget(BuildContext context) {
switch (type) {
case .fetching:
return FirkaToastWidget.fetching(context);
case .error:
return FirkaToastWidget.error(context, extra!);
case .reauth:
return FirkaToastWidget.reauth(context);
case .none:
return null;
}
}
}
class ToastCubit extends Cubit<ToastState> {
ToastCubit() : super(const ToastState(ActiveToastType.none));
void setActiveToast(ActiveToastType type, [Object? extra]) {
emit(ToastState(type, extra));
}
void clear() {
setActiveToast(ActiveToastType.none);
}
}

View File

@@ -1,17 +1 @@
DateTime? debugFakeTime;
DateTime? debugSetAt;
var debugTimeAdvance = false;
DateTime timeNow() {
if (debugFakeTime != null) {
if (debugTimeAdvance && debugSetAt != null) {
var diff = DateTime.now().difference(debugSetAt!);
return debugFakeTime!.add(diff);
} else {
return debugFakeTime!;
}
} else {
return DateTime.now();
}
}
export 'package:firka_common/core/debug_helper.dart';

View File

@@ -0,0 +1,22 @@
import "package:firka/core/settings/settings_repository.dart";
import "package:firka/core/settings/settings_schema.dart";
class MockBackend {
static String rewrite(String url) {
if (!Settings.mockBackendEnabled.value) return url;
final mockBase = Settings.mockBackendUrl.value;
if (mockBase.isEmpty) return url;
final mockUri = Uri.parse(mockBase);
final uri = Uri.parse(url);
return uri
.replace(
scheme: mockUri.scheme,
host: mockUri.host,
port: mockUri.hasPort ? mockUri.port : null,
)
.toString();
}
}

View File

@@ -1,8 +1,11 @@
import 'package:intl/intl.dart';
import 'package:kreta_api/kreta_api.dart';
import 'package:firka/core/debug_helper.dart';
import 'package:firka/l10n/app_localizations.dart';
import 'package:firka_common/core/debug_helper.dart';
import 'package:firka_common/core/extensions.dart';
import 'package:kreta_api/kreta_api.dart';
export 'package:firka_common/core/extensions.dart';
extension TimetableExtension on Iterable<Lesson> {
List<Lesson> getAllSeqs(Lesson reference) {
@@ -11,10 +14,9 @@ extension TimetableExtension on Iterable<Lesson> {
for (var lesson in this) {
if (lesson.lessonNumber == null) continue;
if (lessons.firstWhereOrNull(
(lesson2) => lesson.lessonNumber == lesson2.lessonNumber,
) ==
null) {
if (!lessons.any(
(lesson2) => lesson.lessonNumber == lesson2.lessonNumber,
)) {
final ref = reference.start;
final newStart = DateTime(
ref.year,
@@ -59,26 +61,6 @@ extension TimetableExtension on Iterable<Lesson> {
}
}
extension IterableExtensionMap on Iterable<MapEntry<String, dynamic>> {
Map<String, dynamic> toMap() {
var map = <String, dynamic>{};
for (var item in this) {
map[item.key] = item.value;
}
return map;
}
}
extension IterableExtension<T> on Iterable<T> {
T? firstWhereOrNull(bool Function(T element) test) {
for (var element in this) {
if (test(element)) return element;
}
return null;
}
}
extension DurationExtension on Duration {
String formatDuration() {
String hours = inHours.toString().padLeft(2, '0');
@@ -86,10 +68,20 @@ extension DurationExtension on Duration {
String seconds = inSeconds.remainder(60).toString().padLeft(2, '0');
return "$hours:$minutes:$seconds";
}
String? timeLeft(AppLocalizations l10n) {
return inMinutes > 0
? "${inMinutes + 1} ${l10n.starting_min_plural}"
: inSeconds > 0
? "$inSeconds ${inSeconds == 1 ? l10n.starting_sec : l10n.starting_sec_plural}"
: null;
}
}
enum FormatMode {
yearly,
mmmd,
main,
grades,
welcome,
hmm,
@@ -104,8 +96,22 @@ enum FormatMode {
enum Cycle { morning, day, afternoon, night }
extension ComparableExtension<T extends Comparable<T>> on Comparable<T> {
T min(T other) {
return compareTo(other) < 0 ? this as T : other;
}
bool isBetween(T from, T to) {
return compareTo(from) > 0 && compareTo(to) < 0;
}
T max(T other) {
return compareTo(other) > 0 ? this as T : other;
}
}
extension DateExtension on DateTime {
String format(AppLocalizations l10n, FormatMode mode) {
String? translatedDay(AppLocalizations l10n) {
var today = timeNow().getMidnight();
var tomorrowLim = today.add(Duration(days: 2));
@@ -113,32 +119,43 @@ extension DateExtension on DateTime {
var yesterday = today.subtract(Duration(days: 1));
var yesterdayLim = today.subtract(Duration(days: 2));
var weekStart = subtract(Duration(days: weekday - 1));
if (isAfter(yesterdayLim) && isBefore(today)) {
return l10n.yesterday;
}
if (isAfter(yesterday) && isBefore(tomorrow)) {
return l10n.today;
}
if (isAfter(today) && isBefore(tomorrowLim)) {
return l10n.tomorrow;
}
return null;
}
String format(AppLocalizations l10n, FormatMode mode) {
var weekStart = getMonday();
var weekEnd = weekStart.add(Duration(days: 6));
switch (mode) {
case FormatMode.main:
var lastWeek = timeNow().getMidnight().subtract(Duration(days: 8));
var isLastWeek =
lastWeek.millisecondsSinceEpoch <
getMidnight().millisecondsSinceEpoch;
final dayName = DateFormat(
'EEEE',
l10n.localeName,
).format(this).firstUpper();
return translatedDay(l10n) ??
(isLastWeek
? "$dayName (${format(l10n, FormatMode.mmmd).firstUpper()})"
: "${format(l10n, FormatMode.yearly).firstUpper()} ($dayName)");
case FormatMode.grades:
if (isBefore(yesterdayLim)) {
final month = DateFormat(
'MMMM',
l10n.localeName,
).format(this).firstUpper();
final day = DateFormat('d', l10n.localeName).format(this);
return "$month $day";
}
if (isAfter(yesterdayLim) && isBefore(today)) {
return l10n.yesterday;
}
if (isAfter(yesterday) && isBefore(tomorrow)) {
return l10n.today;
}
if (isAfter(today) && isBefore(tomorrowLim)) {
return l10n.tomorrow;
}
return format(l10n, FormatMode.yearly);
return translatedDay(l10n) ?? format(l10n, FormatMode.yearly);
case FormatMode.yearly:
return DateFormat('MMMM dd', l10n.localeName).format(this);
return DateFormat('MMMM d', l10n.localeName).format(this);
case FormatMode.mmmd:
return DateFormat('MMM d', l10n.localeName).format(this);
case FormatMode.hmm:
return DateFormat('H:mm', l10n.localeName).format(this);
case FormatMode.welcome:
@@ -172,7 +189,10 @@ extension DateExtension on DateTime {
case FormatMode.yyyymmdd:
return DateFormat('yyyy. MM. dd.', l10n.localeName).format(this);
case FormatMode.yyyymmddhhmmss:
return DateFormat('yyyy-MM-dd hh:mm:ss', l10n.localeName).format(this);
return DateFormat(
'yyyy. MM. dd. H:mm:ss',
l10n.localeName,
).format(this);
}
}
@@ -189,16 +209,12 @@ extension DateExtension on DateTime {
return subtract(Duration(days: weekday - 1));
}
DateTime getMidnight() {
return subtract(
Duration(
hours: hour,
minutes: minute,
seconds: second,
milliseconds: millisecond,
microseconds: microsecond,
),
);
DateTime getMonthFirstDay() {
return DateTime(year, month, 1);
}
DateTime getMonthLastDay() {
return DateTime(year, month + 1, 1).subtract(Duration(days: 1));
}
Cycle getDayCycle() {
@@ -218,61 +234,20 @@ extension DateExtension on DateTime {
return Cycle.night;
}
DateTime getFirstSchoolDay() {
DateTime start = copyWith(month: 9, day: 1);
return isBefore(start) ? start.copyWith(year: start.year - 1) : start;
}
}
extension DateGrouper<T> on Iterable<T> {
Map<DateTime, List<T>> groupList(DateTime Function(T elem) getDate) {
Map<DateTime, List<T>> newList = {};
var today = timeNow();
today = today.subtract(
Duration(
hours: today.hour,
minutes: today.minute,
seconds: today.second,
milliseconds: today.millisecond,
),
);
var tomorrow = today.add(Duration(days: 1));
var yesterday = today.subtract(Duration(days: 1));
for (var elem in this) {
var date = getDate(elem);
var day = date.subtract(
Duration(
hours: date.hour,
minutes: date.minute,
seconds: date.second,
milliseconds: date.millisecond,
),
);
if (date.isAfter(tomorrow.add(Duration(days: 1)))) {
if (newList[day] == null) {
newList[day] = List<T>.empty(growable: true);
}
newList[day]!.add(elem);
continue;
}
if (date.isAfter(today)) {
if (newList[tomorrow] == null) {
newList[tomorrow] = List<T>.empty(growable: true);
}
newList[tomorrow]!.add(elem);
continue;
}
if (date.isAfter(yesterday.subtract(Duration(days: 1))) &&
date.isBefore(today)) {
if (newList[yesterday] == null) {
newList[yesterday] = List<T>.empty(growable: true);
}
newList[yesterday]!.add(elem);
continue;
}
var day = date.getMidnight();
if (newList[day] == null) {
newList[day] = List<T>.empty(growable: true);
@@ -297,7 +272,7 @@ extension LessonExtension on List<Lesson> {
}
Lesson? getPrevLesson(DateTime now) {
return firstWhereOrNull(
return reversed.firstWhereOrNull(
(lesson) => lesson.end.isBefore(now.add(Duration(milliseconds: 1))),
);
}
@@ -320,4 +295,38 @@ extension StringExtension on String {
if (length == 1) this[0].toUpperCase();
return this[0].toUpperCase() + substring(1, length);
}
String shortenName([int start = 0]) {
if (length <= 16 || start >= length) {
return this;
}
int index = indexOf(" ", start);
if (index == -1) {
return this;
}
String string = substring(start, index);
if (string.endsWith(".")) {
return this;
}
return replaceRange(
start,
index,
"${string[0]}.",
).shortenName(index - string.length + 2 + 1);
}
/// Removes CSS font-feature-settings. flutter_html passes values like
/// `normal` into FontFeature, which requires a 4-character OpenType tag.
String withoutFontFeatureSettings() {
return replaceAll(
RegExp(
r'''font-feature-settings\s*:\s*[^;}"']+;?''',
caseSensitive: false,
),
"",
);
}
}

Some files were not shown because too many files have changed in this diff Show More