Skip to content

Commit 77fdc19

Browse files
bmc08gtjeffyanta
authored andcommitted
chore: synchronize versioning with iOS
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent e78f05a commit 77fdc19

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ android {
2424

2525
defaultConfig {
2626
applicationId = Android.namespace
27-
versionCode = Android.versionCode
28-
versionName = "1.1.$versionCode"
27+
versionCode = Packaging.versionCode
28+
versionName = Packaging.versionName
2929

3030
minSdk = Android.minSdkVersion
3131
targetSdk = Android.targetSdkVersion

app/src/main/java/com/getcode/view/main/account/AccountHome.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ fun AccountHome(
134134
.padding(top = CodeTheme.dimens.grid.x7)
135135
.fillMaxWidth()
136136
.align(Alignment.Center),
137-
text = "v${BuildConfig.VERSION_NAME}",
137+
text = "Version ${BuildConfig.VERSION_NAME} • Build ${BuildConfig.VERSION_CODE}",
138138
color = CodeTheme.colors.textSecondary,
139139
style = CodeTheme.typography.textSmall.copy(
140140
textAlign = TextAlign.Center

buildSrc/src/main/java/Dependencies.kt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,23 @@
22

33
object Android {
44
const val namespace = "com.getcode"
5-
const val versionCode = 410
65
const val compileSdkVersion = 34
76
const val minSdkVersion = 24
87
const val targetSdkVersion = 34
98
const val testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
109
const val buildToolsVersion = "34.0.0"
1110
}
1211

12+
object Packaging {
13+
private const val majorVersion = 2
14+
private const val minorVersion = 1
15+
private const val patchVersion = 7
16+
const val buildNumber = 410
17+
18+
val versionCode = buildNumber
19+
val versionName = "$majorVersion.$minorVersion.$patchVersion"
20+
}
21+
1322
object Versions {
1423
const val java = "17"
1524
const val kotlin = "1.9.23"

0 commit comments

Comments
 (0)