build(app): product flavors store/sideload + BuildConfig флаги
This commit is contained in:
@@ -33,6 +33,22 @@ android {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Каналы дистрибуции: store — для RuStore (без авто-апдейтера, без dev-тестера
|
||||||
|
// и кнопки SOVA); sideload — прямой APK с авто-обновлением.
|
||||||
|
flavorDimensions += "distribution"
|
||||||
|
productFlavors {
|
||||||
|
create("store") {
|
||||||
|
dimension = "distribution"
|
||||||
|
buildConfigField("boolean", "ENABLE_SELF_UPDATE", "false")
|
||||||
|
buildConfigField("boolean", "SHOW_DEV_TOOLS", "false")
|
||||||
|
}
|
||||||
|
create("sideload") {
|
||||||
|
dimension = "distribution"
|
||||||
|
buildConfigField("boolean", "ENABLE_SELF_UPDATE", "true")
|
||||||
|
buildConfigField("boolean", "SHOW_DEV_TOOLS", "true")
|
||||||
|
}
|
||||||
|
}
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility = JavaVersion.VERSION_17
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
targetCompatibility = JavaVersion.VERSION_17
|
targetCompatibility = JavaVersion.VERSION_17
|
||||||
|
|||||||
Reference in New Issue
Block a user