Remove legacy apk codebase

Remove the legacy view-based APK module (:apk-legacy), along with its
subcommands, configurations, release packaging steps, and associated
unused dependencies.

Assisted-by: Gemini 3.8 Flash
This commit is contained in:
topjohnwu
2026-10-04 03:30:08 -07:00
committed by John Wu
parent 70bf88c383
commit 5381a1e9b8
201 changed files with 7 additions and 11595 deletions
+3 -6
View File
@@ -131,7 +131,6 @@ build() {
$build_cmd clean
$build_cmd all
$build_cmd -r all
$build_cmd -r app-legacy
verify_apks
}
@@ -145,7 +144,7 @@ upload() {
verify_apks
if [ ! -f "out/app-release.apk" ] || [ ! -f "out/apk-legacy-release.apk" ] || [ ! -f "out/app-debug.apk" ]; then
if [ ! -f "out/app-release.apk" ] || [ ! -f "out/app-debug.apk" ]; then
echo "Error: Required APKs missing in out" >&2
exit 1
fi
@@ -161,12 +160,10 @@ upload() {
# Publish release
local release_apk="Magisk-v${ver}.apk"
local legacy_apk="Magisk-v${ver}-legacy.apk"
cp "out/app-release.apk" "$release_apk"
cp "out/apk-legacy-release.apk" "$legacy_apk"
gh release create --verify-tag "$tag" -d -t "$title" -F "$NOTES" "$release_apk" "$legacy_apk" "out/app-debug.apk"
gh release create --verify-tag "$tag" -d -t "$title" -F "$NOTES" "$release_apk" "out/app-debug.apk"
rm -f "$release_apk" "$legacy_apk"
rm -f "$release_apk"
}
usage() {