tv-connect: adb connect $TV_IP:5555 tv-install <flavor>: installs flavor release APK Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -33,9 +33,10 @@ post-25.11). No file rewriting; `gradle.properties` stays untouched.
|
||||
- All APKs: `gradle --no-daemon :app:assembleRelease`
|
||||
→ `app/build/outputs/apk/<flavor>/release/<flavor>-release.apk`
|
||||
- Single APK: `gradle --no-daemon :app:assembleWeatherRelease`
|
||||
- Sideload: `adb connect <tv-ip>:5555 && adb install -r <apk>`
|
||||
- Connect ADB: `tv-connect` (uses $TV_IP from .envrc)
|
||||
- Sideload: `tv-install <flavor>` e.g. `tv-install weather`
|
||||
(bump `versionCode` in app/build.gradle.kts first for upgrades)
|
||||
- Fresh install: `adb uninstall cz.c3c.webviewkiosk && adb install <apk>`
|
||||
- Fresh install: `adb uninstall cz.c3c.webviewkiosk.<flavor> && tv-install <flavor>`
|
||||
|
||||
## Key facts
|
||||
|
||||
|
||||
@@ -63,6 +63,11 @@
|
||||
# nixpkgs PR #449037 (merged post-25.11, present in 26.05+).
|
||||
GRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${sdkRoot}/build-tools/${buildToolsVersion}/aapt2";
|
||||
FONTCONFIG_FILE = pkgs.makeFontsConf { fontDirectories = fonts; };
|
||||
|
||||
shellHook = ''
|
||||
tv-connect() { adb connect "$TV_IP:5555"; }
|
||||
tv-install() { adb install -r "app/build/outputs/apk/$1/release/$1-release.apk"; }
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user