Skip to content

Commit

Permalink
Bump version: 1.4.1 (31) -> 1.4.2 (32)
Browse files Browse the repository at this point in the history
Resolve `exec` deprecation.
  • Loading branch information
pilot51 committed Jan 3, 2025
1 parent 89797c9 commit cc4c76e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/

import com.android.build.gradle.internal.api.BaseVariantOutputImpl
import java.io.ByteArrayOutputStream
import java.io.FileInputStream
import java.util.*

Expand All @@ -33,12 +32,9 @@ if (keystorePropertiesFile.exists()) {
}

val gitCommitHash by lazy {
val stdout = ByteArrayOutputStream()
exec {
providers.exec {
commandLine("git", "rev-parse", "--short", "HEAD")
standardOutput = stdout
}
stdout.toString().trim()
}.standardOutput.asText.get().trim()
}

android {
Expand All @@ -48,8 +44,8 @@ android {
applicationId = "com.pilot51.voicenotify"
minSdk = 21
targetSdk = 34
versionName = "1.4.1"
versionCode = 31
versionName = "1.4.2"
versionCode = 32
vectorDrawables.useSupportLibrary = true
ksp {
arg("room.schemaLocation", "$projectDir/schemas")
Expand Down

0 comments on commit cc4c76e

Please sign in to comment.