Repository navigation
Remove server-cached Android APK downloads - #4566
Merged
Merged
Conversation
Settings → Mobile and bb settings mobile-app link directly to the public GitHub release, so the server copy only kept a CLI/SDK path that proxied the APK through the server and bb connect tunnel. Delete the preparation and local-build services, the /system/android-app routes, the /install/bb-android.apk route, the android-app and android-app-prepare CLI commands, their SDK methods, contract types, tests, and docs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
#4513 made Settings → Mobile and
bb settings mobile-applink straight to the public GitHubandroid-testingrelease, so APK downloads no longer go through the bb server or the bb connect tunnel. It kept the old server-cache path as a CLI/SDK escape hatch:bb settings android-app-preparedownloaded or locally built an APK into the server data directory, and/install/bb-android.apkserved it through the server. That's the same proxied ~147 MB transfer that coincided with tunnel disconnects. #4513 also removed theandroidTestingflag that gated this path, so any server with a cached APK now served it without opting in. Nothing in the app calls this path.What changed
GET /system/android-app,GET /system/android-app/preparation,POST /system/android-app/prepare,GET /install/bb-android.apk, and the preparation, artifact and local-build (BB_ANDROID_SOURCE_DIR) services, with their tests.SystemAndroidAppResponse,AndroidAppPreparation,AndroidAppPrepareRequest/androidAppPrepareRequestSchema, and the SDK methodssystem.androidApp(),system.androidAppPreparation()andsystem.prepareAndroidApp().bb settings android-appandbb settings android-app-prepare.bb settings mobile-app [--details] [--json]is the supported way to get download links and metadata.docs/configuration.md, the mobile README, the bb guide customization template, and the bb-cli skill's app-settings reference and command index.androidAppArtifactSchema, which/system/mobile-app-releasesuses to parselatest.json; the EAS publish workflow andpublish-android-apk.mjs; andbuild-android-local.sh, which the Android e2e workflow andpnpm build:android:localuse.Breaking: the two CLI commands, three SDK methods and four routes are gone; the routes now return 404. Servers that already prepared an APK keep the orphaned
<dataDir>/android-testing/directory, which nothing reads anymore. No daemon wire change. The Plugin SDK surface is unchanged (check-plugin-sdk-version.mjs).How you verified
pnpm exec turbo run typecheck lintfor@bb/server,@bb/cli,@bb/sdk,@bb/server-contract,@get-bb/plugin-sdkand@bb/apppasses.pnpm exec turbo run testfor@bb/sdk(114),@bb/cli(863) and@bb/server-contract(78) passes.test/appandtest/systemsuites (32 files, 349 tests) pass, includingmobile-app-releases.test.ts.node .github/workflows/check-plugin-sdk-version.mjsreports "Plugin SDK surface unchanged".git grepfinds no remaining references to the removed routes, commands, SDK methods, types orBB_ANDROID_SOURCE_DIR.🤖 Generated with Claude Code