diff --git a/CHANGELOG.md b/CHANGELOG.md index b7394a0a..7274ccd1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [2.0.0-beta01] - 2021-03-15 +Same as [2.0.0-alpha06] + ## [2.0.0-alpha06] - 2021-03-06 ### Added - Edit implementation for healings and payments @@ -169,7 +172,8 @@ See Pull Request #5 - Add new healing record for patient - View healing logs -[Unreleased]: https://github.com/yashovardhan99/HealersDiary/compare/v2.0.0-alpha06...HEAD +[Unreleased]: https://github.com/yashovardhan99/HealersDiary/compare/v2.0.0-beta01...HEAD +[2.0.0-beta01]: https://github.com/yashovardhan99/HealersDiary/compare/v2.0.0-alpha06...v2.0.0-beta01 [2.0.0-alpha06]: https://github.com/yashovardhan99/HealersDiary/compare/v2.0.0-alpha05...v2.0.0-alpha06 [2.0.0-alpha05]: https://github.com/yashovardhan99/HealersDiary/compare/v2.0.0-alpha04...v2.0.0-alpha05 [2.0.0-alpha04]: https://github.com/yashovardhan99/HealersDiary/compare/v2.0.0-alpha03...v2.0.0-alpha04 diff --git a/buildSrc/src/main/java/dependencies/Version.kt b/buildSrc/src/main/java/dependencies/Version.kt index 72902b3b..177875dc 100644 --- a/buildSrc/src/main/java/dependencies/Version.kt +++ b/buildSrc/src/main/java/dependencies/Version.kt @@ -20,8 +20,8 @@ object Version { private const val minor = 0 private const val patch = 0 - private val buildType: BuildType = BuildType.ALPHA - private const val buildCode = 6 + private val buildType: BuildType = BuildType.BETA + private const val buildCode = 1 private const val standard = (major * 100 + minor) * 100 + patch val versionCode = (standard * 10 + buildType.typeCode) * 100 + buildCode @@ -34,9 +34,11 @@ object Version { val builder = StringBuilder("$major.$minor.$patch") return when { buildType is BuildType.RELEASE -> builder.toString() - buildCode == 0 -> builder.append(builder.append("-${buildType.typeString}")).toString() + buildCode == 0 -> builder.append(builder.append("-${buildType.typeString}")) + .toString() else -> { - val code = NumberFormat.getInstance().apply { minimumIntegerDigits = 2 }.format(buildCode) + val code = NumberFormat.getInstance().apply { minimumIntegerDigits = 2 } + .format(buildCode) builder.append("-${buildType.typeString}").append(code).toString() } } @@ -95,4 +97,4 @@ object Version { const val workmanager = "2.5.0" } } -} \ No newline at end of file +}