Ensure Example Packages Work on Android API 36 (#9241)
Ensured the example plugin apps on Android work on Android API 36 by updating configurations and sucessfully running flutter build apk (means the app can successfully build + all dependencies are resolvable). For compatibility with Android API 36, the example plugin apps on Android should have the following configurations:
targetSdk: 36
compileSdk: 36
AGP version: 8.9.1
Gradle version: 8.11.1
Most packages no longer require a manual bump of targetSdk and compileSdk due to usage of values from Flutter Gradle Plugin. Below is a list of example plugin apps on Android:
Partially Adresses https://github.com/flutter/flutter/issues/163071
## Pre-Review Checklist
[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
Removing unnecessary parenthesis (#7881)
This is simply removing unnecessary parenthesis from various places inside the packages. This change is because of a change to the unnecessary_parentesis lint that will trigger in these places. Here is the CL https://dart-review.googlesource.com/c/sdk/+/390161.
- https://github.com/dart-lang/linter/issues/4996
If anything else is needed please let me know.
I'd like to ask for this PR to wait a bit until the bots are run again on that CL so that I can be sure nothing else will trigger, I will come back here and update this whenever everything is complete. Thanks!
[various] Enable avoid_print (#6842)
* [various] Enable avoid_print
Enables the avoid_print lint, and fixes violations (mostly by opting
example files out of it).
* Version bumps
* Add tooling analysis option file that was accidentally omitted
* Fix typo in analysis_options found by adding tool sub-options
* Revert most version bumps
* Fix ios_platform_images
[various] Speed up build-examples (#3849)
https://github.com/flutter/flutter/issues/125707
- Create pluginTools config for every example that shrunk material icons and had an android config
Likely some build caching but before/after If someone knows how to clean the cache or force a rebuild I will give more accurate after numbers.
Command
time dart run ./script/tool/bin/flutter_plugin_tools.dart build-examples --apk
Secondary validation from @stuartmorgan who discovered this is between a 10% and 25% speed increase.
Existing tests add confidence this is non-breaking. New tests not required because these are optional flags. Validation this does not change is low consequence. Test update to exclude these config files from changelog requirements.