在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):satorufujiwara/kotlin-architecture-components开源软件地址(OpenSource Url):https://github.com/satorufujiwara/kotlin-architecture-components开源编程语言(OpenSource Language):Kotlin 100.0%开源软件介绍(OpenSource Introduction):kotlin-architecture-componentsThis is a sample app that uses Android Architecture Components with Kotlin and Dagger 2. Architecture ComponentsArchitecture Components version is 1.1.* KotlinKotlin version is 1.2.* Dagger2Dagger version is 2.15.* Using dagger.android. Other Libraries
TipsMultibindingTo use Multibinding for ViewModel's injection like this,
use class ViewModelFactory @Inject
constructor(private val creators: Map<Class<out ViewModel>, @JvmSuppressWildcards Provider<ViewModel>>)
: ViewModelProvider.Factory { Here is all code. DataBindingTo use DataBinding with Kotlin, use dependencies {
kapt 'com.android.databinding:compiler:3.0.0'
} Thanks
License
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论