Files
scrabble-game/ui/src/vite-env.d.ts
T
Ilia Denisov ca2c6487cf feat(android): manual signed-APK CI workflow
Add .gitea/workflows/android-build.yaml (workflow_dispatch + confirm=build,
master-only; mirrors prod-deploy): builds the native SPA, bundles the offline
dicts, assembles a release APK as a run artifact. JDK 21 via setup-java; the
Android SDK is host-provisioned (host-executor runner) with a fail-fast verify
that also checks the runner user's access. Signing degrades gracefully — no
keystore => unsigned release APK, not a failure.

Wire ui/android/app/build.gradle: versionCode/versionName from the release tag
(-P props; '=' assignment, not the command form that binds .toInteger() to the
DSL setter's null return), plus a guarded signingConfigs.release from env.

Rename VITE_STORE_URL -> VITE_RUSTORE_URL (empty until publish).

Bake the E as-built into ANDROID_PLAN.md.
2026-07-12 20:27:07 +02:00

27 lines
1.2 KiB
TypeScript

/// <reference types="svelte" />
/// <reference types="vite/client" />
interface ImportMetaEnv {
/** Base URL of the gateway Connect endpoint. Empty in dev (same-origin proxy); set to the real
* gateway origin in a packaged native build. */
readonly VITE_GATEWAY_URL?: string;
/** "1" hides the in-app-currency purchase actions in the thin native MVP that defers store billing. */
readonly VITE_PAYMENTS_DISABLED?: string;
/** RuStore listing URL the native update overlay opens for its "update" action. Empty until the app
* is published (the button then no-ops); the version gate is dormant in the MVP so it never fires yet. */
readonly VITE_RUSTORE_URL?: string;
/** Bundled-dictionary version the native offline path requests; matches the packaged DAWG files. */
readonly VITE_DICT_VERSION?: string;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}
/** App version string, injected by Vite's define from `git describe` at build time. */
declare const __APP_VERSION__: string;
/** Bundled-dictionary version, injected by Vite's define from VITE_DICT_VERSION (default "dev"). The
* native offline path requests this (variant, version) so it matches the packaged ./dict files. */
declare const __DICT_VERSION__: string;