From 7e70c12a33d8ee3cf88f6ecf1ebbca1f6c48da6e Mon Sep 17 00:00:00 2001 From: yangxisong Date: Wed, 10 Dec 2025 16:05:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86aar=E4=B8=AD=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E4=B8=8D=E5=AE=8C=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Readme.md | 12 ++++++++++++ ...ebug-1.0.0.aar => trackingPoint-debug-1.0.1.aar} | Bin ...se-1.0.0.aar => trackingPoint-release-1.0.1.aar} | Bin gradle/libs.versions.toml | 2 -- library/build.gradle.kts | 6 +----- 5 files changed, 13 insertions(+), 7 deletions(-) rename aar/debug/{trackingPoint-debug-1.0.0.aar => trackingPoint-debug-1.0.1.aar} (100%) rename aar/release/{trackingPoint-release-1.0.0.aar => trackingPoint-release-1.0.1.aar} (100%) diff --git a/Readme.md b/Readme.md index 15c1678..8c226e6 100644 --- a/Readme.md +++ b/Readme.md @@ -8,6 +8,18 @@ | debug | http://192.168.2.7:18828 | 是 | | release | https://track.23544.com | 否 | ### 使用 +```groovy +/** + * 因为是本地引入AAR 所以需要手动导入下列必备依赖 版本可根据项目调整 + */ +implementation("com.squareup.retrofit2:retrofit:3.0.0") +implementation("com.squareup.retrofit2:converter-moshi:3.0.0") +implementation("com.squareup.okhttp3:logging-interceptor:5.3.2") +implementation("com.squareup.moshi:moshi:1.15.2") +implementation("androidx.work:work-runtime-ktx:2.11.0") +implementation("androidx.room:room-runtime:2.8.4") +implementation("androidx.room:room-ktx:2.8.4") +``` ```kotlin /** * 初始化 diff --git a/aar/debug/trackingPoint-debug-1.0.0.aar b/aar/debug/trackingPoint-debug-1.0.1.aar similarity index 100% rename from aar/debug/trackingPoint-debug-1.0.0.aar rename to aar/debug/trackingPoint-debug-1.0.1.aar diff --git a/aar/release/trackingPoint-release-1.0.0.aar b/aar/release/trackingPoint-release-1.0.1.aar similarity index 100% rename from aar/release/trackingPoint-release-1.0.0.aar rename to aar/release/trackingPoint-release-1.0.1.aar diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 8f85cb6..00ba8fe 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -28,11 +28,9 @@ androidx-constraintlayout = { group = "androidx.constraintlayout", name = "const retrofit = { group = "com.squareup.retrofit2", name = "retrofit", version.ref = "retrofit" } retrofit-converter-moshi = { group = "com.squareup.retrofit2", name = "converter-moshi", version.ref = "retrofit" } moshi={ group = "com.squareup.moshi", name = "moshi", version.ref = "moshi" } -moshi-kotlin={ group = "com.squareup.moshi", name = "moshi-kotlin", version.ref = "moshi" } moshi-kotlin-codegen={ group = "com.squareup.moshi", name = "moshi-kotlin-codegen", version.ref = "moshi" } okhttp-logging-interceptor = { group = "com.squareup.okhttp3", name = "logging-interceptor", version.ref = "okhttp" } androidx-work-ktx = { group = "androidx.work", name = "work-runtime-ktx", version.ref = "worker" } - androidx-room = { group = "androidx.room", name = "room-runtime", version.ref = "room" } androidx-room-ksp = { group = "androidx.room", name = "room-compiler", version.ref = "room" } androidx-room-ktx = { group = "androidx.room", name = "room-ktx", version.ref = "room" } diff --git a/library/build.gradle.kts b/library/build.gradle.kts index 326d5a4..fd28e35 100644 --- a/library/build.gradle.kts +++ b/library/build.gradle.kts @@ -6,7 +6,7 @@ plugins { alias(libs.plugins.ksp) } -version = "1.0.0" +version = "1.0.1" android { namespace = "com.yuanxuan.tracking_point.library" @@ -46,10 +46,6 @@ android { } dependencies { - testImplementation(libs.junit) - androidTestImplementation(libs.androidx.junit) - androidTestImplementation(libs.androidx.espresso.core) - implementation(libs.androidx.core.ktx) implementation(libs.androidx.work.ktx) implementation(libs.retrofit)