Skip to content

Conversation

angcyo
Copy link

@angcyo angcyo commented Aug 19, 2025

Fix Issues #174004

Pre-launch Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I signed the [CLA].
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is [test-exempt].
  • I followed the [breaking change policy] and added [Data Driven Fixes] where supported.
  • All existing and new tests are passing.

@angcyo angcyo requested a review from a team as a code owner August 19, 2025 03:24
@flutter-dashboard
Copy link

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.

Copy link

google-cla bot commented Aug 19, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions bot added platform-android Android applications specifically tool Affects the "flutter" command-line tool. See also t: labels. labels Aug 19, 2025
Copy link
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 fixes a bug where the Flutter Gradle Plugin would overwrite user-defined abiFilters. The change correctly uses project.afterEvaluate to ensure the user's configuration is read first, and only applies default filters if none are provided. This is a solid fix. I've added one minor suggestion to remove a redundant line of code for better clarity and to adhere to the style guide's emphasis on readability.

@angcyo angcyo changed the title [Android] Fix abiFilters invalid to Flutter Gradle Plugin https://git… [Android] Fix abiFilters invalid to Flutter Gradle Plugin #174004 Aug 19, 2025
@angcyo angcyo changed the title [Android] Fix abiFilters invalid to Flutter Gradle Plugin #174004 [Android] Fix abiFilters invalid to Flutter Gradle Plugin Aug 19, 2025
@reidbaker reidbaker requested a review from gmackall August 19, 2025 14:33
Copy link
Contributor

@reidbaker reidbaker left a comment

Choose a reason for hiding this comment

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

Thank you for this fix. To make sure we do not regress we will want an integration test. If you are willing to author that I would be appreciative but I do not want to block this pr.

@gmackall review this assuming we will cherry pick into 3.35

Copy link
Member

@gmackall gmackall left a comment

Choose a reason for hiding this comment

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

@angcyo you will need to sign the CLA before this PR can proceed.

This will need to pass tests, as well as have its own test, before it can land. Also, can I ask why in the original report you are adding to the set instead of defining/overriding the set as done in the documentation?
https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/Ndk#abiFilters:kotlin.collections.MutableSet
I believe if you instead set the abiFilters property to your desired set, this should work right?

If setting (instead of adding) as described above does not work then I think a change like this is warranted (but probably only in that case).

@camsim99
Copy link
Contributor

Note from Android triage: See last comment in #174004.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform-android Android applications specifically tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants