Files
2026-10-07 14:07:47 +01:00

2.3 KiB

Hockey Timer

A four-target workspace for a shared hockey game timer:

  • projects/mobile_flutter: Flutter app for iOS and Android.
  • projects/wearos: standalone Wear OS app in Kotlin and Jetpack Compose.
  • projects/apple_watch: SwiftUI watchOS app source. Create its Xcode watchOS target on macOS before building or signing.
  • projects/garmin_connectiq: Garmin Connect IQ Monkey C app source and manifest.

Each app currently starts with a 20:00 period timer and basic controls. The implementations are independent starters; shared game state, synchronization, scoring, and period rules are not yet defined.

Requirements

  • Flutter stable with the iOS/Android toolchains for mobile_flutter.
  • Android Studio or Android SDK, JDK 17+, and Gradle (or Android Studio's Gradle integration) for wearos.
  • macOS with Xcode and watchOS SDK for apple_watch. This workspace was initialized on Linux, so an Xcode project, signing, simulator run, and device build must be created on macOS.
  • Garmin Connect IQ SDK, Monkey C extension/toolchain, and a supported simulator/device for garmin_connectiq.

The current Linux environment does not have Flutter, Dart, Gradle, or Xcode installed. The source/config starters are present, but platform compilation has not been run.

Build and run

From the repository root:

cd projects/mobile_flutter
flutter create --platforms=android,ios --project-name hockey_timer_mobile .
flutter pub get
flutter run

The flutter create step generates the platform runner folders omitted from this Linux starter. iOS builds still require macOS and Xcode.

Open projects/wearos in Android Studio, sync Gradle, and run the app configuration on a Wear OS emulator or device. Or use ./gradlew :app:installDebug after adding a Gradle wrapper and Android SDK.

On macOS, create a new watchOS App target in Xcode named HockeyTimerWatch, replace its generated app entry/view with the Swift files in projects/apple_watch/Sources/HockeyTimerWatch, then select a watch simulator and run. Xcode owns watchOS app packaging and signing.

For Garmin, open projects/garmin_connectiq in VS Code with the Garmin Connect IQ Monkey C extension and SDK configured; build/run the HockeyTimer app against a compatible simulator or device.

Workspace layout

projects/
  mobile_flutter/
  wearos/
  apple_watch/
  garmin_connectiq/