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
7bd18f12
Commit
7bd18f12
authored
Jul 07, 2022
by
万齐军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user模块暴露一键登录检查环境的方法
parent
cc8b1ca2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
IUserService.kt
api/user/src/main/java/com/yidianling/user/api/service/IUserService.kt
+2
-0
MainActivity.kt
app/src/main/java/com/ydl/component/MainActivity.kt
+1
-3
UserServiceImp.kt
m-user/src/main/java/com/yidianling/user/modular_service/UserServiceImp.kt
+5
-1
No files found.
api/user/src/main/java/com/yidianling/user/api/service/IUserService.kt
View file @
7bd18f12
...
@@ -116,6 +116,8 @@ interface IUserService : IProvider {
...
@@ -116,6 +116,8 @@ interface IUserService : IProvider {
* */
* */
fun
loginByOneKeyLogin
(
context
:
Context
,
isOpenDialog
:
Boolean
)
:
Boolean
fun
loginByOneKeyLogin
(
context
:
Context
,
isOpenDialog
:
Boolean
)
:
Boolean
fun
checkOneLoginEnvAvailable
():
Boolean
/**
/**
* 调用优先使用一键登录,并返回调用时的登录状态,
* 调用优先使用一键登录,并返回调用时的登录状态,
* @param isOpenDialog true:一键登录使用弹窗展示 false:一键登录使用全屏模式
* @param isOpenDialog true:一键登录使用弹窗展示 false:一键登录使用全屏模式
...
...
app/src/main/java/com/ydl/component/MainActivity.kt
View file @
7bd18f12
...
@@ -21,7 +21,6 @@ import android.widget.TextView
...
@@ -21,7 +21,6 @@ import android.widget.TextView
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.alibaba.android.arouter.launcher.ARouter
import
com.alibaba.android.arouter.launcher.ARouter
import
com.bumptech.glide.Glide
import
com.bumptech.glide.Glide
import
com.mobile.auth.gatewayauth.PhoneNumberAuthHelper
import
com.tbruyelle.rxpermissions2.RxPermissions
import
com.tbruyelle.rxpermissions2.RxPermissions
import
com.tencent.qcloud.tuicore.calling.trtccalling.model.TRTCCalling
import
com.tencent.qcloud.tuicore.calling.trtccalling.model.TRTCCalling
import
com.tencent.qcloud.tuicore.calling.videocall.Constant
import
com.tencent.qcloud.tuicore.calling.videocall.Constant
...
@@ -56,7 +55,6 @@ import com.yidianling.tests.home.NewTestHomeActivity
...
@@ -56,7 +55,6 @@ import com.yidianling.tests.home.NewTestHomeActivity
import
com.yidianling.user.api.service.IUserService
import
com.yidianling.user.api.service.IUserService
import
com.yidianling.user.ui.collect.CollectSexAndBirthActivity
import
com.yidianling.user.ui.collect.CollectSexAndBirthActivity
import
com.yidianling.user.ui.login.OneKeyLoginHelp
import
com.yidianling.user.ui.login.OneKeyLoginHelp
import
com.yidianling.user.widget.SecretDescriptionDialog
import
com.yidianling.user.widget.SecretDialog
import
com.yidianling.user.widget.SecretDialog
import
com.yidianling.user.widget.SecretDialog.OnSecretDialogListener
import
com.yidianling.user.widget.SecretDialog.OnSecretDialogListener
import
de.greenrobot.event.EventBus
import
de.greenrobot.event.EventBus
...
@@ -120,7 +118,7 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
...
@@ -120,7 +118,7 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
OneKeyLoginHelp
.
sdkInit
(
OneKeyLoginHelp
.
sdkInit
(
this
,
this
,
OneKeyLoginHelp
.
YDL_USER_APP
,
OneKeyLoginHelp
.
YDL_USER_APP
,
PhoneNumberAuthHelper
.
SERVICE_TYPE_LOGIN
2
)
)
bindService
()
bindService
()
...
...
m-user/src/main/java/com/yidianling/user/modular_service/UserServiceImp.kt
View file @
7bd18f12
...
@@ -4,8 +4,8 @@ import android.annotation.SuppressLint
...
@@ -4,8 +4,8 @@ import android.annotation.SuppressLint
import
android.app.Activity
import
android.app.Activity
import
android.content.Context
import
android.content.Context
import
android.content.Intent
import
android.content.Intent
import
androidx.fragment.app.Fragment
import
android.text.TextUtils
import
android.text.TextUtils
import
androidx.fragment.app.Fragment
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.ydl.ydlcommon.base.BaseApp
import
com.ydl.ydlcommon.base.BaseApp
import
com.ydl.ydlcommon.bean.VersionData
import
com.ydl.ydlcommon.bean.VersionData
...
@@ -319,6 +319,10 @@ public class UserServiceImp : IUserService {
...
@@ -319,6 +319,10 @@ public class UserServiceImp : IUserService {
return
OneKeyLoginHelp
.
startLoginByStatus
(
context
,
isOpenDialog
)
return
OneKeyLoginHelp
.
startLoginByStatus
(
context
,
isOpenDialog
)
}
}
override
fun
checkOneLoginEnvAvailable
():
Boolean
{
return
OneKeyLoginHelp
.
mPhoneNumberAuthHelper
!!
.
checkEnvAvailable
()
}
override
fun
loginByOneKeyLoginCallBack
(
override
fun
loginByOneKeyLoginCallBack
(
context
:
Context
,
context
:
Context
,
isOpenDialog
:
Boolean
,
isOpenDialog
:
Boolean
,
...
...
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