Commit a1fb0914 by 万齐军

APM 网络分析无插件接入,去掉接口错误上报

parent cd2b5f93
...@@ -4,7 +4,7 @@ def mavenRepositoryUrl = "http://nexus.yidianling.com/repository/AndroidReleases ...@@ -4,7 +4,7 @@ def mavenRepositoryUrl = "http://nexus.yidianling.com/repository/AndroidReleases
def getVersionName() { def getVersionName() {
def publishVersion = rootProject.ext.ydl2PublishVersion def publishVersion = rootProject.ext.ydl2PublishVersion
return isLocal() ? publishVersion + "-LOCAL" : publishVersion return publishVersion
} }
def isLocal(){ def isLocal(){
Properties properties = new Properties() Properties properties = new Properties()
......
...@@ -39,6 +39,7 @@ dependencies { ...@@ -39,6 +39,7 @@ dependencies {
testImplementation 'junit:junit:4.13.2' testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'com.volcengine:apm_insight:1.4.6.cn'
api rootProject.ext.dependencies["gson"] api rootProject.ext.dependencies["gson"]
api rootProject.ext.dependencies["aliyun"] api rootProject.ext.dependencies["aliyun"]
......
...@@ -4,6 +4,7 @@ import android.content.Context; ...@@ -4,6 +4,7 @@ import android.content.Context;
import android.text.TextUtils; import android.text.TextUtils;
import android.widget.Toast; import android.widget.Toast;
import com.bytedance.apm.agent.instrumentation.OkHttp3Instrumentation;
import com.ydl.ydlnet.builder.cookie.CookieJarImpl; import com.ydl.ydlnet.builder.cookie.CookieJarImpl;
import com.ydl.ydlnet.builder.cookie.store.CookieStore; import com.ydl.ydlnet.builder.cookie.store.CookieStore;
import com.ydl.ydlnet.builder.factory.ApiFactory; import com.ydl.ydlnet.builder.factory.ApiFactory;
...@@ -206,7 +207,7 @@ public class OkHttpConfig { ...@@ -206,7 +207,7 @@ public class OkHttpConfig {
setDebugConfig(); setDebugConfig();
setProxy(); setProxy();
okHttpClient = okHttpClientBuilder.build(); okHttpClient = OkHttp3Instrumentation.build(okHttpClientBuilder);
return okHttpClient; return okHttpClient;
} }
......
...@@ -142,8 +142,8 @@ class HttpConfig { ...@@ -142,8 +142,8 @@ class HttpConfig {
commonParams(), commonParams(),
requestHead(appName), requestHead(appName),
addEncryptionHeaderParamsInterceptor(), addEncryptionHeaderParamsInterceptor(),
responseErrorInterceptor(), responseErrorInterceptor()
respErrorInterceptor() // respErrorInterceptor()
) )
.setRequestHandler(getRequestHandler()) .setRequestHandler(getRequestHandler())
.setReadTimeout(15) .setReadTimeout(15)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment