[PM-16052] Add CI_INFO build config field (#4471)

This commit is contained in:
Patrick Honkonen
2024-12-13 15:49:09 -05:00
committed by GitHub
parent f28f5ee688
commit bd29e1738c

View File

@@ -33,6 +33,16 @@ val userProperties = Properties().apply {
}
}
/**
* Loads CI-specific build properties that are not checked into source control.
*/
val ciProperties = Properties().apply {
val ciPropsFile = File(rootDir, "ci.properties")
if (ciPropsFile.exists()) {
FileInputStream(ciPropsFile).use { load(it) }
}
}
android {
namespace = "com.x8bit.bitwarden"
compileSdk = libs.versions.compileSdk.get().toInt()
@@ -52,6 +62,12 @@ android {
}
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
buildConfigField(
type ="String",
name = "CI_INFO",
value = "\"${ciProperties.getOrDefault("ci.info", "local")}\""
)
}
androidResources {