Publish the latest Android version code (#2085)

* feat(website): publish latest Android version code

* fix(website): select latest Android APK release
This commit is contained in:
Mohamed Boudra
2026-07-15 21:38:52 +08:00
committed by GitHub
parent 4a5630bfce
commit 319d9017c2
9 changed files with 283 additions and 134 deletions
@@ -0,0 +1,14 @@
import { describe, expect, it } from "vitest";
import { getAndroidVersionCode } from "./android-version";
describe("getAndroidVersionCode", () => {
it("matches the Android build version code for a stable release", () => {
expect(getAndroidVersionCode("0.1.107")).toBe(1107);
});
it("rejects versions that cannot map to a unique Android version code", () => {
expect(() => getAndroidVersionCode("0.1000.0")).toThrow(
"Cannot derive collision-free Android versionCode from version: 0.1000.0",
);
});
});