Update android compileSdk and Java version. #1033
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Updated some values in the outdated build.gradle of the plugin.
The example was updated to match it.
The plugin is still at compileSdk 29.
34 is currently the minimum for a project to publish on the Play Store, and that is soon to be 35.
Some errors (like #845, #870) are directly caused by this low sdk.
Unity 2021.3 and 2022.3 both use Java 11.
And i'm also getting console warnings about Java 8 like:
I can still make a release build with the plugin at Java 11 and my Flutter project at Java 8. So this is (partially?) backwards compatible.
I updated the kotling and AGP version to be somewhat in line with these changes.
These don't seem to matter much as Flutter projects on much newer Kotlin or AGP versions never show any warnings or errors related to them.
Just to be safe, I kept AGP below 8.
Type of Change