/Android-Kotlin-Clean-Architecture

Android Sample Clean Architecture App written in Kotlin

Primary LanguageKotlin

Actions Status Kotlin Version AGP Gradle License

This repository holds 2 projects:

  • Sample Giphy App is a test Project that displays paginated trending GIFs from Giphy and also contains search functionality.

    • This small project is a good starting point to get an overview of what current frameworks, architectural decisions and testing amongst other things can be expected on the other project in this repository.
    • I always use this repo to try out new things, benchmark & also write about it.
  • Amiga App is a larger feature modularized project aimed at reinventing the todo-calendar-wellbeing concept.

    • Amiga is a digital wellbeing experiment.
  • Both projects are under active development & they both share some common modules like Views, Network, Resources and Cache.

My main objective is to achieve with the least amount of code RUDT principles which means that the code must be easy to:

  • Read
  • Update
  • Debug
  • Test (Unit & UI)

Personal project to try out things:

  • Clean Architecture approach (from a pure approach to a simplified feature modularized approach).
  • DI (Dagger 2, Koin & now Dagger Hilt)
  • Dependency-less, independent, simplified Navigation with reflection.
  • Dynamic Feature Modularized.
  • Easy to RUDT (read, update, debug & test).
  • Playground to try different architectures.
  • Playground to try different libraries/frameworks.

Discussions

Refer to the issues section: https://github.com/sanogueralorenzo/Android-Kotlin-Clean-Architecture/issues

Mentions

androidweekly androidweekly kotlinweekly androidweekly

Social Media

Twitter | Medium | LinkedIn

Articles

Clean Architecture Guide (with tested examples): Data Flow != Dependency Rule

The death of Presenters and the rise of ViewModels (AAC)

Intro to App Architecture

Intro to App Modularization

Official Kotlin Style Guide with Ktlint

Koin in Feature Modules Project

Detecting Kotlin Code Smells with Detekt

Moshi with Retrofit

Gradle Dependency Management with Kotlin (buildSrc)

License

Copyright 2020 Mario Sanoguera de Lorenzo

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this project 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.