Rosie是遵循Clean Architecture原则创建应用的Android框架

网友投稿 436 2022-10-29

Rosie是遵循Clean Architecture原则创建应用的Android框架

Rosie是遵循Clean Architecture原则创建应用的Android框架

agustingandara.com

Introduction

This is a SIMPLE MVP-CLEAN KOTLIN sample of Rosie Implementation Architecture!

This sample includes Application + Activity + Fragment + UseCase + Repository

MVP Clean

Rosie is an Android framework to create applications following the principles of [Clean Architecture][clean]. Rosie divides your application in three layers, view, domain and repository.

View: It contains all your presentation logic, implemented through the [Model-View-Presenter pattern][mvp]. Rosie provides classes to represent the main components of this layer like RosieActivity, RosieFragment or RosiePresenter.Domain: Holding all your business logic, its main component is RosieUseCase that gives you an easy way to define your application use cases and execute them in a background thread using the [command pattern][com].Repository: This layer gives you an abstraction of how to retrieve and store data in your application following the [Repository pattern][rep]. RosieRepository and the multiple DataSource classes gives you the base to start building your own repositories.

Dependencies

Android: Support + AppCompat + DesignConnection: Retrofit + OkHttpGson: Json Reflection + RetrofitConverterImage: Glide + Loader + DownloaderDialogs: Material DialogsRxJava: Reactive + AndroidExtrasRxBluetooth: ReactiveBLEArchitecture: RosieSyntax: KotlinLangInjetion: DaggerDependencies + KotlinCompat

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:百度工程师眼中的云原生可观测性追踪技术
下一篇:基于Pytorch和torchtext的知识图谱深度学习框架
相关文章

 发表评论

暂时没有评论,来抢沙发吧~