build: upgrade JDK version to 18 for share_plus Android build #2906
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
This pull request updates the JDK version from 17 to 18 in the
share_plus
package's Android build configuration. This change affects both thecompileOptions
andkotlinOptions
in thebuild.gradle
file, where the source and target compatibility settings are updated to JavaVersion.VERSION_18 andjvmTarget
to '18'. This update was motivated by the need to utilize the latest language features offered by JDK 18, improve performance, and ensure greater security compliance.Related Issues
Checklist
chore: update JDK version to 18 in share_plus
.CHANGELOG.md
nor the plugin version inpubspec.yaml
files, as this is a build environment change, not a functional change.flutter analyze
) does not report any problems on my PR.Breaking Change
!
in the title).This update to JDK 18 is a backend change that does not affect the exposed functionality or interfaces of the
share_plus
plugin; therefore, it does not require users to alter their existing applications. This update is intended to streamline development by adopting newer development tools and enhancements in JDK 18.