Skip to content

Commit

Permalink
Merge pull request #223 from lihenggui/mercury
Browse files Browse the repository at this point in the history
Upgrade accompanist to 0.31.5-beta
  • Loading branch information
lihenggui authored Jul 12, 2023
2 parents b7cd04f + 4468319 commit ed6473c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ android {
defaultConfig {
applicationId = "com.merxury.blocker"
val gitCommitCount = providers.exec {
commandLine("git", "rev-list", "--all", "--count")
commandLine("git", "rev-list", "--count", "HEAD")
}.standardOutput.asText.get().trim()
versionCode = gitCommitCount.toIntOrNull() ?: 1
versionName = "2.0.$gitCommitCount" // X.Y.Z; X = Major, Y = minor, Z = version code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import kotlinx.datetime.Instant
import kotlinx.datetime.toJavaInstant
import java.time.ZoneId
import java.time.format.DateTimeFormatter
import java.time.format.FormatStyle
import java.util.Locale

@Composable
Expand Down Expand Up @@ -107,7 +108,7 @@ fun AppSummary(
)
BlockerSettingItem(
title = stringResource(id = string.last_update_time),
summary = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")
summary = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.LONG)
.withLocale(Locale.getDefault())
.withZone(ZoneId.systemDefault())
.format(lastUpdateTime?.toJavaInstant()),
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
accompanist = "0.30.1"
accompanist = "0.31.5-beta"
androidDesugarJdkLibs = "2.0.3"
androidGradlePlugin = "8.2.0-alpha11"
androidxActivity = "1.7.2"
Expand Down

0 comments on commit ed6473c

Please sign in to comment.