|
@@ -20,7 +20,7 @@ android {
|
|
|
|
|
|
javaCompileOptions {
|
|
|
annotationProcessorOptions {
|
|
|
- arguments = [ AROUTER_MODULE_NAME : project.getName() ]
|
|
|
+ arguments = [AROUTER_MODULE_NAME: project.getName()]
|
|
|
}
|
|
|
}
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
@@ -31,7 +31,7 @@ android {
|
|
|
|
|
|
debug {
|
|
|
minifyEnabled false
|
|
|
- buildConfigField "Boolean", "SINGLE_MODULE","${singleModule}"
|
|
|
+ buildConfigField "Boolean", "SINGLE_MODULE", "${singleModule}"
|
|
|
buildConfigField "String", "BUGLY_APPID", "\"ad3db4d529\""
|
|
|
buildConfigField "String", "API_URL", "\"http://60.205.201.7:8110\""
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
@@ -39,7 +39,7 @@ android {
|
|
|
|
|
|
release {
|
|
|
minifyEnabled false
|
|
|
- buildConfigField "Boolean", "SINGLE_MODULE","${singleModule}"
|
|
|
+ buildConfigField "Boolean", "SINGLE_MODULE", "${singleModule}"
|
|
|
buildConfigField "String", "BUGLY_APPID", "\"ad3db4d529\""
|
|
|
buildConfigField "String", "API_URL", "\"http://60.205.201.7:8110\""
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
@@ -71,61 +71,58 @@ android {
|
|
|
|
|
|
dependencies {
|
|
|
|
|
|
- implementation( rootProject.ext.androidx.kotlin_lib )
|
|
|
- implementation( rootProject.ext.androidx.kotlin_core )
|
|
|
- implementation( rootProject.ext.androidx.appcompat )
|
|
|
- implementation( rootProject.ext.androidx.material )
|
|
|
- implementation( rootProject.ext.androidx.constraintlayout)
|
|
|
- implementation 'com.localebro:okhttpprofiler:1.0.8'
|
|
|
+ implementation(rootProject.ext.androidx.kotlin_lib)
|
|
|
+ implementation(rootProject.ext.androidx.kotlin_core)
|
|
|
+ implementation(rootProject.ext.androidx.appcompat)
|
|
|
+ implementation(rootProject.ext.androidx.material)
|
|
|
+ implementation(rootProject.ext.androidx.constraintlayout)
|
|
|
+ implementation(rootProject.ext.dependencies.okhttpprofiler)
|
|
|
// multidex
|
|
|
- api( rootProject.ext.androidx.multidex )
|
|
|
+ api(rootProject.ext.androidx.multidex)
|
|
|
//SmartRefreshLayout:下拉刷新, 上拉加载更多 https://github.com/scwang90/SmartRefreshLayout
|
|
|
- api 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0'
|
|
|
+ api(rootProject.ext.dependencies.smartRefreshLayout)
|
|
|
|
|
|
// jsbridge :https://github.com/lzyzsd/JsBridge
|
|
|
- api 'com.github.lzyzsd:jsbridge:1.0.4'
|
|
|
+ api(rootProject.ext.dependencies.jsbridge)
|
|
|
|
|
|
// 基础依赖包,必须要依赖 https://github.com/gyf-dev/ImmersionBar
|
|
|
- api("com.geyifeng.immersionbar:immersionbar:3.2.2")
|
|
|
+ api(rootProject.ext.dependencies.immersionbar)
|
|
|
// kotlin扩展(可选)
|
|
|
- api("com.geyifeng.immersionbar:immersionbar-ktx:3.2.2")
|
|
|
+ api(rootProject.ext.dependencies.immersionbar_ktx)
|
|
|
// 编写更简洁、惯用的Kotlin代码
|
|
|
- api( rootProject.ext.androidx.core_ktx )
|
|
|
- // 协程
|
|
|
- api ("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3")
|
|
|
- api ("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3")
|
|
|
+ api(rootProject.ext.androidx.core_ktx)
|
|
|
//Logger日志
|
|
|
- api 'com.orhanobut:logger:2.2.0'
|
|
|
+ api(rootProject.ext.dependencies.logger)
|
|
|
|
|
|
//bugly
|
|
|
- api 'com.tencent.bugly:crashreport:4.1.9'
|
|
|
+ api(rootProject.ext.dependencies.bugly)
|
|
|
|
|
|
//ARouter
|
|
|
- api 'com.alibaba:arouter-api:1.5.0'
|
|
|
- kapt 'com.alibaba:arouter-compiler:1.2.2'
|
|
|
+ api(rootProject.ext.dependencies.arouter_api)
|
|
|
+ kapt(rootProject.ext.dependencies.arouter_compiler)
|
|
|
|
|
|
api 'com.blankj:utilcode:1.30.7'
|
|
|
|
|
|
// 协程
|
|
|
- api 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3'
|
|
|
- api 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3'
|
|
|
+ api(rootProject.ext.dependencies.kotlinx_core)
|
|
|
+ api(rootProject.ext.dependencies.kotlinx_android)
|
|
|
|
|
|
// Retrofit2.0
|
|
|
- api ("com.squareup.retrofit2:retrofit:2.9.0")
|
|
|
- api ("com.squareup.retrofit2:converter-gson:2.9.0")
|
|
|
- api ("com.squareup.okhttp3:logging-interceptor:4.2.0")
|
|
|
+ api("com.squareup.retrofit2:retrofit:2.9.0")
|
|
|
+ api("com.squareup.retrofit2:converter-gson:2.9.0")
|
|
|
+ api("com.squareup.okhttp3:logging-interceptor:4.2.0")
|
|
|
|
|
|
// 网络请求拦截器
|
|
|
/*implementation 'com.localebro:okhttpprofiler:1.0.8'*/
|
|
|
- api ("com.localebro:okhttpprofiler:1.0.8")
|
|
|
- api ("com.squareup.okhttp3:okhttp:4.9.0")
|
|
|
+ api("com.localebro:okhttpprofiler:1.0.8")
|
|
|
+ api("com.squareup.okhttp3:okhttp:4.9.0")
|
|
|
|
|
|
//RxJava2.0
|
|
|
api 'io.reactivex.rxjava2:rxjava:2.2.20'
|
|
|
api 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
|
|
api 'io.reactivex.rxjava2:rxkotlin:2.4.0'
|
|
|
|
|
|
- api ("com.google.android:flexbox:2.0.1")
|
|
|
+ api("com.google.android:flexbox:2.0.1")
|
|
|
//api 'lib.gorden.rxbus2:rxbus:2.0.1'
|
|
|
api 'io.github.jeremyliao:live-event-bus-x:1.8.0'
|
|
|
|