Spacex Prepare For Clean Architecture Liftoff

Clean Architecture Modular Project: MVVM + Jetpack Compose + Coroutines + Flows + Dagger2 + LiveData + UnitTests + UITests + Screenshot Tests + MockWebServer
Alternatives To Spacex Prepare For Clean Architecture Liftoff
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
2 days ago17apache-2.0Kotlin
🗡️ Pokedex demonstrates modern Android development with Hilt, Material Motion, Coroutines, Flow, Jetpack (Room, ViewModel) based on MVVM architecture.
Awesome Android Kotlin Apps2,240
3 months ago8Kotlin
👓 A curated list of awesome android kotlin apps by open-source contributors.
2 years ago1mitKotlin
🍲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).
Mvvm Kotlin Android Architecture2,193
a year ago6apache-2.0Kotlin
MVVM + Kotlin + Retrofit2 + Hilt + Coroutines + Kotlin Flow + mockK + Espresso + Junit5
5 months ago3apache-2.0Kotlin
🔥基于 Kotlin 语言仿写「开眼 Eyepetizer」的一个短视频 Android 客户端项目,采用 Jetpack + 协程实现的 MVVM 架构。
3 months ago16mitKotlin
🔥🔥🔥 Kotlin + MVVM + LCE版玩安卓,暗黑模式、横竖屏、无网、弱网、无数据、加载失败等等各种情况,协程、Room、Hilt、DataStore、LiveData、Retrofit、屏幕适配、本地缓存、多语言切换、多 lib,你想要的我都有!!!
2 years agoapache-2.0Kotlin
🦁 A Disney app using transformation motions based on MVVM (ViewModel, Coroutines, Flow, Room, Repository, Koin) architecture.
Devutils1,2315a month ago21July 01, 20234apache-2.0Java
:fire: ( 持续更新,目前含 300+ 工具类 ) DevUtils 是一个 Android 工具库,主要根据不同功能模块,封装快捷使用的工具类及 API 方法调用。该项目尽可能的便于开发人员,快捷、高效开发安全可靠的项目。
2 years agoapache-2.0Kotlin
❤️ A sample Marvel heroes application based on MVVM (ViewModel, Coroutines, Room, Repository, Koin) architecture.
3 months ago24apache-2.0Kotlin
💻 A cross-platform desktop application to identify libraries used inside an android application. Made possible by Compose Desktop ⚡
Alternatives To Spacex Prepare For Clean Architecture Liftoff
Select To Compare

Alternative Project Comparisons

SpaceX prepare for Clean Architecture liftoff🚀

JetpackCompose Platform Android Studio Dolphin License Build Status

The purpose of this project is to consolidate some of the learned insights throughout the years about the Clean Architecture principles and reflect those lessons on Android, taking advantage of the Kotlin programming language features too.

This project summarises some of the general use cases and demands on a typical production project using: Jetpack Compose, Functional Programming,MVVM, Kotlin Coroutines and Kotlin Flows (check the branches section for more information).

Libraries Used 📚

  • Compose Toolkit for building native UI (in a declarative way - 100% Kotlin).
  • Coroutines Library support for Kotlin coroutines.
  • Flows Stream processing API, built on top of Coroutines.
  • Compose Navigation for tabs navigation using Jetpack Compose.
  • Dagger Hilt Dependency injection library for Android.
  • Retrofit Type-safe REST client for Android to consume RESTful web services.
  • Timber Logger with a small API which provides utility on top of Android's normal Log class.
  • Espresso Android UI Testing framework.
  • MockK mocking framework for testing.
  • MockWebServer A scriptable web server for testing HTTP clients, used for Instrumentation tests in this project.
  • Coil Compose Image downloading and caching library supported by Jetpack Compose.
  • Lottie Compose Library that provides that parses Adobe After Effects animations exported as json with Bodymovin and renders them natively on mobile.
  • JodaTime Date library that lets manage more extensively and easily dates
  • Shot Shot is a Gradle plugin and a core android library thought to run screenshot tests for Android.

Modules 📑

  • app - The application module with access to all the application
  • data - Android module that can only access domain module
  • data-api - Android module that can only access data module
  • domain - Kotlin module that cannot access any other module

And two extra modules:

  • core - Base classes module (factories, events, etc.) that cannot access any other module
  • core-android-test - Tests classes module (rules, date builders,etc.) that cannot access any other module


There are three options depending on different tech-stack desired. The latest codebase will be updated in master. These are the three options available (all of them maintained):

  • master

    • Jetpack Compose (declarative UI)
    • Dagger Hilt
    • VM approach using UI States and Effects
    • Kotlin Flows (removed LiveData)
    • Modules simplification
    • The rest of modules remain the same (Tests)
  • SpaceX-Coroutines-Flows

    • Imperative UI
    • Dagger2
    • Kotlin Coroutines and Flows
    • Granular modularisation (CleanArchitecture approach)
    • Unit Tests + UI Tests + MockWebServer + Robot Pattern
  • SpaceX-RxJava

    • VMs and Fragments communication via RxJava
    • Dagger2
    • Granular modularisation (CleanArchitecture approach)
    • Unit Tests + UI Tests + MockWebServer + Robot Pattern

Testing 🔍

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 📸

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 🚔

Copyright 2022 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

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.
Popular Coroutine Projects
Popular Mvvm Projects
Popular Control Flow Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.