Skip to content

Commit 64af161

Browse files
committed
version in AboutScreen.kt now takes version value from BuildConfig
1 parent b08076d commit 64af161

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
@@ -13,7 +13,7 @@ android {
1313
minSdk = 30
1414
targetSdk = 34
1515
versionCode = 1
16-
versionName = "0.0.1"
16+
versionName = "0.0.3"
1717

1818
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1919
}
@@ -36,6 +36,7 @@ android {
3636
}
3737
buildFeatures {
3838
compose = true
39+
buildConfig = true
3940
}
4041
}
4142

app/src/main/java/com/noobexon/xposedfakelocation/manager/ui/about/AboutScreen.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import androidx.compose.ui.text.style.TextAlign
2727
import androidx.compose.ui.unit.dp
2828
import androidx.navigation.NavController
2929
import androidx.compose.ui.platform.LocalContext
30+
import com.noobexon.xposedfakelocation.BuildConfig
3031

3132

3233
@OptIn(ExperimentalMaterial3Api::class)
@@ -131,7 +132,7 @@ fun AppVersionTitle() {
131132
@Composable
132133
fun AppVersionValue() {
133134
Text(
134-
text = "0.0.1",
135+
text = BuildConfig.VERSION_NAME,
135136
style = MaterialTheme.typography.bodyMedium.copy(
136137
fontWeight = FontWeight.SemiBold
137138
),

0 commit comments

Comments
 (0)