No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
brian 59873a5096
All checks were successful
Android Release / release (push) Successful in 2m35s
Merge pull request 'feat(android): list everything on the welcome screen; open a page where it is' (#32) from test into main
Reviewed-on: #32
2026-10-04 22:03:26 +00:00
.forgejo/workflows Cache the SDK and Gradle in the Android release, and run Gradle once 2026-10-02 08:26:59 -06:00
android feat(android): list everything on the welcome screen; open a page where it is 2026-10-04 16:00:50 -06:00
.gitignore Describe the repo as the Android app, and point at journal-c 2026-10-01 23:45:22 -06:00
CLAUDE.md Describe the repo as the Android app, and point at journal-c 2026-10-01 23:45:22 -06:00
README.md Describe the repo as the Android app, and point at journal-c 2026-10-01 23:45:22 -06:00

Journal — Android app

The native Android client for Journal: handwriting and typing on lined, graph or blank pages, journals with a calendar, notebooks, and Family memories, synced with the Journal server and usable offline.

Everything is in android/: building, tests, installing, signing in, and how releases reach a device through Obtainium.

Where the server went

This repo used to hold the server and web client too, written in Python (FastAPI). Both now live in journal-c (brian/journal-c), a C reimplementation with the same API, schema and web frontend. The app talks to it over HTTP and doesn't care which implementation answers.

The last Python server is the tag python-final. It stays because journal-c's differential test (tests/integration/run.sh) builds the Python server from that tag and diffs every response against the C one. Don't delete or move it.

The web client in journal-c (frontend/) is the reference the app copies: the page format, the paper geometry, the journal-day rule and the sync semantics are ports of app.js, data.js and tz.js there. A change to one of those on either side needs the same change on the other.

Page content model

Pages store vector content (not images), so they stay small and re-render crisply at any zoom. The web client writes the same shape:

{ "width": 1240, "height": 1754,
  "strokes": [ { "color": "#1a1a1a", "size": 2, "points": [[x, y, pressure], ...] } ],
  "texts":   [ { "x": 120, "y": 80, "size": 18, "color": "#1a1a1a", "text": "..." } ],
  "doc": "<p>rich-text HTML for word-processor mode</p>", "wordMode": false }

model/PageContent.kt reads and writes it, matching normalizeContent() in journal-c's frontend/app.js field for field. Fields it doesn't know are ignored on read and not written back, so a field added on the web has to be added here too before the app re-saves those pages.

Releases

.forgejo/workflows/android-release.yml builds a signed APK on every push to main that touches android/ and publishes it as an android-v1.0.<n> release. <n> is the commit count of this repo, which is why the app has to stay in this repo's history: see android/README.md.