Fix version updates in ReleaseHelperPlugin

This commit is contained in:
William Brawner 2023-09-29 07:40:36 -06:00
parent f69bf81630
commit 535bfab8db
Signed by: wbrawner
GPG key ID: 8FF12381C6C90D35

View file

@ -102,7 +102,7 @@ private fun String.incrementVersion(part: VersionPart) = split(".")
.joinToString(".") .joinToString(".")
private fun Project.updateVersionName(oldVersionName: String, newVersionName: String) { private fun Project.updateVersionName(oldVersionName: String, newVersionName: String) {
File(projectDir, "app/build.gradle.kts").apply { File(projectDir, "build.gradle.kts").apply {
writeText( writeText(
readText().replace("versionName = \"$oldVersionName\"", "versionName = \"$newVersionName\"") readText().replace("versionName = \"$oldVersionName\"", "versionName = \"$newVersionName\"")
) )