Conversation
Summary of Improvements
google_cloud
* Public `getMetadataValue`: Exposed getMetadataValue in package:google_cloud/general.dart. This allows other packages (like googleapis_auth) to utilize the process-wide metadata caching.
* Analyzer Clean: Fixed unused and unnecessary import lints.
* Refined Tests: Verified all tests pass with the newly public API.
googleapis_auth
* Unified Caching: Updated MetadataServerAuthorizationFlow to use getMetadataValue from google_cloud. This enables process-wide caching of service account scopes, reducing redundant metadata server requests.
* Modernized Syntax:
* Adopted pattern matching in utils.dart (parseAccessToken) and adc_utils.dart (fromApplicationsCredentialsFile) for more concise and idiomatic JSON parsing.
* Utilized null-aware map entries (? syntax) in IAMSigner.
* Test Enhancements:
* Integrated `package:test_descriptor` for Application Default Credentials (ADC) tests, replacing manual temporary file management.
* Fixed IAMSigner tests to correctly handle MetadataServerException (updating expectations and documentation).
* Added refresh support to MetadataServerAuthorizationFlow.run() to allow tests (and users) to bypass the metadata cache when necessary.
* Health Check: Both packages are now fully analyzer clean and pass all tests.
The path dependency override in googleapis_auth/pubspec.yaml correctly points to your local google_cloud changes.
PR HealthBreaking changes ✔️
This check can be disabled by tagging the PR with Unused Dependencies ✔️
For details on how to fix these, see dependency_validator. This check can be disabled by tagging the PR with Changelog Entry ✔️
Changes to files need to be accounted for in their respective changelogs. This check can be disabled by tagging the PR with License Headers ✔️
All source files should start with a license header. This check can be disabled by tagging the PR with API leaks ✔️The following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.
This check can be disabled by tagging the PR with |
demolaf
reviewed
Feb 17, 2026
demolaf
reviewed
Feb 17, 2026
demolaf
reviewed
Feb 17, 2026
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.
No description provided.