Repository navigation
Tech Versioning, SemVer 2.0.0 & Migration
This page documents ApkUp's transition from its legacy versioning scheme (up to v1.46.0) to strict Semantic Versioning 2.0.0 (SemVer) starting with v1.47.0, including artifact naming, self-updater precedence, release evaluation rules, and branch isolation.
All previously published Git tags and GitHub releases up to and including
v1.46.0remain completely untouched.
| Aspect | Legacy Standard (up to v1.46.0) |
SemVer 2.0.0 Standard (v1.47.0+) |
|---|---|---|
| Git Tag (Stable) | v1.46.0 |
vMAJOR.MINOR.PATCH (e.g. v1.47.0) |
| Git Tag (Pre-Release) |
v1.41.25-Beta / v1.45.0-beta.1
|
vMAJOR.MINOR.PATCH-beta.N (e.g. v1.47.0-beta.1, v1.47.0-beta.2) |
| Release Title (GitHub / GitLab) | v1.46.0 |
vMAJOR.MINOR.PATCH (VERSION_CODE) / vMAJOR.MINOR.PATCH-beta.N (VERSION_CODE)
|
Android versionCode |
Monotonic integer (1 .. 231) |
Strictly monotonic integer (238, 239, ...) |
Android versionName |
1.46.0 (231) (or 1.47.0-238 in CI) |
MAJOR.MINOR.PATCH[-beta.N]+VERSION_CODE.SHORT_GIT_HASH (e.g. 1.47.0+238.74a9f8d) |
| Release APK Filename | ApkUp-v1.46.0-231.apk |
ApkUp-v1.47.0-build238.apk / ApkUp-v1.47.0-beta.1-build238.apk
|
| Version Source of Truth | Hardcoded in app/build.gradle.kts
|
Centralized version.properties at repository root |
-
Central Configuration (
version.properties): HoldsVERSION_MAJOR,VERSION_MINOR,VERSION_PATCH,VERSION_PRE_RELEASE, andVERSION_CODEin one place so neitherapp/build.gradle.ktsnor.github/workflows/release.ymlneeds fragile regex parsing on Kotlin build scripts. -
Automatic Git Commit Hash: Gradle (
app/build.gradle.kts) readsgit rev-parse --short HEADviaproviders.exec(configuration-cache compatible) and falls back cleanly tonogitwhen built outside a Git repository. An optionalBUILD_NUMBERenvironment variable can overrideVERSION_CODEin CI. -
Why
-build<versionCode>in APK Filenames:- A bare
-238suffix (as inApkUp-v1.47.0-238.apk) can be misinterpreted by strict SemVer parsers as a pre-release identifier. - A
+238suffix (as inApkUp-v1.47.0+238.apk) is rewritten by GitHub Release asset uploads into a dot (.). - Using
-build<versionCode>(ApkUp-v1.47.0-build238.apk) avoids both issues and keeps filenames unambiguous across GitHub, GitLab, Obtainium, and shell scripts.
- A bare
-
Strict SemVer 2.0.0 Precedence (
SelfUpdateRepository.kt):- Pre-releases sort below stable releases:
1.47.0-alpha.1<1.47.0-beta.1<1.47.0-beta.2<1.47.0-rc.1<1.47.0<2.0.0. - Build metadata after
+(such as+238.74a9f8d) is ignored when comparing version precedence. - Legacy parenthesized build tie-breakers (e.g.
1.39.3-Beta (148)vs.1.39.3-Beta (149)) remain supported for older releases, while-build<N>in APK filenames is never misparsed as a pre-release.
- Pre-releases sort below stable releases:
-
Verified Backward Compatibility (
v1.46.0→v1.47.0+):- Installed
v1.46.0builds evaluaterelease.tag_name(v1.47.0/v1.47.0-beta.1), not the APK filename, and select release assets solely by.apkextension (excluding-debug.apkand-unaligned.apk) from trusted GitHub hosts alongsideasset.digest/.sha256sidecars. - Existing
v1.46.0installations therefore discover, verify, and installApkUp-v1.47.0-build238.apkwithout any migration gap.
- Installed
-
UI & Changelog Support:
-
ChangelogBottomSheet.ktstrips+...build metadata before resolving milestone asset prefixes (1.47) and release badges (Major Update,Feature Update,Patch & Fix). -
SettingsScreen.ktrenders compactApkUp • v<Major>.<Minor>.<Patch> (<versionCode>)headers viaAboutHeaderVersionRow&CopyableVersionBadgewhile preserving Tap-to-Copy for the full SemVer + build string (v<VERSION_NAME> (Build <VERSION_CODE>), matching Android System App Info).
-
Before each release, commits since the previous Git tag (git log <last-tag>..HEAD) are evaluated objectively (supported by VERSIONING.md and scripts/suggest-version.ps1):
-
PATCH (
x.y.Z): Onlyfix:, security patches, localization updates, documentation, or maintenance chores. -
MINOR (
x.Y.0): At least one backwards-compatiblefeat:commit. There is no automatic Major bump at.9or.99. -
MAJOR (
X.0.0) — Two-Stage Check:-
Mandatory Major: Triggered immediately by
feat!:/BREAKING CHANGE:commits or genuine breaking changes (incompatible backups/databases, removal of a core update source, significantminSdkbump, or incompatible signing/update path). - Milestone Major (Proposal Only): Proposed as an explicit option alongside Minor when a release introduces a complete UI/navigation redesign, a from-scratch rewrite of a core engine, or a deliberate product relaunch — never applied silently without maintainer sign-off.
-
Mandatory Major: Triggered immediately by
-
Independence from Draft Docs: Pre-edited version numbers in draft changelogs,
README.md,SECURITY.md, or website metadata never constrain the version decision; if a Major bump is chosen, those documents are updated to match.
-
Canonical Release vs.
-LatestNaming: Official releases follow the Single-Artifact Principle viarelease.yml. Local or mirror tracking builds useApkUp-v<Major>.<Minor>.<Patch>-build<versionCode>-Latest.apk, renaming the previous-Latestfile toApkUp-v<Major>.<Minor>.<Patch>-(<versionCode>).apkto avoid ambiguity. -
Branch & Worktree Isolation: Feature and fix branches are developed off
mainand merged via Pull Request afterAndroid CI(lintDebug,testDebugUnitTest,assembleDebug) passes. Experimental side-project branches (experiment/*) stay isolated in dedicated worktrees: they may merge updates frommain, but never modify or merge intomainwithout explicit maintainer approval.
📖 Related: Tech: CI/CD, Single-Artifact Releases & Checksums • VERSIONING.md
🏠 Wiki Home · 📦 Releases · 🐛 Report an Issue · 🛡️ Security · Licensing & Third-Party Notices · GPL-3.0-or-later
Found this helpful? ⭐ Star on GitHub · ☕ Buy Me a Coffee · 💛 Coindrop
- 🌐 Update Sources & Signature Protection
- 📦 F-Droid & Index V2 Repositories
- 🔑 GitHub, GitLab & Codeberg Tokens
- 📲 Installing Unknown Apps
⚠️ Google’s 24h Lock & Keep Android Open- ⚡ Shizuku & Background Installation
- ♿ Accessibility & Accessible Mode
- 🛠️ Apps, Filters, Rollbacks & Backup
- 🔄 Obtainium Migration & Sync Guide
- 🌐 Sources, Networking & Parsing
- ⚡ Installation, Shizuku & WorkManager
- 🛡️ Security, Cryptography & Privacy
- 🎨 UI, Accessibility & Website
- 🚀 CI/CD, Releases & Checksums
- 🏷️ Versioning (Legacy vs. SemVer 2.0.0)
- 💾 Storage, Backups, Logs & Widget
- 🧪 Build System, R8 & Tests
- 🌍 Localization, Weblate & Assets