Jetpack Compose is Android’s recommended modern toolkit for building native UI. It simplifies and accelerates UI development on Android. __ _Jetpack Compose documentation
Jetpack is a suite of libraries to help developers follow best practices, reduce boilerplate code, and write code that works consistently across Android versions and devices so that developers can focus on the code they care about.
“Clean Architecture”的概念是由Robert C. Martin提出的。它的根底是经过将软件划分为层来完成责任的分离,具有以下特点
独立于框架。
可测验的。
独立于UI。
独立于数据库。
独立于任何外部署理。
依靠的规矩
The dependency rule is described very well by the author in his piece, The Clean Code Blog(blog.cleancoder.com/uncle-bob/2…)
❝
The overriding rule that makes this architecture work is The Dependency Rule. This rule says that source code dependencies can only point inwards. Nothing in an inner circle can know anything at all about something in an outer circle. In particular, the name of something declared in an outer circle must not be mentioned by the code in the an inner circle. That includes, functions, classes. variables, or any other named software entity. 使这个体系结构工作的最重要的规矩是依靠规矩。该规矩表示源代码依靠项只能指向内部。内部圈子里不或许知道外部圈子里的事。特别是,在外部圆圈中声明的东西的称号不能被内部圆圈中的代码提及。这包含,函数,类。变量,或任何其他命名的软件实体。
❞
具体可见 The Clean Code Blog(blog.cleancoder.com/uncle-bob/2…)
R8是将项目的Java字节码转换为Android平台上运行的DEX格式的默认编译器。它是一种东西,经过缩短类及其属性的称号,消除项目中未运用的代码和资源,协助咱们混杂和减少运用程序的代码。要了解更多信息,请查看Android文档 Shrink, obfuscate, and optimize your app.