完成调用接口封装

This commit is contained in:
董宏宇
2021-08-04 18:12:30 +08:00
parent 4a9d18fe5a
commit c2abe34d00
18 changed files with 447 additions and 95 deletions

View File

@@ -1,4 +1,10 @@
apply plugin: 'com.android.library'
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-android-extensions'
id 'kotlin-kapt'
id 'com.alibaba.arouter'
}
android {
compileSdkVersion rootProject.ext.android.compileSdkVersion
@@ -12,9 +18,11 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
//ARouter apt 参数
kapt {
useBuildCache = false
arguments {
arg("AROUTER_MODULE_NAME", project.getName())
}
}
@@ -39,7 +47,7 @@ dependencies {
api rootProject.ext.dependencies.androidxappcompat
implementation rootProject.ext.dependencies.arouter
annotationProcessor rootProject.ext.dependencies.aroutercompiler
kapt rootProject.ext.dependencies.aroutercompiler
api rootProject.ext.dependencies.mogoaicloudrealtime
api rootProject.ext.dependencies.fresco

View File

@@ -163,6 +163,8 @@ public class MogoServicePaths {
/**
* 接口集合
*/
@Keep
@Deprecated
public static final String PATH_SERVICE_APIS = "/mogoservice/apis";
/**

View File

@@ -1,11 +1,41 @@
package com.mogo.service.warning;
package com.mogo.service.warning
import com.mogo.service.module.IMogoModuleProvider;
import com.mogo.service.module.IMogoModuleProvider
/**
* @author xiaoyuzhou
* @date 2021/8/2 7:36 下午
*/
public interface IMoGoWaringProvider extends IMogoModuleProvider {
interface IMoGoWaringProvider : IMogoModuleProvider {
/**
* 展示VR下V2X预警
*
* @param v2xType V2X类型
* @param alertMessage 提醒文本
*/
fun showWarningV2X(v2xType: Int, alertMessage: String?)
}
/**
* 展示红绿灯预警
*
* @param checkLightId 0-都是默认1-红2-黄3-绿
*/
fun showWarningTrafficLight(checkLightId: Int)
/**
* 关闭红绿灯预警
*/
fun disableWarningTrafficLight()
/**
* 展示限速预警
*
* @param limitingSpeed 限速速度
*/
fun showLimitingVelocity(limitingSpeed: Int)
/**
* 关闭限速预警
*/
fun disableLimitingVelocity()
}