Updated on 2026-08-14
This commit is contained in:
parent
c9b99c587d
commit
7a8f55b589
8 changed files with 68 additions and 6 deletions
|
|
@ -69,17 +69,19 @@ private fun AppExtension.configureBuildTypes() {
|
|||
|
||||
private fun AndroidBuildType.configureBuildVariant(appExtension: AppExtension, buildType: BuildType) {
|
||||
when (buildType) {
|
||||
BuildType.Release -> {
|
||||
isDebuggable = false
|
||||
}
|
||||
BuildType.Debug -> {
|
||||
isDebuggable = true
|
||||
}
|
||||
BuildType.Internal -> {
|
||||
BuildType.Internal,
|
||||
BuildType.External
|
||||
-> {
|
||||
initWith(appExtension.buildTypes.getByName(BuildType.Release.id))
|
||||
matchingFallbacks.add(BuildType.Release.id)
|
||||
signingConfig = appExtension.signingConfigs.getByName(BuildType.Debug.id)
|
||||
}
|
||||
BuildType.Release -> {
|
||||
isDebuggable = false
|
||||
}
|
||||
BuildType.Mocked -> {
|
||||
initWith(appExtension.buildTypes.getByName(BuildType.Release.id))
|
||||
matchingFallbacks.add(BuildType.Release.id)
|
||||
|
|
|
|||
|
|
@ -78,6 +78,27 @@ internal enum class BuildType(
|
|||
),
|
||||
),
|
||||
|
||||
/**
|
||||
* Build type for QA and business
|
||||
*
|
||||
* Features:
|
||||
* - Env: prod
|
||||
* - Signing config: debug
|
||||
* - Proguard
|
||||
* */
|
||||
External(
|
||||
id = "external",
|
||||
appIdSuffix = "external",
|
||||
versionSuffix = "external",
|
||||
configFields = listOf(
|
||||
BuildConfigField.Environment(value = "prod"),
|
||||
BuildConfigField.TestActionEnabled(isEnabled = false),
|
||||
BuildConfigField.LogEnabled(isEnabled = false),
|
||||
BuildConfigField.TesterMenuAvailability(isEnabled = false),
|
||||
BuildConfigField.MockDataSource(isEnabled = false),
|
||||
),
|
||||
),
|
||||
|
||||
/**
|
||||
* Production ready build type for clients
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue