Giter Site home page Giter Site logo

fmtjava / jetpack_github Goto Github PK

View Code? Open in Web Editor NEW
374.0 374.0 65.0 91.15 MB

基于Kotlin + Jetpack全家桶 + Coroutines(协程) + Flutter等架构实现的一款精简版Github客户端项目,望与广大小伙伴一起成长,欢迎start or fork!

License: MIT License

Kotlin 26.67% Java 6.40% Dart 6.61% HTML 0.19% Roff 58.48% Shell 0.16% Groovy 1.49%
androidx databinding flutter glide jetpack-android kotlin kotlin-coroutine kotlin-extensions livedatabus mvvm okhttp-interceptor okhttp3 retrofit-okhttp-coroutines retrofit2 room svg-path viewmodel

jetpack_github's Introduction

Hi there 👋

GIF

Anurag's github stats

jetpack_github's People

Contributors

fmtcias avatar fmtjava avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jetpack_github's Issues

项目相关

请问这个项目有用屏幕适配吗,看代码好像是没有

联系

您好,请问有交流群之类的吗,我觉得写得很好,但是可能有些问题觉得有联系方式交流好一些

[疑问]请问怎么做到多页面共享一个viewmodel

  1. 需求场景:登录页面给UserViewModel里mUserInfoModel赋值。在Main页面里显示用户信息
  2. 实现:
class LoginActivity : BaseDataBindVMActivity<ActivityLoginBinding>() {
    private val mViewModel: UserViewModel by viewModel()


class MainActivity : BaseDataBindVMActivity<ActivityMainBinding>() {
    private val mViewModel: UserViewModel by viewModel()

  1. 结果:登录页面可以渲染赋值后的用户信息,Main页面不行
  2. 期望:登录页面和Main页面能共享用户信息数据

ps:我打印了两个页面的mViewModel,发现地址不一样,请问如何创建出多个页面共享的mViewModel

token

{"message":"Bad credentials. The API can't be accessed using username/password authentication. Please create a personal access token to access this endpoint: }

版本更新报错

具体信息如下:Failed to find configured root that contains /storage/0123-4567/Android/data/com.fmt.github/files/apk_download/app-release.apk

BaseViewModel里封装的emit返回livedata是否有性能问题?

fun searchRepos(
    query: String,
    sort: String,
    order: String,
    page: Int
): LiveData<List<ReposItemModel>> = emit {
    mReposRepository.searchRepos(query, sort, order, page).items
}

比如上面的案例,每次调用searchRepos就返回一个新的liveData,并且绑定到lifecycler,如果调用了很多次的时候是不是可能有性能问题。小白初次使用livedata和协程,请教下大佬

接入正式项目

请问一下作者已经在正式项目中开始使用了吗,效果如何

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.