Update build process
This commit is contained in:
@@ -13,8 +13,8 @@ Build toolchain: AGP 9.2.1, Gradle 9 (nixpkgs 26.05), build-tools 36, compileSdk
|
||||
This is a lab project (`lab` skill conventions apply) EXCEPT:
|
||||
|
||||
- No container image, no helm chart, no /livez//readyz — artifact is an APK.
|
||||
- No `nix build`: gradle needs network for Maven deps. The flake is a dev
|
||||
shell only. All builds run as `nix develop --command gradle ...`.
|
||||
- No `nix build`: gradle needs network for Maven deps. Builds run via devshell
|
||||
or `nix run` (see Commands below).
|
||||
- Agents cannot run nix/gradle/adb here — ask the user to run commands
|
||||
and report output.
|
||||
|
||||
@@ -29,11 +29,13 @@ post-25.11). No file rewriting; `gradle.properties` stays untouched.
|
||||
|
||||
## Commands (user-run, from repo root, direnv activates devshell)
|
||||
|
||||
- Tests: `gradle --no-daemon :app:test`
|
||||
- All APKs: `gradle --no-daemon :app:assembleRelease`
|
||||
- Tests: `gradle --no-daemon :app:test`
|
||||
- All APKs: `gradle --no-daemon :app:assembleRelease`
|
||||
→ `app/build/outputs/apk/<flavor>/release/<flavor>-release.apk`
|
||||
- Single APK: `gradle --no-daemon :app:assembleWeatherRelease`
|
||||
- Deploy all: `tv-deploy` — connects, installs all flavor APKs, disconnects
|
||||
- Single APK: `gradle --no-daemon :app:assembleWeatherRelease`
|
||||
- Build + deploy: `nix run` or `tv-deploy` (after manual build)
|
||||
- Build only: `nix run .#build`
|
||||
- Deploy only: `nix run .#deploy` or `tv-deploy` (in devshell)
|
||||
(bump `versionCode` in app/build.gradle.kts first for upgrades)
|
||||
- Fresh install: `adb connect $TV_IP:5555 && adb uninstall cz.c3c.webviewkiosk.<flavor> && adb install app/build/outputs/apk/<flavor>/release/<flavor>-release.apk`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user