From c8671272f4fd87627e337552dfe9d3611bc91172 Mon Sep 17 00:00:00 2001 From: yangxisong Date: Tue, 16 Dec 2025 12:03:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Readme.md | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/Readme.md b/Readme.md index 0e608cd..5b59dd1 100644 --- a/Readme.md +++ b/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") +} +```