AniTrend / anitrend-v2

Rewrite project for AniTrend 🔥
GNU General Public License v3.0
47 stars 6 forks source link

[buildSrc] Refactor version name and version code for build #157

Closed wax911 closed 1 year ago

wax911 commented 2 years ago

AniTrend Issue Guidelines

Before opening a new issue, please take a moment to review our community guidelines to make the contribution process easy and effective for everyone involved.

You may find an answer in already closed issues: https://github.com/AniTrend/anitrend-v2/issues?q=is%3Aissue+is%3Aclosed

Feature Information

An experimental feature for analytic purposes, we would like to generate builds with smarter versioning tags. The channel name will be retrieved from the current branch while the identifier will be the commit id.

e.g. feature/* will be alpha release names while develop be beta & master will have no identifier and represents a stable channel

Solution Information

Example: v2.0.0-beta-fra446e -> v{versionName}-{channel}-{commit}

See current implementation: https://github.com/AniTrend/anitrend-v2/blob/8a23946405ac8c18fac8149af022974a84a6afc9/buildSrc/src/main/java/co/anitrend/buildSrc/common/Configuration.kt#L37-L53

Additional Context

Consider using https://github.com/swiftzer/semver for version name management in buildSrc

wax911 commented 1 year ago

Completed in #285