Skip to content

Commit

Permalink
Remove build time to make reproducible builds easier
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rken committed Nov 27, 2024
1 parent 7634556 commit 0724219
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ android {
testInstrumentationRunner = "$packageName.HiltTestRunner"

buildConfigField("String", "GITSHA", "\"${lastCommitHash()}\"")
buildConfigField("String", "BUILDTIME", "\"${buildTime()}\"")
}

signingConfigs {
Expand Down
3 changes: 0 additions & 3 deletions app/src/main/java/eu/darken/myperm/common/BuildConfigWrap.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package eu.darken.myperm.common

import androidx.annotation.Keep
import eu.darken.myperm.BuildConfig
import java.time.Instant


// Can't be const because that prevents them from being mocked in tests
Expand Down Expand Up @@ -37,8 +36,6 @@ object BuildConfigWrap {
;
}

val BUILD_TIME: Instant = Instant.parse(BuildConfig.BUILDTIME)

val VERSION_CODE: Long = BuildConfig.VERSION_CODE.toLong()
val VERSION_NAME: String = BuildConfig.VERSION_NAME
val GIT_SHA: String = BuildConfig.GITSHA
Expand Down
3 changes: 0 additions & 3 deletions buildSrc/src/main/java/ProjectConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import org.gradle.api.Action
import org.gradle.api.JavaVersion
import java.io.File
import java.io.FileInputStream
import java.time.Instant
import java.util.Properties

object ProjectConfig {
Expand Down Expand Up @@ -37,8 +36,6 @@ fun lastCommitHash(): String = Runtime.getRuntime().exec("git rev-parse --short
output.trim()
}

fun buildTime(): Instant = Instant.now()

/**
* Configures the [kotlinOptions][org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions] extension.
*/
Expand Down

0 comments on commit 0724219

Please sign in to comment.