Android-CleanArchitecture

New version available written in Kotlin:

Introduction

This is a sample app that is part of a blog post I have written about how to architect android application using the Uncle Bob's clean architecture approach.

Clean architecture

ebc4410d6fa22bb745ad69296e708391.png

Architectural approach

e51b1c1f46fee73415ffa727f1660c1a.png

Architectural reactive approach

182b7490074842a940450fe5a4295d82.png

Local Development

Here are some useful Gradle/adb commands for executing this example:

./gradlew clean build - Build the entire example and execute unit and integration tests plus lint check.

./gradlew installDebug - Install the debug apk on the current connected device.

./gradlew runUnitTests - Execute domain and data layer tests (both unit and integration).

./gradlew runAcceptanceTests - Execute espresso and instrumentation acceptance tests.

Discussions

Code style

Here you can download and install the java codestyle.

https://github.com/android10/java-code-styles

License

Copyright 2018 Fernando Cejas

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.

a0f3b3d6e27e0f5361033164b194cadc.png

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f416e64726f6964253230417273656e616c2d416e64726f69642d2d436c65616e4172636869746563747572652d627269676874677265656e2e7376673f7374796c653d666c6174

16a7676038339a1414537286d90f2315.png

Logo

开源鸿蒙跨平台开发社区汇聚开发者与厂商,共建“一次开发,多端部署”的开源生态,致力于降低跨端开发门槛,推动万物智联创新。

更多推荐