add new preload variant

This commit is contained in:
Rahul Patel
2025-05-24 14:42:45 +05:30
parent 196749333f
commit ce119461f1
6 changed files with 190 additions and 1 deletions

View File

@@ -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")
}