diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2020-04-21 13:54:24 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-04-21 18:39:01 +0530 |
commit | 3d0850fa1ff84b30891b868fc04f2450d9bc9163 (patch) | |
tree | c6ae0e4b76a1ba453c45afe2bc928ac1b10de21b | |
parent | e6ea5f6a08abe779f212658f07984af19382b26f (diff) |
build: inline versionCode and versionName at destination
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
-rw-r--r-- | app/build.gradle | 4 | ||||
-rw-r--r-- | build.gradle | 3 | ||||
-rw-r--r-- | dependencies.gradle | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/app/build.gradle b/app/build.gradle index 00f66635..9355b8b9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -26,7 +26,7 @@ android { if (isSnapshot()) { android.applicationVariants.all { final variant -> variant.outputs.all { - outputFileName = "aps_${versions.versionName}.apk" + outputFileName = "aps_${defaultConfig.versionName}.apk" } } } @@ -35,6 +35,8 @@ android { defaultConfig { applicationId versions.packageName + versionCode 10601 + versionName '1.7.0-SNAPSHOT' } lintOptions { diff --git a/build.gradle b/build.gradle index 2120b6f9..3f2e5455 100644 --- a/build.gradle +++ b/build.gradle @@ -48,9 +48,6 @@ subprojects { defaultConfig { minSdkVersion versions.minSdk targetSdkVersion versions.targetSdk - versionCode versions.versionCode - versionName versions.versionName - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } compileOptions { diff --git a/dependencies.gradle b/dependencies.gradle index 01f1d249..88d118e6 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -6,8 +6,6 @@ ext.versions = [ minSdk: 23, targetSdk: 29, compileSdk: 29, - versionCode: 10601, - versionName: '1.7.0-SNAPSHOT', buildTools: '29.0.3', packageName: 'dev.msfjarvis.aps' ] |