|
|
@@ -19,21 +19,21 @@ ext {
|
|
|
]
|
|
|
//androidx配置
|
|
|
androidx = [
|
|
|
- "constraintlayout" : 'androidx.constraintlayout:constraintlayout:2.0.1',
|
|
|
- 'appcompat' : 'androidx.appcompat:appcompat:1.3.1',
|
|
|
- 'material' : 'com.google.android.material:material:1.4.0',
|
|
|
- "multidex" : 'androidx.multidex:multidex:2.0.1',
|
|
|
- "annotation" : 'androidx.annotation:annotation:1.2.0',
|
|
|
+ "constraintlayout": 'androidx.constraintlayout:constraintlayout:2.0.1',
|
|
|
+ 'appcompat' : 'androidx.appcompat:appcompat:1.3.1',
|
|
|
+ 'material' : 'com.google.android.material:material:1.4.0',
|
|
|
+ "multidex" : 'androidx.multidex:multidex:2.0.1',
|
|
|
+ "annotation" : 'androidx.annotation:annotation:1.2.0',
|
|
|
|
|
|
- 'junit' : "junit:junit:4.12",
|
|
|
- 'runner' : 'androidx.test.ext:junit:1.1.2',
|
|
|
- 'espresso_core' : 'androidx.test.espresso:espresso-core:3.3.0',
|
|
|
- 'kotlin_lib' : "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version",
|
|
|
- 'kotlin_core' : "androidx.core:core-ktx:1.3.1",
|
|
|
+ 'junit' : "junit:junit:4.12",
|
|
|
+ 'runner' : 'androidx.test.ext:junit:1.1.2',
|
|
|
+ 'espresso_core' : 'androidx.test.espresso:espresso-core:3.3.0',
|
|
|
+ 'kotlin_lib' : "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version",
|
|
|
+ 'kotlin_core' : "androidx.core:core-ktx:1.3.1",
|
|
|
// 编写更简洁、惯用的Kotlin代码
|
|
|
- 'core_ktx' : "androidx.activity:activity-ktx:1.2.0",
|
|
|
- 'flexbox' : "com.google.android:flexbox:2.0.1",
|
|
|
- 'recyclerview' : "androidx.recyclerview:recyclerview:1.1.0"
|
|
|
+ 'core_ktx' : "androidx.activity:activity-ktx:1.2.0",
|
|
|
+ 'flexbox' : "com.google.android:flexbox:2.0.1",
|
|
|
+ 'recyclerview' : "androidx.recyclerview:recyclerview:1.1.0"
|
|
|
]
|
|
|
//version配置
|
|
|
versions = [
|
|
|
@@ -52,69 +52,70 @@ ext {
|
|
|
//依赖第三方配置
|
|
|
dependencies = [
|
|
|
// 协程
|
|
|
- "kotlinx_core" :'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3',
|
|
|
- "kotlinx_android" :"org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3",
|
|
|
+ "kotlinx_core" : 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3',
|
|
|
+ "kotlinx_android" : "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3",
|
|
|
|
|
|
// Retrofit2.0
|
|
|
- "retrofit2" :"com.squareup.retrofit2:retrofit:2.9.0",
|
|
|
- "converter_gson" :"com.squareup.retrofit2:converter-gson:2.9.0",
|
|
|
- "logging_interceptor" :"com.squareup.okhttp3:logging-interceptor:4.2.0",
|
|
|
+ "retrofit2" : "com.squareup.retrofit2:retrofit:2.9.0",
|
|
|
+ "converter_gson" : "com.squareup.retrofit2:converter-gson:2.9.0",
|
|
|
+ "logging_interceptor" : "com.squareup.okhttp3:logging-interceptor:4.2.0",
|
|
|
|
|
|
// 网络请求拦截器 https://github.com/itkacher/OkHttpProfiler
|
|
|
- "okhttpprofiler" :"com.localebro:okhttpprofiler:1.0.8",
|
|
|
+ "okhttpprofiler" : "com.localebro:okhttpprofiler:1.0.8",
|
|
|
// Okhttp3 https://square.github.io/okhttp/#releases
|
|
|
- "ohkttp3" :"com.squareup.okhttp3:okhttp:4.9.0",
|
|
|
+ "ohkttp3" : "com.squareup.okhttp3:okhttp:4.9.0",
|
|
|
|
|
|
//阿里路由框架
|
|
|
- "arouter_api" : "com.alibaba:arouter-api:1.5.2",
|
|
|
- "arouter_compiler" : "com.alibaba:arouter-compiler:1.5.2",
|
|
|
+ "arouter_api" : "com.alibaba:arouter-api:1.5.2",
|
|
|
+ "arouter_compiler" : "com.alibaba:arouter-compiler:1.5.2",
|
|
|
|
|
|
// https://github.com/gyf-dev/ImmersionBar android 4.4以上沉浸式状态栏和沉浸式导航栏管理,适配横竖屏切换、刘海屏、软键盘弹出等问题,可以修改状态栏字体颜色和导航栏图标颜色,以及不可修改字体颜色手机的适配,适用于Activity、Fragment、Dia
|
|
|
// 基础依赖包,必须要依赖
|
|
|
- "immersionbar" : "com.gyf.immersionbar:immersionbar:3.0.0",
|
|
|
+ "immersionbar" : "com.gyf.immersionbar:immersionbar:3.0.0",
|
|
|
// fragment快速实现(可选)
|
|
|
- "immersionbar_components" : "com.gyf.immersionbar:immersionbar-components:3.0.0",
|
|
|
+ "immersionbar_components": "com.gyf.immersionbar:immersionbar-components:3.0.0",
|
|
|
// kotlin扩展(可选)
|
|
|
- "immersionbar_ktx" : "com.gyf.immersionbar:immersionbar-ktx:3.0.0",
|
|
|
+ "immersionbar_ktx" : "com.gyf.immersionbar:immersionbar-ktx:3.0.0",
|
|
|
|
|
|
// Logger : https://github.com/orhanobut/logger
|
|
|
- "logger" : "com.orhanobut:logger:2.2.0",
|
|
|
+ "logger" : "com.orhanobut:logger:2.2.0",
|
|
|
// MMKV : https://github.com/tencent/mmkv/wiki/android_setup_cn
|
|
|
- "mmkv" : "com.tencent:mmkv:1.2.14",
|
|
|
+ "mmkv" : "com.tencent:mmkv:1.2.14",
|
|
|
//
|
|
|
- "mmkv_ktx" : "com.github.DylanCaiCoding:MMKV-KTX:1.2.14",
|
|
|
+ "mmkv_ktx" : "com.github.DylanCaiCoding:MMKV-KTX:1.2.14",
|
|
|
// jsbridge :https://github.com/lzyzsd/JsBridge
|
|
|
- "jsbridge" : "com.github.lzyzsd:jsbridge:1.0.4",
|
|
|
+ "jsbridge" : "com.github.lzyzsd:jsbridge:1.0.4",
|
|
|
// https://github.com/lihangleo2/ShadowLayout
|
|
|
- "shadowLayout" : "com.github.lihangleo2:ShadowLayout:3.2.4",
|
|
|
- "bugly" : "com.tencent.bugly:crashreport:4.1.9",
|
|
|
- "imageSelector" : "com.github.donkingliang:ImageSelector:2.2.1",
|
|
|
+ "shadowLayout" : "com.github.lihangleo2:ShadowLayout:3.2.4",
|
|
|
+ "bugly" : "com.tencent.bugly:crashreport:4.1.9",
|
|
|
+ "imageSelector" : "com.github.donkingliang:ImageSelector:2.2.1",
|
|
|
// 多渠道打包
|
|
|
- "walle" : "com.meituan.android.walle:library:1.1.6",
|
|
|
+ "walle" : "com.meituan.android.walle:library:1.1.6",
|
|
|
//SmartRefreshLayout:下拉刷新, 上拉加载更多 https://github.com/scwang90/SmartRefreshLayout
|
|
|
- "smartRefreshLayout": 'io.github.scwang90:refresh-layout-kernel:2.0.6',
|
|
|
- "refresh_header_classics": 'io.github.scwang90:refresh-header-classics:2.0.6', //经典刷新头
|
|
|
- "refresh_footer_classics": 'io.github.scwang90:refresh-footer-classics:2.0.6', //经典加载
|
|
|
+ "smartRefreshLayout" : 'io.github.scwang90:refresh-layout-kernel:2.0.6',
|
|
|
+ "refresh_header_classics": 'io.github.scwang90:refresh-header-classics:2.0.6', //经典刷新头
|
|
|
+ "refresh_footer_classics": 'io.github.scwang90:refresh-footer-classics:2.0.6', //经典加载
|
|
|
|
|
|
// jsbridge :https://github.com/lzyzsd/JsBridge
|
|
|
- "jsbridge": 'com.github.lzyzsd:jsbridge:1.0.4',
|
|
|
+ "jsbridge" : 'com.github.lzyzsd:jsbridge:1.0.4',
|
|
|
//RxJava2.0
|
|
|
- "rxjava": 'io.reactivex.rxjava2:rxjava:2.2.20',
|
|
|
- "rxandroid": 'io.reactivex.rxjava2:rxandroid:2.1.1',
|
|
|
- "rxkotlin": 'io.reactivex.rxjava2:rxkotlin:2.4.0',
|
|
|
+ "rxjava" : 'io.reactivex.rxjava2:rxjava:2.2.20',
|
|
|
+ "rxandroid" : 'io.reactivex.rxjava2:rxandroid:2.1.1',
|
|
|
+ "rxkotlin" : 'io.reactivex.rxjava2:rxkotlin:2.4.0',
|
|
|
|
|
|
//api 'lib.gorden.rxbus2:rxbus:2.0.1'
|
|
|
- "live_event_bus_x": 'io.github.jeremyliao:live-event-bus-x:1.8.0',
|
|
|
+ "live_event_bus_x" : 'io.github.jeremyliao:live-event-bus-x:1.8.0',
|
|
|
|
|
|
//glide
|
|
|
- "glide": 'com.github.bumptech.glide:glide:4.12.0',
|
|
|
- "glide_compiler": 'com.github.bumptech.glide:compiler:4.12.0',
|
|
|
+ "glide" : 'com.github.bumptech.glide:glide:4.12.0',
|
|
|
+ "glide_compiler" : 'com.github.bumptech.glide:compiler:4.12.0',
|
|
|
|
|
|
- "utilcode": 'com.blankj:utilcode:1.30.7',
|
|
|
+ "utilcode" : 'com.blankj:utilcode:1.30.7',
|
|
|
//极光推送
|
|
|
- "jpush": 'cn.jiguang.sdk:jpush:5.0.0',
|
|
|
- "gson":"com.google.code.gson:gson:2.8.5",
|
|
|
- "leakcanary": "com.squareup.leakcanary:leakcanary-android:2.10"
|
|
|
+ "jpush" : 'cn.jiguang.sdk:jpush:5.0.0',
|
|
|
+ "gson" : 'com.google.code.gson:gson:2.8.5',
|
|
|
+ "leakcanary" : 'com.squareup.leakcanary:leakcanary-android:2.10',
|
|
|
+ "liteavSdk" : 'com.tencent.liteav:LiteAVSDK_Smart:latest.release'
|
|
|
|
|
|
]
|
|
|
}
|