Commit 31c71584 by 万齐军

stetho移除

parent 923450d3
...@@ -10,7 +10,6 @@ import android.os.Process ...@@ -10,7 +10,6 @@ import android.os.Process
import android.util.Log import android.util.Log
import androidx.annotation.RequiresApi import androidx.annotation.RequiresApi
import com.channel.ydl_flutter_base.plugin.YDLCommonPlugin import com.channel.ydl_flutter_base.plugin.YDLCommonPlugin
import com.facebook.stetho.Stetho
import com.meituan.android.walle.WalleChannelReader import com.meituan.android.walle.WalleChannelReader
import com.tencent.bugly.crashreport.CrashReport import com.tencent.bugly.crashreport.CrashReport
import com.tencent.smtt.sdk.QbSdk import com.tencent.smtt.sdk.QbSdk
...@@ -88,7 +87,6 @@ class DemoAppLifecycles : IAppLifecycles { ...@@ -88,7 +87,6 @@ class DemoAppLifecycles : IAppLifecycles {
} }
// application.registerActivityLifecycleCallbacks(new CoursePlayLifecycle()); // application.registerActivityLifecycleCallbacks(new CoursePlayLifecycle());
Stetho.initializeWithDefaults(application)
} }
} }
......
...@@ -188,8 +188,6 @@ ext { ...@@ -188,8 +188,6 @@ ext {
//删除集成调试库,其功能合并到umeng基础组件库。 //删除集成调试库,其功能合并到umeng基础组件库。
//"umeng-debug" : "com.umeng.sdk:debug:1.0.0", //"umeng-debug" : "com.umeng.sdk:debug:1.0.0",
"tablayout" : "com.flyco.tablayout:FlycoTabLayout_Lib:2.1.2@aar", "tablayout" : "com.flyco.tablayout:FlycoTabLayout_Lib:2.1.2@aar",
"stetho" : "com.facebook.stetho:stetho:1.5.0",
"stetho-okhttp3" : "com.facebook.stetho:stetho-okhttp3:1.4.1",
"aspectjrt" : "org.aspectj:aspectjrt:1.8.9", "aspectjrt" : "org.aspectj:aspectjrt:1.8.9",
"bugly-crashreport" : "com.tencent.bugly:crashreport:2.8.6.0", "bugly-crashreport" : "com.tencent.bugly:crashreport:2.8.6.0",
"bugly-nativecrashreport" : "com.tencent.bugly:nativecrashreport:3.6.0.1", "bugly-nativecrashreport" : "com.tencent.bugly:nativecrashreport:3.6.0.1",
......
...@@ -151,8 +151,6 @@ dependencies { ...@@ -151,8 +151,6 @@ dependencies {
api rootProject.ext.dependencies["umeng-shareboard"] api rootProject.ext.dependencies["umeng-shareboard"]
api rootProject.ext.dependencies["umeng-wx-guanfang"] api rootProject.ext.dependencies["umeng-wx-guanfang"]
api rootProject.ext.dependencies["umeng-qq-guanfang"] api rootProject.ext.dependencies["umeng-qq-guanfang"]
api rootProject.ext.dependencies["stetho"]
api rootProject.ext.dependencies["stetho-okhttp3"]
api rootProject.ext.dependencies["bugly-crashreport"] api rootProject.ext.dependencies["bugly-crashreport"]
api rootProject.ext.dependencies["bugly-nativecrashreport"] api rootProject.ext.dependencies["bugly-nativecrashreport"]
api rootProject.ext.dependencies["arouter-api"] api rootProject.ext.dependencies["arouter-api"]
......
...@@ -3,7 +3,6 @@ package com.ydl.ydlcommon.base.config ...@@ -3,7 +3,6 @@ package com.ydl.ydlcommon.base.config
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.content.Context import android.content.Context
import android.text.TextUtils import android.text.TextUtils
import com.facebook.stetho.okhttp3.StethoInterceptor
import com.google.gson.Gson import com.google.gson.Gson
import com.ydl.pushserver.pushagent.YdlPushAgent import com.ydl.pushserver.pushagent.YdlPushAgent
import com.ydl.ydlcommon.app.Apm import com.ydl.ydlcommon.app.Apm
...@@ -133,9 +132,7 @@ class HttpConfig { ...@@ -133,9 +132,7 @@ class HttpConfig {
//获取证书 //获取证书
val cerInputStream = context.resources.openRawResource(com.ydl.ydlcommon.R.raw.ydl_trust); val cerInputStream = context.resources.openRawResource(com.ydl.ydlcommon.R.raw.ydl_trust);
val builder = OkHttpConfig.Builder(context) val builder = OkHttpConfig.Builder(context)
if (appDebug) { if (!appDebug) {
builder.setNetInterceptor(StethoInterceptor())
} else {
//使用预埋证书,校验服务端证书 //使用预埋证书,校验服务端证书
builder.setSslSocketFactory(cerInputStream) builder.setSslSocketFactory(cerInputStream)
} }
......
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