Android常用库

material
def material_version = "1.3.0-alpha01"
implementation "com.google.android.material:material:$material_version"
gilde
def glide_version = "4.11.0"
implementation "com.github.bumptech.glide:glide:$glide_version"

def glide_transformations_version = "4.0.0"
implementation "jp.wasabeef:glide-transformations:$glide_transformations_version"
lifecycle
def lifecycle_version = "2.2.0"

implementation "androidx.lifecycle:lifecycle-viewmodel-savedstate:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
androidx.fragment
def fragment_version = "1.2.5"
implementation "androidx.fragment:fragment-ktx:$fragment_version"
paging
def paging_version = "2.1.2"
implementation "androidx.paging:paging-runtime-ktx:$paging_version"
room
def room_version = "2.2.5"
implementation "androidx.room:room-runtime:$room_version"
kapt "androidx.room:room-compiler:$room_version"
kotlin coroutines
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9"
util
implementation "com.blankj:utilcodex:1.26.0"
implementation 'com.google.code.gson:gson:2.8.6'
implementation "com.jakewharton.timber:timber:4.7.1"
http
  • okhttp
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.okhttp3:okhttp:4.7.2'
implementation 'com.squareup.okhttp3:logging-interceptor:4.7.2'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
  • rxhttp(https://github.com/liujingxing/okhttp-RxHttp)
//Must be used when using kapt
apply plugin: 'kotlin-kapt'

android {
    //Java 8 or higher
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {
    implementation 'com.ljx.rxhttp:rxhttp:2.5.5'
    implementation 'com.squareup.okhttp3:okhttp:4.9.0' 
    kapt 'com.ljx.rxhttp:rxhttp-compiler:2.5.5' //Use the annotationProcessor instead of kapt, if you use Java
 }
Leakcanary
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.4'
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值