android-build-apk-copy

Build TermLink Android debug APK only, then copy the generated APK to E:\\project\\TermLink. Use when you only need a fresh APK artifact for distribution/testing without install or adb debug steps.

SKILL.md

GitHub

Android Build APK Copy

Use this skill when you only need to compile APK and copy artifact.

Run commands from repository root: E:\coding\TermLink

Quick Start

powershell -ExecutionPolicy Bypass -File ./skills/android-build-apk-copy/scripts/build-apk-and-copy.ps1

Behavior

  1. Run npm run android:sync.
  2. Remove any existing android/app/build/outputs/apk/debug/app-debug.apk.
  3. Run android\\gradlew.bat clean :app:assembleDebug --no-build-cache --rerun-tasks to force a fresh APK build.
  4. Copy android/app/build/outputs/apk/debug/app-debug.apk to E:\project\TermLink.
  5. Default copied filename is auto-renamed with app version and build timestamp, for example TermLink-v1.0-debug-20260328-021530.apk.

Optional Parameters

 powershell -ExecutionPolicy Bypass -File ./skills/android-build-apk-copy/scripts/build-apk-and-copy.ps1 -OutDir E:\project\TermLink -OutName TermLink-custom.apk -JdkHome D:\ProgramCode\openjdk\jdk-21

Rules

  1. This skill does not install APK to device.
  2. Keep default output directory as E:\project\TermLink.
  3. Build requires JDK 21 compatible environment.
  4. Unless -OutName is explicitly passed, copied APK name must include version and timestamp.
  5. This skill must force a fresh APK build instead of reusing an incremental Gradle output.