File tree Expand file tree Collapse file tree
src/main/java/com/getcode/view/main/account Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010on :
1111 push :
1212 tags :
13- - ' v1. *'
13+ - ' v *'
1414
1515 # Allows you to run this workflow manually from the Actions tab
1616 workflow_dispatch :
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 22
33object 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 = 411
17+
18+ val versionCode = buildNumber
19+ val versionName = " $majorVersion .$minorVersion .$patchVersion "
20+ }
21+
1322object Versions {
1423 const val java = " 17"
1524 const val kotlin = " 1.9.23"
You can’t perform that action at this time.
0 commit comments