Pero Grubač

ETF Oglasi

University announcements and class schedules, offline; my thesis.

ETF Oglasi · Flutterwatchfetchcache, fallbackcheck every boardnew announcementsGET JSON, HTTPSsqflitesaved schedulehome_widget dataclass remindersScreensannouncements, scheduleRiverpodproviders, notifiersWorkManagerperiodic, needs networkServicesApiService · httpRepositorieson DatabaseHelperSavedScheduleSyncreminders, widget dataNotificationsAndroid · per board, per classETF APIefee.etf.unibl.org · JSONSQLiteetf.db · 4 tables · v5Home screen widgetsKotlin · AlarmManager
Screens read announcements and schedules through Riverpod. Announcements come from the faculty's JSON API and fall back to SQLite when there is no network; schedules show what is stored first and refresh in the background. A periodic WorkManager task checks every board and notifies about new announcements. SavedScheduleSync turns the saved schedule into weekly class reminders and into data for the native Kotlin widgets, which keep the next class current without the app running.
ETF Oglasi: categories, announcements and class schedule

What it does

I built ETF Oglasi as my graduation thesis project. It is an Android app for the announcements and class schedules of the Faculty of Electrical Engineering in Banja Luka, and it keeps working offline.

  • Announcements. Every announcement board, with attachment downloads, “new” badges and unseen counts per board. Search ignores case, diacritics and the difference between Latin and Cyrillic script. Expired announcements are dimmed and listed last, and a saved announcement stays after it leaves the board.
  • Schedules. A weekly class schedule by study programme and year, by teacher or by room, with the current hour highlighted, and room schedules week by week. The class schedule can be added to a calendar as an .ics file with weekly events.
  • Notifications and widgets. The app notifies about new announcements on every board, at an interval the user chooses, and tapping a notification opens the board. A reminder can go off 5 to 30 minutes before each class, at the exact time. Two home screen widgets show today’s classes, and the current and next class.
  • The rest. Serbian in Latin and Cyrillic script, and English; an optional weekly check for a new version on GitHub; and a local error log that can be copied into a bug report. The log stays on the phone unless the user copies or shares it.

How it works

The code is split by feature (announcements, schedule, settings and home), with shared code in a core module. Repositories handle the SQLite database, services call the faculty’s ETF API, and Riverpod providers connect both to the screens. SQLite keeps the cached announcements and schedules and the saved announcements; settings live in SharedPreferences.

Announcements load from the network first and fall back to the stored copy when the phone is offline. Schedules work the other way round: the stored copy is shown first and refreshed in the background.

One periodic WorkManager task checks every board whose interval has passed for new announcements. The saved class schedule drives the class reminders and both widgets, and all three are refreshed whenever it changes. The widgets are native Android widget providers written in Kotlin.

Decisions and why

  • The widgets’ time logic is native. It runs in Kotlin on the Android side, so the widgets stay current without the app running.
  • One background check for all boards. A single periodic task covers every board, so the notifications cost one battery-friendly background check.
  • A way around battery savers. Some phones, from Xiaomi, Huawei and Samsung among others, stop apps in the background to save battery, and then notifications stop arriving. The Notifications screen has a button that turns battery optimisation off for this app.

Testing and deployment

Besides the Flutter tests and static analysis, the widgets’ native time logic has its own Kotlin unit tests, and an integration test runs on an emulator or a connected phone.

Releases are built by GitHub Actions when a version tag is pushed. The workflow checks that the tag matches the app’s version, runs the analyzer and the tests, builds the APKs, checks that they are signed with the release key, and creates a draft release that is published by hand; the in-app update check only sees published releases. There is one APK per CPU type (arm64-v8a and armeabi-v7a) and no universal APK, because a universal APK would get a lower version code and Android would refuse to install it over a split one.

HomepageAboutsectionSystemssectionIndex of projectssectionBrowser appspageContactsectionIncident Alertsystem · case studyeMobilityHubsystem · case studyChat Roomsystem · case studyOnline Library Systemsystem · case studyRepoHealthlive app · case studyOpen RepoHealth app (opens in a new tab)live appGitHub Discord Bottool · case studyBookstore APIweb project · case studyFitForgemobile app · case studyAssetManagermobile app · case studyStore Managementdesktop app · case studyETF Oglasimobile app · case studyDevKitlive app · case studyOpen DevKit app (opens in a new tab)live appDev Timelinelive app · case studyOpen Dev Timeline app (opens in a new tab)live appGitHub Dashboardlive app · case studyOpen GitHub Dashboard app (opens in a new tab)live appStore Chain Managementdesktop app · case studySecure Repositorytool · case studyMinimal Blogweb project · case studyCatan Map Generatorlive app · case studyOpen Catan Map Generator app (opens in a new tab)live appMonte Carlo π · Pythonlive app · case studyOpen Monte Carlo π · Python app (opens in a new tab)live appBrick Breakerlive app · case studyOpen Brick Breaker app (opens in a new tab)live appArcane Keeplive app · case studyOpen Arcane Keep app (opens in a new tab)live appe-Mobility Rentaldesktop app · case studyCountdownlive app · case studyOpen Countdown app (opens in a new tab)live appANOVAdesktop app · case studyEcho Playerdesktop app · case studyMonte Carlo πdesktop app · case studyexcuse.exelive app · case studyOpen excuse.exe app (opens in a new tab)live appYamb Tablelive app · case studyOpen Yamb Table app (opens in a new tab)live appSedmicalive app · case studyOpen Sedmica app (opens in a new tab)live appLora Score Tablelive app · case studyOpen Lora Score Table app (opens in a new tab)live appSnake (Blavor)desktop app · case study
Copy emailpero.grubac00@gmail.com