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
772879aa
Commit
772879aa
authored
Nov 20, 2019
by
徐健
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
382325f4
3040244d
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
181 additions
and
107 deletions
+181
-107
config.gradle
config.gradle
+4
-5
CourseHomeBodyBean.java
m-course/src/main/java/com/yidianling/course/bean/CourseHomeBodyBean.java
+8
-1
CourseHostInfoBean.java
m-course/src/main/java/com/yidianling/course/bean/CourseHostInfoBean.java
+8
-0
CoursePlayItemViewVideo.kt
m-course/src/main/java/com/yidianling/course/coursePlay/CoursePlayItemViewVideo.kt
+5
-5
CourseSearchActicity.kt
m-course/src/main/java/com/yidianling/course/courseSearch/CourseSearchActicity.kt
+65
-50
CourseItemNewView.kt
m-course/src/main/java/com/yidianling/course/widget/CourseItemNewView.kt
+10
-1
course_videoplay_view.xml
m-course/src/main/res/layout/course_videoplay_view.xml
+26
-18
item_course_new_list_view.xml
m-course/src/main/res/layout/item_course_new_list_view.xml
+8
-0
TestsRouterImp.kt
m-tests/src/main/java/com/yidianling/tests/router/TestsRouterImp.kt
+7
-7
RegisterAndLoginActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
+3
-3
YdlRepository.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/app/YdlRepository.kt
+4
-0
HttpConfig.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/base/config/HttpConfig.kt
+1
-2
LogUtil.java
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/LogUtil.java
+2
-2
LogUtil.java
ydl-utils/src/main/java/com/yidianling/common/tools/LogUtil.java
+6
-3
NewH5Activity.java
ydl-webview/src/main/java/com/ydl/webview/NewH5Activity.java
+24
-10
No files found.
config.gradle
View file @
772879aa
...
...
@@ -47,7 +47,7 @@ ext {
"m-course"
:
"0.0.17"
,
"m-fm"
:
"0.0.15"
,
"m-muse"
:
"0.0.11"
,
"m-tests"
:
"0.0.
9
"
,
"m-tests"
:
"0.0.
10
"
,
"m-user"
:
"0.0.30"
,
//-------------- 业务模块 API 层 --------------
...
...
@@ -69,10 +69,9 @@ ext {
"ydl-pay"
:
"0.0.9"
,
"m-audioim"
:
"0.0.15"
,
//以下 几乎不会动
"router"
:
"0.0.1"
,
"ydl-net"
:
"0.0.2"
,
"ydl-utils"
:
"0.0.
2
"
,
"ydl-utils"
:
"0.0.
3
"
,
"ydl-flutter-base"
:
"0.0.3"
,
]
...
...
@@ -81,7 +80,7 @@ ext {
//第三步 若干
"m-confide"
:
"0.0.15"
,
"m-consultant"
:
"0.0.26"
,
"m-course"
:
"0.0.
17
"
,
"m-course"
:
"0.0.
22
"
,
"m-fm"
:
"0.0.15"
,
"m-muse"
:
"0.0.7"
,
"m-tests"
:
"0.0.4"
,
...
...
@@ -108,7 +107,7 @@ ext {
"router"
:
"0.0.1"
,
"ydl-net"
:
"0.0.2"
,
"ydl-utils"
:
"0.0.
2
"
,
"ydl-utils"
:
"0.0.
3
"
,
"ydl-flutter-base"
:
"0.0.3"
,
]
...
...
m-course/src/main/java/com/yidianling/course/bean/CourseHomeBodyBean.java
View file @
772879aa
...
...
@@ -36,5 +36,12 @@ public class CourseHomeBodyBean {
public
String
originalApplyFee
;
public
boolean
isBuy
;
public
String
demoFile
;
/**
* 活动图标
*/
public
String
activityImg
;
/**
* 是否参加活动
*/
public
String
joinActivity
;
}
m-course/src/main/java/com/yidianling/course/bean/CourseHostInfoBean.java
View file @
772879aa
...
...
@@ -28,4 +28,12 @@ public class CourseHostInfoBean {
public
String
askTotalTime
;
public
String
helpLong
;
public
ShareData
shareData
;
/**
* 活动图标
*/
public
String
activityImg
;
/**
* 是否参加活动
*/
public
String
joinActivity
;
}
m-course/src/main/java/com/yidianling/course/coursePlay/CoursePlayItemViewVideo.kt
View file @
772879aa
...
...
@@ -12,6 +12,7 @@ import com.ydl.media.audio.utils.PlayProgressUtil
import
com.ydl.media.view.PlayTypeEnum
import
com.ydl.media.view.PlayerFloatHelper
import
com.ydl.ydl_image.module.GlideApp
import
com.ydl.ydlcommon.utils.LogUtil
import
com.ydl.ydlcommon.view.dialog.CommonDialog
import
com.yidianling.course.R
import
com.yidianling.course.bean.CourseExtraBean
...
...
@@ -173,7 +174,7 @@ class CoursePlayItemViewVideo : RelativeLayout, PlayViewInterface {
.
forbidTouch
(
false
)
.
setOnInfoListener
(
object
:
IMediaPlayer
.
OnInfoListener
{
override
fun
onInfo
(
mp
:
IMediaPlayer
,
what
:
Int
,
extra
:
Int
):
Boolean
{
LogUtil
.
e
(
"课程播放--状态-$what"
)
if
(
what
==
PlayStateParams
.
STATE_PAUSED
)
{
this
@CoursePlayItemViewVideo
.
findViewById
<
View
>(
R
.
id
.
rl_play_pause_layout
).
visibility
=
View
.
VISIBLE
}
else
{
...
...
@@ -187,13 +188,12 @@ class CoursePlayItemViewVideo : RelativeLayout, PlayViewInterface {
||
what
==
PlayStateParams
.
MEDIA_INFO_AUDIO_RENDERING_START
||
what
==
PlayStateParams
.
MEDIA_INFO_VIDEO_RENDERING_START
||
what
==
PlayStateParams
.
STATE_PLAYING
||
what
==
IMediaPlayer
.
MEDIA_INFO_VIDEO_SEEK_RENDERING_START
)
{
activity
?.
isVideoPlay
=
true
this
@CoursePlayItemViewVideo
.
findViewById
<
View
>(
R
.
id
.
ll_bg
).
visibility
=
View
.
GONE
}
else
{
mHandler
.
postDelayed
({
this
@CoursePlayItemViewVideo
.
findViewById
<
View
>(
R
.
id
.
ll_bg
).
visibility
=
View
.
VISIBLE
},
550
)
this
@CoursePlayItemViewVideo
.
findViewById
<
View
>(
R
.
id
.
ll_loading
).
visibility
=
View
.
GONE
this
@CoursePlayItemViewVideo
.
findViewById
<
View
>(
R
.
id
.
app_video_loading
).
visibility
=
View
.
GONE
}
if
(
what
==
PlayStateParams
.
STATE_COMPLETED
)
{
...
...
m-course/src/main/java/com/yidianling/course/courseSearch/CourseSearchActicity.kt
View file @
772879aa
...
...
@@ -97,23 +97,27 @@ class CourseSearchActivity : BaseActivity(), CourseSearchAdapter.OnItemClick, IC
private
fun
initSearchBar
()
{
window
.
setSoftInputMode
(
WindowManager
.
LayoutParams
.
SOFT_INPUT_STATE_VISIBLE
)
activity_course_search_search_bar_view
.
initBarType
(
SearchBarView
.
ENABLE_INPUT
,
object
:
SearchBarView
.
SearchCallBack
{
override
fun
cloase
()
{
finish
()
}
activity_course_search_search_bar_view
.
initBarType
(
SearchBarView
.
ENABLE_INPUT
,
object
:
SearchBarView
.
SearchCallBack
{
override
fun
cloase
()
{
finish
()
}
override
fun
clickSearchBtn
(
str
:
String
)
{
inputString
=
str
if
(
TextUtils
.
isEmpty
(
str
))
{
override
fun
clickSearchBtn
(
str
:
String
)
{
inputString
=
str
if
(
TextUtils
.
isEmpty
(
str
))
{
// showUnusualView("请输入要搜索的内容")
ToastUtil
.
toastShort
(
"请输入要搜索的内容"
)
return
ToastUtil
.
toastShort
(
"请输入要搜索的内容"
)
return
}
loadCourseList
(
true
)
}
loadCourseList
(
true
)
}
})
RxKeyboardTool
.
showSoftInput
(
this
,)
})
activity_course_search_search_bar_view
.
postDelayed
({
RxKeyboardTool
.
showSoftInput
(
this
,
activity_course_search_search_bar_view
.
getEditText
())
},
500
)
}
/**
...
...
@@ -130,23 +134,29 @@ class CourseSearchActivity : BaseActivity(), CourseSearchAdapter.OnItemClick, IC
*/
private
fun
initRecyclerView
()
{
if
(
null
==
courseSearchAdapterWrapper
)
{
courseSearchAdapter
=
CourseSearchAdapter
(
this
,
CourseSearchActicity
@
this
,
courseList
!!
)
courseSearchAdapter
=
CourseSearchAdapter
(
this
,
CourseSearchActicity
@
this
,
courseList
!!
)
courseSearchAdapter
!!
.
setOnItemClickListener
(
this
)
activity_course_search_recycler
.
layoutManager
=
LinearLayoutManager
(
this
)
courseSearchAdapterWrapper
=
CourseSearchAdapterWrapper
(
this
,
courseSearchAdapter
!!
,
20
,
activity_course_search_recycler
)
.
setOnLoadMoreListener
(
object
:
CourseSearchAdapterWrapper
.
OnLoadMoreListener
{
override
fun
onLoadMore
()
{
loadCourseList
(
false
)
}
})
this
,
courseSearchAdapter
!!
,
20
,
activity_course_search_recycler
)
.
setOnLoadMoreListener
(
object
:
CourseSearchAdapterWrapper
.
OnLoadMoreListener
{
override
fun
onLoadMore
()
{
loadCourseList
(
false
)
}
})
activity_course_search_recycler
.
adapter
=
courseSearchAdapterWrapper
//滑动监听 图片是否加载
activity_course_search_recycler
.
addOnScrollListener
(
YDLImageRecyclerOnScrollListener
(
CourseSearchActicity
@
this
))
activity_course_search_recycler
.
addOnScrollListener
(
YDLImageRecyclerOnScrollListener
(
CourseSearchActicity
@
this
)
)
loadCourseList
(
true
)
}
}
...
...
@@ -159,7 +169,12 @@ class CourseSearchActivity : BaseActivity(), CourseSearchAdapter.OnItemClick, IC
if
(
null
!=
courseItem
)
{
val
h5Params
=
H5Params
(
CourseConstants
.
COURSE_DETAIL_H5
+
courseItem
.
id
,
"课程详情"
)
if
(
null
!=
courseItem
.
share
&&
!
TextUtils
.
isEmpty
(
courseItem
.
share
.
share_url
))
{
val
shareData
=
ShareData
(
courseItem
.
share
.
share_url
,
courseItem
.
share
.
title
,
courseItem
.
share
.
cover
,
courseItem
.
share
.
desc
)
val
shareData
=
ShareData
(
courseItem
.
share
.
share_url
,
courseItem
.
share
.
title
,
courseItem
.
share
.
cover
,
courseItem
.
share
.
desc
)
h5Params
.
shareData
=
shareData
}
...
...
@@ -203,36 +218,36 @@ class CourseSearchActivity : BaseActivity(), CourseSearchAdapter.OnItemClick, IC
}
CourseSearchApiUtils
.
courseSearchList
(
nowPage
,
inputString
)
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
(
Consumer
{
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
(
Consumer
{
if
(
it
.
data
.
list
.
isNotEmpty
())
{
hideUnusualPage
()
if
(
type
)
{
courseList
.
clear
()
courseList
.
addAll
(
it
.
data
.
list
)
courseSearchAdapterWrapper
!!
.
notifyDataSetChanged
()
}
else
{
courseList
.
addAll
(
it
.
data
.
list
)
courseSearchAdapterWrapper
!!
.
insertData
()
}
if
(
it
.
data
.
list
.
isNotEmpty
())
{
hideUnusualPage
()
if
(
type
)
{
courseList
.
clear
()
courseList
.
addAll
(
it
.
data
.
list
)
courseSearchAdapterWrapper
!!
.
notifyDataSetChanged
()
}
else
{
if
(!
type
)
{
courseSearchAdapterWrapper
!!
.
noMoreData
()
}
else
{
showUnusualView
(
"没有搜到相关信息,换个关键词看看吧"
,
true
)
}
courseList
.
addAll
(
it
.
data
.
list
)
courseSearchAdapterWrapper
!!
.
insertData
()
}
}
else
{
if
(!
type
)
{
courseSearchAdapterWrapper
!!
.
noMoreData
()
}
else
{
showUnusualView
(
"没有搜到相关信息,换个关键词看看吧"
,
true
)
}
}
activity_course_search_swipe_refresh_layout
.
isRefreshing
=
false
},
object
:
ThrowableConsumer
()
{
override
fun
accept
(
msg
:
String
)
{
Log
.
i
(
"testtest"
,
msg
)
activity_course_search_swipe_refresh_layout
.
isRefreshing
=
false
},
object
:
ThrowableConsumer
()
{
override
fun
accept
(
msg
:
String
)
{
Log
.
i
(
"testtest"
,
msg
)
activity_course_search_swipe_refresh_layout
.
isRefreshing
=
false
showUnusualView
(
"请检查你的网络设置"
,
false
)
}
})
showUnusualView
(
"请检查你的网络设置"
,
false
)
}
})
}
/**
...
...
m-course/src/main/java/com/yidianling/course/widget/CourseItemNewView.kt
View file @
772879aa
...
...
@@ -75,7 +75,16 @@ class CourseItemNewView : ConstraintLayout {
.
load
(
headUrl
)
.
into
(
iv_head
)
tv_title
.
text
=
course
.
title
//活动标签
if
(!
TextUtils
.
isEmpty
(
course
.
courseHostInfo
?.
activityImg
)){
img_activity
.
visibility
=
View
.
VISIBLE
GlideApp
.
with
(
context
).
load
(
course
.
courseHostInfo
?.
activityImg
).
into
(
img_activity
)
tv_title
.
text
=
"\u3000\u3000\u3000\u0020"
+
course
.
title
}
else
{
img_activity
.
visibility
=
View
.
GONE
tv_title
.
text
=
course
.
title
}
if
(!
TextUtils
.
isEmpty
(
course
.
doctorName
))
{
doctorName
=
course
.
doctorName
}
else
{
...
...
m-course/src/main/res/layout/course_videoplay_view.xml
View file @
772879aa
...
...
@@ -85,30 +85,38 @@
<!--加载中-->
<LinearLayout
android:id=
"@+id/
app_video
_loading"
android:id=
"@+id/
ll
_loading"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:orientation=
"vertical"
android:visibility=
"gone"
>
<ProgressBar
android:layout_width=
"50dp"
android:layout_height=
"50dp"
android:indeterminateBehavior=
"repeat"
android:indeterminateOnly=
"true"
/>
android:visibility=
"visible"
>
<TextView
android:id=
"@+id/app_video_speed"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"4dp"
<LinearLayout
android:id=
"@+id/app_video_loading"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:text=
"188Kb/s"
android:textColor=
"@android:color/white"
android:visibility=
"gone"
/>
android:orientation=
"vertical"
android:visibility=
"gone"
>
<ProgressBar
android:layout_width=
"50dp"
android:layout_height=
"50dp"
android:indeterminateBehavior=
"repeat"
android:indeterminateOnly=
"true"
/>
<TextView
android:id=
"@+id/app_video_speed"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"4dp"
android:gravity=
"center"
android:text=
"188Kb/s"
android:textColor=
"@android:color/white"
android:visibility=
"gone"
/>
</LinearLayout>
</LinearLayout>
<!-- 中间触摸提示-->
<include
layout=
"@layout/simple_player_touch_gestures"
...
...
m-course/src/main/res/layout/item_course_new_list_view.xml
View file @
772879aa
...
...
@@ -82,6 +82,14 @@
app:layout_constraintTop_toTopOf=
"@+id/iv_head"
tools:text=
"走出余光恐惧,一位余光恐惧者的亲诉一位余光恐惧者的亲诉一位余光恐惧者的亲诉一位余光恐惧者的亲诉"
/>
<ImageView
android:id=
"@+id/img_activity"
android:layout_width=
"47dp"
android:layout_height=
"15dp"
android:layout_marginTop=
"3.3dp"
app:layout_constraintTop_toTopOf=
"@+id/tv_title"
app:layout_constraintLeft_toLeftOf=
"@+id/tv_title"
android:visibility=
"gone"
/>
<TextView
android:id=
"@+id/tv_doctor_info"
android:layout_width=
"0dp"
...
...
m-tests/src/main/java/com/yidianling/tests/router/TestsRouterImp.kt
View file @
772879aa
...
...
@@ -2,22 +2,22 @@ package com.yidianling.tests.router
import
android.app.Activity
import
android.content.Intent
import
com.ydl.ydl_router.manager.YDLRouterManager
import
com.ydl.ydl_router.manager.YDLRouterParams
import
com.ydl.webview.H5Params
import
com.ydl.webview.NewH5Activity
import
com.ydl.ydlcommon.base.BaseApp
import
com.ydl.ydlcommon.base.config.HttpConfig
import
com.ydl.ydlcommon.router.IYDLRouterConstant
import
com.yidianling.router.tests.ITestsRouter
class
TestsRouterImp
:
ITestsRouter
{
override
fun
testH5Result
(
testResultId
:
String
)
{
YDLRouterManager
.
router
(
IYDLRouterConstant
.
ROUTER_H5_H5
,
YDLRouterParams
().
putExtra
(
IYDLRouterConstant
.
EXTRA_URL
,
HttpConfig
.
MH5_URL
+
"ceshi/result/"
+
testResultId
),
""
)
val
h5Params
=
H5Params
(
HttpConfig
.
MH5_URL
+
"ceshi/result/"
+
testResultId
,
null
)
NewH5Activity
.
start
(
BaseApp
.
getApp
(),
h5Params
)
}
override
fun
testDetailH5
(
testId
:
String
)
{
YDLRouterManager
.
router
(
IYDLRouterConstant
.
ROUTER_H5_H5
,
YDLRouterParams
().
putExtra
(
IYDLRouterConstant
.
EXTRA_URL
,
HttpConfig
.
MH5_URL
+
"ceshi/"
+
testId
),
""
)
val
h5Params
=
H5Params
(
HttpConfig
.
MH5_URL
+
"ceshi/"
+
testId
,
null
)
NewH5Activity
.
start
(
BaseApp
.
getApp
(),
h5Params
)
}
override
fun
testDetailIntent
(
activity
:
Activity
,
testId
:
Int
):
Intent
{
...
...
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
View file @
772879aa
...
...
@@ -25,6 +25,7 @@ import com.tbruyelle.rxpermissions2.RxPermissions
import
com.umeng.socialize.UMShareAPI
import
com.umeng.socialize.UMShareConfig
import
com.umeng.socialize.bean.SHARE_MEDIA
import
com.ydl.ydlcommon.base.BaseApp
import
com.ydl.ydlcommon.base.BaseMvpActivity
import
com.ydl.ydlcommon.utils.ActivityManager
import
com.ydl.ydlcommon.utils.StatusBarUtils
...
...
@@ -34,10 +35,9 @@ import com.ydl.ydlcommon.view.dialog.CommonDialog
import
com.yidianling.common.tools.LogUtil
import
com.yidianling.common.tools.RxKeyboardTool
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.user.api.bean.UserResponseBean
import
com.yidianling.user.BuildConfig
import
com.yidianling.user.R
import
com.yidianling.user.UserHelper
import
com.yidianling.user.api.bean.UserResponseBean
import
com.yidianling.user.bean.AliAuthBean
import
com.yidianling.user.constants.UserBIConstants
import
com.yidianling.user.http.request.BindPhoneJavaParam
...
...
@@ -225,7 +225,7 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
/*
* 3.set debugMode when app is in debug mode, sdk will print log in debug mode
*/
mAlicomAuthHelper
?.
setDebugMode
(
B
uildConfig
.
DEBUG
)
mAlicomAuthHelper
?.
setDebugMode
(
B
aseApp
.
instance
.
getGlobalConfig
().
appDebug
)
requestPermission
()
/*
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/app/YdlRepository.kt
View file @
772879aa
...
...
@@ -7,7 +7,9 @@ import com.lzy.imagepicker.ImagePicker
import
com.lzy.imagepicker.view.CropImageView
import
com.ydl.devicesidlib.DeviceIDHelper
import
com.ydl.ydlcommon.actions.imagepicker.YdlImageLoader
import
com.ydl.ydlcommon.base.BaseApp
import
com.ydl.ydlcommon.utils.BuryPointUtils
import
com.ydl.ydlcommon.utils.LogUtil
import
com.ydl.ydlcommon.utils.log.LogHelper
import
com.yidianling.common.tools.RxTool
...
...
@@ -25,6 +27,8 @@ object YdlRepository {
fun
initApp
(
app
:
Application
,
isDebug
:
Boolean
)
{
DeviceIDHelper
.
getInstance
().
init
(
app
.
applicationContext
)
LogHelper
.
getInstance
().
deleteExpireLogSync
()
LogUtil
.
debug
=
BaseApp
.
instance
.
getGlobalConfig
().
appDebug
com
.
yidianling
.
common
.
tools
.
LogUtil
.
debug
=
BaseApp
.
instance
.
getGlobalConfig
().
appDebug
//初始化工具类
RxTool
.
init
(
app
)
BuryPointUtils
.
init
()
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/base/config/HttpConfig.kt
View file @
772879aa
...
...
@@ -3,7 +3,6 @@ package com.ydl.ydlcommon.base.config
import
android.content.Context
import
android.text.TextUtils
import
com.facebook.stetho.okhttp3.StethoInterceptor
import
com.ydl.ydlcommon.BuildConfig
import
com.ydl.ydlcommon.base.BaseApp
import
com.ydl.ydlcommon.data.PlatformDataManager
import
com.ydl.ydlcommon.data.http.EncryptUtils
...
...
@@ -72,7 +71,7 @@ class HttpConfig {
//获取证书
val
cerInputStream
=
context
.
resources
.
openRawResource
(
com
.
ydl
.
ydlcommon
.
R
.
raw
.
ydl_trust
);
val
builder
=
OkHttpConfig
.
Builder
(
context
);
if
(
BuildConfig
.
DEBUG
)
{
if
(
appDebug
)
{
builder
.
setNetInterceptor
(
StethoInterceptor
())
}
else
{
//使用预埋证书,校验服务端证书
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/LogUtil.java
View file @
772879aa
...
...
@@ -2,7 +2,6 @@
package
com
.
ydl
.
ydlcommon
.
utils
;
import
android.util.Log
;
import
com.ydl.ydlcommon.BuildConfig
;
/**
...
...
@@ -18,7 +17,8 @@ public class LogUtil {
private
static
String
lastMethodName
;
private
static
boolean
debug
=
BuildConfig
.
DEBUG
;
public
static
boolean
debug
=
false
;
public
static
String
TAG
=
"hzs"
;
private
LogUtil
()
{
...
...
ydl-utils/src/main/java/com/yidianling/common/tools/LogUtil.java
View file @
772879aa
...
...
@@ -3,8 +3,6 @@ package com.yidianling.common.tools;
import
android.util.Log
;
import
com.yidianling.common.BuildConfig
;
/**
* LogUtil
...
...
@@ -19,12 +17,17 @@ public class LogUtil {
private
static
String
lastMethodName
;
private
static
boolean
debug
=
BuildConfig
.
DEBUG
;
public
static
boolean
debug
=
false
;
public
static
String
TAG
=
"hzs"
;
private
LogUtil
()
{
}
public
static
void
setPrint
(
boolean
isPrint
){
debug
=
isPrint
;
}
private
static
String
printLog
(
String
log
)
{
//记录本地日志系统
...
...
ydl-webview/src/main/java/com/ydl/webview/NewH5Activity.java
View file @
772879aa
...
...
@@ -21,12 +21,18 @@ import android.webkit.ValueCallback;
import
android.widget.ImageView
;
import
android.widget.LinearLayout
;
import
android.widget.PopupWindow
;
import
com.alibaba.android.arouter.facade.annotation.Route
;
import
com.alibaba.android.arouter.launcher.ARouter
;
import
com.tencent.smtt.export.external.interfaces.JsResult
;
import
com.tencent.smtt.export.external.interfaces.SslError
;
import
com.tencent.smtt.export.external.interfaces.SslErrorHandler
;
import
com.tencent.smtt.sdk.*
;
import
com.tencent.smtt.sdk.CookieManager
;
import
com.tencent.smtt.sdk.CookieSyncManager
;
import
com.tencent.smtt.sdk.WebChromeClient
;
import
com.tencent.smtt.sdk.WebSettings
;
import
com.tencent.smtt.sdk.WebView
;
import
com.tencent.smtt.sdk.WebViewClient
;
import
com.umeng.socialize.UMShareAPI
;
import
com.umeng.socialize.bean.SHARE_MEDIA
;
import
com.ydl.ydl_router.manager.YDLRouterManager
;
...
...
@@ -36,7 +42,13 @@ import com.ydl.ydlcommon.base.config.YDLConstants;
import
com.ydl.ydlcommon.bean.StatusBarOptions
;
import
com.ydl.ydlcommon.router.YdlCommonRouterManager
;
import
com.ydl.ydlcommon.ui.LogoLoadingView
;
import
com.ydl.ydlcommon.utils.*
;
import
com.ydl.ydlcommon.utils.BuryPointUtils
;
import
com.ydl.ydlcommon.utils.LogUtil
;
import
com.ydl.ydlcommon.utils.NetWorkSpeedUtils
;
import
com.ydl.ydlcommon.utils.PopUtils
;
import
com.ydl.ydlcommon.utils.StatusBarUtils
;
import
com.ydl.ydlcommon.utils.TemporaryUtils
;
import
com.ydl.ydlcommon.utils.URLUtils
;
import
com.ydl.ydlcommon.view.TitleBar
;
import
com.ydl.ydlcommon.view.dialog.YDLShareDialog
;
import
com.yidianling.common.tools.RxDeviceTool
;
...
...
@@ -44,13 +56,7 @@ import com.yidianling.common.tools.RxImageTool;
import
com.yidianling.common.tools.ToastUtil
;
import
com.yidianling.user.api.event.UserBindPhoneEvent
;
import
com.yidianling.user.api.event.UserLoginEvent
;
import
de.greenrobot.event.EventBus
;
import
in.srain.cube.views.ptr.PtrDefaultHandler
;
import
in.srain.cube.views.ptr.PtrFrameLayout
;
import
in.srain.cube.views.ptr.PtrHandler
;
import
in.srain.cube.views.ptr.header.MaterialHeader
;
import
io.reactivex.Observable
;
import
io.reactivex.android.schedulers.AndroidSchedulers
;
import
org.jetbrains.annotations.NotNull
;
import
org.jetbrains.annotations.Nullable
;
import
org.json.JSONException
;
...
...
@@ -60,6 +66,14 @@ import java.net.URI;
import
java.util.HashMap
;
import
java.util.Map
;
import
de.greenrobot.event.EventBus
;
import
in.srain.cube.views.ptr.PtrDefaultHandler
;
import
in.srain.cube.views.ptr.PtrFrameLayout
;
import
in.srain.cube.views.ptr.PtrHandler
;
import
in.srain.cube.views.ptr.header.MaterialHeader
;
import
io.reactivex.Observable
;
import
io.reactivex.android.schedulers.AndroidSchedulers
;
import
static
android
.
view
.
View
.
GONE
;
import
static
android
.
view
.
View
.
VISIBLE
;
...
...
@@ -870,7 +884,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
}
private
void
onReceivedSslErrorHandle
(
SslErrorHandler
handler
)
{
if
(
B
uildConfig
.
DEBUG
)
{
if
(
B
aseApp
.
instance
.
getGlobalConfig
().
getAppDebug
()
)
{
handler
.
proceed
();
return
;
}
...
...
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