Commits
Commits on
main2026-08-23
Use the Hezarfen logo for the icon and the launch screenBurak Boduroğlu · 3424bc6
Use the Hezarfen logo for the icon and the launch screen The launcher tile came from a placeholder drawn off the web favicon. It is now the company logo: the adaptive foreground is drawn at two thirds so the round mask does not clip the wordmark, and the tile's background is the artwork's own night blue instead of white, so the icon reads as one disc. The activity also gets a launch screen with the same logo, through androidx.core-splashscreen, rather than opening on a blank white rectangle while the webview and the origin server come up.
Expose the gesture-bar height to the page as a bridgeBurak Boduroğlu · 003c399
Expose the gesture-bar height to the page as a bridge Pushing the value in with evaluateJavascript only reached the document that happened to be loaded: after a reload the property was gone and the tab bar went back under the gesture pill. A JavascriptInterface is bound to the webview instead, so any document can read it before its first paint.
Turn off the webview's own scrollbarsBurak Boduroğlu · 7dba867
Turn off the webview's own scrollbars The page hides scrollbars in CSS, but those rules cannot reach the ones Android draws over the webview itself, which is what still flashed down the right edge while scrolling.
Hand the gesture bar's height to the pageBurak Boduroğlu · 206f72a
Hand the gesture bar's height to the page Android reports only the display cutout through CSS env(safe-area-inset-*), so the web app can see the camera notch but not the navigation bar, and its bottom tab bar rendered underneath the gesture pill. MainActivity measures the inset and sets it on the document as --android-nav-inset, which the tab bar and the drawers pad by. The height is read from the view rather than through an OnApplyWindowInsetsListener: installing that listener takes over the webview's own inset handling, and the page then loses env(safe-area-inset-top) — the top bar slides back under the clock. Verified on the emulator both ways round.
Track frontend's dev branch for submodule updatesBurak Boduroğlu · 57ff759
Track frontend's dev branch for submodule updates sync-frontend bumps the pin with 'git submodule update --remote', which follows the branch named here; dev is where the frontend's own work lands.
Document the Windows developer-mode requirementBurak Boduroğlu · 9b36071
Document the Windows developer-mode requirement Tauri symlinks the built .so into jniLibs, which Windows refuses without it — the Android build fails after a full Rust compile, so it is worth calling out next to the other prerequisites.
Normalize line endings to LFBurak Boduroğlu · 8ade51a
Normalize line endings to LF The generated Android project ships gradlew and Kotlin sources with LF; without this, every checkout on Windows rewrites them and shows the whole tree as modified.
Package the web app for Android and iOS with Tauri v2Burak Boduroğlu · 78656e4
Package the web app for Android and iOS with Tauri v2 The web app is served same-origin with the backend today: it fetches "/api/..." with same-origin credentials, points <img src> at /api so the session cookie authenticates image requests, opens an EventSource on /api/chatbot, and derives its exam-room and whiteboard WebSocket URLs from window.location.host. A webview loaded from tauri://localhost breaks all of it, so rather than refactor ~40 call sites and move the backend to CORS plus token auth, this reproduces the frontend's server.ts inside the app: a loopback HTTP server serves the bundled SPA and reverse-proxies /api/* — HTTP and WebSocket — to the backend. The frontend is vendored unchanged as a submodule. Two details make the illusion hold: the port is fixed, because the session cookie is scoped to 127.0.0.1:<port> and a moving port would sign the user out on every launch; and Set-Cookie has Domain and Secure stripped, because the backend mints the cookie for its own host over TLS and the webview would otherwise drop it on a plain-HTTP loopback origin.