mirror of
https://github.com/gkd-kit/gkd.git
synced 2024-11-16 11:42:22 +08:00
This commit is contained in:
parent
8c404f9f32
commit
980120609f
|
@ -65,8 +65,8 @@ android {
|
||||||
useSupportLibrary = true
|
useSupportLibrary = true
|
||||||
}
|
}
|
||||||
|
|
||||||
val nowTime = gitInfo?.commitTime ?: 0
|
val commitTime = gitInfo?.commitTime ?: 0
|
||||||
buildConfigField("Long", "BUILD_TIME", jsonStringOf(nowTime) + "L")
|
buildConfigField("Long", "GIT_COMMIT_TIME", jsonStringOf(commitTime) + "L")
|
||||||
buildConfigField(
|
buildConfigField(
|
||||||
"String",
|
"String",
|
||||||
"GIT_COMMIT_ID",
|
"GIT_COMMIT_ID",
|
||||||
|
|
|
@ -21,7 +21,6 @@ import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.input.nestedscroll.nestedScroll
|
import androidx.compose.ui.input.nestedscroll.nestedScroll
|
||||||
import androidx.compose.ui.platform.LocalContext
|
import androidx.compose.ui.platform.LocalContext
|
||||||
import androidx.compose.ui.unit.dp
|
|
||||||
import com.ramcosta.composedestinations.annotation.Destination
|
import com.ramcosta.composedestinations.annotation.Destination
|
||||||
import com.ramcosta.composedestinations.annotation.RootNavGraph
|
import com.ramcosta.composedestinations.annotation.RootNavGraph
|
||||||
import li.songe.gkd.BuildConfig
|
import li.songe.gkd.BuildConfig
|
||||||
|
@ -143,11 +142,11 @@ fun AboutPage() {
|
||||||
.itemPadding()
|
.itemPadding()
|
||||||
) {
|
) {
|
||||||
Text(
|
Text(
|
||||||
text = "构建时间",
|
text = "提交时间",
|
||||||
style = MaterialTheme.typography.bodyLarge,
|
style = MaterialTheme.typography.bodyLarge,
|
||||||
)
|
)
|
||||||
Text(
|
Text(
|
||||||
text = BuildConfig.BUILD_TIME.format("yyyy-MM-dd HH:mm:ss ZZ"),
|
text = BuildConfig.GIT_COMMIT_TIME.format("yyyy-MM-dd HH:mm:ss ZZ"),
|
||||||
style = MaterialTheme.typography.bodyMedium,
|
style = MaterialTheme.typography.bodyMedium,
|
||||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user