Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
31c71584
Commit
31c71584
authored
Jun 25, 2022
by
万齐军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stetho移除
parent
923450d3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 additions
and
10 deletions
+1
-10
DemoAppLifecycles.kt
app/src/main/java/com/ydl/component/base/DemoAppLifecycles.kt
+0
-2
config.gradle
config.gradle
+0
-2
build.gradle
ydl-platform/build.gradle
+0
-2
HttpConfig.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/base/config/HttpConfig.kt
+1
-4
No files found.
app/src/main/java/com/ydl/component/base/DemoAppLifecycles.kt
View file @
31c71584
...
...
@@ -10,7 +10,6 @@ import android.os.Process
import
android.util.Log
import
androidx.annotation.RequiresApi
import
com.channel.ydl_flutter_base.plugin.YDLCommonPlugin
import
com.facebook.stetho.Stetho
import
com.meituan.android.walle.WalleChannelReader
import
com.tencent.bugly.crashreport.CrashReport
import
com.tencent.smtt.sdk.QbSdk
...
...
@@ -88,7 +87,6 @@ class DemoAppLifecycles : IAppLifecycles {
}
// application.registerActivityLifecycleCallbacks(new CoursePlayLifecycle());
Stetho
.
initializeWithDefaults
(
application
)
}
}
...
...
config.gradle
View file @
31c71584
...
...
@@ -188,8 +188,6 @@ ext {
//删除集成调试库,其功能合并到umeng基础组件库。
//"umeng-debug" : "com.umeng.sdk:debug:1.0.0",
"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"
,
"bugly-crashreport"
:
"com.tencent.bugly:crashreport:2.8.6.0"
,
"bugly-nativecrashreport"
:
"com.tencent.bugly:nativecrashreport:3.6.0.1"
,
...
...
ydl-platform/build.gradle
View file @
31c71584
...
...
@@ -151,8 +151,6 @@ dependencies {
api
rootProject
.
ext
.
dependencies
[
"umeng-shareboard"
]
api
rootProject
.
ext
.
dependencies
[
"umeng-wx-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-nativecrashreport"
]
api
rootProject
.
ext
.
dependencies
[
"arouter-api"
]
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/base/config/HttpConfig.kt
View file @
31c71584
...
...
@@ -3,7 +3,6 @@ package com.ydl.ydlcommon.base.config
import
android.annotation.SuppressLint
import
android.content.Context
import
android.text.TextUtils
import
com.facebook.stetho.okhttp3.StethoInterceptor
import
com.google.gson.Gson
import
com.ydl.pushserver.pushagent.YdlPushAgent
import
com.ydl.ydlcommon.app.Apm
...
...
@@ -133,9 +132,7 @@ class HttpConfig {
//获取证书
val
cerInputStream
=
context
.
resources
.
openRawResource
(
com
.
ydl
.
ydlcommon
.
R
.
raw
.
ydl_trust
);
val
builder
=
OkHttpConfig
.
Builder
(
context
)
if
(
appDebug
)
{
builder
.
setNetInterceptor
(
StethoInterceptor
())
}
else
{
if
(!
appDebug
)
{
//使用预埋证书,校验服务端证书
builder
.
setSslSocketFactory
(
cerInputStream
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment