File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ plugins {
1414 id(Plugins .firebase_perf)
1515 id(Plugins .bugsnag)
1616 id(Plugins .secrets_gradle_plugin)
17+ id(Plugins .versioning_gradle_plugin)
1718}
1819
1920val contributorsSigningConfig = ContributorsSignatory (rootProject)
@@ -24,7 +25,7 @@ android {
2425
2526 defaultConfig {
2627 applicationId = Android .namespace
27- versionCode = Packaging .versionCode
28+ versionCode = versioning.getVersionCode()
2829 versionName = Packaging .versionName
2930
3031 minSdk = Android .minSdkVersion
Original file line number Diff line number Diff line change 11buildscript {
22 repositories {
3+ gradlePluginPortal()
34 google()
45 mavenCentral()
56 maven(url = " https://plugins.gradle.org/m2/" )
@@ -18,6 +19,7 @@ buildscript {
1819 classpath(Classpath .secrets_gradle_plugin)
1920 classpath(Classpath .kotlin_serialization_plugin)
2021 classpath(Classpath .protobuf_plugin)
22+ classpath(Classpath .versioning_gradle_plugin)
2123 }
2224}
2325
Original file line number Diff line number Diff line change @@ -13,9 +13,7 @@ object Packaging {
1313 private const val majorVersion = 2
1414 private const val minorVersion = 1
1515 private const val patchVersion = 7
16- private const val buildNumber = 417
1716
18- const val versionCode = buildNumber
1917 const val versionName = " $majorVersion .$minorVersion .$patchVersion "
2018}
2119
@@ -104,6 +102,7 @@ object Classpath {
104102 const val bugsnag = " com.bugsnag:bugsnag-android-gradle-plugin:8.+"
105103 const val firebase_perf = " com.google.firebase:perf-plugin:1.4.2"
106104 const val secrets_gradle_plugin = " com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:2.0.1"
105+ const val versioning_gradle_plugin = " de.nanogiants:android-versioning:2.4.0"
107106}
108107
109108object Plugins {
@@ -120,6 +119,7 @@ object Plugins {
120119 const val firebase_perf = " com.google.firebase.firebase-perf"
121120 const val bugsnag = " com.bugsnag.android.gradle"
122121 const val secrets_gradle_plugin = " com.google.android.libraries.mapsplatform.secrets-gradle-plugin"
122+ const val versioning_gradle_plugin = " de.nanogiants.android-versioning"
123123}
124124
125125object Libs {
You can’t perform that action at this time.
0 commit comments