| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- 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 {
- flatDir {
- dirs 'libs'
- }
- mavenCentral()
- google()
- }
- dependencies {
- // AndroidX Core
- api(libs.androidx.core.ktx)
-
- // 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")
-
- // XXPermissions(权限请求库,所有模块都需要)
- // 使用 api 传递依赖,让 base-common 和其他模块可以使用
- api("com.github.getActivity:XXPermissions:18.6")
-
- // 微信 SDK(仅用于 WXEntryActivity 回调 Activity)
- api("com.tencent.mm.opensdk:wechat-sdk-android:6.8.24")
-
- // 友盟分享核心库(仅用于 WXEntryActivity 继承 WXCallbackActivity)
- // 注意:base-core 只依赖友盟分享核心库,不依赖完整的分享功能
- // 完整的分享功能在 capability-share 模块中
- api("com.umeng.umsdk:share-core:+")
-
- // 友盟微信分享完整版 JAR(包含 WXCallbackActivity)
- // 注意:WXCallbackActivity 在 umeng-share-wechat-full JAR 中
- api(files('libs/umeng-share-wechat-full-7.3.7.jar'))
-
- // LogcatViewer - 浮动窗口日志输出(开发调试用)
- // 注意:只在开发环境使用,生产环境使用 NoOpLog
- implementation("com.github.weijiaxing:LogcatViewer:1.0.3")
- }
|