diff --git a/.githooks/pre-commit b/.githooks/pre-commit index 4764ee2..524e0b8 100644 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -11,7 +11,7 @@ if command -v prettier >/dev/null 2>&1; then FMT="prettier" elif command -v npx >/dev/null 2>&1; then FMT="npx --yes prettier" -elif [ -x "$HOME/.local/node/npx.cmd" ]; then +elif [ -f "$HOME/.local/node/npx.cmd" ]; then # -f: sh doesn't see .cmd as executable # portable node: npx needs its sibling node.exe on PATH PATH="$HOME/.local/node:$PATH" export PATH diff --git a/PRD.md b/PRD.md index 8bb602d..a66fd66 100644 --- a/PRD.md +++ b/PRD.md @@ -77,6 +77,8 @@ FIVE mode is deliberately **silent at 3:00 and 2:00** — no real signal exists and phantom buzzes could be mistaken for signals. Cues are edge-triggered on the displayed second so a sync can never double-fire or skip them. Two-stage final count (not a gradual ramp) because discrete stage changes are countable on the wrist; amplitude ramps are not. +The gun haptic is **timeliness-guarded**: it fires only within ~2 s of the real deadline — +a frozen/cached process waking minutes late transitions to count-up silently. ## 6. Screen policy @@ -111,7 +113,34 @@ Swipe-accessible from the watch face. Two states, driven by the same persisted r - **Timer in flight**: status line (COUNTDOWN or RACING, green) + single "Open" chip. The app requests a tile refresh on every phase transition. -## 9. Visual language +## 9. Complication + +One-tap starts from the watch face itself. The complication supplies typed data; the face +renders it (Pixel faces: weather-style ring + dot, center text, small icon at the bottom). +Arms **the last mode used anywhere** (app toggle, tile, or complication start) — no +per-instance configuration; the armed label shows which sequence a tap starts. + +| State | Ring (min 0, max duration) | Center text | Tap | +| --------- | ---------------------------------------------------------- | ------------------ | ------------------------- | +| Armed | full | "5m" / "3m" | open app **auto-started** | +| Countdown | dot sweeps (platform-evaluated, ~1 Hz) | ticking count-down | open app | +| Count-up | dot sweeps race progress vs a nominal 60 min, parks at max | ticking count-up | open app | + +- Sailboat monochromatic icon in all states (the face may hide it in tight slots). +- **Zero-push design**: countdown text ticks via time-difference text; the dot sweeps via a + dynamic value; a data timeline flips countdown → count-up at the gun — all rendered by the + platform even if the app process is dead. Pushes happen only on phase transitions + (start / sync / gun / reset), same hook as the tile. +- Tap-to-start opens the app running (not a silent background start): the ticker, haptics, + wake lock, and screen policy live in the app process — a mute start would skip every cue. + Repeated deliveries can't restart a sequence (start() no-ops unless Idle). +- Types: RANGED_VALUE (preferred) + SHORT_TEXT fallback (same text/icon/tap, no ring). +- 12 h validity mirrors persistence (§7). +- Face-ambient caveat: in always-on mode the FACE updates complications at minute cadence + (platform AOD policy — same as weather), so tick/sweep coarsen until wake; values are + absolute, so everything is exact the instant the wrist wakes. Not a bug. + +## 10. Visual language - Black background always (OLED, sunlight). - Digits: white (idle/countdown) → **amber** final 10 s → **green** count-up. @@ -121,7 +150,7 @@ Swipe-accessible from the watch face. Two states, driven by the same persisted r - Icon: gold burgee (flying right) + green Bootstrap stopwatch, colors from the johnhringiv.com burgee favicon; all pennant vertices r=30 from icon center (circular-mask safe). -## 10. Explicitly out of scope (decided against) +## 11. Explicitly out of scope (decided against) - Audio signals (inaudible on the water; haptics only) - Crown/rotary input (accidental-activation risk — see §4) @@ -129,7 +158,7 @@ Swipe-accessible from the watch face. Two states, driven by the same persisted r - Live ticking time on the tile (refresh-budget rabbit hole) - Continuous haptic amplitude ramps (indistinguishable on the wrist) -## 11. Versioning & release +## 12. Versioning & release - `versionCode`: bumped on every feature-branch change (CI-enforced > main). - `versionName`: bumped once per PR to main (CI-enforced ≠ main). Squash-merge only; @@ -138,9 +167,8 @@ Swipe-accessible from the watch face. Two states, driven by the same persisted r - Distribution: GitHub releases (sideload) now; Google Play closed test → production later (see `playstore/listing.md`). -## 12. Roadmap (open issues) +## 13. Roadmap (open issues) -- [#2](https://github.com/johnhringiv/regatta-timer/issues/2) Watch-face complication - [#4](https://github.com/johnhringiv/regatta-timer/issues/4) Custom sequence lengths - [#5](https://github.com/johnhringiv/regatta-timer/issues/5) Race log (start timestamps) - [#6](https://github.com/johnhringiv/regatta-timer/issues/6) Ongoing Activity chip during count-up diff --git a/README.md b/README.md index 53f4965..b4ad61e 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,8 @@ A sailing race start timer for Wear OS (built for and tested on the Pixel Watch 3). Fully standalone — no phone, no companion app, no account, no network. Built because nothing on the market handled a real start line: the screen must never leave the timer mid-sequence, and a missed start press must be correctable at the next gun.

- The final seconds: amber countdown, the gun, automatic green count-up + The final seconds: amber countdown, the gun, automatic green count-up + The complication: dot sweeping the ring as the countdown ticks

## Features @@ -23,8 +24,10 @@ A sailing race start timer for Wear OS (built for and tested on the Pixel Watch - **Screen never leaves the app** while armed or counting down; count-up dims to an always-on ambient display - **Wet-proof**: countdown, display, and haptics keep running even when water forces the watch into ambient mode; huge half-screen touch targets; long-press-guarded reset so splashes can't kill your sequence - **Quick-launch tile**: swipe from the watch face, tap 5 min or 3 min, and the timer opens pre-armed +- **Watch-face complication**: weather-style ring where the dot is time remaining, ticking countdown in the center — one tap starts the last-used sequence right from the face - **Survives interruptions**: an in-flight countdown or race is restored at the correct time even if the app is closed — or the watch reboots - **Battery guard**: an armed timer releases the screen after 10 idle minutes (any tap re-arms it); the countdown itself always holds the screen +- **Free, no ads, no tracking**: GPL open source; no account, no network, [no data collection](https://regatta-timer.johnhringiv.com/privacy.html) — about 2 MB ### The app @@ -40,6 +43,16 @@ Swipe from the watch face. When a timer is in flight the tile says so instead of | ---------------------------------------------- | -------------------------------------------------- | | ![Tile armed](docs/screenshots/tile_armed.png) | ![Tile running](docs/screenshots/tile_running.png) | +### The complication + +Put the timer in a watch-face complication slot: a ring where the dot is time remaining, a ticking countdown in the center, and a sailboat at the bottom (on faces that render ranged values, like the Pixel defaults). Armed, it shows the last-used sequence (`5m`/`3m`); one tap starts it with the app opening mid-count. + +| Armed on the face | Counting down | +| -------------------------------------------------------------- | ---------------------------------------------------------------------- | +| ![Complication armed](docs/screenshots/complication_armed.png) | ![Complication countdown](docs/screenshots/complication_countdown.png) | + +**Worth knowing**: in always-on (ambient) display, watch faces refresh complications about once a minute, so the countdown on the _face_ can read up to a minute stale until you turn your wrist — identical to the built-in stopwatch/timer complications. Inside the app, the countdown stays live to the second even in ambient. + ## Install (sideload) Grab the APK from [Releases](https://github.com/johnhringiv/regatta-timer/releases), then: diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 98bc3e8..4ab3010 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -21,8 +21,8 @@ android { targetSdk = 36 // versionCode bumps on every feature-branch change (CI-enforced > main). // versionName bumps once per PR to main (CI-enforced). - versionCode = 14 - versionName = "0.6" + versionCode = 19 + versionName = "0.7" } signingConfigs { @@ -70,6 +70,8 @@ dependencies { implementation(libs.lifecycle.viewmodel.compose) implementation(libs.wear.tiles) implementation(libs.wear.protolayout.material) + implementation(libs.wear.protolayout.expression) + implementation(libs.wear.watchface.complications) implementation(libs.guava) testImplementation(libs.junit) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 5b6d3a3..8c5f825 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -31,6 +31,24 @@ + + + + + + + + + count-up at the gun — all without this process running. + */ +class RegattaComplicationService : SuspendingTimelineComplicationDataSourceService() { + + override suspend fun onComplicationRequest(request: ComplicationRequest): ComplicationDataTimeline? { + val type = request.complicationType + if (type != ComplicationType.RANGED_VALUE && type != ComplicationType.SHORT_TEXT) return null + + val store = RaceStore(this) + val race = store.activeRace() + // Armed complications follow the last mode used anywhere (app, tile, complication). + val armed = armedData(type, store.lastMode(), request.complicationInstanceId) + + return when { + race == null -> ComplicationDataTimeline(armed, emptyList()) + + race.phase == "COUNTDOWN" -> { + val mode = race.mode + // Whole-second instant so the ticking text and the dot's dynamic value + // flip together on epoch-second boundaries (offset flips look jarring). + val deadline = wholeSecond(race.wallMs) + val expiry = Instant.ofEpochMilli(race.savedAtMs + RaceStore.MAX_AGE_MS) + ComplicationDataTimeline( + armed, + listOf( + TimelineEntry( + TimeInterval(Instant.ofEpochMilli(race.savedAtMs), deadline), + countdownData(type, mode, deadline), + ), + TimelineEntry( + TimeInterval(deadline, expiry), + countUpData(type, mode, deadline), + ), + ), + ) + } + + else -> { // COUNTUP + val gun = wholeSecond(race.wallMs) + val expiry = Instant.ofEpochMilli(race.savedAtMs + RaceStore.MAX_AGE_MS) + ComplicationDataTimeline( + armed, + listOf( + TimelineEntry( + TimeInterval(Instant.ofEpochMilli(race.savedAtMs), expiry), + countUpData(type, race.mode, gun), + ), + ), + ) + } + } + } + + override fun getPreviewData(type: ComplicationType): ComplicationData? = when (type) { + ComplicationType.RANGED_VALUE -> + RangedValueComplicationData.Builder( + value = 150f, min = 0f, max = 300f, + contentDescription = plain("Regatta Timer, 2:30 remaining"), + ) + .setValueType(RangedValueComplicationData.TYPE_RATING) // weather-style dot, not a drain arc + .setText(plain("2:30")) + .setMonochromaticImage(boat()) + .build() + + ComplicationType.SHORT_TEXT -> + ShortTextComplicationData.Builder(plain("2:30"), plain("Regatta Timer")) + .setMonochromaticImage(boat()) + .build() + + else -> null + } + + // ---- State builders ------------------------------------------------------ + + private fun armedData(type: ComplicationType, mode: Mode, instanceId: Int): ComplicationData { + val text = plain("${mode.durationSeconds / 60}m") // which sequence a tap starts + val desc = plain("Regatta Timer armed, tap to start ${mode.durationSeconds / 60} minute sequence") + val tap = startTap(mode, instanceId) + return when (type) { + ComplicationType.RANGED_VALUE -> + RangedValueComplicationData.Builder( + value = mode.durationSeconds.toFloat(), + min = 0f, + max = mode.durationSeconds.toFloat(), + contentDescription = desc, + ) + .setValueType(RangedValueComplicationData.TYPE_RATING) // weather-style dot, not a drain arc + .setText(text) + .setMonochromaticImage(boat()) + .setTapAction(tap) + .build() + + else -> + ShortTextComplicationData.Builder(text, desc) + .setMonochromaticImage(boat()) + .setTapAction(tap) + .build() + } + } + + private fun countdownData(type: ComplicationType, mode: Mode, deadline: Instant): ComplicationData { + val ticking = TimeDifferenceComplicationText.Builder( + TimeDifferenceStyle.STOPWATCH, + CountDownTimeReference(deadline), + ).build() + val desc = plain("Regatta Timer counting down") + return when (type) { + ComplicationType.RANGED_VALUE -> { + // Seconds until the gun, evaluated ~1 Hz by the platform (no pushes), + // clamped at 0 so the dot parks rather than going negative. + val raw = DynamicInstant.platformTimeWithSecondsPrecision() + .durationUntil(DynamicInstant.withSecondsPrecision(deadline)) + .toIntSeconds() + .asFloat() + val remaining = DynamicFloat.onCondition(raw.lt(0f)) + .use(DynamicFloat.constant(0f)) + .elseUse(raw) + RangedValueComplicationData.Builder( + dynamicValue = remaining, + fallbackValue = mode.durationSeconds.toFloat(), + min = 0f, + max = mode.durationSeconds.toFloat(), + contentDescription = desc, + ) + .setValueType(RangedValueComplicationData.TYPE_RATING) // weather-style dot, not a drain arc + .setText(ticking) + .setMonochromaticImage(boat()) + .setTapAction(openTap()) + .build() + } + + else -> + ShortTextComplicationData.Builder(ticking, desc) + .setMonochromaticImage(boat()) + .setTapAction(openTap()) + .build() + } + } + + private fun countUpData(type: ComplicationType, mode: Mode, gun: Instant): ComplicationData { + val ticking = TimeDifferenceComplicationText.Builder( + TimeDifferenceStyle.STOPWATCH, + CountUpTimeReference(gun), + ).build() + val desc = plain("Regatta Timer race in progress") + return when (type) { + ComplicationType.RANGED_VALUE -> { + // Dot sweeps progress through a nominal race hour, parking at max for + // marathon races — the ticking text stays the exact source of truth. + val maxSeconds = EXPECTED_RACE_SECONDS.toFloat() + val elapsed = DynamicInstant.withSecondsPrecision(gun) + .durationUntil(DynamicInstant.platformTimeWithSecondsPrecision()) + .toIntSeconds() + .asFloat() + val progress = DynamicFloat.onCondition(elapsed.gt(maxSeconds)) + .use(DynamicFloat.constant(maxSeconds)) + .elseUse(elapsed) + RangedValueComplicationData.Builder( + dynamicValue = progress, + fallbackValue = 0f, + min = 0f, + max = maxSeconds, + contentDescription = desc, + ) + .setValueType(RangedValueComplicationData.TYPE_RATING) // weather-style dot, not a drain arc + .setText(ticking) + .setMonochromaticImage(boat()) + .setTapAction(openTap()) + .build() + } + + else -> + ShortTextComplicationData.Builder(ticking, desc) + .setMonochromaticImage(boat()) + .setTapAction(openTap()) + .build() + } + } + + // ---- Helpers ------------------------------------------------------------- + + private fun plain(s: String) = PlainComplicationText.Builder(s).build() + + /** Round to the nearest whole second (epoch) — keeps text and dot flips in phase. */ + private fun wholeSecond(wallMs: Long): Instant = + Instant.ofEpochMilli(((wallMs + 500) / 1000) * 1000) + + private fun boat() = MonochromaticImage.Builder( + Icon.createWithResource(this, R.drawable.ic_complication_sailboat) + ).build() + + /** + * Mode rides in the data URI: PendingIntent dedup ignores extras, so two + * complications configured FIVE vs THREE would otherwise collide. + */ + private fun startTap(mode: Mode, instanceId: Int): PendingIntent = + PendingIntent.getActivity( + this, + instanceId, + Intent(this, MainActivity::class.java).apply { + data = Uri.parse("regattatimer://autostart/${mode.name}") + putExtra(EXTRA_MODE, mode.name) + putExtra(EXTRA_AUTO_START, true) + addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) + }, + PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE, + ) + + private fun openTap(): PendingIntent = + PendingIntent.getActivity( + this, + 0, + Intent(this, MainActivity::class.java).apply { + addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) + }, + PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE, + ) + + companion object { + /** Nominal race length the count-up dot sweeps against (clamps at max beyond). */ + const val EXPECTED_RACE_SECONDS = 60 * 60L + + fun component(context: Context) = + ComponentName(context, RegattaComplicationService::class.java) + } +} diff --git a/app/src/main/java/com/johnhringiv/regattatimer/TimerViewModel.kt b/app/src/main/java/com/johnhringiv/regattatimer/TimerViewModel.kt index e081e39..c2d10b0 100644 --- a/app/src/main/java/com/johnhringiv/regattatimer/TimerViewModel.kt +++ b/app/src/main/java/com/johnhringiv/regattatimer/TimerViewModel.kt @@ -77,10 +77,15 @@ class TimerViewModel(app: Application) : AndroidViewModel(app) { // ---- Persistence --------------------------------------------------------- - /** Refresh the tile so it reflects running/armed state promptly. */ - private fun updateTile() = - androidx.wear.tiles.TileService.getUpdater(getApplication()) + /** Refresh the tile and complication so every surface reflects the phase promptly. */ + private fun updateSurfaces() { + val app = getApplication() + androidx.wear.tiles.TileService.getUpdater(app) .requestUpdate(RegattaTileService::class.java) + androidx.wear.watchface.complications.datasource.ComplicationDataSourceUpdateRequester + .create(app, RegattaComplicationService.component(app)) + .requestUpdateAll() + } /** Restore an in-flight race after process death or reboot (silent — no gun haptic). */ private fun restorePersistedRace() { @@ -108,17 +113,21 @@ class TimerViewModel(app: Application) : AndroidViewModel(app) { startTicker() } } - updateTile() // phase may have advanced (gun fired while dead) + updateSurfaces() // phase may have advanced (gun fired while dead) } // ---- User actions ------------------------------------------------------- - /** Arm a specific mode from the tile; never disturbs a running sequence. */ + /** Arm a specific mode from the tile/complication; never disturbs a running sequence. */ fun armMode(mode: Mode) { val st = _state.value - if (st is TimerState.Idle && st.mode != mode) { - _state.value = TimerState.Idle(mode) - _displaySeconds.value = mode.durationSeconds + if (st is TimerState.Idle) { + if (st.mode != mode) { + _state.value = TimerState.Idle(mode) + _displaySeconds.value = mode.durationSeconds + } + raceStore.setLastMode(mode) + updateSurfaces() // armed complication label tracks last-used mode } noteInteraction() } @@ -130,6 +139,8 @@ class TimerViewModel(app: Application) : AndroidViewModel(app) { _state.value = TimerState.Idle(next) _displaySeconds.value = next.durationSeconds haptics.click() + raceStore.setLastMode(next) + updateSurfaces() // armed complication label tracks last-used mode noteInteraction() } } @@ -143,8 +154,9 @@ class TimerViewModel(app: Application) : AndroidViewModel(app) { idleGuard?.cancel() _screenHold.value = true holdWakeLock(st.mode.durationMs) + raceStore.setLastMode(st.mode) raceStore.saveCountdown(st.mode, System.currentTimeMillis() + st.mode.durationMs) - updateTile() + updateSurfaces() startTicker() } } @@ -164,6 +176,7 @@ class TimerViewModel(app: Application) : AndroidViewModel(app) { haptics.click() holdWakeLock(newRemaining) raceStore.saveCountdown(st.mode, System.currentTimeMillis() + newRemaining) + updateSurfaces() // the deadline moved; tile + complication must track it } startTicker() } @@ -178,7 +191,7 @@ class TimerViewModel(app: Application) : AndroidViewModel(app) { releaseWakeLock() ticker?.cancel() raceStore.clear() - updateTile() + updateSurfaces() noteInteraction() } } @@ -199,15 +212,15 @@ class TimerViewModel(app: Application) : AndroidViewModel(app) { // ---- Ticker ------------------------------------------------------------- - private fun fireGun(countUp: TimerState.CountUp) { + private fun fireGun(countUp: TimerState.CountUp, silent: Boolean = false) { _state.value = countUp _displaySeconds.value = 0 - haptics.gun() + if (!silent) haptics.gun() releaseWakeLock() // Derive the gun's wall-clock time from the elapsedRealtime anchor. val gunWall = System.currentTimeMillis() - (SystemClock.elapsedRealtime() - countUp.zero) raceStore.saveCountUp(countUp.mode, gunWall) - updateTile() + updateSurfaces() } private fun startTicker() { @@ -224,7 +237,12 @@ class TimerViewModel(app: Application) : AndroidViewModel(app) { val remaining = st.deadline - now if (remaining <= 0) { // Use the deadline (not "now") as zero so count-up is exact. - fireGun(TimerState.CountUp(st.mode, st.deadline)) + // A frozen/cached process can wake minutes past the deadline; + // a late gun haptic is a lie — only buzz near the real gun. + fireGun( + TimerState.CountUp(st.mode, st.deadline), + silent = -remaining > GUN_LATENESS_MS, + ) lastShown = -1L continue } @@ -252,6 +270,7 @@ class TimerViewModel(app: Application) : AndroidViewModel(app) { private companion object { const val IDLE_SCREEN_HOLD_MS = 10 * 60_000L + const val GUN_LATENESS_MS = 2_000L } // LAST in the class: init runs in declaration order, and restoring a race touches diff --git a/app/src/main/res/drawable/ic_complication_sailboat.xml b/app/src/main/res/drawable/ic_complication_sailboat.xml new file mode 100644 index 0000000..304fd23 --- /dev/null +++ b/app/src/main/res/drawable/ic_complication_sailboat.xml @@ -0,0 +1,20 @@ + + + + + + + + + + diff --git a/docs/demo-complication.gif b/docs/demo-complication.gif new file mode 100644 index 0000000..bb6f9da Binary files /dev/null and b/docs/demo-complication.gif differ diff --git a/docs/demo-complication.mp4 b/docs/demo-complication.mp4 new file mode 100644 index 0000000..2009302 Binary files /dev/null and b/docs/demo-complication.mp4 differ diff --git a/docs/demo.gif b/docs/demo.gif index fdaa49b..f36f604 100644 Binary files a/docs/demo.gif and b/docs/demo.gif differ diff --git a/docs/demo.mp4 b/docs/demo.mp4 index 5e23823..64fff5c 100644 Binary files a/docs/demo.mp4 and b/docs/demo.mp4 differ diff --git a/docs/index.html b/docs/index.html index 588dc75..9712bc6 100644 --- a/docs/index.html +++ b/docs/index.html @@ -28,6 +28,13 @@

Regatta Timer

+
+ + +
+

Why it exists

Generic watch timers fail on a start line: the screen falls back to the watch face mid-sequence, wet fingers can't hit small buttons, and a missed start press can't be corrected. Regatta Timer is built around the three things that matter: the display never leaves the timer, everything works wet, and sync fixes your timing at the next gun.

@@ -42,18 +49,16 @@

Features

  • Haptic signals — double buzz at 4:00, long buzz at 1:00, ticks through the last 10 s, gun blast at 0:00
  • Wet-proof — countdown, display, and buzzes continue even when water forces ambient mode; half-screen touch targets; reset needs a deliberate long-press
  • Quick-launch tile — swipe from the watch face, tap 5 min or 3 min, pre-armed
  • +
  • Watch-face complication — a ring where the dot is time remaining and one tap starts the last-used sequence, straight from the face
  • Survives interruptions — an in-flight countdown or race restores at the correct time even if the app closes or the watch reboots
  • Battery guard — an armed timer releases the screen after 10 idle minutes; any tap re-arms it
  • -
  • Fully standalone — no companion app, no network, ~2 MB
  • +
  • Free, no ads, no tracking — GPL open source; no account, no network, no data collection, ~2 MB
  • +
  • Fully standalone — no phone or companion app required, ever
  • On the wrist

    -

    - -

    Armed at 5:00
    Armed
    Counting down
    Countdown
    @@ -71,6 +76,16 @@

    The tile

    +
    +

    The complication

    +

    Put the timer in a watch-face complication slot: a ring where the dot is time remaining, a ticking countdown in the center, and a sailboat at the bottom (on faces that render ranged values, like the Pixel defaults). Armed, it shows the last-used sequence; one tap starts it.

    +
    +
    Watch face with the complication armed, showing 5M
    Armed on the face
    +
    Watch face with the complication counting down, dot at time remaining
    Counting down
    +
    +

    Worth knowing: in always-on display, watch faces refresh complications about once a minute — the countdown on the face can read up to a minute stale until you turn your wrist, identical to the built-in stopwatch complication. Inside the app the countdown stays live to the second, even in ambient.

    +
    +

    🙋 Beta testers wanted

    Google Play requires 12 testers for 14 days before a new personal developer account can publish. If you own a Wear OS watch and are willing to run the beta for two weeks, open an issue with your Play Store email — sailors especially welcome.

    diff --git a/docs/screenshots/complication_armed.png b/docs/screenshots/complication_armed.png new file mode 100644 index 0000000..f13f231 Binary files /dev/null and b/docs/screenshots/complication_armed.png differ diff --git a/docs/screenshots/complication_countdown.png b/docs/screenshots/complication_countdown.png new file mode 100644 index 0000000..c6f7b0a Binary files /dev/null and b/docs/screenshots/complication_countdown.png differ diff --git a/docs/style.css b/docs/style.css index 20e7f37..a7501ff 100644 --- a/docs/style.css +++ b/docs/style.css @@ -84,9 +84,18 @@ h2 { .demo { text-align: center; } -.demo video { +.demo-row { + display: flex; + justify-content: center; + gap: 1.2rem; + flex-wrap: wrap; + margin-top: 1.6rem; +} + +.demo video, +.demo-row video { width: 220px; - max-width: 60%; + max-width: 42%; border-radius: 50%; border: 3px solid var(--gold); background: #000; diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 48bbd35..0de06de 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -8,6 +8,7 @@ lifecycle = "2.11.0" composeBom = "2026.06.01" tiles = "1.6.1" protolayout = "1.4.1" +watchfaceComplications = "1.3.0" guava = "33.6.0-android" junit = "4.13.2" @@ -21,6 +22,8 @@ activity-compose = { group = "androidx.activity", name = "activity-compose", ver lifecycle-viewmodel-compose = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-compose", version.ref = "lifecycle" } wear-tiles = { group = "androidx.wear.tiles", name = "tiles", version.ref = "tiles" } wear-protolayout-material = { group = "androidx.wear.protolayout", name = "protolayout-material", version.ref = "protolayout" } +wear-protolayout-expression = { group = "androidx.wear.protolayout", name = "protolayout-expression", version.ref = "protolayout" } +wear-watchface-complications = { group = "androidx.wear.watchface", name = "watchface-complications-data-source-ktx", version.ref = "watchfaceComplications" } guava = { group = "com.google.guava", name = "guava", version.ref = "guava" } junit = { group = "junit", name = "junit", version.ref = "junit" } diff --git a/playstore/listing.md b/playstore/listing.md index 9c89115..58ff68d 100644 --- a/playstore/listing.md +++ b/playstore/listing.md @@ -45,6 +45,8 @@ FEATURES through the final ten seconds (heavier from five), gun blast at 0:00 • Quick-launch tile: arm a 5 or 3 minute start straight from the watch face — and it shows when a timer is already running +• Watch-face complication: a ring where the dot is time remaining and a ticking + countdown in the center — one tap starts the last-used sequence • Survives interruptions: an in-flight countdown or race is restored at the correct time even if the app closes or the watch reboots • Battery guard: an armed timer releases the screen after 10 idle minutes