fix: 处理aar中依赖不完整
This commit is contained in:
parent
3e8feb8ff0
commit
7e70c12a33
12
Readme.md
12
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
|
||||
/**
|
||||
* 初始化
|
||||
|
|
|
|||
|
|
@ -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" }
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue