Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 3d0850f

Browse files
committed
build: inline versionCode and versionName at destination
Signed-off-by: Harsh Shandilya <[email protected]>
1 parent e6ea5f6 commit 3d0850f

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

app/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ android {
2626
if (isSnapshot()) {
2727
android.applicationVariants.all { final variant ->
2828
variant.outputs.all {
29-
outputFileName = "aps_${versions.versionName}.apk"
29+
outputFileName = "aps_${defaultConfig.versionName}.apk"
3030
}
3131
}
3232
}
@@ -35,6 +35,8 @@ android {
3535

3636
defaultConfig {
3737
applicationId versions.packageName
38+
versionCode 10601
39+
versionName '1.7.0-SNAPSHOT'
3840
}
3941

4042
lintOptions {

build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ subprojects {
4848
defaultConfig {
4949
minSdkVersion versions.minSdk
5050
targetSdkVersion versions.targetSdk
51-
versionCode versions.versionCode
52-
versionName versions.versionName
53-
5451
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
5552
}
5653
compileOptions {

dependencies.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ ext.versions = [
66
minSdk: 23,
77
targetSdk: 29,
88
compileSdk: 29,
9-
versionCode: 10601,
10-
versionName: '1.7.0-SNAPSHOT',
119
buildTools: '29.0.3',
1210
packageName: 'dev.msfjarvis.aps'
1311
]

0 commit comments

Comments
 (0)