HydroFlow - Kotlin Compose Water Reminder App
Kotlin and Compose water reminder for Android: Room, WorkManager, widgets
Item Description
Overview
HydroFlow is a complete, offline-first water reminder app for Android, written in 100% Kotlin with Jetpack Compose and Material 3. It is a real, buildable Android Studio project, not a sketch: it compiles with a stock Gradle wrapper and ships with unit tests.
The app ships fully free. Every feature is unlocked, there is no paywall, and Google Play Billing does not connect until you turn it on. Optional subscriptions and a lifetime in-app purchase are already built in: set one flag (ENABLE_PRO) to true, create three products in Play Console, and the paywall and entitlements appear.
The app helps users reach a daily water goal. It calculates a goal from weight, age, activity and climate, reminds them only while they are awake, lets them log a glass in one tap (from the app, a notification action or a home screen widget), and shows history, statistics and achievements. Everything is stored on the device. There is no account, no backend and no analytics SDK.
It is built to be rebranded and published. The app name, package, colors, icon, Play product ids, privacy policy address and feature switches are all in one configuration file plus a short, documented list of Gradle and resource edits.
The layout is adaptive. Phones get a bottom navigation bar, foldable inner screens get a navigation rail, and tablets or any window 840 dp wide or more get a two-pane home screen. Light and dark themes and seven accent themes are included.
Requirements
- Android Studio (current stable) with Android SDK platform 36 and JDK 17
- Kotlin 2.1, Android Gradle Plugin 8.9, Gradle 8.11 (wrapper included)
- minSdk 24 (Android 7.0), compileSdk and targetSdk 36 (Android 16)
- A Google Play Console account to publish; a merchant profile and three products only if you enable Pro
- An internet connection for the first Gradle sync
Instructions
- Unzip the package and open the HydroFlow folder in Android Studio. Let Gradle sync (Android Studio creates local.properties for you).
- Run the app on a device or emulator, or build from a terminal: ./gradlew assembleDebug (gradlew.bat on Windows). The shipped flag ENABLE_PRO = false means every feature is already unlocked.
- Run the tests with ./gradlew :app:testDebugUnitTest.
- Rebrand: in app/build.gradle.kts change namespace and applicationId, then rename the Kotlin package (Android Studio: Refactor > Rename on the package) and update the package path of the files under src/debug and src/release. Change app_name in strings.xml (and the six translated files), replace the launcher icon, and edit AppConfig.kt (display name, support email, privacy policy URL, default goal and reminder window). docs/Documentation.html has a Splash screen section (the app uses the default Android 12+ system splash; how to change the colour and icon, or add the SplashScreen compat library) and an Image and asset locations section with every icon, drawable, widget layout and documentation-screenshot path.
- Optional monetization: set ENABLE_PRO to true in AppConfig.kt, create three products in Play Console (monthly and yearly subscriptions, one lifetime one-time product), and paste their ids into PRODUCT_MONTHLY, PRODUCT_YEARLY and PRODUCT_LIFETIME. Leave an id empty to hide that plan. Leave ENABLE_PRO false to keep the app fully free (Billing will not connect).
- Publish: add your own signing configuration (keep the keystore outside the project), run ./gradlew bundleRelease and upload the AAB. The documentation lists the Health Connect and exact-alarm declarations Play will ask for.
Features
Features
- Onboarding that estimates the daily goal from weight, age, sex, activity and climate (formula documented and unit tested)
- Home screen with an animated hydration ring, one-tap quick-add buttons, a custom amount field, an undo and an edit/delete list for today
- Eight built-in drinks with hydration coefficients (water, sparkling water, tea, herbal tea, coffee, juice, milk, soda) and custom drinks
- Reminders between wake-up and bedtime with a smart skip after a recent drink, stop-at-goal, quiet days, a snooze action and a +amount action in the notification
- Exact alarms when allowed, with an automatic WorkManager fallback; reminders are rescheduled after reboot, time or timezone change and app update
- Notification channels that follow the chosen sound and vibration, plus a custom notification sound picker
- History calendar with a colored heat map, week/month/year statistics, daily average, streaks, best day and completion rate
- 19 achievements (streaks, volume, variety, early bird, perfect week and more)
- Two Glance home screen widgets: a 2x2 progress ring and a 4x2 widget with three quick-add buttons
- Optional Health Connect: write hydration records, read the latest weight
- CSV export, JSON backup and restore through the system file picker, and an erase-all-data action
- Ships fully free: every feature is unlocked and the paywall is hidden
- Optional built-in Play Billing (Library 8) you can enable with one flag: monthly and yearly subscriptions plus a lifetime one-time product, restore purchases, acknowledgement, and entitlement that clears when a subscription ends or is refunded
- Seven languages: English, Romanian, Spanish, German, French, Portuguese and Italian, with an in-app language picker (per-app locales)
- Light, dark and system theme, Material You dynamic color, and six more accent themes
- Adaptive UI: bottom bar on phones, navigation rail on foldables, two-pane home on tablets and wide windows; edge-to-edge with correct insets
- Battery help screen with vendor specific steps for Xiaomi, Samsung and Huawei
- Clean architecture: Hilt dependency injection, Room database with exported schema, DataStore preferences, Kotlin coroutines and Flow, ViewModels, Navigation Compose, R8 shrinking rules
- 22 JVM unit tests covering the goal calculator, streaks, reminder planning, achievements, backup round trip, entitlement logic and the quick-add button layout
- HTML documentation, a sample privacy policy and a README. No ad SDK is included, so you decide how to monetize.
All Reviews
Verified source code
Free support included
Download code immediately
Quality guarantee for your satisfaction
Support: info@sellanycode.com
All Questions
- Verified source code
- Join 36129+ buyers which trust us!
- Download code immediately
Satisfaction guarantee policy.
Information
| Category | App Templates / Android |
| First Release | 3 December 2026 |
| Platforms | Android 7.0, Android 8.0, Android 9.0, Android 10.0 |
| Files included | .html, .xml |
| File Size | 1 MB |
| Frameworks | Android |