Commit Graph

1252 Commits

Author SHA1 Message Date
Kuba Szczodrzyński
0d4dee765a
[Lab] Allow setting custom API key. 2022-10-22 12:56:15 +02:00
Kuba Szczodrzyński
fd407b2b03
[Config] Set highest data version by default. 2022-10-22 12:31:40 +02:00
Kuba Szczodrzyński
40ed5a221f
[App] Fix crashes while deserializing AppData and Config. 2022-10-22 12:19:23 +02:00
Kuba Szczodrzyński
5150467372
[4.13-rc.1] Update build.gradle, signing and changelog. 2022-10-22 00:02:57 +02:00
Kuba Szczodrzyński
63c5720f63
[App] Move per-register settings to JSON resource. Rewrite Config to use delegates. (#150)
* [App] Add base for AppData loading.

* [UI] Fix timetable widget date navigation.

* [UI] Migrate register-specific behavior to use AppData.

* [App] Implement new delegate-based config base.

* [Config] Migrate config and profile config.

* [Config] Remove defaults from migrations.

* [App] Apply event types and config overrides from AppData.

* [Events] Change default event types for university type school.
2022-10-21 23:59:53 +02:00
Kuba Szczodrzyński
6c93cd4217
[4.13-beta.3] Update build.gradle, signing and changelog. 2022-10-20 22:02:01 +02:00
Kuba Szczodrzyński
649d4f619a
[UI] Hide unavailable settings depending on LoginType. 2022-10-20 21:59:01 +02:00
Kuba Szczodrzyński
ba10d10a10
[API] Refactor integer-based types to enum classes. (#145)
* [App] Add enum classes for common IDs.

* [App] Rename enum package names.

* [App] Migrate code to use new enums.

* [DB] Migrate loginStoreMode IDs to be unique.

* [UI] Fix minor issues after refactor.

* [API] Update sync method signature.

* [UI] Correct pop-to-home and back button drawer behavior.

* [App] Update Bundle extensions usage.

* [App] Migrate notification types to enum.

* [UI] Make Lab fragment compatible with enums.

* [API] Make EndpointTimer use FeatureType.

* [App] Migrate config & API lists to sets.
2022-10-20 21:58:10 +02:00
Kuba Szczodrzyński
1450d63fcb
[4.13-beta.2] Update build.gradle, signing and changelog. 2022-10-18 22:06:18 +02:00
Kuba Szczodrzyński
2ec06bc39a
[UI] Fix timetable lesson height. Add missing timetable settings. 2022-10-18 11:49:46 +02:00
Kuba Szczodrzyński
6f12227c2e
[4.13-beta.1] Update build.gradle, signing and changelog. 2022-10-17 22:56:22 +02:00
Kuba Szczodrzyński
52a53334ca
[Strings] Add USOS error descriptions. 2022-10-17 22:30:23 +02:00
Kuba Szczodrzyński
3ab9602865
[API/Usos] Fix re-logging in after user action. 2022-10-17 16:06:29 +02:00
kuba2k2
dc19043f73
[API/Usos] Implement basic error handling. 2022-10-17 12:56:07 +02:00
Kuba Szczodrzyński
cf25507850
[API/Usos] Save lecturers as teachers. Add team class. 2022-10-16 18:41:37 +02:00
Kuba Szczodrzyński
044cedff99
[Usos] Override lesson colors by activity type. 2022-10-16 18:13:22 +02:00
Kuba Szczodrzyński
4de066bf5f
[API/Usos] Implement Timetable. 2022-10-16 17:21:36 +02:00
Kuba Szczodrzyński
8d174bda01
Merge remote-tracking branch 'origin/develop' into feature/usos 2022-10-16 16:54:44 +02:00
Kuba Szczodrzyński
e2fd714070
[UI/Timetable] Show subject-based lesson colors. (#141)
* [UI/Timetable] Add timetable config dialog and implement UI options.

* [UI/Timetable] Fix reloading timetable after changing config.

* [UI/Timetable] Fix calculating lesson range boundaries.

* [UI/Timetable] Add coloring subject names.
2022-10-16 12:47:54 +02:00
Kuba Szczodrzyński
8097e8d06d
[API/Usos] Add syncing Courses and Terms. 2022-10-16 00:09:51 +02:00
Kuba Szczodrzyński
93ccdbdeb7
[API/Login] Make user action handling more universal. 2022-10-15 21:24:30 +02:00
Kuba Szczodrzyński
7ded400a30
[API/Usos] Implement first login. 2022-10-15 19:07:12 +02:00
Kuba Szczodrzyński
2ff784066e
[API/Usos] Implement OAuth authorization flow. 2022-10-14 21:44:58 +02:00
Kuba Szczodrzyński
6c96875c83
[API/Login] Allow passing LoginStore params in user action requests. 2022-10-14 19:44:22 +02:00
kuba2k2
9f3aaf6e86
[API] Move register platforms to new endpoint. 2022-10-14 14:43:40 +02:00
Kuba Szczodrzyński
55369eaa8b
[UI/Timetable] Add Timetable settings. (#140)
* [UI/Timetable] Add timetable config dialog and implement UI options.

* [UI/Timetable] Fix reloading timetable after changing config.

* [UI/Timetable] Fix calculating lesson range boundaries.
2022-10-14 00:25:22 +02:00
Adam Kasprzycki
c983c16907
[UI] Request notifications permission on API >= 33. (#143)
* Added requesting notifications permission on Android 13 devices

* Move permission check to PermissionManager

* Request permission on home screen
2022-10-14 00:24:00 +02:00
kuba2k2
c7362bce12
[API/Usos] Add base rest API class. 2022-10-13 21:27:55 +02:00
kuba2k2
7935d0f097
[API] Pass parameters to user action required errors. 2022-10-13 11:45:17 +02:00
Kuba Szczodrzyński
4b64277948
[API/Usos] Add basic USOS API structure. 2022-10-11 23:23:11 +02:00
Kuba Szczodrzyński
132729bbd9
[4.12.1] Update build.gradle, signing and changelog. 2022-09-23 11:32:08 +02:00
Kuba Szczodrzyński
6d36ab27d1
[UI/Login] Fix QR scanning icon not showing. 2022-09-23 11:30:23 +02:00
Kuba Szczodrzyński
11fabb231f
[4.12] Update build.gradle, signing and changelog. 2022-09-21 21:09:23 +02:00
Kuba Szczodrzyński
6fd999f88c
[UI/Widget] Fix showing lesson details dialog. 2022-09-21 21:02:09 +02:00
Kuba Szczodrzyński
7711413b30
[API/Vulcan] Fix getting MessageBoxes and changing message read status. 2022-09-21 20:43:18 +02:00
Kuba Szczodrzyński
cdc0c9d458
[4.11.9] Update build.gradle, signing and changelog. 2022-09-18 23:06:41 +02:00
Kuba Szczodrzyński
8e5f750a80
[Manifest] Remove APK install to comply with Google Play policies. 2022-09-18 23:05:46 +02:00
Kuba Szczodrzyński
f4e7e8978c
[API/Vulcan] Ensure messageBoxKey before syncing addressbook. 2022-09-18 22:52:43 +02:00
Kuba Szczodrzyński
96c542d6d2
[4.11.8] Update build.gradle, signing and changelog. 2022-09-17 18:02:11 +02:00
Kuba Szczodrzyński
77d22b87aa
[API] Move unused resources to the e-register graveyard. 2022-09-17 17:49:56 +02:00
Kuba Szczodrzyński
37c68443bd
[API] Remove EduDziennik implementation [*] 2022-09-17 17:39:45 +02:00
Kuba Szczodrzyński
9dbb5d70e9
[App] Fix PendingIntent crashing on API 31+. 2022-09-17 17:21:13 +02:00
Kuba Szczodrzyński
99afa77a63
[4.11.7] Update build.gradle, signing and changelog. 2022-09-17 16:00:38 +02:00
Kuba Szczodrzyński
a5d0f4212d
[UI/Login] Make Lab accessible from login page. 2022-09-17 15:00:34 +02:00
Kuba Szczodrzyński
a85f935eb4
[UI/Home] Improve displaying cancelled lessons in timetable card. 2022-09-17 14:58:54 +02:00
Antoni Czaplicki
bb44fa066c
[API/Vulcan] Migrate to new MessageBox API. (#134)
* Implement fetching vulcan messages from new api

* Bump kotlin version and fix timetable card lessons size display

* Revert formatting changes

* Revert disabling message composing

* Revert MultiDex changes and dependency upgrades

* Add missing MultiDex dependency, update Google Services

* Separate MessageBoxes sync, revert API data behavior changes

* Revert migrating MessageRecipient to Kotlin

* Use loginId from MessageBox address book

* Revert using compatible HTML mode in Vulcan

* Implement message meta and read status changing

* Always set attachment lists

* Fix setting tutor role description

* Implement sending messages

* Replace millis constant with WEEK

* Revert timetable changes

* Remove unused DataVulcan properties

* Ensure UUID-format recipient IDs

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
2022-09-17 12:31:35 +02:00
Kuba Szczodrzyński
54a61c6254
[Gradle] Update dependencies, update target SDK to 33 2022-09-09 12:47:20 +02:00
Kuba Szczodrzyński
ac10874bf1
[4.11.6] Update build.gradle, signing and changelog. 2022-05-27 21:09:40 +02:00
B.O.S.S
fa55b4901a
[Messages/Librus] Disable text styling. (#130) 2022-05-27 18:55:24 +02:00
Kuba Szczodrzyński
0f90430387
[4.11.5] Update build.gradle, signing and changelog. 2022-04-18 11:31:24 +02:00
Sylwester Zinkiewicz
745523c620
[UI] Fix touch events on swipe refresh pages (API 32+). (#129)
* [Hotfix] Fix touch events on swipe refresh pages (API 32)

* Add API SDK version check
2022-04-18 11:28:34 +02:00
Kuba Szczodrzyński
8911ce2bc1
[4.11.4] Update build.gradle, signing and changelog. 2022-03-14 17:45:11 +01:00
Kuba Szczodrzyński
2990fc5479
[Firebase] Disable notifications for past shared events. 2022-03-14 17:08:35 +01:00
Kuba Szczodrzyński
48b7adb564
[UI/Grades] Group unknown subjects without specified name. 2022-03-14 17:05:16 +01:00
Kuba Szczodrzyński
f8ac9e793a
[4.11.3] Update build.gradle, signing and changelog. 2022-02-21 21:48:28 +01:00
Kuba Szczodrzyński
148597e578
[UI/Messages] Fix sending message not showing the message fragment. 2022-02-21 21:46:16 +01:00
Kuba Szczodrzyński
6c50a80b42
[UI/Timetable] Fix syncing a week not refreshing the current page. 2022-02-21 21:08:59 +01:00
Kuba Szczodrzyński
1bf0679e92
[App] Disable SSLProvider in Google Play builds. 2022-02-21 20:36:17 +01:00
Kuba Szczodrzyński
5b5dc5cade
[Gradle] Add non-Play flavor without self-updater. 2022-02-21 20:19:29 +01:00
Kuba Szczodrzyński
98a89b1ca1
[4.11.2] Update build.gradle, signing and changelog. 2022-02-05 17:47:00 +01:00
Kuba Szczodrzyński
6d1e18cce2
[Strings] Update copyright dates. 2022-02-05 17:44:57 +01:00
Kuba Szczodrzyński
8fe0f88be4
[Strings] Fix a typo. 2022-02-05 17:39:40 +01:00
Kuba Szczodrzyński
aeed735521
[Mobidziennik] Fix syncing message lists. 2022-02-05 17:39:15 +01:00
Kuba Szczodrzyński
e314fafaff
[4.11.1] Update build.gradle, signing and changelog. 2022-01-14 15:23:31 +01:00
B.O.S.S
2ab0dd7546
[API/Librus] Revert getting time in teacher free days. (#124) 2021-12-16 12:23:33 +01:00
B.O.S.S
aa06868a4e
[API/Librus] Fix LibrusApiTeacherFreeDays. (#123)
* [API/Librus] Remove LibrusApiTeacherFreeDayTypes

* [API/Librus] Fix LibrusApiTeacherFreeDay

* [API/Librus] LibrusApiTeacherFreeDay: Clean up values of unused variables

* [API/Librus] LibrusApiTeacherFreeDay: Remove unnecessary variables

* [API/Librus] LibrusApiTeacherFreeDay: Assign null to 'name' object
2021-12-10 21:48:11 +01:00
Kuba Szczodrzyński
2b104e6463
[4.11] Update build.gradle, signing and changelog. 2021-11-01 13:05:51 +01:00
Kuba Szczodrzyński
afb1863827
[Strings] Fix compilation problem. 2021-10-31 20:25:34 +01:00
Kuba Szczodrzyński
d8228748e4
[4.11-rc.3] Update build.gradle, signing and changelog. 2021-10-31 20:16:12 +01:00
Antoni Czaplicki
b0608c47c4
[Strings] Update English translation. (#117)
* Update translations

* Apply suggestions from code review

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>

* Update translations

* Update translations

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
2021-10-31 20:15:24 +01:00
Kuba Szczodrzyński
dda0d88f19
[API/Vulcan] Fix Web login with multiple student IDs. 2021-10-31 18:19:18 +01:00
Antoni Czaplicki
a1b5560977
[API/Vulcan] Fix teachers endpoint last sync date. (#116) 2021-10-31 14:24:39 +01:00
Antoni Czaplicki
86f5811bda
[Login] Fix incorrect case mode validation. (#115) 2021-10-31 14:24:20 +01:00
Antoni Czaplicki
3f11e75985
[Lab] Add Open Chucker button. (#114) 2021-10-31 14:23:59 +01:00
Kuba Szczodrzyński
c39b5442c9
[API/Vulcan] Fix teacher list subjects retrieving. 2021-10-31 10:12:35 +01:00
Kuba Szczodrzyński
3b80adf355
[4.11-rc.2] Update build.gradle, signing and changelog. 2021-10-30 22:04:13 +02:00
Kuba Szczodrzyński
519d75d9d9 [API/Vulcan] Force presence of a TeamClass. 2021-10-30 21:55:47 +02:00
Kuba Szczodrzyński
cb953ea8a8 [Config] Fix only notes card visible on new profiles. 2021-10-30 21:55:47 +02:00
Kuba Szczodrzyński
52968cafad [Proguard] Add a rule for Note. 2021-10-30 21:55:47 +02:00
Kuba Szczodrzyński
b7755dae96
[4.11-rc.1] Update build.gradle, signing and changelog. 2021-10-29 17:32:53 +02:00
Kuba Szczodrzyński
113ecc0ef1
[Gradle] Fix showing correct app version on debug builds. 2021-10-29 17:32:05 +02:00
Kuba Szczodrzyński
23bd9b8e05
[Strings] Update copyright dates. 2021-10-29 16:51:55 +02:00
Kuba Szczodrzyński
decfd2068a
[Signing] Fix incorrect version name for debug builds. 2021-10-29 16:48:53 +02:00
Kuba Szczodrzyński
a88cfb8ae3 [Notes] Hide notes button in day dialog. 2021-10-29 16:48:12 +02:00
Kuba Szczodrzyński
50cb0acc7d [Notes] Fix home card on click target fragment. 2021-10-29 16:48:12 +02:00
Kuba Szczodrzyński
27413a9745
[Messages] Fix HTML line break decoding and encoding. 2021-10-29 16:46:32 +02:00
Kuba Szczodrzyński
49a093201b
[Teachers] Make the list action buttons bigger. 2021-10-29 15:39:58 +02:00
Kuba Szczodrzyński
7c925cb88a
[UI] Add Notes feature. (#99)
* [DB] Add Room schema export location.

* [DB] Add Note entity and migration 96.

* Add correct database schema

* [Notes] Implement basic note list UI.

* [DB] Implement Noteable in Full entities. Add note relation and filtering.

* [Notes] Make Note searchable.

* [UI] Disable onClick listeners in adapters when null.

* [UI] Implement showing note list in dialog.

* [UI] Update note dialogs UI.

* [Notes] Add note details dialog.

* [Notes] Extract note dialogs header into a separate layout.

* [Notes] Add note editor dialog.

* [Notes] Show note icons in dialogs and lists.

* [Notes] Add showing substitute text.

* [Notes] Add replacing notes icon.

* [Notes] Add sharing and receiving notes.

* [Notes] Add notes list UI fragment.

* [Notes] Implement adding notes without owner.

* [Notes] Add color names.

* [Notes] Add notes card on home screen.

* [Notes] Add notes card migration.
2021-10-28 22:35:30 +02:00
Kuba Szczodrzyński
8745d7d526
[API/Szkolny] Fix user/device registration after API errors. (#111) 2021-10-28 12:11:00 +02:00
Antoni Czaplicki
e02246f97d
[UI] Add teacher list action buttons. (#105)
* Update code

TODO: Change icons color

* Change "More" icon, update teachers list

* Update code

* Update code

* Reformat code

* Apply suggestions from code review

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>

* Update code

* Update app/src/main/java/pl/szczodrzynski/edziennik/ui/teachers/TeachersListFragment.kt

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>

* Update code

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
2021-10-24 18:29:04 +02:00
Antoni Czaplicki
e629e03b33
[UI/Login] Implement login QR code scanning. (#100)
* Enable Vulcan QR login [WiP]

* [UI/Login] Implement login QR scanning.

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
2021-10-23 17:23:42 +02:00
Kuba Szczodrzyński
e2ad3758e0
[Config] Fix notification filter setting not loading. 2021-10-22 17:03:20 +02:00
Kuba Szczodrzyński
f3e2d21b89
[UI] Refactor app dialogs. (#103)
* [UI] Add new base dialog classes.

* [UI] Migrate dialogs to the new base classes.
2021-10-22 16:57:10 +02:00
Kuba Szczodrzyński
fd62653d79
[Hotfix] Fix merge problems and migration 96 crashing. 2021-10-19 17:06:26 +02:00
Kuba Szczodrzyński
d8abac1917
Merge branch 'develop' into feature/structure-refactor
# Conflicts:
#	app/src/main/java/pl/szczodrzynski/edziennik/Extensions.kt
#	app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt
#	app/src/main/java/pl/szczodrzynski/edziennik/data/db/entity/Teacher.kt
#	app/src/main/java/pl/szczodrzynski/edziennik/ui/teachers/TeachersAdapter.kt
#	app/src/main/java/pl/szczodrzynski/edziennik/ui/teachers/TeachersListFragment.kt
2021-10-19 13:45:29 +02:00
Antoni Czaplicki
2807659da3
[UI] Add teachers list feature. (#94)
* Add teachers list feature

* Fix

* some fixes

* Auto stash before merge of "develop" and "origin/develop"

* Add teachers list feature

* Fix

* some fixes

* [UI] Fix updating badges crashing with expanded items.

* Add support for fetching teachers from vulcan, fix some code

* Update app/src/main/java/pl/szczodrzynski/edziennik/data/db/entity/Teacher.kt

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>

* Update some code

* Update app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>

* Update app/src/main/java/pl/szczodrzynski/edziennik/data/db/entity/Teacher.kt

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>

* Update app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>

* Update app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>

* Update app/src/main/java/pl/szczodrzynski/edziennik/data/api/edziennik/vulcan/data/hebe/VulcanHebeTeachers.kt

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>

* Update app/src/main/java/pl/szczodrzynski/edziennik/data/db/entity/Teacher.kt

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>

* Update app/src/main/java/pl/szczodrzynski/edziennik/data/db/migration/Migration96.kt

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>

* Update app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>

* Update app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>

* Update app/src/main/java/pl/szczodrzynski/edziennik/data/api/edziennik/vulcan/data/hebe/VulcanHebeTeachers.kt

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>

* Update app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>

* Update app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>

* Update app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>

* Update app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>

* Optimize code

* Fix loadTarget algorithm

* Apply suggestions from code review

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>

* Update app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
2021-10-18 23:46:39 +02:00
Kuba Szczodrzyński
7884bf4077
[Refactor] Cleanup most compilation warnings. 2021-10-17 23:02:27 +02:00
Kuba Szczodrzyński
59f80c049c
[Refactor] Split Extensions into separate files. 2021-10-17 22:18:00 +02:00
Kuba Szczodrzyński
f1e58db151
[Refactor] Flatten .ui package. 2021-10-17 21:02:35 +02:00
Kuba Szczodrzyński
74b766f18a
[UI] Add text styling to manual events. (#96)
* [UI] Move text styling outside of messages module.

* [UI] Add text styling to event manual dialog.

* [UI/Events] Implement showing HTML-formatted content.

* [UI] Fix searching in styled event topic. Create HtmlMode enum.

* [UI] Add HTML Simple mode to text styling manager. Fix CharSequence replacing.

* [Events] Disable self-shared event notifications.

* [UI] Fix simple HTML mode format. Fix HTML in notifications.

* [HTML] Replace usages of Html and HtmlCompat with BetterHtml.

* [Events] Fix editing self-added events from other devices.

* [Events] Implement receiving and fix showing HTML-formatted events.

* [UI/Events] Add observing changes in event details dialog.

* [Firebase] Disable self-shared event notifications.
2021-10-16 19:37:41 +02:00