ModernNotes
A small offline-first notes app for Android, written entirely by hand to show I can design and build a modern app end to end without AI writing the code.
Sole developer: design, code and tests.
Real screens from the emulator.
Architecture#
Clean Architecture in a single module, split into data, domain and presentation packages, with MVVM in the UI layer.
data/domain/presentation/- Data
data/ - Remote APIRetrofit · a fake today
- SyncNotesUseCase writes
- Single source of truthRoomrepository · DAO
- Flow
- Domain
domain/ - GetNotesUseCaseDataStore sort order · flatMapLatest
- Flow of notes
- Presentation
presentation/ - NotesListViewModelone StateFlow
- UiState · events go back up
- NotesListScreenCompose UI
Read the code
- The list screen observes one
UiStateand sends events up.NotesListScreen.kt - The ViewModel combines the notes flow with a loading flag into one
StateFlow; the loading state shows only while the list is empty.NotesListViewModel.kt · l. 30–57 - GetNotesUseCase re-runs the Room query whenever the saved sort order changes.GetNotesUseCase.kt · l. 16
- The local repository and DAO answer with a Room
Flow; Room re-emits when data changes.NotesRepositoryImpl.ktNoteDao.kt - SyncNotesUseCase fetches remote notes and writes them into Room; the UI sees them through step 4.SyncNotesUseCase.kt
- Hilt binds the repository the app uses for the remote side (today a fake; see “What went wrong, what is missing”).RepositoryModule.kt · l. 33
Each name opens its file.
How AI was used#
AI was used only as an auditor: after each phase I had the finished code reviewed by an AI model, which returned corrections and explanations, never code.
How a change moves
- DesignMe
design the app
- CodeMe
write every line and the tests
- ReviewAn AI model
audit each finished phase, with no code
- FixMe
apply the corrections by hand
No code-completion assistants were used at any point. This is my declaration, not something git can prove; what the repo does show is the result: the code, the tests and the fixes below.
GameStack is the opposite experiment: AI agents write the code inside a harness I designed.
GameStack case studyKey decisions#
System.currentTimeMillis() inside the use caseTests use a FakeTimeProvider and stay deterministic.One interface, one implementation and one Hilt binding for a single call.SaveNoteUseCase.ktUtilModule.ktSaveNoteUseCase throws a typed InvalidNoteException; the ViewModel maps each case to a string resource, so no user-facing text lives outside the UI layer.The domain has to define its own error types.InvalidNoteException.ktNoteEntityMapper, NoteDtoMapper).NoteEntityMapper.ktNoteDtoMapper.ktTests#
13 unit test classes: all seven use cases, both ViewModels, the local and remote repositories and both mappers, with shared test factories, a main-dispatcher rule and a fake clock.
- The remote repository is tested against a real HTTP layer with MockWebServer, including an HTTP 500 case.RemoteNotesRepositoryImplTest.kt
- One instrumented test runs the DAO against an in-memory database and checks each sort order and the create, read, update and delete queries.NoteDaoTest.kt
What went wrong, what is missing#
- There is no real backend.The remote layer is implemented and tested against MockWebServer, but the app binds a fake that returns two demo notes after a simulated delay, so the loading state can be seen on a device. Swapping in a real API is a one-line change in
RepositoryModule.RepositoryModule.kt - Deleting a note is not in the UI.
DeleteNoteUseCaseandNoteDao.deleteNoteexist and are tested, but no screen calls them. - Found in a later AI audit and fixed.On Oct 16, 2026:
- Added a missing
@BodytoaddNoteandupdateNotein the remote API (8bb8570). - Made the remote repositories rethrow
CancellationException(8b5eb6d; its message only mentions a test rename). - Made loading show only while the list is empty (
01fda92).
- Added a missing
- What I do differently in GameStack.Checks on every pull request (ModernNotes has no CI), decisions written down as ADRs when they are made, and commit rules that a check enforces (in ModernNotes, one commit message hid a fix).
This project is finished and I don't plan to extend it.
Code links point to commit f25f38c (Dec 4, 2026).
The repo README says it was drafted with AI from the code and reviewed by me.
Let's talk.
Looking for Senior Android or Android + AI roles. Available now, for remote work or relocation, based in Mexico City (UTC−6): full overlap with US hours and European afternoons.