Skip to content

Migrate Android Build API usage to V4 OnePlatform under feature flag#5335

Open
dylanjew wants to merge 3 commits into
masterfrom
dylanj/migrate-android-build-api-v4
Open

Migrate Android Build API usage to V4 OnePlatform under feature flag#5335
dylanjew wants to merge 3 commits into
masterfrom
dylanj/migrate-android-build-api-v4

Conversation

@dylanjew

@dylanjew dylanjew commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

This PR migrates the Android Build API client calls from legacy V3 (androidbuildinternal.googleapis.com) to the new V4 Private API (androidbuild-pa.googleapis.com) using standard OnePlatform discovery.

Changes:
Added a new Datastore Config property 'use_android_build_api_v4' to the Config model class to support runtime toggle of the API version.
Updated 'fetch_artifact.py' to conditionally initialize and use either the V3 or V4 client/endpoints depending on the Datastore feature flag.
Refactored logs to use structured dictionary-based entries with the '[AndroidBuildAPI]' tag to facilitate filtering and diagnosis in Cloud Logging.

Patched in #5327, fixed formatting, lint and added TODO to clean up

@dylanjew dylanjew requested a review from a team as a code owner June 23, 2026 12:54
@dylanjew dylanjew force-pushed the dylanj/migrate-android-build-api-v4 branch from 4150bc7 to a447267 Compare June 23, 2026 12:55
@dylanjew dylanjew requested a review from hunsche June 23, 2026 13:44
@hunsche hunsche requested a review from javanlacerda June 26, 2026 07:53
hunsche and others added 3 commits June 26, 2026 14:02
The legacy Android Build API V3 (androidbuildinternal.googleapis.com) is being sunsetted. This CL migrates the client calls to the new V4 Private API (androidbuild-pa.googleapis.com) using standard discovery.

Changes:
- Added a 'use_android_build_api_v4' Datastore Config property to allow runtime feature toggle.
- Refactored 'fetch_artifact.py' to support V4 OnePlatform endpoint and resource names dynamically behind the feature flag.
- Migrated legacy logs to structured dictionary-based logs with '[AndroidBuildAPI]' tagging for easier Cloud Logging filtering.
@dylanjew dylanjew force-pushed the dylanj/migrate-android-build-api-v4 branch from 81a66d1 to 2393e4c Compare June 26, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants