FocusLock
FocusLock is a screen-time limiter for Android and Windows. I built the Android app and the Windows app and kept them in sync, so one daily allowance covers both. Over 250 automated tests check it, and every update builds an Android app and a Windows installer automatically.
Overview
A screen-time limiter that shares one daily allowance across an Android phone and a Windows PC.
What I did
An Android app and a Windows app, kept in sync. Over 250 automated tests check it. Every change builds a signed Android install file and a Windows installer by itself.
Problem
- Screen-time limits are easy to dodge.
- Switching browsers or devices resets the allowance.
Decisions
- The limit is enforced by the operating system, with one daily allowance shared across devices.
- I replaced a server I ran myself with Google's Firestore database and a small Windows program.
- Access rules keep each shared group private, with up to 10 members.
Result
- One allowance now covers an Android phone and a Windows PC.
- The app once marked a browser tab as closed while it stayed open. I fixed how it closes tabs.
- Over 250 automated tests check it. Every update is built into an Android app and a Windows installer automatically.
Built with
- Kotlin
- Android
- Electron
- Firebase
- Firestore