代码拉取完成,页面将自动刷新
/**
* 在主项目的根目录下创建config.gradle文件
* 在这里单独处理统一依赖问题
* 注意需要在根目录的build.gradle中进行引入
*/
ext {
isModule = true
android = [
//编译的SDK版本
compileSdkVersion: 31,
//编译的Tools版本
buildToolsVersion: "30.0.3",
//项目id
applicationId:"com.android.configdemo",
//支持SDK的最低版本
minSdkVersion : 21,
//支持SDK的目标版本
targetSdkVersion : 29,
//版本号
versionCode:37,
//版本名称
versionName:"4.7.6",
testInstrumentationRunner:"android.support.test.runner.AndroidJUnitRunner"
]
versions = [
room: "2.4.0",
tinypinyin: "2.0.3",
leakcanary: "2.11",
compose: "1.3.1",
accompanist_pager:"0.24.3-alpha"
]
//依赖库版本
supportLibrary = "26.1.0"
//Kotlin version
kotlin_version = "1.4.31"
//库依赖
supportDependencies = [
implementation_kotlin_stdlib_jdk7: "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${kotlin_version}",
implementation_appcompat: 'androidx.appcompat:appcompat:1.4.1',
implementation_core_ktx: 'androidx.core:core-ktx:1.7.0',
implementation_constraintlayout: 'androidx.constraintlayout:constraintlayout:2.1.3',
implementation_recyclerview: 'androidx.recyclerview:recyclerview:1.1.0',
implementation_swiperefreshlayout: "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0",
implementation_viewpager2: 'androidx.viewpager2:viewpager2:1.0.0',
implementation_kotlinx_coroutines_core: "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.2",
implementation_kotlinx_coroutines_android: "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.2",
implementation_gson: 'com.google.code.gson:gson:2.8.6',
implementation_glide: 'com.github.bumptech.glide:glide:4.11.0',
kapt_compiler: 'com.github.bumptech.glide:compiler:4.11.0',
implementation_material: 'com.google.android.material:material:1.5.0',
implementation_navigation_fragment_ktx: 'androidx.navigation:navigation-fragment-ktx:2.3.3',
implementation_navigation_fragment: 'androidx.navigation:navigation-fragment:2.3.3',
implementation_navigation_ui_ktx: 'androidx.navigation:navigation-ui-ktx:2.3.3',
implementation_navigation_runtime_ktx: 'androidx.navigation:navigation-runtime-ktx:2.3.3',
implementation_lifecycle_viewmodel_ktx: "androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.0",
implementation_lifecycle_livedata_ktx: "androidx.lifecycle:lifecycle-livedata-ktx:2.5.0",
implementation_okhttp: 'com.squareup.okhttp3:okhttp:4.6.0',
implementation_logging_interceptor: 'com.squareup.okhttp3:logging-interceptor:4.6.0',//okhttp提供的请求日志拦截器
implementation_retrofit: 'com.squareup.retrofit2:retrofit:2.8.1',
implementation_converter_gson: 'com.squareup.retrofit2:converter-gson:2.6.3',
implementation_localbroadcastmanager: 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0',
implementation_org_eclipse_paho_android_service: 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1',
implementation_org_eclipse_paho_client_mqttv3: 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5',
implementation_multidex: 'com.android.support:multidex:1.0.3',
testImplementation_junit: 'junit:junit:4.13.2',
androidTestImplementation_junit: 'androidx.test.ext:junit:1.1.3',
androidTestImplementation_espresso_core: 'androidx.test.espresso:espresso-core:3.4.0',
implementation_tbs: 'com.qq.e.union:union:4.492.1362', // 4.480.1350
implementation_eventbus: 'org.greenrobot:eventbus:3.2.0',
implementation_huawei_ad: 'com.huawei.hms:ads-lite:13.4.55.302',
implementation_pictureselector: 'io.github.lucksiege:pictureselector:v2.7.3-rc10',
implementation_compose_ui:"androidx.compose.ui:ui:${versions["compose"]}",
implementation_compose_meterial: "androidx.compose.material:material:${versions["compose"]}",
implementation_compose_ui_tooling_preview: "androidx.compose.ui:ui-tooling-preview:${versions["compose"]}",
implementation_lifecycle_runtime_ktx: 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1',
implementation_compose_runtime_livedata: "androidx.compose.runtime:runtime-livedata:${versions["compose"]}",
implementation_lifecycle_viewmodel_compose: 'androidx.lifecycle:lifecycle-viewmodel-compose:1.0.0-alpha07',
implementation_activity_compose: "androidx.activity:activity-compose:${versions["compose"]}",
implementation_google_accompanist_coil: 'com.google.accompanist:accompanist-coil:0.13.0',
implementation_navigation_compose: 'androidx.navigation:navigation-compose:2.4.0-alpha04',
implementation_activity_ktx: "androidx.activity:activity-ktx:${versions["compose"]}",
implementation_base_quick_adapter: 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.6',
implementation_immersionbar: 'com.geyifeng.immersionbar:immersionbar:3.2.2',
implementation_jsoup: 'org.jsoup:jsoup:1.14.3',
implementation_smartrefreshlayout: 'io.github.scwang90:refresh-layout-kernel:2.0.5',
implementation_smartrefreshlayout_header: 'io.github.scwang90:refresh-header-classics:2.0.5',
implementation_youth_banner: 'io.github.youth5201314:banner:2.2.2',
implementation_compose_runtime: 'androidx.compose.runtime:runtime:1.0.1',
implementation_permissionx: 'com.guolindev.permissionx:permissionx:1.7.1',
implementation_bugly: 'com.tencent.bugly:crashreport:4.1.9',
implementation_room_ktx: "androidx.room:room-ktx:${versions["room"]}",
implementation_room_compiler: "androidx.room:room-compiler:${versions["room"]}",
implementation_room_runtime: "androidx.room:room-runtime:${versions["room"]}",
implementation_leakcanary_debug: "com.squareup.leakcanary:leakcanary-android:${versions["leakcanary"]}",
implementation_tinypinyin: "com.github.promeg:tinypinyin:${versions["tinypinyin"]}",
implementation_tinypinyin_pack: "com.github.promeg:tinypinyin-lexicons-android-cncity:${versions["tinypinyin"]}",
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。