Clean up include paths for Fuchsia in the flutter engine#182031
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors include paths for Fuchsia-specific code in the Flutter engine to use full paths from the source root. This is a great cleanup that improves maintainability by removing reliance on relative paths and include_dirs configurations in BUILD.gn files. The changes also include removing several unused headers and build configurations, which further cleans up the codebase.
I've found a couple of typos in the new include paths that would likely cause build failures. Please see my detailed comments.
| // found in the LICENSE file. | ||
|
|
||
| #include "dart_runner/dart_test_component_controller.h" | ||
| #include "flutter/shell/platform/fuchsia/dart_runner/tets/dart_runner/dart_test_component_controller.h" |
There was a problem hiding this comment.
There seems to be a typo in this include path. It should be tests instead of tets. Additionally, the path seems incorrect. The correct full path for dart_test_component_controller.h should be flutter/shell/platform/fuchsia/dart_runner/dart_test_component_controller.h.
| #include "flutter/shell/platform/fuchsia/dart_runner/tets/dart_runner/dart_test_component_controller.h" | |
| #include "flutter/shell/platform/fuchsia/dart_runner/dart_test_component_controller.h" |
| // found in the LICENSE file. | ||
|
|
||
| #include "fakes/scenic/fake_flatland.h" | ||
| #include "flutter/shell/platform/fuchsia/flutter/fakes/scenic/fake_flatland.h" |
There was a problem hiding this comment.
This rewrites many of the include paths in Fuchsia engine code to use the full path of the file. For example: ```diff -#include "runtime/dart/utils/inlines.h" +#include "flutter/shell/platform/fuchsia/runtime/dart/utils/inlines.h" ``` I also cleaned up a few unused includes and convered the includes for the Fuchsia SDK to using angle backets.
b3701f3 to
83003dc
Compare
|
LGTM |
) This rewrites many of the include paths in Fuchsia engine code to use the full path of the file. For example: ```diff -#include "runtime/dart/utils/inlines.h" +#include "flutter/shell/platform/fuchsia/runtime/dart/utils/inlines.h" ``` I also cleaned up a few unused includes and convered the includes for the Fuchsia SDK to using angle backets. ## Pre-launch Checklist - [X] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [X] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [X] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [X] I signed the [CLA]. - [ ] I listed at least one issue that this PR fixes in the description above. - [X] I updated/added relevant documentation (doc comments with `///`). - [X] I added new tests to check the change I am making, or this PR is [test-exempt]. - [X] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [ ] All existing and new tests are passing.
) This rewrites many of the include paths in Fuchsia engine code to use the full path of the file. For example: ```diff -#include "runtime/dart/utils/inlines.h" +#include "flutter/shell/platform/fuchsia/runtime/dart/utils/inlines.h" ``` I also cleaned up a few unused includes and convered the includes for the Fuchsia SDK to using angle backets. ## Pre-launch Checklist - [X] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [X] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [X] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [X] I signed the [CLA]. - [ ] I listed at least one issue that this PR fixes in the description above. - [X] I updated/added relevant documentation (doc comments with `///`). - [X] I added new tests to check the change I am making, or this PR is [test-exempt]. - [X] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [ ] All existing and new tests are passing.
This rewrites many of the include paths in Fuchsia engine code to use the full path of the file. For example:
I also cleaned up a few unused includes and convered the includes for the Fuchsia SDK to using angle backets.
Pre-launch Checklist
///).