KotlinJetpack ComposeHealth ConnectRoomCoroutinesClean Architecture

Forge Fitness - Biometric Tracker & Workouts

High-performance fitness tracking Android app featuring real-time sensor processing, Health Connect synchronization, and dynamic dark mode charts.

2024-03-15โ€ข2 min read
Forge Fitness - Biometric Tracker & Workouts

Forge Fitness: Biometric & Workout Analytics

Forge Fitness is an Android application built for athletes and fitness enthusiasts who require granular workout telemetry, real-time heart rate zone tracking, and automated Google Health Connect synchronization.


๐ŸŽฏ Architecture & Engineering Focus

To handle incoming sensor data streams (step counters, accelerometer, and Bluetooth Low Energy heart rate monitors) without depleting battery life or blocking the main thread, the app was built from the ground up with Clean Architecture:

app/
 โ”œโ”€โ”€ data/
 โ”‚    โ”œโ”€โ”€ datasource/ (BleSensorManager, HealthConnectClient, Room)
 โ”‚    โ””โ”€โ”€ repository/ (WorkoutRepositoryImpl, BiometricsRepositoryImpl)
 โ”œโ”€โ”€ domain/
 โ”‚    โ”œโ”€โ”€ model/ (WorkoutSession, HeartRateZone, UserProfile)
 โ”‚    โ””โ”€โ”€ usecase/ (CalculateCaloricBurnUseCase, SyncHealthDataUseCase)
 โ””โ”€โ”€ presentation/
      โ”œโ”€โ”€ dashboard/ (DashboardViewModel, DashboardScreen)
      โ”œโ”€โ”€ liveworkout/ (LiveWorkoutService, LiveWorkoutScreen)
      โ””โ”€โ”€ designsystem/ (ForgeTheme, BiometricGauges, PulseLineChart)

๐Ÿ’ก Key Engineering Accomplishments

  1. Android Health Connect Integration: Read and wrote biometric records across Samsung Health, Google Fit, and Garmin seamlessly with user privacy consent handling.
  2. Foreground Service with Notification Telemetry: Maintained a sticky foreground service during active sessions with real-time notification actions (Pause, Resume, Finish) and MediaStyle formatting.
  3. Custom Canvas Charting in Jetpack Compose: Developed hardware-accelerated bezier curve graphs that smoothly animate 10,000+ heart rate data points using drawWithCache and Canvas path clipping.
  4. Resilient Background Syncing: Utilized WorkManager with exponential backoff and network constraints to upload telemetry batch payloads to backend servers.

๐Ÿ”ฌ Unit & UI Testing Strategy

  • Domain UseCases: 100% test coverage using MockK and JUnit 5.
  • Flow & Coroutines Testing: Used Turbine for testing cold flows, debounce triggers, and state transitions in ViewModel.
  • Screenshot Regression: Automated Compose screenshot tests with Paparazzi on CI pull requests.
Available for New Projects & Roles

Let's Build Something Extraordinary

Whether you need to architect a new Android app from scratch, migrate your codebase to Jetpack Compose, or optimize performance for millions of users, I'd love to connect.

Jakarta, Indonesia (Open to Remote)
Direct Email Address
anzel.engineer@gmail.com
Send Email