From 193a0615843ec8a5cba61a3459753aeb2c2312f3 Mon Sep 17 00:00:00 2001 From: Wavesonics Date: Thu, 31 Aug 2023 23:26:54 -0700 Subject: [PATCH] Fix version string on Android --- .../apps/hammer/android/ProjectRootActivity.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/src/main/kotlin/com/darkrockstudios/apps/hammer/android/ProjectRootActivity.kt b/android/src/main/kotlin/com/darkrockstudios/apps/hammer/android/ProjectRootActivity.kt index f0d6290ba..fe99d38d9 100644 --- a/android/src/main/kotlin/com/darkrockstudios/apps/hammer/android/ProjectRootActivity.kt +++ b/android/src/main/kotlin/com/darkrockstudios/apps/hammer/android/ProjectRootActivity.kt @@ -28,7 +28,6 @@ import com.arkivanov.decompose.extensions.compose.jetbrains.subscribeAsState import com.arkivanov.decompose.retainedComponent import com.arkivanov.decompose.value.MutableValue import com.arkivanov.decompose.value.getAndUpdate -import com.darkrockstudios.apps.hammer.base.BuildMetadata import com.darkrockstudios.apps.hammer.common.components.projectroot.CloseConfirm import com.darkrockstudios.apps.hammer.common.components.projectroot.ProjectRoot import com.darkrockstudios.apps.hammer.common.components.projectroot.ProjectRootComponent @@ -45,6 +44,7 @@ import com.darkrockstudios.apps.hammer.common.injectMainDispatcher import com.darkrockstudios.apps.hammer.common.projectroot.ProjectRootFab import com.darkrockstudios.apps.hammer.common.projectroot.ProjectRootUi import com.darkrockstudios.apps.hammer.common.projectroot.getDestinationIcon +import com.darkrockstudios.apps.hammer.common.util.getAppVersionString import com.seiko.imageloader.ImageLoader import com.seiko.imageloader.LocalImageLoader import kotlinx.coroutines.Job @@ -276,7 +276,7 @@ private fun MediumNavigation( Spacer(modifier = Modifier.weight(1f)) Text( - "v${BuildMetadata.APP_VERSION}", + getAppVersionString(), style = MaterialTheme.typography.labelSmall, fontWeight = FontWeight.Thin, modifier = Modifier @@ -326,7 +326,7 @@ private fun ExpandedNavigation( Spacer(modifier = Modifier.weight(1f)) Text( - "v${BuildMetadata.APP_VERSION}", + getAppVersionString(), modifier = Modifier .padding(Ui.Padding.L) .align(Alignment.Start),