All Projects → ldlywt → FastJetpack

ldlywt / FastJetpack

Licence: other
基于Kotlin、协程、Retrofit的网络请求封装,快速简单轻便。

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to FastJetpack

Knowweather
一款美观、实用的天气app。实践了模块化架构 和 Android Architecture Components
Stars: ✭ 1,138 (+174.22%)
Mutual labels:  mvvm-architecture, android-architecture-components
Mvvmframe
🏰 MVVMFrame for Android 是一个基于Google官方推出的Architecture Components dependencies(现在叫JetPack){ Lifecycle,LiveData,ViewModel,Room } 构建的快速开发框架。有了MVVMFrame的加持,从此构建一个MVVM模式的项目变得快捷简单。
Stars: ✭ 218 (-47.47%)
Mutual labels:  mvvm-architecture, android-architecture-components
Tvflix
TvFlix android app using Dagger Hilt, Coroutines, Flow, KTX, Jetpack(Room, ViewModel, Paging3, Lifecycle) based on MVVM architecture purely written in Kotlin
Stars: ✭ 286 (-31.08%)
Mutual labels:  mvvm-architecture, android-architecture-components
BakingApp
🍛🍴 This app allows a user to select a recipe and see video-guided steps for how to complete it, showcasing MVVM, Retrofit, ExoPlayer with lifecycle components, Master/Detail Flow, Widgets.
Stars: ✭ 18 (-95.66%)
Mutual labels:  mvvm-architecture, android-architecture-components
KTAndroidArchitecture
A Kotlin android architecture with Google Architecture Components
Stars: ✭ 33 (-92.05%)
Mutual labels:  mvvm-architecture, android-architecture-components
RestaurantsExplorer
Android application build with MVVM Pattern, using Zomato API to enable search cities arround the world and display the city restaurants on a map.
Stars: ✭ 32 (-92.29%)
Mutual labels:  mvvm-architecture, android-architecture-components
Popularmovies
🎥 Movie discovery app showcasing Android best practices with Google's recommended architecture: MVVM + Repository + Offline support + Android Architecture Components + Paging library & Retrofit2.
Stars: ✭ 142 (-65.78%)
Mutual labels:  mvvm-architecture, android-architecture-components
Kriptofolio
Free open source minimalistic cryptocurrencies portfolio app for Android.
Stars: ✭ 79 (-80.96%)
Mutual labels:  mvvm-architecture, android-architecture-components
Instagram
Instagram Project is a mini version of real Instagram app for Android 📱 built with latest Android Development Tools. Kotlin, MVVM, LiveData, GSON, Retrofit, Dagger2
Stars: ✭ 20 (-95.18%)
Mutual labels:  mvvm-architecture, android-architecture-components
NoMansWallpaperApp
Looking for your next No Man's Sky wallpaper?
Stars: ✭ 35 (-91.57%)
Mutual labels:  mvvm-architecture, android-architecture-components
Simple-Notes-Kotlin-App
✍️ Simple Note Making App use mvvm architecture , dagger , coroutines and navigation component. Features includes 🗒️ create , edit and ❌ delete notes
Stars: ✭ 40 (-90.36%)
Mutual labels:  mvvm-architecture, android-architecture-components
AndroidCleanArchitecture
Android Project with clean android architecture contain Dagger, Retrofit, Retrofit, Android archtecture components, LiveData with MVVM architecture
Stars: ✭ 22 (-94.7%)
Mutual labels:  mvvm-architecture, android-architecture-components
ViewModel
Android Architecture Component - ViewModel example
Stars: ✭ 18 (-95.66%)
Mutual labels:  android-architecture-components
Rick-and-Morty-iOS-App
This is a sample iOS 13+ UIKit - Combine project.
Stars: ✭ 21 (-94.94%)
Mutual labels:  mvvm-architecture
android-sepack
Simple cli tool for android project. Generate android project base on template kotlin mvvm, debug and install project without Android Studio.
Stars: ✭ 56 (-86.51%)
Mutual labels:  mvvm-architecture
LetsChat
LetsChat is a Sample Messaging Android application built to demonstrate the use of Modern Android development tools - (Kotlin, Coroutines, Flow, Dagger-Hilt, Architecture Components, MVVM, Room, Testing, Coil, DataStore) and Firebase
Stars: ✭ 71 (-82.89%)
Mutual labels:  android-architecture-components
android-navigation-example
How to use Android Navigation Architecture Component using Kotlin
Stars: ✭ 26 (-93.73%)
Mutual labels:  android-architecture-components
WanAndroidJetpack
🔥 WanAndroid 客户端,Kotlin + MVVM + Jetpack + Retrofit + Glide。基于 MVVM 架构,用 Jetpack 实现,网络采用 Kotlin 的协程和 Retrofit 配合使用!精美的 UI,便捷突出的功能实现,欢迎下载体验!
Stars: ✭ 124 (-70.12%)
Mutual labels:  mvvm-architecture
Simple-Note-App-with-Online-Storage
✍️ Simple Note Making App use Sqllite Room 🧰 for caching the notes and 📥 Firebase Database for online storage
Stars: ✭ 42 (-89.88%)
Mutual labels:  mvvm-architecture
MoviesApp
A Movie Application uses TheMovie API, MVVM architecture and all jetpack components.
Stars: ✭ 100 (-75.9%)
Mutual labels:  mvvm-architecture

三种方式封装Retrofit+协程,实现优雅快速的网络请求

介绍

项目涉及到三种方式对Retrofit+协程的封装,每种封装思想都不一样

就算对协程和Kotlin flow 不熟悉,也可以快速上手

封装的目的是为了减少模板代码,方便快速开发

分支解释

  • 封装一 (对应分支oneWay) 传递ui引用,可按照项目进行深度ui定制,方便快速,但是耦合高(Google 最近架构文档已经不推荐在Repository中使用LiveData了,这种方式主要提供一种封装思想)

  • 封装二 (对应分支master) 耦合低,依赖的东西很少,但是写起来模板代码偏多

  • 封装三 (对应分支dev) 目的就是为了减少模板代码,引入了新的flow流式编程,链式调用,loading 和网络请求以及结果处理都在一起,很多时候甚至都不要声明 LiveData/Flow 对象。

根据谷歌官方文档的最新架构,推进使用dev分支。

博客地址

鸣谢

项目的部分思路来源于其他的开源项目,感谢其他作者的无私奉献。

项目调试Api来源于鸿阳大神的 wanandroid,多谢提供免费稳定的api。

希望大家和谐友好交流,共建开源社区。

项目会长期不定时更新优化...

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].