Skip to content

Commit 71fb06a

Browse files
committed
Add fixed values
1 parent 7f2257f commit 71fb06a

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

build.gradle.kts

+2-14
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,12 @@ import org.apache.commons.io.output.ByteArrayOutputStream
22

33
// For `versionCode` we just use the number of commits.
44
val projectVersionCode: Int by extra {
5-
val stdout = ByteArrayOutputStream()
6-
rootProject.exec {
7-
commandLine("git", "rev-list", "HEAD", "--count")
8-
standardOutput = stdout
9-
}
10-
@Suppress("DEPRECATION") // toString() is deprecated.
11-
stdout.toString().trim().toInt()
5+
0
126
}
137

148
// For versionName, we use the output of: git describe --tags --dirty
159
val projectVersionName: String by extra {
16-
val stdout = ByteArrayOutputStream()
17-
rootProject.exec {
18-
commandLine("git", "describe", "--tags", "--dirty")
19-
standardOutput = stdout
20-
}
21-
@Suppress("DEPRECATION") // toString() is deprecated.
22-
stdout.toString().trim()
10+
"projectVersionName"
2311
}
2412

2513
plugins {

0 commit comments

Comments
 (0)