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
153afe00
Commit
153afe00
authored
Jun 01, 2021
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:im组件升级
parent
1839381c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
12 deletions
+14
-12
build.gradle
app/build.gradle
+1
-0
WVClickAbstractListener.java
app/src/main/java/com/ydl/component/service/web/WVClickAbstractListener.java
+4
-1
config.gradle
config.gradle
+2
-2
IMServiceImpl.kt
m-im/src/main/java/com/yidianling/im/modular/service/IMServiceImpl.kt
+7
-9
No files found.
app/build.gradle
View file @
153afe00
...
...
@@ -211,6 +211,7 @@ dependencies {
implementation
project
(
':m-muse'
)
implementation
project
(
':m-im'
)
implementation
modularPublication
(
'com.ydl:m-im-api'
)
implementation
project
(
':m-dynamic'
)
implementation
project
(
':m-course'
)
//文章模块
...
...
app/src/main/java/com/ydl/component/service/web/WVClickAbstractListener.java
View file @
153afe00
...
...
@@ -8,7 +8,9 @@ import com.ydl.confide.api.IConfideService;
import
com.ydl.webview.H5JsBean
;
import
com.ydl.webview.H5Params
;
import
com.ydl.webview.NewH5Activity
;
import
com.ydl.ydlcommon.modular.ModularServiceManager
;
import
com.yidianling.common.tools.LogUtil
;
import
com.yidianling.im.api.service.IImService
;
/**
* webview 点击事件监听 抽象类
...
...
@@ -303,7 +305,8 @@ public class WVClickAbstractListener implements WebViewClientClickListener {
@Override
public
void
chatSchedule
(
H5JsBean
.
H5JsCmd
.
Params
params
)
{
ModularServiceManager
.
INSTANCE
.
provide
(
IImService
.
class
)
.
chatScheule
(
mContext
,
params
.
getUser_url
(),
params
.
getDoc_url
(),
params
.
getDsmId
(),
params
.
getTitle
(),
params
.
getToUid
());
}
@Override
...
...
config.gradle
View file @
153afe00
...
...
@@ -10,7 +10,7 @@ ext {
"m-fm"
:
"0.0.30.03"
,
"m-user"
:
"0.0.61.34"
,
"m-home"
:
"0.0.22.62"
,
"m-im"
:
"0.0.19.1
6
"
,
"m-im"
:
"0.0.19.1
7
"
,
"m-dynamic"
:
"0.0.7.22"
,
"m-article"
:
"0.0.0.8"
,
...
...
@@ -93,7 +93,7 @@ ext {
"m-fm"
:
"0.0.30.01"
,
"m-user"
:
"0.0.61.34"
,
"m-home"
:
"0.0.22.62"
,
"m-im"
:
"0.0.19.1
6
"
,
"m-im"
:
"0.0.19.1
7
"
,
"m-dynamic"
:
"0.0.7.22"
,
"m-article"
:
"0.0.0.6"
,
...
...
m-im/src/main/java/com/yidianling/im/modular/service/IMServiceImpl.kt
View file @
153afe00
...
...
@@ -4,8 +4,8 @@ import android.annotation.SuppressLint
import
android.app.Activity
import
android.app.Application
import
android.content.Context
import
androidx.fragment.app.Fragment
import
androidx.appcompat.app.AppCompatActivity
import
androidx.fragment.app.Fragment
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.netease.nimlib.sdk.NIMClient
import
com.netease.nimlib.sdk.RequestCallback
...
...
@@ -22,19 +22,15 @@ import com.ydl.ydlcommon.utils.remind.HttpErrorUtils
import
com.yidianling.avchatkit.common.util.NetworkUtil
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.im.R
import
com.yidianling.im.api.bean.IMInitConfigBean
import
com.yidianling.im.api.bean.IMLoginInfo
import
com.yidianling.im.api.bean.IMRegisterObserverCustomNotificationCallBack
import
com.yidianling.im.api.bean.IMRequestCallback
import
com.yidianling.im.api.bean.*
import
com.yidianling.im.api.listener.ApiStringResponseCallback
import
com.yidianling.im.api.bean.IMSendCustomNotificationResultCallBack
import
com.yidianling.im.api.service.IImService
import
com.yidianling.im.bridge.P2PCustomActionHandlerImpl
import
com.yidianling.im.config.NimApplication
import
com.yidianling.im.config.constants.ImConstants
import
com.yidianling.im.helper.IMChatUtil
import
com.yidianling.im.helper.LogoutHelper
import
com.yidianling.im.helper.ImObserversHelper
import
com.yidianling.im.helper.LogoutHelper
import
com.yidianling.im.helper.MsgReceiveHelper
import
com.yidianling.im.http.ImRetrofitApi
import
com.yidianling.im.preference.IMCache
...
...
@@ -375,8 +371,9 @@ class IMServiceImpl : IImService {
)
NIMClient
.
getService
(
MsgService
::
class
.
java
).
sendMessage
(
message
,
false
)
.
setCallback
(
object
:
RequestCallback
<
Void
>
{
override
fun
onSuccess
(
param
:
Void
)
{
.
setCallback
(
object
:
RequestCallback
<
Void
?>
{
override
fun
onSuccess
(
param
:
Void
?)
{
MessageListPanelHelper
.
getInstance
().
notifyAddMessage
(
message
)
startChat
(
context
,
toUid
.
toString
(),
0
x001
,
0
)
}
...
...
@@ -388,6 +385,7 @@ class IMServiceImpl : IImService {
ToastUtil
.
toastShort
(
"加载失败"
)
}
})
}
override
fun
initIm
(
app
:
Application
,
activity
:
Class
<
out
Activity
>)
{
...
...
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