[fea]
[sweeper]
[mogo 清扫车独立包]
[./gradlew clean assembleMogoDriverOnlineDebug -PenableSweeper=true]
This commit is contained in:
yangyakun
2025-02-27 15:41:38 +08:00
parent fec7913c20
commit aa2d06bb1c
2 changed files with 11 additions and 1 deletions

View File

@@ -14,6 +14,10 @@ apply from: rootProject.file('gradle/bytex/bytex.gradle')
Properties properties = new Properties()
properties.load(project.rootProject.file("gradle.properties").newDataInputStream())
def getBooleanProperty(String key, boolean defaultValue) {
return project.hasProperty(key) ? project.property(key).toBoolean() : defaultValue
}
android {
compileSdkVersion rootProject.ext.android.compileSdkVersion
defaultConfig {
@@ -38,6 +42,8 @@ android {
buildConfigField 'String', 'MAP_SDK_VERSION', "\"${MAP_SDK_VERSION}\""
buildConfigField 'String', 'MAP_SDK_OPT_VERSION', "\"${MAP_SDK_OPERATION_VERSION}\""
buildConfigField "boolean", "enableSweeper", "${getBooleanProperty('enableSweeper', false)}"
// ②车机类型主要用于区分自研车机还是别人家的车机自研车机类型为0
buildConfigField 'int', 'CAR_MACHINE_TYPE', '2'

View File

@@ -63,7 +63,11 @@ object ConfigStartUp {
// app安装的身份信息
// 这里影响当前Activity的身份信息多进程主进程为司机端:passenger 进程为乘客端
// TODO emArrow isMultiDisplay暂时不启用仅测试3588在B2 2024车预研
FunctionBuildConfig.appIdentityMode = "Product_${BuildConfig.APP_IDENTITY_MODE_BODY}_Vehicle"
if(BuildConfig.enableSweeper==true){
FunctionBuildConfig.appIdentityMode = "Sweeper_${BuildConfig.APP_IDENTITY_MODE_BODY}_C1"
}else {
FunctionBuildConfig.appIdentityMode = "Product_${BuildConfig.APP_IDENTITY_MODE_BODY}_Vehicle"
}
// 不同身份对应不同的IP地址
FunctionBuildConfig.adasConnectIP = BuildConfig.ADAS_CONNECT_IP
// 是否开启secure校验