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
fc9aaf35
Commit
fc9aaf35
authored
Mar 03, 2020
by
konghaorui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
升级组件版本号
parent
23cdea3d
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
37 additions
and
99 deletions
+37
-99
config.gradle
config.gradle
+23
-24
build.gradle
m-audioim/build.gradle
+0
-2
modular.gradle
m-audioim/modular.gradle
+0
-20
AudioImImpl.kt
m-audioim/src/main/java/com/ydl/audioim/AudioImImpl.kt
+0
-22
YDLavManager.kt
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
+14
-1
AudioImApi.kt
m-audioim/src/main/modular_api/com/ydl/audioim/api/AudioImApi.kt
+0
-15
build.gradle
m-user/build.gradle
+0
-4
LoginUtils.kt
m-user/src/main/java/com/yidianling/user/LoginUtils.kt
+0
-2
AccountSettingActivity.java
m-user/src/main/java/com/yidianling/user/mine/AccountSettingActivity.java
+0
-3
UserIn.kt
m-user/src/main/java/com/yidianling/user/route/UserIn.kt
+0
-6
No files found.
config.gradle
View file @
fc9aaf35
ext
{
ext
{
kotlin_version
=
"1.3.21"
kotlin_version
=
"1.3.21"
dev_mode
=
tru
e
dev_mode
=
fals
e
ydl_app
=
[
ydl_app
=
[
appName
:
"心理咨询壹点灵"
,
appName
:
"心理咨询壹点灵"
,
...
@@ -42,17 +42,17 @@ ext {
...
@@ -42,17 +42,17 @@ ext {
ydlPublishVersion
=
[
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
// -------------- 业务模块 --------------
//第三步 若干
//第三步 若干
"m-confide"
:
"0.0.48.
1
"
,
"m-confide"
:
"0.0.48.
6
"
,
"m-consultant"
:
"0.0.
58.1
"
,
"m-consultant"
:
"0.0.
dynamic
"
,
"m-fm"
:
"0.0.29.
1
"
,
"m-fm"
:
"0.0.29.
2
"
,
"m-user"
:
"0.0.59.
3
"
,
"m-user"
:
"0.0.59.
4
"
,
"m-home"
:
"0.0.20.
2
"
,
"m-home"
:
"0.0.20.
3
"
,
"m-im"
:
"0.0.15.
1
"
,
"m-im"
:
"0.0.15.
5
"
,
"m-dynamic"
:
"0.0.7.
2
"
,
"m-dynamic"
:
"0.0.7.
3
"
,
"m-muse"
:
"0.0.28.
1
"
,
"m-muse"
:
"0.0.28.
2
"
,
"m-tests"
:
"0.0.23.
1
"
,
"m-tests"
:
"0.0.23.
2
"
,
"m-course"
:
"0.0.41.
1
"
,
"m-course"
:
"0.0.41.
2
"
,
//-------------- 业务模块 API 层 --------------
//-------------- 业务模块 API 层 --------------
"m-audioim-api"
:
"0.0.6"
,
"m-audioim-api"
:
"0.0.6"
,
...
@@ -69,14 +69,14 @@ ext {
...
@@ -69,14 +69,14 @@ ext {
//-------------- 功能组件 --------------
//-------------- 功能组件 --------------
//第一步
//第一步
"ydl-platform"
:
"0.0.39.
1
"
,
"ydl-platform"
:
"0.0.39.
3
"
,
//第二步 若干
//第二步 若干
"ydl-webview"
:
"0.0.38.
1
"
,
"ydl-webview"
:
"0.0.38.
3
"
,
"ydl-media"
:
"0.0.21.
1
"
,
"ydl-media"
:
"0.0.21.
3
"
,
"ydl-pay"
:
"0.0.18.
1
"
,
"ydl-pay"
:
"0.0.18.
3
"
,
"m-audioim"
:
"0.0.4
7.5
"
,
"m-audioim"
:
"0.0.4
8.0
"
,
"ydl-flutter-base"
:
"0.0.10"
,
"ydl-flutter-base"
:
"0.0.10
.3
"
,
//以下 几乎不会动
//以下 几乎不会动
"router"
:
"0.0.1"
,
"router"
:
"0.0.1"
,
...
@@ -115,14 +115,14 @@ ext {
...
@@ -115,14 +115,14 @@ ext {
//-------------- 功能组件 --------------
//-------------- 功能组件 --------------
//第一步
//第一步
"ydl-platform"
:
"0.0.39.
1
"
,
"ydl-platform"
:
"0.0.39.
3
"
,
//第二步 若干
//第二步 若干
"ydl-webview"
:
"0.0.38.
1
"
,
"ydl-webview"
:
"0.0.38.
3
"
,
"ydl-media"
:
"0.0.21.
1
"
,
"ydl-media"
:
"0.0.21.
3
"
,
"ydl-pay"
:
"0.0.18.
1
"
,
"ydl-pay"
:
"0.0.18.
3
"
,
"m-audioim"
:
"0.0.4
7.5
"
,
"m-audioim"
:
"0.0.4
8.0
"
,
"ydl-flutter-base"
:
"0.0.10"
,
"ydl-flutter-base"
:
"0.0.10
.3
"
,
//以下 几乎不会动
//以下 几乎不会动
"router"
:
"0.0.1"
,
"router"
:
"0.0.1"
,
...
@@ -287,7 +287,6 @@ ext {
...
@@ -287,7 +287,6 @@ ext {
"ydl-m-muse-api"
:
"com.ydl:m-muse-api:${ydlCompileVersion["
m
-
muse
-
api
"]}"
,
"ydl-m-muse-api"
:
"com.ydl:m-muse-api:${ydlCompileVersion["
m
-
muse
-
api
"]}"
,
"ydl-m-fm-api"
:
"com.ydl:m-fm-api:${ydlCompileVersion["
m
-
fm
-
api
"]}"
,
"ydl-m-fm-api"
:
"com.ydl:m-fm-api:${ydlCompileVersion["
m
-
fm
-
api
"]}"
,
"ydl-m-tests-api"
:
"com.ydl:m-tests-api:${ydlCompileVersion["
m
-
tests
-
api
"]}"
,
"ydl-m-tests-api"
:
"com.ydl:m-tests-api:${ydlCompileVersion["
m
-
tests
-
api
"]}"
,
"ydl-m-audioim-api"
:
"com.ydl:m-audioim-api:${ydlCompileVersion["
m
-
audioim
-
api
"]}"
,
"ydl-m-im-api"
:
"com.ydl:m-im-api:${ydlCompileVersion["
m
-
im
-
api
"]}"
,
"ydl-m-im-api"
:
"com.ydl:m-im-api:${ydlCompileVersion["
m
-
im
-
api
"]}"
,
"ydl-m-home-api"
:
"com.ydl:m-home-api:${ydlCompileVersion["
m
-
home
-
api
"]}"
,
"ydl-m-home-api"
:
"com.ydl:m-home-api:${ydlCompileVersion["
m
-
home
-
api
"]}"
,
"ydl-m-consultant-api"
:
"com.ydl:m-consultant-api:${ydlCompileVersion["
m
-
consultant
-
api
"]}"
,
"ydl-m-consultant-api"
:
"com.ydl:m-consultant-api:${ydlCompileVersion["
m
-
consultant
-
api
"]}"
,
...
...
m-audioim/build.gradle
View file @
fc9aaf35
...
@@ -84,12 +84,10 @@ dependencies {
...
@@ -84,12 +84,10 @@ dependencies {
api
project
(
':ydl-platform'
)
api
project
(
':ydl-platform'
)
api
project
(
':ydl-webview'
)
api
project
(
':ydl-webview'
)
implementation
modularPublication
(
'com.ydl:m-user-api'
)
implementation
modularPublication
(
'com.ydl:m-user-api'
)
implementation
modularPublication
(
'com.ydl:m-audioim-api'
)
}
else
{
}
else
{
//发布时使用
//发布时使用
api
rootProject
.
ext
.
dependencies
[
"ydl-webview"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-webview"
]
compileOnly
rootProject
.
ext
.
dependencies
[
"ydl-m-user-api"
]
compileOnly
rootProject
.
ext
.
dependencies
[
"ydl-m-user-api"
]
compileOnly
rootProject
.
ext
.
dependencies
[
"ydl-m-audioim-api"
]
api
(
rootProject
.
ext
.
dependencies
[
"ydl-platform"
])
{
api
(
rootProject
.
ext
.
dependencies
[
"ydl-platform"
])
{
transitive
=
true
transitive
=
true
}
}
...
...
m-audioim/modular.gradle
deleted
100644 → 0
View file @
23cdea3d
modular
{
packageName
"com.ydl.audioim"
// 模块发布需要的参数
publish
{
api
{
//发布信息 module/api 通用
groupId
=
"com.ydl"
artifactId
=
"m-audioim-api"
version
=
rootProject
.
ext
.
ydlPublishVersion
[
childProject
.
getName
()+
"-api"
]
// version = "0.0.5"
// API 层打包时需要引入的依赖
apiDependencies
{
implementation
"com.google.code.gson:gson:2.8.2"
implementation
"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation
'com.alibaba:arouter-api:1.4.1'
}
}
}
}
\ No newline at end of file
m-audioim/src/main/java/com/ydl/audioim/AudioImImpl.kt
deleted
100644 → 0
View file @
23cdea3d
package
com.ydl.audioim
import
android.content.Context
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.ydl.audioim.api.AudioImApi
/**
* 模块对外提供接口的实现类
*/
@Route
(
path
=
"/audioim/audioimapi"
)
class
AudioImImpl
:
AudioImApi
{
override
fun
init
(
context
:
Context
?)
{
}
override
fun
loginAgora
(
userId
:
String
?)
{
YDLavManager
.
instances
.
login
(
userId
)
}
}
\ No newline at end of file
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
View file @
fc9aaf35
...
@@ -3,14 +3,17 @@ package com.ydl.audioim
...
@@ -3,14 +3,17 @@ package com.ydl.audioim
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.ydl.audioim.http.AudioApiRequestUtil
import
com.ydl.ydl_av.messge_service.YDLRTMClient
import
com.ydl.ydl_av.messge_service.YDLRTMClient
import
com.ydl.ydl_av.messge_service.bean.RTMMesssage
import
com.ydl.ydl_av.messge_service.bean.RTMMesssage
import
com.ydl.ydl_av.messge_service.callback.InitListener
import
com.ydl.ydl_av.messge_service.callback.InitListener
import
com.ydl.ydl_av.messge_service.callback.LoginCallback
import
com.ydl.ydl_av.messge_service.callback.LoginCallback
import
com.ydl.ydl_av.messge_service.request.LoginParam
import
com.ydl.ydl_av.messge_service.request.LoginParam
import
com.ydl.audioim.http.AudioApiRequestUtil
import
com.ydl.ydlcommon.utils.LogUtil
import
com.ydl.ydlcommon.utils.LogUtil
import
com.ydl.ydlcommon.utils.log.LogHelper
import
com.ydl.ydlcommon.utils.log.LogHelper
import
com.yidianling.user.api.event.UserLoginEvent
import
com.yidianling.user.api.event.UserLogoutEvent
import
de.greenrobot.event.EventBus
import
io.reactivex.android.schedulers.AndroidSchedulers
import
io.reactivex.android.schedulers.AndroidSchedulers
import
io.reactivex.schedulers.Schedulers
import
io.reactivex.schedulers.Schedulers
...
@@ -32,6 +35,15 @@ class YDLavManager {
...
@@ -32,6 +35,15 @@ class YDLavManager {
fun
init
(
context
:
Context
,
appId
:
String
){
fun
init
(
context
:
Context
,
appId
:
String
){
YDLRTMClient
.
instances
.
init
(
context
,
appId
,
listener
)
YDLRTMClient
.
instances
.
init
(
context
,
appId
,
listener
)
EventBus
.
getDefault
().
register
(
this
)
}
public
fun
onEvent
(
event
:
UserLoginEvent
)
{
instances
.
login
(
event
.
uid
)
}
public
fun
onEvent
(
event
:
UserLogoutEvent
)
{
instances
.
logout
()
}
}
@SuppressLint
(
"CheckResult"
)
@SuppressLint
(
"CheckResult"
)
...
@@ -72,6 +84,7 @@ class YDLavManager {
...
@@ -72,6 +84,7 @@ class YDLavManager {
* 退出登录
* 退出登录
*/
*/
fun
logout
(){
fun
logout
(){
EventBus
.
getDefault
().
unregister
(
this
)
YDLRTMClient
.
instances
.
logout
(
object
:
LoginCallback
{
YDLRTMClient
.
instances
.
logout
(
object
:
LoginCallback
{
override
fun
onSuccess
()
{
override
fun
onSuccess
()
{
//退出登陆成功
//退出登陆成功
...
...
m-audioim/src/main/modular_api/com/ydl/audioim/api/AudioImApi.kt
deleted
100644 → 0
View file @
23cdea3d
package
com.ydl.audioim.api
import
com.alibaba.android.arouter.facade.template.IProvider
/**
* 对外api接口
*/
interface
AudioImApi
:
IProvider
{
/**
* 登录声网Im
*/
fun
loginAgora
(
uid
:
String
?)
}
\ No newline at end of file
m-user/build.gradle
View file @
fc9aaf35
...
@@ -85,10 +85,8 @@ dependencies {
...
@@ -85,10 +85,8 @@ dependencies {
//开发时使用
//开发时使用
api
project
(
':ydl-webview'
)
api
project
(
':ydl-webview'
)
api
project
(
':ydl-platform'
)
api
project
(
':ydl-platform'
)
api
project
(
':m-audioim'
)
api
project
(
":ydl-pay"
)
api
project
(
":ydl-pay"
)
implementation
modularPublication
(
'com.ydl:m-user-api'
)
implementation
modularPublication
(
'com.ydl:m-user-api'
)
implementation
modularPublication
(
'com.ydl:m-audioim-api'
)
implementation
modularPublication
(
'com.ydl:m-home-api'
)
implementation
modularPublication
(
'com.ydl:m-home-api'
)
implementation
modularPublication
(
'com.ydl:m-course-api'
)
implementation
modularPublication
(
'com.ydl:m-course-api'
)
implementation
modularPublication
(
'com.ydl:m-im-api'
)
implementation
modularPublication
(
'com.ydl:m-im-api'
)
...
@@ -99,11 +97,9 @@ dependencies {
...
@@ -99,11 +97,9 @@ dependencies {
compileOnly
rootProject
.
ext
.
dependencies
[
"ydl-m-user-api"
]
compileOnly
rootProject
.
ext
.
dependencies
[
"ydl-m-user-api"
]
compileOnly
rootProject
.
ext
.
dependencies
[
'ydl-m-home-api'
]
compileOnly
rootProject
.
ext
.
dependencies
[
'ydl-m-home-api'
]
compileOnly
rootProject
.
ext
.
dependencies
[
'ydl-m-course-api'
]
compileOnly
rootProject
.
ext
.
dependencies
[
'ydl-m-course-api'
]
compileOnly
rootProject
.
ext
.
dependencies
[
"ydl-m-audioim-api"
]
compileOnly
rootProject
.
ext
.
dependencies
[
"ydl-m-im-api"
]
compileOnly
rootProject
.
ext
.
dependencies
[
"ydl-m-im-api"
]
compileOnly
rootProject
.
ext
.
dependencies
[
"ydl-m-fm-api"
]
compileOnly
rootProject
.
ext
.
dependencies
[
"ydl-m-fm-api"
]
compileOnly
rootProject
.
ext
.
dependencies
[
"ydl-m-dynamic-api"
]
compileOnly
rootProject
.
ext
.
dependencies
[
"ydl-m-dynamic-api"
]
api
rootProject
.
ext
.
dependencies
[
"m-audioim"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-webview"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-webview"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-pay"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-pay"
]
api
(
rootProject
.
ext
.
dependencies
[
"ydl-platform"
])
{
api
(
rootProject
.
ext
.
dependencies
[
"ydl-platform"
])
{
...
...
m-user/src/main/java/com/yidianling/user/LoginUtils.kt
View file @
fc9aaf35
...
@@ -36,8 +36,6 @@ object LoginUtils {
...
@@ -36,8 +36,6 @@ object LoginUtils {
loginIm
(
userInfo
)
loginIm
(
userInfo
)
//设置极光注册id
//设置极光注册id
LoginHelper
.
setChannelId
()
LoginHelper
.
setChannelId
()
//设置声网登录
UserIn
.
getAvImApi
().
loginAgora
(
userInfo
?.
uid
)
val
loginEvent
=
UserLoginEvent
(
"login"
,
userInfo
?.
uid
!!
)
val
loginEvent
=
UserLoginEvent
(
"login"
,
userInfo
?.
uid
!!
)
EventBus
.
getDefault
().
post
(
loginEvent
)
EventBus
.
getDefault
().
post
(
loginEvent
)
...
...
m-user/src/main/java/com/yidianling/user/mine/AccountSettingActivity.java
View file @
fc9aaf35
...
@@ -10,7 +10,6 @@ import android.widget.ToggleButton;
...
@@ -10,7 +10,6 @@ import android.widget.ToggleButton;
import
com.umeng.socialize.UMAuthListener
;
import
com.umeng.socialize.UMAuthListener
;
import
com.umeng.socialize.UMShareAPI
;
import
com.umeng.socialize.UMShareAPI
;
import
com.umeng.socialize.bean.SHARE_MEDIA
;
import
com.umeng.socialize.bean.SHARE_MEDIA
;
import
com.ydl.audioim.YDLavManager
;
import
com.ydl.webview.H5Params
;
import
com.ydl.webview.H5Params
;
import
com.ydl.webview.NewH5Activity
;
import
com.ydl.webview.NewH5Activity
;
import
com.ydl.ydlcommon.base.BaseActivity
;
import
com.ydl.ydlcommon.base.BaseActivity
;
...
@@ -278,8 +277,6 @@ public class AccountSettingActivity extends BaseActivity implements View.OnClick
...
@@ -278,8 +277,6 @@ public class AccountSettingActivity extends BaseActivity implements View.OnClick
* 退出登录
* 退出登录
*/
*/
private
void
LogOut
()
{
private
void
LogOut
()
{
YDLavManager
.
Companion
.
getInstances
().
logout
();
//清除UserInfo
//清除UserInfo
UserHelper
.
INSTANCE
.
setUserinfo
(
null
);
UserHelper
.
INSTANCE
.
setUserinfo
(
null
);
UserIn
.
INSTANCE
.
clearImData
();
UserIn
.
INSTANCE
.
clearImData
();
...
...
m-user/src/main/java/com/yidianling/user/route/UserIn.kt
View file @
fc9aaf35
...
@@ -2,7 +2,6 @@ package com.yidianling.user.route
...
@@ -2,7 +2,6 @@ package com.yidianling.user.route
import
android.app.Activity
import
android.app.Activity
import
android.content.Context
import
android.content.Context
import
com.ydl.audioim.api.AudioImApi
import
com.ydl.ydlcommon.modular.ModularServiceManager
import
com.ydl.ydlcommon.modular.ModularServiceManager
import
com.yidianling.fm.api.service.IFMService
import
com.yidianling.fm.api.service.IFMService
import
com.yidianling.im.api.bean.IMLoginInfo
import
com.yidianling.im.api.bean.IMLoginInfo
...
@@ -74,9 +73,5 @@ object UserIn {
...
@@ -74,9 +73,5 @@ object UserIn {
fun
clearImData
()
{
fun
clearImData
()
{
getImService
().
clear
()
getImService
().
clear
()
}
}
// 获取 声网 api
fun
getAvImApi
():
AudioImApi
{
return
ModularServiceManager
.
provide
(
AudioImApi
::
class
.
java
)
}
}
}
\ No newline at end of file
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