Back to Trending
RepositoryKotlinGBUnited Kingdom
FE

ferPrieto/SpaceX-prepare-for-Clean-Architecture-liftoff

Feature-first Clean Architecture Android Project

752stars
85forks
0issues
3views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: mockwebserver

#1 Repository of the month

1
TINIX TRENDING·Topic: retrofit2

#1 Repository of the month

1
TINIX TRENDING·Topic: junit4

#1 Repository of the month

SpaceX Prepare for Clean Architecture Liftoff :rocket:

JetpackCompose Platform License Build Status

A modern Android application demonstrating Feature-First Clean Architecture principles with Kotlin 2.1.0 and Jetpack Compose.

Unlike traditional centralized-module approaches (separate data, domain, presentation layers), this project uses a feature-first modular architecture where each feature is self-contained with its own domain, data, and presentation layers, promoting true modularity and independence.

Built with: Kotlin Coroutines, Kotlin Flow, Hilt, MVVM, Compose Navigation 3, and Multi-Module Architecture.

Modules :bookmark_tabs:

This project follows a feature-first modular architecture where each feature is self-contained:

Feature Modules

  • feature-dashboard - Company information feature with its own domain, data, and presentation layers. Displays SpaceX company details.
  • feature-launches - Rocket launches feature. Includes launch listing, filtering, and details with full domain/data/presentation separation.
  • feature-navigation - Navigation orchestration using custom Navigation 3 implementation. Manages app-wide navigation and bottom navigation UI.

Core/Shared Modules

  • core-network - Network infrastructure module. Provides Retrofit setup, API service definitions, and response models. Used by all feature data layers.
  • shared-ui - Shared UI components and theme. Contains Material Design theme, Lottie animations, common composables, and design system.
  • shared-testing - Test utilities and helpers. Provides coroutine test rules, MockK extensions, and test builders for all modules.

App Module

  • app - Application entry point. Minimal module that wires together feature modules with Hilt and initializes the application.

Each feature module contains:

  • domain/ - Use cases, domain models, and repository interfaces
  • data/ - Repository implementations, data models, and mappers
  • presentation/vm/ - ViewModels, contracts, and presentation logic
  • presentation/ui/ - Composable screens and UI models
  • di/ - Hilt dependency injection modules

Testing :mag:

Unit Testing

There are some highlights:

  • Every layer in the architecture has been tested.
  • MockK has been used for mocking | stubbing.
  • Given | When | Then code presentation order, in order to give a more structured style.
  • Code Coverage (WORK IN PROGRESS).

UI Testing (Compose)

I opted to use three types of approaches:

  • MockWebserver, where real connection scenarios are setup. More information in my MockWebServer Medium Article!
  • Tests in Isolation, where it's possible to mock and set any content, UI state, etc. Which allows to emulate very specific edge cases.
  • Screenshot Testing :camera_flash:

In the two first types of tests I used Robot Pattern to improve cleanliness and ease of readability. More information in my RobotPattern Medium Article!

License :oncoming_police_car:

Copyright 2026 Fernando Prieto Moyano

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Similar Projects

Discover other similar projects and AI models.

RepositoryKotlin
igorwojda/android-showcase

💎 Android application following best practices: Kotlin, Coroutines, JetPack, Clean Architecture, Feature Modules, Tests, MVVM, DI, Static Analysis...

6.8k
Nov 25, 2026
RepositoryKotlin
ahmedeltaher/Agnentic-Voice-AI-SDK

Voice AI SDK is a reusable Android library that gives any app a full voice-driven AI conversation pipeline in minutes. Voice Assistant + Android Voide AI + SDK + MVVM + Kotlin

2.6k
Jun 1, 2026
RepositoryKotlin
PatilShreyas/Foodium

🍲Foodium is a sample food blog Android application 📱 built to demonstrate the use of Modern Android development tools - (Kotlin, Coroutines, Flow, Dagger 2/Hilt, Architecture Components, MVVM, Room, Retrofit, Moshi, Material Components).

2.3k
Mar 20, 2026
RepositoryKotlin
mhss1/MyBrain

All-in-one productivity app and AI assistant with Tasks, Notes, Calendar, Diary and Bookmarks.

2.2k
Oct 3, 2026
RepositoryKotlin
ArisGuimera/SimpleAndroidMVVM

Proyecto de ejemplo con Clean Architecture, MVVM, Retrofit, Corrutinas, Dagger Hilt y mucho más acompañado de tutoriales por escritos y en vídeo.

1.8k
Aug 16, 2024
RepositoryKotlin
zhujiang521/PlayAndroid

🔥🔥🔥 Kotlin + MVVM + LCE版玩安卓,暗黑模式、横竖屏、无网、弱网、无数据、加载失败等等各种情况,协程、Room、Hilt、DataStore、LiveData、Retrofit、屏幕适配、本地缓存、多语言切换、多 lib,你想要的我都有!!!

1.7k
Jan 23, 2026
RepositoryKotlin
igorescodro/alkaa

Kotlin multiplatform app to manage your tasks

1.6k
Nov 19, 2026
RepositoryKotlin
Quyunshuo/AndroidBaseFrameMVVM

基于 Jetpack + Kotlin 的 Android 组件化 MVVM 框架

1.3k
Sep 23, 2023
RepositoryKotlin
mayokunadeniyi/Instant-Weather

An Android weather application implemented using the MVVM pattern, Retrofit2, Dagger Hilt, LiveData, ViewModel, Coroutines, Room, Navigation Components, Data Binding and some other libraries from the Android Jetpack.

761
Jul 11, 2026