[6.10.0]
[fea] [sweeper] [mogo 清扫车独立包] [./gradlew clean assembleMogoDriverOnlineDebug -PenableSweeper=true]
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
@@ -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校验
|
||||
|
||||
Reference in New Issue
Block a user