feat: 更新readme

This commit is contained in:
yangxisong 2025-12-16 12:03:23 +08:00
parent 9f0b64a619
commit c8671272f4
1 changed files with 16 additions and 18 deletions

View File

@ -38,24 +38,6 @@ debugImplementation("com.yuanxuan:tracking_point:x.x.x-SNAPSHOT")
//生产环境
releaseImplementation("com.yuanxuan:tracking_point:x.x.x")
```
### 常见问题
```kotlin
// aar中 使用 `retrofit:3.0.0` `okhttp:5.3.2` 如果你的项目使用的 `okhttp:4.x` 或更久的版本
implementation("com.squareup.okhttp3:okhttp:4.12.0")
debugImplementation("com.yuanxuan:tracking_point:1.0.13-SNAPSHOT") {
// 排除掉aar中的 okhttp 相关依赖
exclude(group = "com.squareup.okhttp3")
}
// 因为这是测试版的aar 还需要添加拦截器
debugImplementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
// release版 就只需要排除掉okhttp
implementation("com.yuanxuan:tracking_point:1.0.13") {
exclude(group = "com.squareup.okhttp3", module = "okhttp")
}
```
```kotlin
/**
* 初始化
@ -93,3 +75,19 @@ TrackingManager.push(
)
)
```
### 常见问题
```kotlin
// aar中 使用 `retrofit:3.0.0` `okhttp:5.3.2` 如果你的项目使用的 `okhttp:4.x` 或更久的版本
implementation("com.squareup.okhttp3:okhttp:4.12.0")
debugImplementation("com.yuanxuan:tracking_point:1.0.13-SNAPSHOT") {
// 排除掉aar中的 okhttp 相关依赖
exclude(group = "com.squareup.okhttp3")
}
// 因为这是测试版的aar 还需要添加拦截器
debugImplementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
// release版 就只需要排除掉okhttp
implementation("com.yuanxuan:tracking_point:1.0.13") {
exclude(group = "com.squareup.okhttp3", module = "okhttp")
}
```