| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- plugins {
- alias(libs.plugins.kotlin.android)
- id("com.android.library")
- }
- android {
- namespace = "com.narutohuo.xindazhou.core"
- compileSdk = 36
- defaultConfig {
- minSdk = 26
- }
- compileOptions {
- sourceCompatibility = JavaVersion.VERSION_17
- targetCompatibility = JavaVersion.VERSION_17
- }
- kotlinOptions {
- jvmTarget = "17"
- }
- }
- repositories {
- // base-core 不再需要访问 capability-share/libs 目录
- // 友盟相关依赖由 capability-share 模块管理
- }
- dependencies {
- // AndroidX Core
- api(libs.androidx.core.ktx)
-
- // Timber for logging (默认日志实现)
- // 如果以后不用 Timber,只需修改 TimberLog 实现类
- api("com.jakewharton.timber:timber:5.0.1")
-
- // Retrofit & OkHttp(基础网络库,所有模块都需要)
- // 使用 api 传递依赖,让 base-common 和其他模块可以使用
- api("com.squareup.retrofit2:retrofit:2.9.0")
- api("com.squareup.okhttp3:okhttp:4.12.0")
- api("com.squareup.okhttp3:logging-interceptor:4.12.0")
-
- // Gson(JSON解析)
- api("com.google.code.gson:gson:2.10.1")
- api("com.squareup.retrofit2:converter-gson:2.9.0")
-
- // Glide(图片加载,所有模块都需要)
- api("com.github.bumptech.glide:glide:4.16.0")
-
- // Kotlin Coroutines(协程,所有模块都需要)
- api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
- api("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3")
-
- // ARouter(路由和依赖注入)
- api("com.alibaba:arouter-api:1.5.2")
-
- // 微信 SDK(仅用于 WXEntryActivity 回调 Activity)
- // 注意:base-core 只依赖微信官方 SDK,不依赖友盟
- // 友盟相关依赖应该在 capability-share 模块中
- api("com.tencent.mm.opensdk:wechat-sdk-android:6.8.24")
- }
|