Android-CleanArchitecture README

The project's README from github.com/android10/Android-CleanArchitecture. As one markdown file: README.md.

Android-CleanArchitecture

New version available written in Kotlin:

Architecting Android… Reloaded

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.

Architecting Android…The clean way?

Architecting Android…The evolution

Tasting Dagger 2 on Android

Clean Architecture…Dynamic Parameters in Use Cases

Demo video of this sample

Clean architecture

http://fernandocejas.com/2015/07/18/architecting-android-the-evolution/

Architectural approach

http://fernandocejas.com/2015/07/18/architecting-android-the-evolution/

Architectural reactive approach

http://fernandocejas.com/2015/07/18/architecting-android-the-evolution/

Local Development

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

Discussions

Refer to the issues section: https://github.com/android10/Android-CleanArchitecture/issues

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.

http://www.fernandocejas.com

Android Arsenal

Buy Me A Coffee

Android-CleanArchitecture (android10/Android-CleanArchitecture)

Searching Database…

这是什么?一个示例 Android 应用,演示如何用 Uncle Bob 的整洁架构(Clean Architecture)思路来搭建应用 —— 它是 Fernando Cejas 关于这一主题的系列博客文章的配套示例。
它是一个能真正安装的应用,还是更像学习资料?两者都是,但重点在于学习:它是一个可以构建并运行在设备上的可用示例应用,编写它的目的是展示博客文章里讲解的架构。
怎么让它在设备上跑起来?克隆仓库然后运行 './gradlew installDebug' —— 它会把调试版 APK 安装到当前连接的设备上。'./gradlew clean build' 则会完整构建这个示例,并运行测试和 lint 检查。
构建之前我需要先装好哪些东西?这是一个标准的基于 Gradle 的 Android 项目:文档里的所有命令都通过自带的 './gradlew' 包装器执行,APK 用 adb 部署,所以你需要一套 Android 开发环境。仓库里没有附带 Dockerfile 或 CI 配置。
这还是项目的最新版本吗?不是 —— README 指向了用 Kotlin 重写的新版示例('Architecting Android... Reloaded'),而这个 Java 版本的版权头日期还是 2018 年。
这个示例配套哪些博客文章?一共四篇:'Architecting Android...The clean way?'、'Architecting Android...The evolution'、'Tasting Dagger 2 on Android' 和 'Clean Architecture...Dynamic Parameters in Use Cases'。README 里还链接了一段应用实际运行的演示视频。
这个示例有没有展示依赖注入怎么用?有 —— 配套文章中有一篇就是 'Tasting Dagger 2 on Android',所以这个应用同时也是在 Android 上用 Dagger 2 接线依赖的实用示例。
如果我把这套架构用到我们团队的应用里,有可以遵循的代码风格吗?有,README 里链接了一份可下载的 Java 代码风格配置,安装后你的代码库就能和示例中使用的规范保持一致。
Creator
android10
Size
5.1 MB
Stars
15.5K
Updated
CommitDec 28
Age
12y
Commits · 90 Days