Update the android example setup. #1007
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
This PR updates the android setup for the example project.
Flutter create
was used with Flutter 3.24.5 to create a more modern gradle configuration.This changes gradle from the deprecated declarative apply syntax to the newer 'Plugin DSL syntax'.
The old configuration caused quite a few errors and isn't compatible with Flutter 3.29.
Because of the syntax change, this gradle setup requires a minimum Flutter version of 3.16.
I managed to get this config running with Flutter 3.16.9 up to 3.29.0.
I've made some small additional changes, like commenting
flutter.sdkVersion
variables. This is to get this example to work across more (older) Flutter versions.Type of Change