Mobile — Android

Project Shape

Five Gradle modules, wired the same way on every run: :app, :core-ui, :core-network, :core-utils, and :auth.

Project Shape

Five Gradle modules, one fixed shape

This is a Gradle multi-module project, not just a package convention. This kit doesn't ask how many pieces to split into — :core-ui, :core-network, :core-utils and :auth exist alongside :app from the first run, every time. New features you generate later stay inside :app; splitting one into its own module is a deliberate, manual call for later, not something the tooling assumes on day one.

Project
├── :app          — features/ live here, depends on all four below
├── :core-ui      — theme + shared widgets
├── :core-network — Hilt-provided Retrofit/OkHttp (exposed as `api`), NetworkConfig.BASE_URL
├── :core-utils   — empty by design — cross-feature helpers
└── :auth         — empty by design — Compose + Hilt wired, no login UI yet (no backend to build it against)
ModuleContains
:appEntry points (App.kt, MainActivity.kt) and every feature new_feature.sh generates. Depends on all four modules below.
:core-uiTheme (ui/theme/) and shared widgets (shared_widgets/). Every screen depends on this.
:core-networkThe Hilt-provided OkHttpClient/Retrofit instance and NetworkConfig.BASE_URL. Exposes Retrofit/OkHttp as api, so a feature gets those types without redeclaring them.
:core-utilsEmpty by design — a home for cross-feature helpers (formatting, validation) that don't belong to any one feature.
:authEmpty by design — Compose + Hilt already configured, depends on the three modules above. No login/signup UI exists yet: there's no backend or session model to build it against.
Check your understanding
1. Why does :core-network expose Retrofit and OkHttp as `api` rather than `implementation`?
Correct.Not quite. This was verified by generating a feature against a fresh multi-module bootstrap and watching it fail to compile until that one word changed.