Android项目常用implementation

Android项目常用implementationAndroid项目常用implementation更新日期:2021-03-24优先导入-ktx包Retrofit:https://github.com/square/retrofitimplementation”com.squareup.retrofit2:retrofit:2.9.0″RxJava:https://github.com/ReactiveX/RxJavaimplementation”io.reactivex.rxjava3:rxjava:3.0.11″RxAn

大家好,欢迎来到IT知识分享网。Android项目常用implementation"

Android项目常用implementation

  • 更新日期:2021-03-24
  • 优先导入-ktx包

Retrofit: https://github.com/square/retrofit

implementation "com.squareup.retrofit2:retrofit:2.9.0"

RxJava: https://github.com/ReactiveX/RxJava

implementation "io.reactivex.rxjava3:rxjava:3.0.11"

RxAndroid: https://github.com/ReactiveX/RxAndroid

implementation "io.reactivex.rxjava3:rxandroid:3.0.0"

Glide: https://github.com/bumptech/glide

implementation "com.github.bumptech.glide:glide:4.12.0"

Gson: https://github.com/google/gson

implementation "com.google.code.gson:gson:2.8.6"

LifeCycle: https://developer.android.google.cn/jetpack/androidx/releases/lifecycle#declaring_dependencies:

def lifecycle_version = "2.3.0"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-service:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-process:$lifecycle_version"

Navigation: https://developer.android.google.cn/guide/navigation/navigation-getting-started

def nav_version = "2.3.3"
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"

Paging: https://developer.android.google.cn/topic/libraries/architecture/paging

implementation "androidx.paging:paging-runtime:2.1.2"

WorkManager: https://developer.android.google.cn/topic/libraries/architecture/workmanager/basics

implementation "androidx.work:work-runtime-ktx:2.5.0"

Coroutines: https://github.com/Kotlin/kotlinx.coroutines

def coroutine_version = "1.4.3"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutine_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutin_version"

Room: https://developer.android.google.cn/training/data-storage/room

def room_version = "2.2.6"
implementation "androidx.room:room-runtime:$room_version"
implementation "androidx.room:room-ktx:$room_version"
kapt "androidx.room:room-compiler:$room_version"

免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://yundeesoft.com/21574.html

(0)

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

关注微信