Skip to content

Commit 2c7324a

Browse files
committed
Set versionName = "0.1"
1 parent 731345e commit 2c7324a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ android {
1414
minSdk = 24
1515
targetSdk = 35
1616
versionCode = 1
17-
versionName = "1.0"
17+
versionName = "0.1"
1818

1919
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
2020
}
@@ -41,6 +41,7 @@ android {
4141
}
4242
buildFeatures {
4343
compose = true
44+
buildConfig = true
4445
}
4546
}
4647

app/src/main/java/org/mydomain/myscan/view/AboutScreen.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ import androidx.compose.ui.Modifier
5151
import androidx.compose.ui.platform.LocalContext
5252
import androidx.compose.ui.tooling.preview.Preview
5353
import androidx.compose.ui.unit.dp
54+
import org.mydomain.myscan.BuildConfig
5455
import org.mydomain.myscan.R
5556
import org.mydomain.myscan.ui.theme.MyScanTheme
5657

@@ -105,7 +106,7 @@ fun AboutContent(modifier: Modifier = Modifier, showLicenceDialog: MutableState<
105106
"Version",
106107
style = MaterialTheme.typography.titleSmall
107108
)
108-
Text("1.0.0")
109+
Text(BuildConfig.VERSION_NAME)
109110

110111
Spacer(Modifier.height(16.dp))
111112

0 commit comments

Comments
 (0)