Awesome Open Source
Awesome Open Source

MVVM-Architecture

Android端 MVVM + Jetpack 架构组件的Github客户端。

通知

这个项目采用了数种 MVVM 的实现方式,你可以参考任意感兴趣的进行了解:

屏幕截图

三方组件

Android Jetpack 组件

网络请求

依赖注入

其它

开始使用

如果编译遇到如下图的错误:

出现这个问题的原因,最新版本的代码,需要开发者注册一个自己的OAuth Application,注册后,Github的API访问次数就能达到5000次/小时(之前的版本只有60次/小时),之前很多朋友反应在Debug过程中不够用,断点打了几次就被限制请求了,因此最新版本添加了这个配置的步骤,虽然麻烦了一小步,但是对于学习效率的提升,这点配置时间可以忽略不计。

  • 1.直接通过git命令行进行clone:
$ git clone https://github.com/qingmei2/MVVM-Architecture.git
  • 2.注册你的GitHub App

首先参考这个链接, 注册获取属于你的Access Token

获取到AccessToken后,并配置到你的项目根目录的local.properties文件中:

USER_ACCESS_TOKEN="xxxxxxxxxxxxxxxxxxxxxxxxx"

大功告成,接下来点击编译并运行即可。🎉 🎉 🎉

如何入手学习这个项目?

如何使用Android Jetpack

感谢

🎨 项目中的UI设计部分参考了 gitme.

⭐️ 项目参考了 rx-mvvm-android 并对其部分代码进行了引用.

Contributor

License

The MVVM-Rhine: Apache License

Copyright (c) 2018 qingmei2

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.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
android (6,226
kotlin (3,507
rxjava (331
mvvm (323
navigation (256
mvvm-architecture (108
lifecycle (55
android-jetpack (16
dagger-hilt (15

Find Open Source By Browsing 7,000 Topics Across 59 Categories