From 3afe01ce522c325c871605a99498f7b7da192b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Bene=C5=A1?= Date: Tue, 3 Nov 2026 16:13:01 +0000 Subject: [PATCH] LLeMbas for Android 1.0.0-beta.1: pinned to LLeMbas 2.0.0-beta.1 versionCode is beta-aware: a beta sorts below its release. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 ++ app/build.gradle.kts | 11 +++++++---- .../main/java/eu/llembas/android/ui/theme/Tokens.kt | 2 +- contract/lock.json | 4 ++-- tokens.lock.json | 6 +++--- 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ff17cf..76fcb23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ is in alpha and releases come off `main`. ## [Unreleased] +## [1.0.0-beta.1] — 2026-11-03 + For LLeMbas server 2.0, and only for it. ### Added diff --git a/app/build.gradle.kts b/app/build.gradle.kts index a569bfd..8c0ef29 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -28,10 +28,13 @@ android { minSdk = 29 targetSdk = 36 // The one source of the version. versionCode is derived from it, so the two cannot - // drift: 0.1.0 -> 100, 1.2.3 -> 10203. - versionName = "0.1.0" - versionCode = versionName!!.split(".").map { it.toInt() }.let { (a, b, c) -> - a * 10000 + b * 100 + c + // drift, and a beta sorts below its release: 1.0.0-beta.1 -> 1000001, + // 1.0.0-beta.2 -> 1000002, 1.0.0 -> 1000099, 1.2.3 -> 1020399. + versionName = "1.0.0-beta.1" + versionCode = versionName!!.split("-beta.").let { parts -> + val (a, b, c) = parts[0].split(".").map { it.toInt() } + val pre = if (parts.size == 2) parts[1].toInt() else 99 + ((a * 10000 + b * 100 + c) * 100) + pre } } diff --git a/app/src/main/java/eu/llembas/android/ui/theme/Tokens.kt b/app/src/main/java/eu/llembas/android/ui/theme/Tokens.kt index 16464ac..52e6455 100644 --- a/app/src/main/java/eu/llembas/android/ui/theme/Tokens.kt +++ b/app/src/main/java/eu/llembas/android/ui/theme/Tokens.kt @@ -1,4 +1,4 @@ -// Generated by scripts/fetch-tokens.py from the LLeMbas server's tokens.css at a25db24971a07823bda9f8dbaf517f15960536a7. Do not edit. +// Generated by scripts/fetch-tokens.py from the LLeMbas server's tokens.css at v2.0.0-beta.1. Do not edit. package eu.llembas.android.ui.theme import androidx.compose.ui.graphics.Color diff --git a/contract/lock.json b/contract/lock.json index 35051e9..9823ed1 100644 --- a/contract/lock.json +++ b/contract/lock.json @@ -1,5 +1,5 @@ { - "ref": "a25db24971a07823bda9f8dbaf517f15960536a7", - "commit": "a25db24971a07823bda9f8dbaf517f15960536a7", + "ref": "v2.0.0-beta.1", + "commit": "a3b0e660cc4de3d25d75e560afd8441d0fa37a00", "sha256": "56068e80b817badd0b2b80af497d8920237b7ee45c939c7f5fe72c50e865609b" } diff --git a/tokens.lock.json b/tokens.lock.json index 5510fa7..a348376 100644 --- a/tokens.lock.json +++ b/tokens.lock.json @@ -1,5 +1,5 @@ { - "tag": "a25db24971a07823bda9f8dbaf517f15960536a7", - "commit": "a25db24971a07823bda9f8dbaf517f15960536a7", - "sha256": "7a6cc90344df1e93feab5b301e7ce5997ebfc996b19c32d6dfd30d7ea17c1c8e" + "tag": "v2.0.0-beta.1", + "commit": "a3b0e660cc4de3d25d75e560afd8441d0fa37a00", + "sha256": "8c0359a1b8e62b7170db3d5f9630c1289a1edc91b429fe8a2fa0e41e5588c9ed" }