Skip to content

Conversation

stuartmorgan-g
Copy link
Collaborator

Standardizes dependencies in build.gradle files on using parentheses rather than space. Also standardizes these lines on " rather than ' while touching them, since that also moves closer to Kotlin syntax.

This doesn't enforce this syntax via repo tool checks, since it's not critical (it just reduces future churn when switching to Kotlin), and eventually the switch to Kotlin will provide the enforcement.

It does fix a latent issue where test-only dependency changes that used the () syntax wouldn't have been recognized by the tool as test-only changes for changelog/version check purposes.

Part of flutter/flutter#176065

Pre-Review Checklist

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

Standardizes dependencies in build.gradle files on using parentheses
rather than space.

This doesn't enforce this syntax via repo tool checks, since it's not
critical (it just reduces future churn when switching to Kotlin), and
eventually the switch to Kotlin will provide the enforcement.

It does fix a latent issue where test-only dependency changes that used
the () syntax wouldn't have been recognized by the tool as test-only
changes for changelog/version check purposes.

Part of flutter/flutter#176065
@stuartmorgan-g
Copy link
Collaborator Author

CHANGELOG/version override: this is a no-op style change, so doesn't impact clients.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request standardizes Gradle dependency declarations across numerous build.gradle files to use parentheses and double quotes, aiming for better consistency and closer alignment with Kotlin syntax. The changes are widespread but mechanical. A key improvement is the update to package_state_utils.dart to correctly recognize test-only dependencies using the new parenthesis syntax, which is a valuable fix. The accompanying tests for this logic have been updated and expanded, which is great. My review found the changes to be well-executed, with just one minor typo in a test file.


test('requires changelog or version change for other build.gradle changes',
test(
'does not requires changelog or version change for build.gradle '
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'does not requires changelog or version change for build.gradle '
'does not require changelog or version change for build.gradle '

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants