From d1b68b2fe4bd7f95d94fdda33ad29fb652a3550a Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Mon, 3 Aug 2026 18:02:13 +0700 Subject: [PATCH] build(android): build from web/ instead of the loto submodule web/ and android/ now live in one repository, so the pinned submodule at android/loto is redundant. Point Capacitor's webDir and the build script at ../web directly, and drop the pin-bumping workflow from the docs. --- android/.gitignore | 4 -- android/.gitmodules | 3 -- android/README.md | 71 ++++++++++++++++------------------- android/capacitor.config.json | 2 +- android/loto | 1 - android/package.json | 6 +-- 6 files changed, 36 insertions(+), 51 deletions(-) delete mode 100644 android/.gitmodules delete mode 160000 android/loto diff --git a/android/.gitignore b/android/.gitignore index a315225..6a0acdd 100644 --- a/android/.gitignore +++ b/android/.gitignore @@ -2,10 +2,6 @@ node_modules/ npm-debug.log* -# Loto build (regenerated by `npm run build:loto`) -loto/build/ -loto/.svelte-kit/ - # Android build outputs android/.gradle/ android/build/ diff --git a/android/.gitmodules b/android/.gitmodules deleted file mode 100644 index 0ca4bf6..0000000 --- a/android/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "loto"] - path = loto - url = https://github.com/tiennm99/loto.git diff --git a/android/README.md b/android/README.md index c681b17..4f84d2d 100644 --- a/android/README.md +++ b/android/README.md @@ -1,20 +1,20 @@ # Lô tô — Android (Capacitor wrapper) -![build-debug](https://github.com/tiennm99/loto-android/actions/workflows/build-debug.yml/badge.svg) +![android-build-debug](https://github.com/tiennm99/loto/actions/workflows/android-build-debug.yml/badge.svg) -Fully-offline Android wrapper around [tiennm99/loto](https://github.com/tiennm99/loto) -(SvelteKit PWA). All assets — HTML, JS, CSS, and 184 voice MP3s — are bundled -into the APK at build time. No network is required at runtime. +Fully-offline Android wrapper around the [`web/`](../web) SvelteKit PWA. All +assets — HTML, JS, CSS, and 184 voice MP3s — are bundled into the APK at build +time. No network is required at runtime. > **Note:** the previous native Kotlin/Compose port lives in git history at -> commit `9a35686` and earlier. This repo is now a thin wrapper; loto evolves -> upstream and we just rebuild + ship. +> the commit titled `docs: add post-implementation todo list` and earlier. This +> is now a thin wrapper over `web/`; the web app evolves and we rebuild + ship. ## How it works ``` -loto/ (git submodule, pinned SHA) - └── pnpm run build → loto/build/ (SvelteKit static output) +../web/ + └── pnpm run build → ../web/build/ (SvelteKit static output) ↓ npx cap sync ↓ @@ -30,22 +30,16 @@ and the `