[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.
This commit is contained in:
Reid Baker
2023-05-01 15:50:14 -04:00
committed by GitHub
parent 7d7ce034a4
commit b73a598741
34 changed files with 130 additions and 0 deletions

View File

@ -874,6 +874,7 @@ tool/plugin/lib/plugin.dart
processRunner.mockProcessesForExecutable['git-diff'] =
<FakeProcessInfo>[
FakeProcessInfo(MockProcess(stdout: '''
packages/plugin/example/android/.pluginToolsConfig.yaml
packages/plugin/example/android/lint-baseline.xml
packages/plugin/example/android/src/androidTest/foo/bar/FooTest.java
packages/plugin/example/ios/RunnerTests/Foo.m