整理资源

This commit is contained in:
董宏宇
2021-08-09 17:35:41 +08:00
parent 2425445db8
commit a7bbce3e88
3 changed files with 5 additions and 4 deletions

View File

@@ -38,6 +38,8 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation rootProject.ext.dependencies.kotlinstdlibjdk7
implementation rootProject.ext.dependencies.androidxccorektx
implementation rootProject.ext.dependencies.androidxappcompat
implementation rootProject.ext.dependencies.androidxrecyclerview
implementation rootProject.ext.dependencies.androidxconstraintlayout
@@ -48,7 +50,6 @@ dependencies {
implementation rootProject.ext.dependencies.coroutinesandroid
implementation rootProject.ext.dependencies.coroutinescore
implementation rootProject.ext.dependencies.kotlinstdlibjdk7
api "com.mogo.libs:hook:1.0"
if (Boolean.valueOf(RELEASE)) {

View File

@@ -1,4 +1,4 @@
package com.mogo.module.hmi.utils
package com.mogo.module.common.utils
import com.mogo.module.common.enum.WarningTypeEnum
import com.mogo.module.common.R
@@ -7,7 +7,7 @@ import com.mogo.module.common.R
* @author xiaoyuzhoukeyi
* @date 2021/8/6 11:04 上午
*/
internal object WarningUtils {
object WarningUtils {
fun getWarningIcon(v2xType: Int): Array<Any> {
var warningIconId = R.drawable.icon_warning_v2x_abnormal_vehicle
var warningContent = "注意周边环境"

View File

@@ -13,7 +13,7 @@ import com.mogo.module.hmi.notification.WarningFloat
import com.mogo.module.hmi.notification.anim.DefaultAnimator
import com.mogo.module.hmi.notification.enums.SidePattern
import com.mogo.module.hmi.ui.widget.ViewV2XNotification
import com.mogo.module.hmi.utils.WarningUtils
import com.mogo.module.common.utils.WarningUtils
import kotlinx.android.synthetic.main.fragment_warning.*
/**