File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,16 @@ val userProperties = Properties().apply {
33
33
}
34
34
}
35
35
36
+ /* *
37
+ * Loads CI-specific build properties that are not checked into source control.
38
+ */
39
+ val ciProperties = Properties ().apply {
40
+ val ciPropsFile = File (rootDir, " ci.properties" )
41
+ if (ciPropsFile.exists()) {
42
+ FileInputStream (ciPropsFile).use { load(it) }
43
+ }
44
+ }
45
+
36
46
android {
37
47
namespace = " com.x8bit.bitwarden"
38
48
compileSdk = libs.versions.compileSdk.get().toInt()
@@ -52,6 +62,12 @@ android {
52
62
}
53
63
54
64
testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
65
+
66
+ buildConfigField(
67
+ type = " String" ,
68
+ name = " CI_INFO" ,
69
+ value = " \" ${ciProperties.getOrDefault(" ci.info" , " local" )} \" "
70
+ )
55
71
}
56
72
57
73
androidResources {
You can’t perform that action at this time.
0 commit comments