[gradle 渠道修改]

This commit is contained in:
yangyakun
2023-01-31 14:52:21 +08:00
parent 4e9d237d3b
commit 0714df0081
32 changed files with 267 additions and 192 deletions

View File

@@ -194,9 +194,10 @@ android {
manifest.srcFile 'src/main/AndroidManifest.xml'
}
}
flavorDimensions "business","product", "basic", "env"
// 项目 business
// 业务线 product
// 车型 pattern
flavorDimensions "project","product","pattern" ,"basic", "env"
productFlavors {
// launcher app
launcher {
@@ -210,21 +211,36 @@ android {
buildConfigField 'String', 'MAP_SDK_VERSION', "\"${MAP_SDK_VERSION}\""
buildConfigField 'String', 'MAP_SDK_OPT_VERSION', "\"${MAP_SDK_OPERATION_VERSION}\""
}
mogo {
dimension "project"
}
dali {
dimension "project"
}
// 空业务 主要是给鹰眼使用
noop {
dimension "business"
dimension "product"
}
busbase {
dimension "business"
// 小巴车业务
bus {
dimension "product"
}
taxibase {
dimension "business"
// 出租车业务
taxi {
dimension "product"
}
// 清扫车业务
sweeper {
dimension "business"
dimension "product"
}
// 接驳车业务
shuttle{
dimension "business"
dimension "product"
}
// 配置网络环境QA、线上、演示
qa {
dimension "env"
@@ -245,71 +261,119 @@ android {
// 配置不同渠道参数,直接影响功能完整度
apply from: "./productFlavors/fPadLenovo.gradle"
apply from: "./productFlavors/fPadLenovoOchBus.gradle"
apply from: "./productFlavors/fPadLenovoOchBusShuttle.gradle"
apply from: "./productFlavors/fPadLenovoOchTaxi.gradle"
apply from: "./productFlavors/fPadLenovoOchBusPassenger.gradle"
apply from: "./productFlavors/fPadLenovoOchBusPassengerM1.gradle"
apply from: "./productFlavors/fPadLenovoOchBusPassengerM2.gradle"
apply from: "./productFlavors/fPadLenovoOchBusShuttlePassenger.gradle"
apply from: "./productFlavors/fPadLenovoOchTaxiPassenger.gradle"
apply from: "./productFlavors/fPadLenovoOchSweeper.gradle"
apply from: "./productFlavors/fOchBus.gradle"
apply from: "./productFlavors/fOchShuttle.gradle"
apply from: "./productFlavors/fOchTaxi.gradle"
apply from: "./productFlavors/fOchBusPassenger.gradle"
apply from: "./productFlavors/fOchBusPassengerM1.gradle"
apply from: "./productFlavors/fOchBusPassengerM2.gradle"
apply from: "./productFlavors/fOchShuttlePassenger.gradle"
apply from: "./productFlavors/fOchTaxiPassenger.gradle"
apply from: "./productFlavors/fOchSweeper.gradle"
apply from: "./productFlavors/fMultiDisplayOchBus.gradle"
apply from: "./productFlavors/fMultiDisplayOchTaxi.gradle"
variantFilter { variant ->
def names = variant.flavors*.name
//要检查特定的构建类型请使用variant.buildType.name ==“ <buildType>”
// region 过滤noop 的flavors 不带och业务的
if (names.contains("noop")&&!names.contains("fPadLenovo")) {
//Gradle会忽略满足上述条件的所有变体
if(names.contains("mogo")) {
// region 过滤noop 的flavors 不带och业务的
if (names.contains("noop")&&!names.contains("fPadLenovo")) {
//Gradle会忽略满足上述条件的所有变体
setIgnore(true)
}
// endregion
// region 过滤sweper 的flavors
if (names.contains("sweeper") && !names.contains("fOchSweeper")) {
//Gradle会忽略满足上述条件的所有变体
setIgnore(true)
}
// endregion
// region 过滤shuttle 的flavors
if (names.contains("shuttle")) {
//Gradle会忽略满足上述条件的所有变体
if (names.contains("fOchBus")) {
} else if (names.contains("fOchBusPassenger")) {
} else {
setIgnore(true)
}
}
// endregion
// region 过滤taxi 的flavors
if (names.contains("taxi")) {
//Gradle会忽略满足上述条件的所有变体
if (names.contains("fOchTaxi")) {
} else if (names.contains("fOchTaxiPassenger")) {
} else if (names.contains("fPadLenovo")) {
} else if (names.contains("fMultiDisplayOchTaxi")) {
} else {
setIgnore(true)
}
}
// endregion
// region 过滤bus 的flavors
if (names.contains("bus")) {
//Gradle会忽略满足上述条件的所有变体
if (names.contains("fOchBus")) {
} else if (names.contains("fOchBusPassenger")) {
} else if (names.contains("fMultiDisplayOchBus")) {
} else if (names.contains("fOchBusPassengerM1")) {
} else if (names.contains("fOchBusPassengerM2")) {
} else if (names.contains("fOchShuttle")) {
} else if (names.contains("fOchShuttlePassenger")) {
} else {
setIgnore(true)
}
}
// endregion
}
else if(names.contains("dali")){
// region 过滤noop 的flavors 不带och业务的
if (names.contains("noop")) {
//Gradle会忽略满足上述条件的所有变体
setIgnore(true)
}
// endregion
// region 过滤sweper 的flavors
if (names.contains("sweeper")) {
//Gradle会忽略满足上述条件的所有变体
setIgnore(true)
}
// endregion
// region 过滤taxi 的flavors
if (names.contains("taxi")) {
setIgnore(true)
}
// endregion
// region 过滤shuttle 的flavors
if (names.contains("shuttle")) {
//Gradle会忽略满足上述条件的所有变体
if (names.contains("fOchShuttle")) {
} else if (names.contains("fOchShuttlePassenger")) {
} else {
setIgnore(true)
}
}
// endregion
// region 过滤bus 的flavors
if (names.contains("bus")) {
//Gradle会忽略满足上述条件的所有变体
if (names.contains("fOchBus")) {
} else if (names.contains("fOchBusPassenger")) {
} else if (names.contains("fMultiDisplayOchBus")) {
} else if (names.contains("fOchBusPassengerM1")) {
} else if (names.contains("fOchBusPassengerM2")) {
} else if (names.contains("fOchShuttle")) {
} else if (names.contains("fBusShuttlePassenger")) {
} else {
setIgnore(true)
}
}
// endregion
}
else {
setIgnore(true)
}
// endregion
// region 过滤sweper 的flavors
if (names.contains("sweeper")&&!names.contains("fPadLenovoOchSweeper")) {
//Gradle会忽略满足上述条件的所有变体
setIgnore(true)
}
// endregion
// region 过滤shuttle 的flavors
if (names.contains("shuttle")) {
//Gradle会忽略满足上述条件的所有变体
if(names.contains("fPadLenovoOchBus")){
}else if(names.contains("fPadLenovoOchBusPassenger")){
}else {
setIgnore(true)
}
}
// endregion
// region 过滤taxibase 的flavors
if (names.contains("taxibase")) {
//Gradle会忽略满足上述条件的所有变体
if(names.contains("fPadLenovoOchTaxi")){
}else if(names.contains("fPadLenovoOchTaxiPassenger")){
}else if(names.contains("fPadLenovo")){
}else if(names.contains("fMultiDisplayOchTaxi")){
}else {
setIgnore(true)
}
}
// endregion
// region 过滤taxibase 的flavors
if (names.contains("busbase")) {
//Gradle会忽略满足上述条件的所有变体
if(names.contains("fPadLenovoOchBus")){
}else if(names.contains("fPadLenovoOchBusPassenger")){
}else if(names.contains("fMultiDisplayOchBus")){
}else if(names.contains("fPadLenovoOchBusPassengerM1")){
}else if(names.contains("fPadLenovoOchBusPassengerM2")){
}else if(names.contains("fPadLenovoOchBusShuttle")){
}else if(names.contains("fPadLenovoOchBusShuttlePassenger")){
}else {
setIgnore(true)
}
}
// endregion
}
packagingOptions {
@@ -494,7 +558,7 @@ Object readFileToJson(env){
}
}
// 保底原则
return jsonOutput.toJson(config.get("busbase").get(env))
return jsonOutput.toJson(config.get("bus").get(env))
} catch (IOException e) {
e.printStackTrace()
}
@@ -508,9 +572,9 @@ def variantName() {
return split[2].toString().split("]")[0].replace("assemble","")
}else {
if(taskName.contains("bus")) {
return "busbase"
return "bus"
}else {
return "taxibase"
return "taxi"
}
}
}

View File

@@ -1,5 +1,5 @@
{
"busbase": {
"bus": {
"qa": {
"och_url":"https://tech-qa.zhidaohulian.com"
},
@@ -10,7 +10,7 @@
"och_url":"http://tech-dev.zhidaohulian.com"
}
},
"taxibase": {
"taxi": {
"qa": {
"och_url":"https://tech-qa.zhidaohulian.com"
},

View File

@@ -3,19 +3,19 @@ project.dependencies {
if (Boolean.valueOf(USE_MAVEN_PACKAGE)) {
fPadLenovoImplementation(rootProject.ext.dependencies.mogoochnoop)
// sweeper清扫车
fPadLenovoOchSweeperImplementation(rootProject.ext.dependencies.mogoochsweeper)
fOchSweeperImplementation(rootProject.ext.dependencies.mogoochsweeper)
// Bus司机端
fPadLenovoOchBusImplementation(rootProject.ext.dependencies.mogoochbus)
fOchBusImplementation(rootProject.ext.dependencies.mogoochbus)
// Bus乘客端
fPadLenovoOchBusPassengerImplementation(rootProject.ext.dependencies.mogoochbus)
fPadLenovoOchBusPassengerM1Implementation(rootProject.ext.dependencies.mogoochbus)
fPadLenovoOchBusPassengerM2Implementation(rootProject.ext.dependencies.mogoochbus)
fOchBusPassengerImplementation(rootProject.ext.dependencies.mogoochbus)
fOchBusPassengerM1Implementation(rootProject.ext.dependencies.mogoochbus)
fOchBusPassengerM2Implementation(rootProject.ext.dependencies.mogoochbus)
// taxi司机端
fPadLenovoOchTaxiImplementation(rootProject.ext.dependencies.mogoochtaxi)
fOchTaxiImplementation(rootProject.ext.dependencies.mogoochtaxi)
// taxi乘客端
fPadLenovoOchTaxiPassengerImplementation(rootProject.ext.dependencies.mogoochtaxi)
fOchTaxiPassengerImplementation(rootProject.ext.dependencies.mogoochtaxi)
// Bus司机端
fMultiDisplayOchBusImplementation(rootProject.ext.dependencies.mogoochbus)
@@ -23,8 +23,8 @@ project.dependencies {
fMultiDisplayOchBusImplementation(rootProject.ext.dependencies.mogoochbus)
//接驳车司乘端
fPadLenovoOchBusShuttleImplementation(rootProject.ext.dependencies.mogoochbus)
fPadLenovoOchBusShuttlePassengerImplementation(rootProject.ext.dependencies.mogoochbus)
fOchShuttleImplementation(rootProject.ext.dependencies.mogoochbus)
fOchShuttlePassengerImplementation(rootProject.ext.dependencies.mogoochbus)
// taxi司机端
fMultiDisplayOchTaxiImplementation(rootProject.ext.dependencies.mogoochtaxi)
@@ -33,19 +33,19 @@ project.dependencies {
} else {
fPadLenovoImplementation (project(':OCH:mogo-och-noop'))
// sweeper 清扫车
fPadLenovoOchSweeperImplementation (project(':OCH:mogo-och-sweeper'))
fOchSweeperImplementation (project(':OCH:mogo-och-sweeper'))
// Bus司机端
fPadLenovoOchBusImplementation (project(':OCH:mogo-och-bus'))
fOchBusImplementation (project(':OCH:mogo-och-bus'))
// Bus乘客端
fPadLenovoOchBusPassengerImplementation (project(':OCH:mogo-och-bus-passenger'))
fPadLenovoOchBusPassengerM1Implementation (project(':OCH:mogo-och-bus-passenger'))
fPadLenovoOchBusPassengerM2Implementation (project(':OCH:mogo-och-bus-passenger'))
fOchBusPassengerImplementation (project(':OCH:mogo-och-bus-passenger'))
fOchBusPassengerM1Implementation (project(':OCH:mogo-och-bus-passenger'))
fOchBusPassengerM2Implementation (project(':OCH:mogo-och-bus-passenger'))
// taxi司机端
fPadLenovoOchTaxiImplementation (project(':OCH:mogo-och-taxi'))
fOchTaxiImplementation (project(':OCH:mogo-och-taxi'))
// taxi乘客端
fPadLenovoOchTaxiPassengerImplementation (project(':OCH:mogo-och-taxi-passenger'))
fOchTaxiPassengerImplementation (project(':OCH:mogo-och-taxi-passenger'))
// Bus司机端
fMultiDisplayOchBusImplementation (project(':OCH:mogo-och-bus'))
@@ -53,8 +53,8 @@ project.dependencies {
fMultiDisplayOchBusImplementation (project(':OCH:mogo-och-bus-passenger'))
//接驳车司乘端
fPadLenovoOchBusShuttleImplementation (project(':OCH:mogo-och-bus'))
fPadLenovoOchBusShuttlePassengerImplementation (project(':OCH:mogo-och-bus-passenger'))
fOchShuttleImplementation (project(':OCH:mogo-och-bus'))
fOchShuttlePassengerImplementation (project(':OCH:mogo-och-bus-passenger'))
// taxi司机端
fMultiDisplayOchTaxiImplementation (project(':OCH:mogo-och-taxi'))

View File

@@ -13,12 +13,14 @@ project.android.productFlavors {
versionName rootProject.versionName
// 应用包名
applicationId rootProject.ext.android.fLauncherApplicationId
dimension "product"
dimension "pattern"
// 和 och/mogo-och-bus-passenger 的flavors的m1对应
matchingFallbacks = ['jinlvvan']
// 车机类型主要用于区分自研车机还是别人家的车机自研车机类型为0
buildConfigField 'int', 'CAR_MACHINE_TYPE', '2'
//高德地图鉴权信息
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fPadLenovoOchBus",ACTIVITY_ROOT:true]
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fOchBus",ACTIVITY_ROOT:true]
// 是否需要实时上报坐标
buildConfigField 'boolean', 'IS_NEED_UPLOAD_COORDINATES_IN_TIME', 'true'
@@ -26,7 +28,7 @@ project.android.productFlavors {
buildConfigField 'int', 'GPS_PROVIDER', "1"
// 构建的应用身份类型,具体查看 README.md APP_IDENTITY_MODE规则
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Bus_Driver_Base\""
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Bus_Driver_JLKV\""
// 连接的工控机IP地址
buildConfigField 'String', 'ADAS_CONNECT_IP', "\"192.168.8.102\""
// 构建的是否是演示(美化)模式

View File

@@ -13,12 +13,12 @@ project.android.productFlavors {
versionName rootProject.versionName
// 应用包名
applicationId rootProject.ext.android.fLauncherApplicationId
dimension "product"
dimension "pattern"
// 车机类型主要用于区分自研车机还是别人家的车机自研车机类型为0
buildConfigField 'int', 'CAR_MACHINE_TYPE', '2'
//高德地图鉴权信息
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fPadLenovoOchTaxi",ACTIVITY_ROOT:true]
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fOchTaxi",ACTIVITY_ROOT:true]
// 是否需要实时上报坐标
buildConfigField 'boolean', 'IS_NEED_UPLOAD_COORDINATES_IN_TIME', 'true'
@@ -26,7 +26,7 @@ project.android.productFlavors {
buildConfigField 'int', 'GPS_PROVIDER', "1"
// 构建的应用身份类型,具体查看 README.md APP_IDENTITY_MODE规则
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Taxi_Driver_Base\""
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Taxi_Driver_DFHQ\""
// 连接的工控机IP地址
buildConfigField 'String', 'ADAS_CONNECT_IP', "\"192.168.1.102\""
// 构建的是否是演示(美化)模式

View File

@@ -1,6 +1,6 @@
project.android.productFlavors {
// -Pad--
fPadLenovoOchBus {
fOchBus {
externalNativeBuild {
ndk {
// SO库架构
@@ -13,13 +13,13 @@ project.android.productFlavors {
versionName rootProject.versionName
//
applicationId rootProject.ext.android.fLauncherApplicationId
dimension "product"
matchingFallbacks = ['base']
dimension "pattern"
matchingFallbacks = ['jinlvvan']
// 0
buildConfigField 'int', 'CAR_MACHINE_TYPE', '2'
//
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fPadLenovoOchBus",ACTIVITY_ROOT:true]
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fOchBus",ACTIVITY_ROOT:true]
//
buildConfigField 'boolean', 'IS_NEED_UPLOAD_COORDINATES_IN_TIME', 'true'
@@ -27,7 +27,7 @@ project.android.productFlavors {
buildConfigField 'int', 'GPS_PROVIDER', "1"
// README.md APP_IDENTITY_MODE规则
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Bus_Driver_Base\""
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Bus_Driver_JLKV\""
// IP地址
buildConfigField 'String', 'ADAS_CONNECT_IP', "\"192.168.8.102\""
//

View File

@@ -1,6 +1,6 @@
project.android.productFlavors {
// -Pad---
fPadLenovoOchBusPassenger {
fOchBusPassenger {
externalNativeBuild {
ndk {
// SO库架构
@@ -11,13 +11,14 @@ project.android.productFlavors {
targetSdkVersion rootProject.ext.android.targetSdkVersionPadLenovo
//
applicationId rootProject.ext.android.fLauncherApplicationId
dimension "product"
matchingFallbacks = ['base']
dimension "pattern"
// och/mogo-och-bus-passenger flavors的jinlvvan对应
matchingFallbacks = ['jinlvvan']
// 0
buildConfigField 'int', 'CAR_MACHINE_TYPE', '2'
//
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fPadLenovoOchBusPassenger",ACTIVITY_ROOT:true]
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fOchBusPassenger",ACTIVITY_ROOT:true]
//
buildConfigField 'boolean', 'IS_NEED_UPLOAD_COORDINATES_IN_TIME', 'true'
@@ -25,7 +26,7 @@ project.android.productFlavors {
buildConfigField 'int', 'GPS_PROVIDER', "1"
// README.md APP_IDENTITY_MODE规则
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Bus_Passenger_Base\""
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Bus_Passenger_JLKV\""
// IP地址
buildConfigField 'String', 'ADAS_CONNECT_IP', "\"192.168.8.103\""
//

View File

@@ -1,6 +1,6 @@
project.android.productFlavors {
// -Pad---
fPadLenovoOchBusPassengerM1 {
fOchBusPassengerM1 {
externalNativeBuild {
ndk {
// SO库架构
@@ -11,13 +11,14 @@ project.android.productFlavors {
targetSdkVersion rootProject.ext.android.targetSdkVersionPadLenovo
//
applicationId rootProject.ext.android.fLauncherApplicationId
dimension "product"
dimension "pattern"
// och/mogo-och-bus-passenger flavors的m1对应
matchingFallbacks = ['m1']
// 0
buildConfigField 'int', 'CAR_MACHINE_TYPE', '2'
//
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fPadLenovoOchBusPassenger",ACTIVITY_ROOT:true]
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fOchBusPassenger",ACTIVITY_ROOT:true]
//
buildConfigField 'boolean', 'IS_NEED_UPLOAD_COORDINATES_IN_TIME', 'true'

View File

@@ -1,6 +1,6 @@
project.android.productFlavors {
// -Pad---
fPadLenovoOchBusPassengerM2 {
fOchBusPassengerM2 {
externalNativeBuild {
ndk {
// SO库架构
@@ -11,13 +11,14 @@ project.android.productFlavors {
targetSdkVersion rootProject.ext.android.targetSdkVersionPadLenovo
//
applicationId rootProject.ext.android.fLauncherApplicationId
dimension "product"
dimension "pattern"
// och/mogo-och-bus-passenger flavors的m2对应
matchingFallbacks = ['m2']
// 0
buildConfigField 'int', 'CAR_MACHINE_TYPE', '2'
//
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fPadLenovoOchBusPassenger",ACTIVITY_ROOT:true]
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fOchBusPassenger",ACTIVITY_ROOT:true]
//
buildConfigField 'boolean', 'IS_NEED_UPLOAD_COORDINATES_IN_TIME', 'true'

View File

@@ -1,6 +1,6 @@
project.android.productFlavors {
// -Pad--
fPadLenovoOchBusShuttle {
fOchShuttle {
externalNativeBuild {
ndk {
// SO库架构
@@ -13,13 +13,14 @@ project.android.productFlavors {
versionName rootProject.versionName
//
applicationId rootProject.ext.android.fLauncherApplicationId
dimension "product"
dimension "pattern"
// och/mogo-och-bus-passenger flavors的shuttle对应
matchingFallbacks = ['shuttle']
// 0
buildConfigField 'int', 'CAR_MACHINE_TYPE', '2'
//
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fPadLenovoOchBus",ACTIVITY_ROOT:true]
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fOchShuttle",ACTIVITY_ROOT:true]
//
buildConfigField 'boolean', 'IS_MAP_BASED', 'true'
@@ -30,7 +31,7 @@ project.android.productFlavors {
buildConfigField 'int', 'GPS_PROVIDER', "1"
// README.md APP_IDENTITY_MODE规则
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Bus_Driver_Shuttle\""
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Shuttle_Driver_JL\""
// IP地址
buildConfigField 'String', 'ADAS_CONNECT_IP', "\"192.168.8.103\""
//

View File

@@ -1,6 +1,6 @@
project.android.productFlavors {
// -Pad---
fPadLenovoOchBusShuttlePassenger {
fOchShuttlePassenger {
externalNativeBuild {
ndk {
// SO库架构
@@ -11,13 +11,13 @@ project.android.productFlavors {
targetSdkVersion rootProject.ext.android.targetSdkVersionPadLenovo
//
applicationId rootProject.ext.android.fLauncherApplicationId
dimension "product"
dimension "pattern"
matchingFallbacks = ['shuttle']
// 0
buildConfigField 'int', 'CAR_MACHINE_TYPE', '2'
//
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fPadLenovoOchBusPassenger",ACTIVITY_ROOT:true]
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fOchShuttlePassenger",ACTIVITY_ROOT:true]
//
buildConfigField 'boolean', 'IS_MAP_BASED', 'true'
@@ -28,7 +28,7 @@ project.android.productFlavors {
buildConfigField 'int', 'GPS_PROVIDER', "1"
// README.md APP_IDENTITY_MODE规则
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Bus_Passenger_Shuttle\""
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Shuttle_Passenger_JL\""
// IP地址
buildConfigField 'String', 'ADAS_CONNECT_IP', "\"192.168.8.103\""
//

View File

@@ -1,6 +1,6 @@
project.android.productFlavors {
// -Pad--
fPadLenovoOchSweeper {
fOchSweeper {
externalNativeBuild {
ndk {
// SO库架构
@@ -13,12 +13,12 @@ project.android.productFlavors {
versionName rootProject.versionName
//
applicationId rootProject.ext.android.fLauncherApplicationId
dimension "product"
dimension "pattern"
// 0
buildConfigField 'int', 'CAR_MACHINE_TYPE', '2'
//
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fPadLenovoOchSweeper",ACTIVITY_ROOT:true]
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fOchSweeper",ACTIVITY_ROOT:true]
//
buildConfigField 'boolean', 'IS_NEED_UPLOAD_COORDINATES_IN_TIME', 'true'

View File

@@ -1,7 +1,7 @@
project.android.productFlavors {
// -Pad--
fPadLenovoOchTaxi {
fOchTaxi {
externalNativeBuild {
ndk {
// SO库架构
@@ -14,12 +14,12 @@ project.android.productFlavors {
versionName rootProject.versionName
//
applicationId rootProject.ext.android.fLauncherApplicationId
dimension "product"
dimension "pattern"
// 0
buildConfigField 'int', 'CAR_MACHINE_TYPE', '2'
//
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fPadLenovoOchTaxi",ACTIVITY_ROOT:true]
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fOchTaxi",ACTIVITY_ROOT:true]
//
buildConfigField 'boolean', 'IS_NEED_UPLOAD_COORDINATES_IN_TIME', 'true'
@@ -27,7 +27,7 @@ project.android.productFlavors {
buildConfigField 'int', 'GPS_PROVIDER', "1"
// README.md APP_IDENTITY_MODE规则
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Taxi_Driver_Base\""
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Taxi_Driver_DFHQ\""
// IP地址
buildConfigField 'String', 'ADAS_CONNECT_IP', "\"192.168.1.102\""
//

View File

@@ -1,6 +1,6 @@
project.android.productFlavors {
// -Pad---
fPadLenovoOchTaxiPassenger {
fOchTaxiPassenger {
externalNativeBuild {
ndk {
// SO库架构
@@ -13,12 +13,12 @@ project.android.productFlavors {
versionName rootProject.versionName
//
applicationId rootProject.ext.android.fLauncherApplicationId
dimension "product"
dimension "pattern"
// 0
buildConfigField 'int', 'CAR_MACHINE_TYPE', '2'
//
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fPadLenovoOchTaxiPassenger",ACTIVITY_ROOT:false]
manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue, CHANNEL_VALUE: "fOchTaxiPassenger",ACTIVITY_ROOT:false]
//
buildConfigField 'boolean', 'IS_NEED_UPLOAD_COORDINATES_IN_TIME', 'true'
@@ -26,7 +26,7 @@ project.android.productFlavors {
buildConfigField 'int', 'GPS_PROVIDER', "1"
// README.md APP_IDENTITY_MODE规则
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Taxi_Passenger_Base\""
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Taxi_Passenger_DFHQ\""
// IP地址
buildConfigField 'String', 'ADAS_CONNECT_IP', "\"192.168.1.103\""
//

View File

@@ -11,7 +11,7 @@ project.android.productFlavors {
targetSdkVersion rootProject.ext.android.targetSdkVersionPadLenovo
// 应用包名
applicationId rootProject.ext.android.fLauncherApplicationId
dimension "product"
dimension "pattern"
// 车机类型主要用于区分自研车机还是别人家的车机自研车机类型为0
buildConfigField 'int', 'CAR_MACHINE_TYPE', '2'
@@ -24,7 +24,7 @@ project.android.productFlavors {
buildConfigField 'int', 'GPS_PROVIDER', "1"
// 构建的应用身份类型,具体查看 README.md APP_IDENTITY_MODE规则
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Taxi_Driver_Base\""
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Taxi_Driver_DFHQ\""
// 连接的工控机IP地址
buildConfigField 'String', 'ADAS_CONNECT_IP', "\"192.168.1.104\""
// 构建的是否是演示(美化)模式

View File

@@ -3,11 +3,15 @@ afterEvaluate {
def launcher = [
"fPadLenovo",
"fPadLenovoOchSweeper",
"fPadLenovoOchTaxi",
"fPadLenovoOchBus",
"fPadLenovoOchBusPassenger",
"fPadLenovoOchTaxiPassenger",
"fOchSweeper",
"fOchTaxi",
"fOchBus",
"fOchBusPassenger",
"fOchBusPassengerM1",
"fOchBusPassengerM2",
"fOchShuttle",
"fOchShuttlePassenger",
"fOchTaxiPassenger",
"MultiDisplayOchBus",
"MultiDisplayOchTaxi"]