- Kotlin 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
Build Android APK / build-apk (push) Successful in 4m11s
Reviewed-on: #14 |
||
| .claude | ||
| .forgejo/workflows | ||
| .idea | ||
| android | ||
| .gitignore | ||
| README.md | ||
MedSync — Android app
A native Kotlin/Compose client for MedSync, a self-hosted medication tracker.
The server — the API, the web app (PWA) and the Borg backup agent — and its
deployment live in a separate repository,
brian/medsync-server. This app
is a client of that server's API (/api); a change there that affects the API
may need a matching change here, and the other way round.
The app
The app lives in android/. It mirrors the
web UI and keeps working without a connection: cached medications, groups and
history stay readable, and doses, edits, pauses and group logs queue locally and
replay in order once the server is reachable again — including after the app is
closed.
cd android
./gradlew assembleRelease
adb install -r app/build/outputs/apk/release/app-release.apk
CI builds it too: .forgejo/workflows/build-android.yaml uploads the APK as an
artifact on every push, and attaches it to a release for v* tags.
It also raises dose reminders on the phone itself, scheduled from the cached schedule rather than pushed from the server — so they still fire when the server is unreachable, and each one can log the dose straight from the notification. SMS and ntfy remain available alongside them.
On first launch enter the same address you use in a browser. Admin and OIDC sign-in are web-only — see the Android README for why, and for what queues offline.
Or: the web app as a PWA
The web app medsync-server serves can be installed on Android too, sharing the same account and data:
- Open Chrome on Android and navigate to your server URL
- Tap the ⋮ menu → "Add to Home screen"
- The app installs like a native app with push notification support
- First launch: tap Enable Notifications in the app settings
Repository layout
android/ the app (Gradle project) — see android/README.md
app/src/main/java/com/medsync/android/
data/ API client, offline cache, outbox, sync
ui/ theme, screens
.forgejo/workflows/build-android.yaml APK artifact on every push; a release on v* tags
The server-side code that used to live here (the original backend, the web app, the Borg agent and the Docker deployment) moved to medsync-server, which has the current versions; this repository's history still has the old ones.