[6.4.0]
[添加一个全类型车型]
This commit is contained in:
@@ -48,6 +48,27 @@ project.dependencies {
|
||||
if(isCurrentPassenger("mogo")){
|
||||
implementation project.project(':OCH:taxi:passenger')
|
||||
}
|
||||
} else if (isCurrentDriver("ALL")) {
|
||||
if(isCurrentDriver("saas")){
|
||||
implementation project.project(':OCH:taxi:unmanned-driver')
|
||||
}
|
||||
if(isCurrentDriver("mogo")){
|
||||
implementation project.project(':OCH:taxi:driver')
|
||||
}
|
||||
implementation project.project(':OCH:bus:driver')
|
||||
implementation project.project(':OCH:charter:driver')
|
||||
implementation project.project(':OCH:shuttle:driver')
|
||||
implementation project.project(':OCH:sweeper:driver')
|
||||
} else if (isCurrentPassenger("ALL")) {
|
||||
if(isCurrentPassenger("saas")){
|
||||
implementation project.project(':OCH:taxi:unmanned-passenger')
|
||||
}
|
||||
if(isCurrentPassenger("mogo")){
|
||||
implementation project.project(':OCH:taxi:passenger')
|
||||
}
|
||||
implementation project.project(':OCH:bus:passenger')
|
||||
implementation project.project(':OCH:charter:passenger')
|
||||
implementation project.project(':OCH:shuttle:passenger')
|
||||
} else {
|
||||
implementation project.project(':OCH:bus:driver')
|
||||
implementation project.project(':OCH:bus:passenger')
|
||||
|
||||
@@ -153,6 +153,7 @@ android {
|
||||
apply from: "./script/vehicleFlavors/B1.gradle"
|
||||
apply from: "./script/vehicleFlavors/B2.gradle"
|
||||
apply from: "./script/vehicleFlavors/T1T2.gradle"
|
||||
apply from: "./script/vehicleFlavors/ALL.gradle"
|
||||
apply from: "./script/vehicleFlavors/C1.gradle"
|
||||
//包车
|
||||
apply from: "./script/vehicleFlavors/M1.gradle"
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
"T1T2":["taxi"],
|
||||
"B1":["shuttle","bus"],
|
||||
"B2":["shuttle","bus"],
|
||||
"M1":["charter","shuttle"]
|
||||
"M1":["charter","shuttle"],
|
||||
"ALL":["charter","shuttle","bus","taxi"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
"T1T2":["driver","passenger"],
|
||||
"B1":["driver","passenger"],
|
||||
"B2":["driver","passenger"],
|
||||
"M1":["driver","passenger"]
|
||||
"M1":["driver","passenger"],
|
||||
"ALL":["driver","passenger"]
|
||||
}
|
||||
}
|
||||
|
||||
25
app/script/vehicleFlavors/ALL.gradle
Normal file
25
app/script/vehicleFlavors/ALL.gradle
Normal file
@@ -0,0 +1,25 @@
|
||||
project.android.productFlavors {
|
||||
// 东风红旗
|
||||
ALL {
|
||||
dimension "vehicle"
|
||||
missingDimensionStrategy "vehicle","dfhq","jinlvvan"
|
||||
|
||||
|
||||
// 配置AndroidManifest.xml中用到的参数
|
||||
manifestPlaceholders = [
|
||||
CHANNEL_VALUE_TAIL: "ALL",
|
||||
]
|
||||
|
||||
|
||||
// ①标识构建的应用身份类型,具体查看 README.md APP_IDENTITY_MODE规则
|
||||
buildConfigField 'String', 'APP_IDENTITY_MODE_TAIL', "\"ALL\""
|
||||
|
||||
// ②构建的是否要动态更换模型
|
||||
buildConfigField 'boolean', 'IS_CAR_MODEL_CHANGE', 'true'
|
||||
|
||||
// ③能启动自驾的档位 MAP<360代码中会移除P档
|
||||
buildConfigField 'java.util.Set<chassis.Chassis.GearPosition>', 'LAUNCH_AUTOPILOT_GEAR', 'new java.util.HashSet<chassis.Chassis.GearPosition>(){{add(chassis.Chassis.GearPosition.GEAR_D);add(chassis.Chassis.GearPosition.GEAR_N);add(chassis.Chassis.GearPosition.GEAR_P);}}'
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user