·KGank· 是一个使用 Kotlin Coroutines
做请求网络异步操作,JetPack ViewModel
作为 UI
的数据持有的,以 Gank API
作为免费的网络请求的小项目,其目的是为了测试 Kotlin
协程的操作与ViewModel
交互的可能性. 你可以在Gank Coroutines Jepack找到这个项目的扩展版,扩展版使用了近乎大部分的所有Architecture Components.
As a summary:
- Full Kotlin
- Uses all of the Architecture Components: ViewModel, LiveData and Lifecycle-components
- Uses koin-android for dependency injection
欢迎Issue和PR
MIT License
Copyright (c) 2019 Qifan Yang
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.