Skip to content
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

Closed
wants to merge 3 commits into from
Closed

Conversation

Zazo032
Copy link
Contributor

@Zazo032 Zazo032 commented Oct 3, 2023

  • Updates dependencies to latest versions to prevent conflicts with other packages.
  • Updates Android Gradle Plugin to version 8.
  • Updates compileSdk version to 34.

Follow-up of #1347

#1348

Pre-launch Checklist

  • I made sure the project builds.
  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is does not need version changes.
  • I updated CHANGELOG.md to add a description of the change.
  • I updated/added relevant documentation (doc comments with ///).
  • I rebased onto main.
  • I added new tests to check the change I am making, or this PR does not need tests.
  • I made sure all existing and new tests are passing.
  • I ran dart format . and committed any changes.
  • I ran flutter analyze and fixed any errors.

Copy link
Member

@mvanbeusekom mvanbeusekom left a 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?

geolocator_android/example/android/app/build.gradle Outdated Show resolved Hide resolved
geolocator_android/example/android/app/build.gradle Outdated Show resolved Hide resolved
@@ -8,7 +8,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
classpath 'com.android.tools.build:gradle:8.1.2'
Copy link
Member

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.

Copy link
Contributor Author

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

Copy link
Member

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.

@emakar
Copy link

emakar commented Jan 29, 2024

Is something holding this from being merged?

@mvanbeusekom
Copy link
Member

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:

Flutter tool enforces version requirements on Gradle, AGP, Java, and Kotlin
In this release, the Flutter tool enforces a policy regarding the versions that it supports for Gradle, the Android Gradle Plugin (AGP), Java, and Kotlin. Initially, the tool only provides warnings.

Currently, the supported version ranges are as follows:

Gradle — Fully supported 7.0.2 to current, warn otherwise
AGP — Fully supported 7.0.0 to current, warn otherwise
Java — Fully supported Java 11 to current, warn otherwise
Kotlin — Fully supported 1.5.0 to current, warn otherwise

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

Successfully merging this pull request may close these issues.

None yet

3 participants