README.md

Altitude for Android #

A standalone native Android client built with Kotlin and Jetpack Compose. It connects directly to the Go backend; it has no Tauri, React, WebView, Rust, or Node dependency.

Run #

From this mobile/android directory, connect your USB-debugging-enabled phone and run:

./android-usb

This starts the local backend, builds the app, forwards the API port, installs it on the USB device, and opens Altitude. Docker must be running; JDK 17 and the Android SDK must be installed. The command locates ADB from your PATH or ANDROID_HOME (default: ~/Library/Android/sdk). It targets the USB phone even when an emulator is running. It opens scrcpy mirroring at the end; install it with brew install scrcpy if needed. Close the mirroring window to finish the command.

Open this android directory in Android Studio. Use JDK 17, install Android SDK 35, sync Gradle, and run app on an emulator or device (Android 8.0/API 26 or later).

Start the backend from the repository root with docker compose up --build. Debug builds default to http://10.0.2.2:8080/api, which reaches the host machine from the Android emulator. Local HTTP requires the backend's development cookie setting (COOKIE_SECURE=0, already configured in Compose).

From this directory:

./gradlew :app:assembleDebug

The APK is generated at app/build/outputs/apk/debug/app-debug.apk.

For a physical device connected by USB, forward port 8080 and override the API URL:

adb reverse tcp:8080 tcp:8080
./gradlew :app:assembleDebug -PALTITUDE_API_URL=http://127.0.0.1:8080/api

For a hosted server:

./gradlew :app:assembleRelease -PALTITUDE_API_URL=https://tasks.example.com/api

On first launch, enter the Server URL and tap Connect. The app checks the API and saves the address on this device. Change it from sign-in or Settings; connecting clears the previous session. HTTP is supported for private LAN and Tailscale servers, including release builds. Use HTTPS for public servers. The build-time URL supplies the initial field value.

Release builds require your own signing configuration before distribution. Do not commit signing keys or local.properties.

Alpha APK for device testing #

Run with JDK 17 and the Android SDK configured:

./build-alpha

Install app/build/outputs/apk/alpha/app-alpha.apk on your phone. This is a signed, non-debuggable build based on the release configuration. It appears as Altitude Alpha and installs alongside Altitude with its own local settings. It uses the same backend and can change real server data.

The script creates a dedicated alpha signing key and password in .local/alpha-signing/ on first use. These files are ignored by Git. Back up this directory privately and keep using the same key to install alpha updates without uninstalling. This key is separate from the eventual production signing key.

Choose your server on first launch; no USB forwarding or computer connection is needed when the phone can reach that server. For a Tailscale address, connect Tailscale on the phone.

For later alpha versions, increase the version code:

./build-alpha -PALTITUDE_VERSION_NAME=0.1.1 -PALTITUDE_VERSION_CODE=2

Included #

  • Sign in and account registration against the existing API.
  • Desktop-inspired white surfaces, gray navigation drawer, compact task rows, and list color accents.
  • Workspace selection and creation, list selection and creation, with favorites grouped in the drawer.
  • Task search and status filtering within the selected list, with tasks displayed together in list order.
  • Full-screen task creation and editing: title, description, list, status, priority, and due date; unsaved-change confirmation and date validation.
  • Complete and reopen tasks, refresh data, and sign out.
  • In-memory access tokens and automatic refresh on expired access tokens. Refresh cookies are encrypted with Android Keystore and excluded from backups, allowing sessions to resume after process termination. Sign-out and server changes clear the saved session. Expired or revoked sessions require signing in again.
  • Loading and API error feedback. Failed saves keep the editor open.

This is an initial native client, not full web feature parity. List customization, deletion, board views, ordering, offline support, persistent sign-in, and notifications are not implemented. Task descriptions are edited as raw text; existing rich text/Markdown from other clients is not rendered. Changes reload from the server after saving; there is no background synchronization.