chore: AGP 8 updates#11318
Conversation
russellwheatley
left a comment
There was a problem hiding this comment.
@Zazo032 - thanks so much for this PR, very much needed 🚀 .
Is it possible you could separate into two PRs? One for android updates and another for pubspec dependency updates? There's a lot of changes and I am concerned about bumping Pigeon up a major version when we've experienced some issues with its integration. The file conflicts will disappear as well because the plugin versions have been bumped since you created this.
for the android updates, I would prefer compileSdkVersion and targetSdkVersion targeted 33. The AGP version 8.0.2 is only tested up to that level.
FYI; requires using Java 17 which is the LTS version and has been since 2021.
|
Thanks for the review! I will remove the |
|
@russellwheatley I reverted the |
russellwheatley
left a comment
There was a problem hiding this comment.
@Zazo032 - great work! There is another change required that I've just noticed. compileSdkVersion is deprecated. Could you change them to compileSdk, please?

I would also like any changes to example app code (I noticed changes to app installation and ml model downloader) or pubspec dependencies removed.
Other than those two last bits, this looks almost there. Thanks 😄
|
TIL @russellwheatley Just added your comments to the PR. from the example code files, I only left a small typo fix in |
|
@Zazo032 - Yes, please change to 33 for example apps. Typo is fine to stay 👍 |
|
@russellwheatley done! |
|
@russellwheatley the |
Upstream
|
@Zazo032 - are you able to build crashlytics example? I just received this exception which I don't get on |
|
Don't worry about iOS CI, it doesn't affect this and it is failing across all CI flows at the moment 👍 |
|
@russellwheatley I didn't get that error, what steps should I follow to reproduce it? Looks like it's using 2 different versions, but none of those are defined in the example project |
Would like to join the discussion here as recently had similar problems on a few projects while moving from Kotlin In the end, for one big project I came up with this option of Kotlin declaration to be 100% sure that builds won't fail: So I would suggest to either declare Kotlin this way or just drop |
|
@vbuberen - Thank you for the insight, I was able to build once I included the above mentioned code snippet. @Zazo032 - all the UI packages have now been moved to a separate repo, do you mind updating the PR and removing those changes? The next step is to implement the following: Inside buildscript {
// The below line
ext.kotlin_version = '1.9.0'
repositories {
google()
mavenCentral()
}Inside the dependencies {
// ... whatever dependencies are specified
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
constraints {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version") {
because("kotlin-stdlib-jdk7 is now a part of kotlin-stdlib, we constrain to remove duplicate classes")
}
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version") {
because("kotlin-stdlib-jdk8 is now a part of kotlin-stdlib, we constrain to remove duplicate classes")
}
}
}Thank you for your patience, and sorry for only just returning to this! |
|
@russellwheatley Would like to get back to the discussion of Kotlin update again as my previous comment was posted based on what I did in apps projects, which were just consumers of plugins. Yesterday, I did some additional testing in context of Plus Plugins which I maintain and would like to mention that while the suggested solution to resolve Kotlin versions works well for example apps, when a plugin with Kotlin 1.8.x or 1.9.x is added to some project with older Kotlin version the same issue Here is my comment on this matter in Plus Plugins: fluttercommunity/plus_plugins#2134 (comment) |
|
Hey @Zazo032. Are you Ok if I intercept this PR and update it myself to move this topic forward? |
|
@vbuberen hey! sorry for not following up on this - I'll be out until the second half of October, if you want to prioritise this, feel free to push any changes to the PR (I can check those changes from the phone). If not, I can address your suggestions once I'm back |
|
Thanks for your reply. Will work on updating this PR. Asked as yesterday met Russel in real life and remembered about this PR. |
|
Hey @vbuberen, nice to meet you in Prague 😄. Feel free to take over the PR, I will gladly review! Thanks 👍 |
|
Closing out in favour of: #11699 |
Description
Related Issues
Closes #11266
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]).This will ensure a smooth and quick review process. Updating the
pubspec.yamland changelogs is not required.///).melos run analyze) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?