Skip to content

Commit

Permalink
Preparing for release v2.0.0-beta01
Browse files Browse the repository at this point in the history
  • Loading branch information
yashovardhan99 committed Mar 15, 2021
1 parent 5224e88 commit 5491eeb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
12 changes: 7 additions & 5 deletions buildSrc/src/main/java/dependencies/Version.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
}
}
Expand Down Expand Up @@ -95,4 +97,4 @@ object Version {
const val workmanager = "2.5.0"
}
}
}
}

0 comments on commit 5491eeb

Please sign in to comment.