Skip to content

Educational Repo offered as appendix for the book Clean Mobile Architecture.

Notifications You must be signed in to change notification settings

petros-efthymiou/Android-Pragmatic-Clean-Architecture

Repository files navigation

Android Pragmatic Clean Architecture

Introduction

This repo is an example of the powerful Mobile Pragmatic Clean Architecture and is offered as an appendix to the book Clean Mobile Architecture. The book covers all the aspects of architecting Mobile Applications and explains the reasoning behind all the decisions made in this sample project.

This architecture is primarily intended for educational purposes and aims to describe engineering concepts and practices such as:

  • Clean architecture
  • MVI
  • Inversion of Control
    • Dependency Inversion
    • Dependency Injection
  • S.O.L.I.D principles
  • Reactive Programming
  • Unit testing
  • UI Testing
  • Proper package segregation

Pragmatic Clean Architecture is intended to be a flexible Mobile Architecture that respects the S.O.L.I.D principles, Clean Architecture, and other mobile best practices. It can be used in applications of any complexity and will ensure their scalability to fully grown enterprise apps should the need arise.

The technology stack includes:

  • Jetpack Compose
  • Jetpack Navigation
  • Coroutines
  • Kotlin Flow
  • State Flow
  • Retrofit
  • Koin

Pragmatic Clean Layering

Pragmatic-layering

The diagram above describes the layering of the project. The thick lines indicate hard boundaries, and separation in modules, while the thin lines represent soft boundaries and separation in packages.

Architectural Overview

Pragmatic_overview

For more information, please refer to the book Clean Mobile Architecture.

For a more elaborate architecture aimed solely at large-scale enterprise apps, you can refer to the other example included in the book Mobile Microservices Architecture.

License

  Copyright (C) 2022 Petros Efthymiou Open Source Project

  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.

"Buy Me A Coffee"