View Code? Open in Web Editor
NEW
总结Android的MVVM开发模式,并编写和集成常用的工具类和扩展
Kotlin 68.70%
Java 31.30%
fly-android's Introduction
日常开发中,常用功能整理,每个模块均可独立使用。
- buildPlugin: 基于 composing builds 方式的依赖统一管理模块
- lib-dimen: smallest-width 屏幕适配文件自动生成的脚本模块
- lib-eventbus: 基于 Kotlin-Flow 的事件总线模块
- lib-http: 基于 Retrofit+OkHttp+Coroutine 的Http请求模块
- lib-imageloader: 基于 Glide 的可扩展图片加载模块
- lib-router: 对 ARouter 的简易封装
- lib-scan: 基于 Zxing 的扫码模块
- lib-uikit: 常用控件封装
- lib-utils: 常用工具类收集
有兴趣的同学可以关注微信公众号「码途有道」。
fly-android's People
Contributors
Watchers
fly-android's Issues
Task :app:kaptDebugKotlin FAILED
D:\Code\android\githubSam\Fly-Android\app\build\generated\source\kapt\debug\com\fly\example\DataBinderMapperImpl.java:12: 错误: 找不到符号
import com.fly.example.databinding.ActivityLivebusFirstBindingImpl;
^
符号: 类 ActivityLivebusFirstBindingImpl
位置: 程序包 com.fly.example.databindingD:\Code\android\githubSam\Fly-Android\app\build\generated\source\kapt\debug\com\fly\example\DataBinderMapperImpl.java:13: 错误: 找不到符号
import com.fly.example.databinding.ActivityLivebusSecondBindingImpl;
^
符号: 类 ActivityLivebusSecondBindingImpl
位置: 程序包 com.fly.example.databinding
FAILURE: Build failed with an exception.
你好,请问针对lib-http: 基于 Retrofit+OkHttp+Coroutine 的Http请求模块,如何使用网络请求?可以写一个案例吗
在你代码中,viewmodel实例化ViewModelProvider.get(vm::class.java),但是我去使用泛型获取class实例时是报错的,
Cannot use 'VM' as reified type parameter. Use a class instead