Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ShenghuoquanBusiness
Project
Project
Details
Activity
Releases
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
bp
ShenghuoquanBusiness
Commits
25996760
Commit
25996760
authored
May 19, 2021
by
宋永孟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 添加新测试类
parent
d4bb7061
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
32 additions
and
60 deletions
+32
-60
AndroidManifest.xml
Components/newscontent/src/main/AndroidManifest.xml
+4
-0
NewsContentApplication.kt
...an/shenghuoquan/newscontent/app/NewsContentApplication.kt
+0
-1
LoginLifeCircleActivity.kt
...an/shenghuoquan/newscontent/ui/LoginLifeCircleActivity.kt
+3
-2
AliveTestActivity.kt
...an/shenghuoquan/newscontent/ui/alive/AliveTestActivity.kt
+19
-0
activity_alive_layout.xml
...newscontent/src/main/res/layout/activity_alive_layout.xml
+6
-0
liveness_sdk_colors.xml
...s/newscontent/src/main/res/values/liveness_sdk_colors.xml
+0
-22
liveness_sdk_dimens.xml
...s/newscontent/src/main/res/values/liveness_sdk_dimens.xml
+0
-10
liveness_sdk_strings.xml
.../newscontent/src/main/res/values/liveness_sdk_strings.xml
+0
-25
No files found.
Components/newscontent/src/main/AndroidManifest.xml
View file @
25996760
...
@@ -73,6 +73,10 @@
...
@@ -73,6 +73,10 @@
android:name=
".ui.comment.CommentTestActivity"
android:name=
".ui.comment.CommentTestActivity"
android:theme=
"@style/Transparent"
/>
android:theme=
"@style/Transparent"
/>
<activity
android:name=
".ui.alive.AliveTestActivity"
android:theme=
"@style/Transparent"
/>
<activity
<activity
android:name=
".ui.ProtocolActivity"
android:name=
".ui.ProtocolActivity"
android:theme=
"@style/Transparent"
/>
android:theme=
"@style/Transparent"
/>
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/app/NewsContentApplication.kt
View file @
25996760
...
@@ -117,7 +117,6 @@ class NewsContentApplication : YdBaseApplication() {
...
@@ -117,7 +117,6 @@ class NewsContentApplication : YdBaseApplication() {
}
}
}),
}),
XPageNode
(
NEWS_CONTENT
,
XPageNodePageType
.
NATIVE
,
object
:
XPageHandler
{
XPageNode
(
NEWS_CONTENT
,
XPageNodePageType
.
NATIVE
,
object
:
XPageHandler
{
override
fun
handler
(
params
:
Map
<
String
,
Any
?
>?)
{
override
fun
handler
(
params
:
Map
<
String
,
Any
?
>?)
{
val
intent
=
Intent
()
val
intent
=
Intent
()
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/LoginLifeCircleActivity.kt
View file @
25996760
package
com.yidian.shenghuoquan.newscontent.ui
package
com.yidian.shenghuoquan.newscontent.ui
import
android.content.Intent
import
android.os.Bundle
import
android.os.Bundle
import
android.widget.Toast
import
com.yidian.common.XRouterPathConstants.Companion.LOGIN_LIFE_CIRCLE
import
com.yidian.common.XRouterPathConstants.Companion.LOGIN_LIFE_CIRCLE
import
com.yidian.common.base.BaseActivity
import
com.yidian.common.base.BaseActivity
import
com.yidian.shenghuoquan.newscontent.databinding.ActivityLoginBinding
import
com.yidian.shenghuoquan.newscontent.databinding.ActivityLoginBinding
import
com.yidian.shenghuoquan.newscontent.ui.alive.AliveTestActivity
import
com.yidian.shenghuoquan.newscontent.utils.CountDownTimerUtils
import
com.yidian.shenghuoquan.newscontent.utils.CountDownTimerUtils
/**
/**
...
@@ -39,7 +40,7 @@ class LoginLifeCircleActivity : BaseActivity<ActivityLoginBinding>() {
...
@@ -39,7 +40,7 @@ class LoginLifeCircleActivity : BaseActivity<ActivityLoginBinding>() {
}
}
viewBind
.
loginBtn
.
setOnClickListener
{
viewBind
.
loginBtn
.
setOnClickListener
{
Toast
.
makeText
(
this
,
"登录"
,
Toast
.
LENGTH_SHORT
).
show
(
)
startActivity
(
Intent
(
this
@LoginLifeCircleActivity
,
AliveTestActivity
::
class
.
java
)
)
}
}
}
}
}
}
\ No newline at end of file
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/alive/AliveTestActivity.kt
0 → 100644
View file @
25996760
package
com.yidian.shenghuoquan.newscontent.ui.alive
import
com.yidian.common.base.BaseActivity
import
com.yidian.shenghuoquan.newscontent.databinding.ActivityAliveLayoutBinding
/**
* Author: sym
* Date: 2021/5/19 6:11 PM
* Describe:
*/
class
AliveTestActivity
:
BaseActivity
<
ActivityAliveLayoutBinding
>()
{
override
fun
createViewBinding
():
ActivityAliveLayoutBinding
{
return
ActivityAliveLayoutBinding
.
inflate
(
layoutInflater
)
}
override
fun
getXPageName
():
String
{
return
""
}
}
\ No newline at end of file
Components/newscontent/src/main/res/layout/activity_alive_layout.xml
0 → 100644
View file @
25996760
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
</LinearLayout>
\ No newline at end of file
Components/newscontent/src/main/res/values/liveness_sdk_colors.xml
deleted
100755 → 0
View file @
d4bb7061
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color
name=
"livenessHomeRingColor"
>
#EAF2F6
</color>
<color
name=
"livenessHomeProcessBarColor"
>
#38B0E8
</color>
<color
name=
"livenessHomeValidationFailProcessBarColor"
>
#FF0000
</color>
<color
name=
"livenessHomeBackgroundColor"
>
#FFFFFF
</color>
<color
name=
"livenessHomePromptColor"
>
#666666
</color>
<color
name=
"livenessExitTitlePromptColor"
>
#000000
</color>
<color
name=
"livenessExitLeftPromptColor"
>
#0076FF
</color>
<color
name=
"livenessExitRightPromptColor"
>
#0076FF
</color>
<color
name=
"livenessRetryTitlePromptColor"
>
#000000
</color>
<color
name=
"livenessRetryLeftPromptColor"
>
#0076FF
</color>
<color
name=
"livenessRetryRightPromptColor"
>
#0076FF
</color>
<color
name=
"livenessGuideRemindTextColor"
>
#414244
</color>
<color
name=
"livenessGuideReadColor"
>
#414244
</color>
<color
name=
"livenessDetectButtonTextColor"
>
#FFFFFF
</color>
<color
name=
"livenessDetectButtonSelectedBGColor"
>
#6AA0F2
</color>
<color
name=
"livenessDetectButtonHighlightBGColor"
>
#4389E2
</color>
<color
name=
"livenessDetectButtonNormalBGColor"
>
#CFD6DD
</color>
<color
name=
"livenessHomeUpperInfoTextFontColor"
>
#666666
</color>
</resources>
Components/newscontent/src/main/res/values/liveness_sdk_dimens.xml
deleted
100755 → 0
View file @
d4bb7061
<resources>
<dimen
name=
"livenessHomePromptSize"
>
20sp
</dimen>
<dimen
name=
"livenessExitTitlePromptSize"
>
18sp
</dimen>
<dimen
name=
"livenessExitLeftPromptSize"
>
18sp
</dimen>
<dimen
name=
"livenessExitRightPromptSize"
>
18sp
</dimen>
<dimen
name=
"livenessRetryTitlePromptSize"
>
18sp
</dimen>
<dimen
name=
"livenessRetryLeftPromptSize"
>
18sp
</dimen>
<dimen
name=
"livenessRetryRightPromptSize"
>
18sp
</dimen>
<dimen
name=
"livenessHomeUpperInfoTextFontSize"
>
14sp
</dimen>
</resources>
Components/newscontent/src/main/res/values/liveness_sdk_strings.xml
deleted
100755 → 0
View file @
d4bb7061
<resources>
<string
name=
"livenessHomePromptFrontalFaceText"
>
请让我看到您的正脸
</string>
<string
name=
"livenessHomePromptFaceEreaText"
>
人脸有效面积太小
</string>
<string
name=
"livenessHomePromptBrighterText"
>
请让光线再亮点
</string>
<string
name=
"livenessHomePromptDarkerText"
>
请让光线再暗点
</string>
<string
name=
"livenessHomePromptCloserText"
>
请再靠近一些
</string>
<string
name=
"livenessHomePromptFurtherText"
>
请离屏幕远一些
</string>
<string
name=
"livenessHomePromptNoBacklightingText"
>
请避免侧光或背光
</string>
<string
name=
"livenessHomePromptFrontalFaceInBoundingBoxText"
>
请将正脸置于取景框内
</string>
<string
name=
"livenessHomePromptNoEyesOcclusionText"
>
请勿遮挡眼睛
</string>
<string
name=
"livenessHomePromptNoMouthOcclusionText"
>
请勿遮挡嘴巴
</string>
<string
name=
"livenessHomePromptStayStillText"
>
很好,请保持不动
</string>
<string
name=
"livenessHomePromptWaitText"
>
验证中,请稍候
</string>
<string
name=
"livenessHomePromptShakeHeadText"
>
请向左或向右缓慢转头
</string>
<string
name=
"livenessHomePromptNodText"
>
请缓慢点头
</string>
<string
name=
"livenessHomePromptOpenMouthText"
>
请张嘴
</string>
<string
name=
"livenessHomePromptBlinkText"
>
请眨眼
</string>
<string
name=
"livenessExitTitlePromptText"
>
确认退出吗
</string>
<string
name=
"livenessExitLeftPromptText"
>
取消
</string>
<string
name=
"livenessExitRightPromptText"
>
确认
</string>
<string
name=
"livenessRetryLeftPromptText"
>
重新验证
</string>
<string
name=
"livenessRetryRightPromptText"
>
结束验证
</string>
<string
name=
"livenessHomePromptVerticalText"
>
请您拿起手机,保持手机垂直
</string>
<string
name=
"livenessHomePromptTooBrightText"
>
光线过亮,请到更暗的环境中验证
</string>
</resources>
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