Skip to content

Conversation

@stuartmorgan-g
Copy link
Collaborator

@stuartmorgan-g stuartmorgan-g commented Apr 15, 2024

#6506 was supposed to update everything to 19+, but missed local_auth_android. This updates it to require 19 as well.

#6506 was supposed to update everything to 19+, but missed local_auth_android. PRs are now failing lint in this package because the example is trying to build with 16 but dependencies use 19.
@stuartmorgan-g stuartmorgan-g added override: no versioning needed Override the check requiring version bumps for most changes override: no changelog needed Override the check requiring CHANGELOG updates for most changes labels Apr 15, 2024
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!).

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.

@stuartmorgan-g
Copy link
Collaborator Author

test-exempt: configuration change

(Also, does fix a broken test)

@stuartmorgan-g
Copy link
Collaborator Author

Example OOB presubmit failure this fixes: #5523 (comment)


defaultConfig {
minSdkVersion 16
minSdkVersion flutter.minSdkVersion
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this needs to be a 19

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A lot of our existing examples use flutter.minSdkVersion; I thought we only wanted to use a number when a specific example needed something higher than the min (e.g., the example for a plugin that requires 21).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Wait, this isn't the /app/ file. Why is this line even here? I need to look at this again, I missed the path on this.

Copy link
Member

Choose a reason for hiding this comment

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

I believe the plugins don't have an app subdirectory so their minSdkVersion lives in the top level build.gradle.

But also the flutter gradle plugin doesn't get applied, so you can't use flutter.minSdkVersion

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, it's not the example, it's the actual plugin. I really can't read this morning.

Now I'm confused as to what's causing the error in the example app though. This should probably be 19 and get a version bump, but the example app is already using flutter.minSdkVersion.

@stuartmorgan-g stuartmorgan-g removed override: no versioning needed Override the check requiring version bumps for most changes override: no changelog needed Override the check requiring CHANGELOG updates for most changes labels Apr 15, 2024
@stuartmorgan-g stuartmorgan-g changed the title Fix local_auth_android example minSdkVersion Update local_auth_android minSdkVersion to 19 Apr 15, 2024
@stuartmorgan-g
Copy link
Collaborator Author

I've updated this so it should be a correct change now, but I'm still not sure why the presubmit errors are happening in other PRs...

@stuartmorgan-g
Copy link
Collaborator Author

Okay, I think I see now. The error message had example in the build path because that's where we run the command, but the failing target was in local_auth_android itself, not the example, so it looks like the issue was that local_auth_android was trying to depend on another plugin (flutter_plugin_android_lifecycle) that required 19.

@gmackall
Copy link
Member

So for my understanding, the reason why presubmits wouldn't have caught this on my PR is that the lint step here would have been running against the latest published version of flutter_plugin_android_lifecycle at the time (not the version that was modified in the PR)?

@stuartmorgan-g
Copy link
Collaborator Author

Correct. We don't do a pathified version of native testing because it would be really expensive, and it's rarely a problem, but it's something we could reconsider.

(What I really wish was that we had an easy way to do optional tests, like being able to manually trigger pathified native Android tests on a PR like yours. Maybe we could do some trickery with a dummy path and path-based rules...)

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 15, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Apr 16, 2024
flutter/packages@6698b2d...90c876d

2024-04-16 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.24.10 to 3.25.0 (flutter/packages#6545)
2024-04-16 31859944+LongCatIsLooong@users.noreply.github.com [CupertinoIcons] fix broken icons and vertical alignment, bump the version to 1.08 (flutter/packages#6520)
2024-04-16 26625149+0xZOne@users.noreply.github.com [video_player] Calls `onDestroy` instead of `initialize` in onDetachedFromEngine (flutter/packages#6501)
2024-04-15 mikemcguiness@protonmail.com [image_picker] Adopt code excerpts in README (flutter/packages#5523)
2024-04-15 mdebbar@google.com [url_launcher][web] Link should work when triggered by keyboard (flutter/packages#6505)
2024-04-15 engine-flutter-autoroll@skia.org Manual roll Flutter from 53cba24 to 2e748e8 (19 revisions) (flutter/packages#6541)
2024-04-15 stuartmorgan@google.com Update local_auth_android minSdkVersion to 19 (flutter/packages#6537)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
gilnobrega pushed a commit to gilnobrega/flutter that referenced this pull request Apr 22, 2024
flutter/packages@6698b2d...90c876d

2024-04-16 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.24.10 to 3.25.0 (flutter/packages#6545)
2024-04-16 31859944+LongCatIsLooong@users.noreply.github.com [CupertinoIcons] fix broken icons and vertical alignment, bump the version to 1.08 (flutter/packages#6520)
2024-04-16 26625149+0xZOne@users.noreply.github.com [video_player] Calls `onDestroy` instead of `initialize` in onDetachedFromEngine (flutter/packages#6501)
2024-04-15 mikemcguiness@protonmail.com [image_picker] Adopt code excerpts in README (flutter/packages#5523)
2024-04-15 mdebbar@google.com [url_launcher][web] Link should work when triggered by keyboard (flutter/packages#6505)
2024-04-15 engine-flutter-autoroll@skia.org Manual roll Flutter from 53cba24 to 2e748e8 (19 revisions) (flutter/packages#6541)
2024-04-15 stuartmorgan@google.com Update local_auth_android minSdkVersion to 19 (flutter/packages#6537)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
TecHaxter pushed a commit to TecHaxter/flutter_packages that referenced this pull request May 22, 2024
flutter#6506 was supposed to update everything to 19+, but missed local_auth_android. This updates it to require 19 as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App p: local_auth platform-android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants