Skip to content

Fix gradle deps conflict in integration_test/example#186095

Open
andywolff wants to merge 1 commit intoflutter:masterfrom
andywolff:android_test_apk
Open

Fix gradle deps conflict in integration_test/example#186095
andywolff wants to merge 1 commit intoflutter:masterfrom
andywolff:android_test_apk

Conversation

@andywolff
Copy link
Copy Markdown
Contributor

@andywolff andywolff commented May 5, 2026

Update integration_test/example/android/app/build.gradle.kts dep versions to match those in integration_test/android/build.gradle.kts, fixing #186086

I'm told that we don't have specific policies around gradle dependency versions for example apps, so this PR updates it to match those elsewhere in the parent directory. I also update the example's project.lockfile using ./gradlew :generateLockfiles.

There are no relevant tests for this example app which need an update.

Pre-launch Checklist

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label May 5, 2026
@github-actions github-actions Bot added a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels. f: integration_test The flutter/packages/integration_test plugin labels May 5, 2026
@andywolff andywolff force-pushed the android_test_apk branch from f67e3de to 3434681 Compare May 5, 2026 21:12
@andywolff andywolff marked this pull request as ready for review May 5, 2026 21:15
@andywolff andywolff requested a review from jesswrd May 5, 2026 21:15
Copy link
Copy Markdown
Contributor

@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 updates the Android test dependencies in build.gradle.kts to use dynamic versions for androidx.test:runner and androidx.test.espresso:espresso-core. Feedback was provided suggesting that specific versions should be pinned instead of using dynamic ranges to ensure build determinism and reproducibility.

Comment on lines +52 to +53
androidTestImplementation("androidx.test:runner:1.2+")
androidTestImplementation("androidx.test.espresso:espresso-core:3.2+")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Using dynamic versions (e.g., 1.2+) in Gradle dependencies makes builds non-deterministic and can lead to unexpected breakages when new versions are released. While this change matches the parent directory's configuration to resolve conflicts, pinning both locations to a specific version is a more robust practice for ensuring build reproducibility.

@github-actions github-actions Bot removed the CICD Run CI/CD label May 5, 2026
…ions to match those in integration_test/android/build.gradle.kts, fixing a dep conflict
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label May 5, 2026
@andywolff andywolff force-pushed the android_test_apk branch from 2f52b10 to e968497 Compare May 5, 2026 22:41
@github-actions github-actions Bot removed the CICD Run CI/CD label May 5, 2026
@flutter-dashboard
Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

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

Labels

a: tests "flutter test", flutter_test, or one of our tests f: integration_test The flutter/packages/integration_test plugin framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant