Skip to content

Commit

Permalink
remove BuildTime, it makes the app un-reproducible
Browse files Browse the repository at this point in the history
  • Loading branch information
aj3423 committed Jun 14, 2024
1 parent dd96893 commit bd15bb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ android {

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

val nowUTC = OffsetDateTime.now(ZoneOffset.UTC)
val formattedTime = nowUTC.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))
buildConfigField("String", "BUILD_TIME", "\"$formattedTime\"")
// val nowUTC = OffsetDateTime.now(ZoneOffset.UTC)
// val formattedTime = nowUTC.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))
// buildConfigField("String", "BUILD_TIME", "\"$formattedTime\"")
}

buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ class SettingFragment : Fragment() {
val repo = "https://github.com/aj3423/SpamBlocker"
val msg =
"${resources.getString(R.string.version)}:<br>&emsp;${BuildConfig.VERSION_NAME}<br><br>" +
"${resources.getString(R.string.build_time)}:<br>&emsp;${BuildConfig.BUILD_TIME}<br><br>" +
"${resources.getString(R.string.source_code)}:<br>&emsp;<a href=\"$repo\">$repo</a><br><br>"

builder.setMessage(Html.fromHtml(msg, 0))
Expand Down

0 comments on commit bd15bb0

Please sign in to comment.