add new preload variant
This commit is contained in:
@@ -113,7 +113,7 @@ android {
|
||||
flavorDimensions += "device"
|
||||
|
||||
productFlavors {
|
||||
create("vanilla"){
|
||||
create("vanilla") {
|
||||
dimension = "device"
|
||||
}
|
||||
|
||||
@@ -121,6 +121,12 @@ android {
|
||||
dimension = "device"
|
||||
versionNameSuffix = "-hw"
|
||||
}
|
||||
|
||||
// This flavor is only for preloaded devices / users who push the app to system
|
||||
create("preload") {
|
||||
dimension = "device"
|
||||
versionNameSuffix = "-preload"
|
||||
}
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
@@ -153,6 +159,15 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
androidComponents {
|
||||
beforeVariants(selector().all()) { variant ->
|
||||
val flavour = variant.flavorName
|
||||
if ((flavour == "huawei" || flavour == "preload") && variant.buildType == "nightly") {
|
||||
variant.enable = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("room.schemaLocation", "$projectDir/schemas")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user