feat: 更新readme
This commit is contained in:
parent
9f0b64a619
commit
c8671272f4
34
Readme.md
34
Readme.md
|
|
@ -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")
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue