-
-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
geolocator_android
: Update dependencies
#1350
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution. I do have one concern about updating to Gradle 8, could you address that please?
@@ -8,7 +8,7 @@ buildscript { | |||
} | |||
|
|||
dependencies { | |||
classpath 'com.android.tools.build:gradle:7.4.2' | |||
classpath 'com.android.tools.build:gradle:8.1.2' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a bit reluctant about upgrading to gradle 8+ since Flutter stable is still on gradle 7.3.0.
My worry is that because we upgrade, apps consuming our plugin are also forced to upgrade. In my experience, Gradle (and it's configuration) is a mystery to most Flutter developers and I am afraid upgrading to early will lead to a lot of questions and irritation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where did you check the Gradle version in the latest Flutter stable? I can revert this part if it could lead to other issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I usually do is create a fresh Flutter project using the latest stable version (e.g. flutter create --platforms=android -a java test
) and then check the gradle version used there.
This is also what most developers do and what Google will support in case of issues.
Is something holding this from being merged? |
Closing this PR as it is a bit outdated and comments regarding my concerns have not been addressed. Recent attempts to update Android Gradle Plugin showed breaking changes for users still depending on AGP 7.0 or below. Flutter officially supports AGP 7.0 and higher as mentioned also in the recent release description for Flutter 3.22:
|
compileSdk
version to34
.Follow-up of #1347
#1348
Pre-launch Checklist
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is does not need version changes.CHANGELOG.md
to add a description of the change.///
).main
.dart format .
and committed any changes.flutter analyze
and fixed any errors.