diff --git a/.gemini/styleguide.md b/.gemini/styleguide.md
index 96fc6f490232c..0ecc6ff5532a0 100644
--- a/.gemini/styleguide.md
+++ b/.gemini/styleguide.md
@@ -9,7 +9,7 @@ flutter/flutter repository. It is based on the more comprehensive official
- Code should follow the guidance and principles described in
[the Flutter contribution guide](https://github.com/flutter/flutter/blob/main/CONTRIBUTING.md).
- Code should be tested and follow the guidance described in the [writing effective tests guide](https://github.com/flutter/flutter/blob/main/docs/contributing/testing/Writing-Effective-Tests.md) and the [running and writing tests guide](https://github.com/flutter/flutter/blob/main/docs/contributing/testing/Running-and-writing-tests.md).
-- Changes to the [engine/ directory](https://github.com/flutter/flutter/tree/main/engine) should additionally have appropriate tests as described in [the engine test guidance](https://github.com/flutter/flutter/blob/main/engine/src/flutter/docs/testing/Testing-the-engine.md).
+- Changes to the [engine/ directory](https://github.com/flutter/flutter/tree/main/engine) should additionally have appropriate tests as described in [the engine test guidance](https://github.com/flutter/flutter/blob/main/docs/engine/testing/Testing-the-engine.md).
- PR descriptions should include the Pre-launch Checklist from
[the PR template](https://github.com/flutter/flutter/blob/main/.github/PULL_REQUEST_TEMPLATE.md),
with all of the steps completed.
@@ -81,4 +81,4 @@ For more detailed guidance, refer to the following documents:
- [The Flutter contribution guide](https://github.com/flutter/flutter/blob/main/CONTRIBUTING.md)
- [Writing effective tests guide](https://github.com/flutter/flutter/blob/main/docs/contributing/testing/Writing-Effective-Tests.md)
- [Running and writing tests guide](https://github.com/flutter/flutter/blob/main/docs/contributing/testing/Running-and-writing-tests.md)
-- [Engine testing guide](https://github.com/flutter/flutter/blob/main/engine/src/flutter/docs/testing/Testing-the-engine.md)
+- [Engine testing guide](https://github.com/flutter/flutter/blob/main/docs/engine/testing/Testing-the-engine.md)
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 6de7575d7c44c..50134ef0b7ffb 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -106,7 +106,7 @@ that describe these methodologies. The following list is ordered: you
are strongly recommended to go through these documents in the order
presented.
-1. [Setting up your engine development environment](./engine/src/flutter/docs/contributing/Setting-up-the-Engine-development-environment.md),
+1. [Setting up your engine development environment](./docs/engine/contributing/Setting-up-the-Engine-development-environment.md),
which describes the steps you need to configure your computer to
work on Flutter's engine. If you only want to write code for the
Flutter framework, you can skip this step. Flutter's engine mainly
diff --git a/docs/README.md b/docs/README.md
index db9272b4c86e3..80e66672cf905 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -14,7 +14,7 @@ If you intend to contribute to Flutter, welcome! You are encouraged to start wit
* [Cherrypick process](./releases/Flutter-Cherrypick-Process.md)
* [Closing issues](./contributing/issue_hygiene/README.md#closing-issues)
* [Dashboards](./infra/Dashboards.md)
-* [Debugging a broken engine autoroll](../engine/src/flutter/docs/Debugging-the-engine.md#bisecting-a-roll-failure)
+* [Debugging a broken engine autoroll](../docs/engine/Debugging-the-engine.md#bisecting-a-roll-failure)
* [Deprecations](./contributing/Tree-hygiene.md#deprecations)
* [Design documents](./contributing/Design-Documents.md)
* [Discord](./contributing/Chat.md)
@@ -31,7 +31,7 @@ If you intend to contribute to Flutter, welcome! You are encouraged to start wit
* [Style guide for Flutter repo](./contributing/Style-guide-for-Flutter-repo.md)
* [Submitting code, process for](./contributing/Tree-hygiene.md#overview)
* [Support levels, definitions of](./about/Values.md#support)
-* [Symbolicating stack traces](../engine/src/flutter/docs/Crashes.md)
+* [Symbolicating stack traces](../docs/engine/Crashes.md)
* [Threading in the Engine](./about/The-Engine-architecture.md#threading)
* [When will my bug be fixed?](./contributing/issue_hygiene/README.md#when-will-my-bug-be-fixed)
* [Security best practices](./infra/Security.md#best-practices)
diff --git a/docs/about/The-Engine-architecture.md b/docs/about/The-Engine-architecture.md
index 6da00b2ee468f..2640a566412d5 100644
--- a/docs/about/The-Engine-architecture.md
+++ b/docs/about/The-Engine-architecture.md
@@ -14,7 +14,7 @@ Flutter Engine sits in this stack, highlights API boundaries, and identifies the
repositories where the individual pieces live. The legend below clarifies some
of the terminology commonly used to describe the pieces of a Flutter app.
-
+
#### Dart App
@@ -70,7 +70,7 @@ library called `dart:ui` to provide low-level access to Skia features and the
shell. The shells can also communicate directly to Dart code via [Platform
Channels](https://flutter.io/platform-channels/) which bypass the engine.
-
+
## Threading
diff --git a/docs/contributing/Setting-up-the-Framework-development-environment.md b/docs/contributing/Setting-up-the-Framework-development-environment.md
index c8bf91e2691e7..1064effc912b8 100644
--- a/docs/contributing/Setting-up-the-Framework-development-environment.md
+++ b/docs/contributing/Setting-up-the-Framework-development-environment.md
@@ -13,7 +13,7 @@
Verify that `adb` is in your [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) (that `which adb` prints sensible output).
If you're
- [also working on the Flutter engine](../../engine/src/flutter/docs/contributing/Setting-up-the-Engine-development-environment.md),
+ [also working on the Flutter engine](../../docs/engine/contributing/Setting-up-the-Engine-development-environment.md),
you can use the copy of the Android platform tools in
`.../engine/src/third_party/android_tools/sdk/platform-tools`.
diff --git a/docs/contributing/Tree-hygiene.md b/docs/contributing/Tree-hygiene.md
index f4c90640c6c6b..29b8af3606c7c 100644
--- a/docs/contributing/Tree-hygiene.md
+++ b/docs/contributing/Tree-hygiene.md
@@ -152,7 +152,7 @@ feel empowered to ask for tests.
## Using git
Assuming your environment has been configured according to the instructions in
-[Setting up the Engine development environment](../../engine/src/flutter/docs/contributing/Setting-up-the-Engine-development-environment.md),
+[Setting up the Engine development environment](../../docs/engine/contributing/Setting-up-the-Engine-development-environment.md),
[Setting up the Framework development environment](Setting-up-the-Framework-development-environment.md), or
[Setting up the Packages development environment](../ecosystem/contributing/Setting-up-the-Packages-development-environment.md),
follow these steps to start working on a patch:
diff --git a/docs/contributing/testing/Running-and-writing-tests.md b/docs/contributing/testing/Running-and-writing-tests.md
index ac1105b2ecdc0..5c087f76dfefd 100644
--- a/docs/contributing/testing/Running-and-writing-tests.md
+++ b/docs/contributing/testing/Running-and-writing-tests.md
@@ -47,7 +47,7 @@ runs them, run `dart dev/bots/test.dart` and `dart --enable-asserts dev/bots/ana
### Locally built engines
-If you've built your own flutter engine (see [Setting up the Engine development environment](../../../engine/src/flutter/docs/contributing/Setting-up-the-Engine-development-environment.md)), you
+If you've built your own flutter engine (see [Setting up the Engine development environment](../../../docs/engine/contributing/Setting-up-the-Engine-development-environment.md)), you
can pass `--local-engine` to change what flutter shell `flutter test` uses. For example,
if you built an engine in the `out/host_debug_unopt` directory, you can use:
@@ -120,8 +120,8 @@ The following is an example of what running the local engine command might look
The above command would use the local Flutter engine located at `/Users/myname/flutter/engine` to execute the `external_ui_integration_test` test on an Android emulator, which is why the `android_debug_unopt_x86` version of the engine is used.
-Note that some tests may require `profile` mode instead of `debug` mode when running with local engine. Make sure to pass in the correct local engine. See [Compiling the engine](../../../engine/src/flutter/docs/contributing/Compiling-the-engine.md) for more details.
+Note that some tests may require `profile` mode instead of `debug` mode when running with local engine. Make sure to pass in the correct local engine. See [Compiling the engine](../../../docs/engine/contributing/Compiling-the-engine.md) for more details.
## For the engine
-See the [Testing the engine](../../../engine/src/flutter/docs/testing/Testing-the-engine.md) wiki.
+See the [Testing the engine](../../../docs/engine/testing/Testing-the-engine.md) wiki.
diff --git a/engine/src/flutter/docs/Crashes.md b/docs/engine/Crashes.md
similarity index 100%
rename from engine/src/flutter/docs/Crashes.md
rename to docs/engine/Crashes.md
diff --git a/engine/src/flutter/docs/Custom-Flutter-Engine-Embedders.md b/docs/engine/Custom-Flutter-Engine-Embedders.md
similarity index 100%
rename from engine/src/flutter/docs/Custom-Flutter-Engine-Embedders.md
rename to docs/engine/Custom-Flutter-Engine-Embedders.md
diff --git a/engine/src/flutter/docs/Custom-Flutter-Engine-Embedding-in-AOT-Mode.md b/docs/engine/Custom-Flutter-Engine-Embedding-in-AOT-Mode.md
similarity index 100%
rename from engine/src/flutter/docs/Custom-Flutter-Engine-Embedding-in-AOT-Mode.md
rename to docs/engine/Custom-Flutter-Engine-Embedding-in-AOT-Mode.md
diff --git a/engine/src/flutter/docs/Debugging-the-engine.md b/docs/engine/Debugging-the-engine.md
similarity index 99%
rename from engine/src/flutter/docs/Debugging-the-engine.md
rename to docs/engine/Debugging-the-engine.md
index 23b9f83b019af..f0fcdfaa5af52 100644
--- a/engine/src/flutter/docs/Debugging-the-engine.md
+++ b/docs/engine/Debugging-the-engine.md
@@ -87,7 +87,7 @@ You can also set a breakpoint directly with [lldb](https://lldb.llvm.org/tutoria
## Debugging Android builds with gdb
-See https://github.com/flutter/flutter/blob/master/engine/src/flutter/sky/tools/flutter_gdb
+See https://github.com/flutter/flutter/blob/main/engine/src/flutter/sky/tools/flutter_gdb
## Debugging native engine code on Android with Android Studio
diff --git a/engine/src/flutter/docs/Engine-disk-footprint.md b/docs/engine/Engine-disk-footprint.md
similarity index 100%
rename from engine/src/flutter/docs/Engine-disk-footprint.md
rename to docs/engine/Engine-disk-footprint.md
diff --git a/engine/src/flutter/docs/Engine-specific-Service-Protocol-extensions.md b/docs/engine/Engine-specific-Service-Protocol-extensions.md
similarity index 100%
rename from engine/src/flutter/docs/Engine-specific-Service-Protocol-extensions.md
rename to docs/engine/Engine-specific-Service-Protocol-extensions.md
diff --git a/engine/src/flutter/docs/Flutter's-modes.md b/docs/engine/Flutter's-modes.md
similarity index 100%
rename from engine/src/flutter/docs/Flutter's-modes.md
rename to docs/engine/Flutter's-modes.md
diff --git a/engine/src/flutter/docs/Flutter-engine-operation-in-AOT-Mode.md b/docs/engine/Flutter-engine-operation-in-AOT-Mode.md
similarity index 100%
rename from engine/src/flutter/docs/Flutter-engine-operation-in-AOT-Mode.md
rename to docs/engine/Flutter-engine-operation-in-AOT-Mode.md
diff --git a/engine/src/flutter/docs/Image-Codecs-in-the-Flutter-Engine.md b/docs/engine/Image-Codecs-in-the-Flutter-Engine.md
similarity index 100%
rename from engine/src/flutter/docs/Image-Codecs-in-the-Flutter-Engine.md
rename to docs/engine/Image-Codecs-in-the-Flutter-Engine.md
diff --git a/engine/src/flutter/docs/Life-of-a-Flutter-Frame.md b/docs/engine/Life-of-a-Flutter-Frame.md
similarity index 100%
rename from engine/src/flutter/docs/Life-of-a-Flutter-Frame.md
rename to docs/engine/Life-of-a-Flutter-Frame.md
diff --git a/engine/src/flutter/docs/README.md b/docs/engine/README.md
similarity index 81%
rename from engine/src/flutter/docs/README.md
rename to docs/engine/README.md
index 083556816888d..2525e659c31b6 100644
--- a/engine/src/flutter/docs/README.md
+++ b/docs/engine/README.md
@@ -1,6 +1,6 @@
This is an index of team-facing documentation for the [flutter/engine team](https://github.com/flutter/flutter/tree/main/engine).
-- [Accessibility on Windows](https://github.com/flutter/flutter/blob/master/docs/platforms/desktop/windows/Accessibility-on-Windows.md)
+- [Accessibility on Windows](https://github.com/flutter/flutter/blob/main/docs/platforms/desktop/windows/Accessibility-on-Windows.md)
- [Code signing metadata](./release/Code-signing-metadata.md) for engine binaries
- [Compiling the engine](./contributing/Compiling-the-engine.md)
- [Comparing AOT Snapshot Sizes](./benchmarks/Comparing-AOT-Snapshot-Sizes.md)
@@ -9,7 +9,7 @@ This is an index of team-facing documentation for the [flutter/engine team](http
- [Custom Flutter Engine Embedding in AOT Mode](./Custom-Flutter-Engine-Embedding-in-AOT-Mode.md)
- [Debugging the engine](./Debugging-the-engine.md)
- [Flutter engine operation in AOT Mode](./Flutter-engine-operation-in-AOT-Mode.md)
-- [Flutter Test Fonts](https://github.com/flutter/flutter/blob/master/docs/contributing/testing/Flutter-Test-Fonts.md)
+- [Flutter Test Fonts](https://github.com/flutter/flutter/blob/main/docs/contributing/testing/Flutter-Test-Fonts.md)
- [Flutter's modes](./Flutter's-modes.md)
- [Engine Clang Tidy Linter](./ci/Engine-Clang-Tidy-Linter.md)
- [Engine disk footprint](./Engine-disk-footprint.md)
@@ -18,12 +18,12 @@ This is an index of team-facing documentation for the [flutter/engine team](http
- [Image Codecs in the Flutter Engine](Image-Codecs-in-the-Flutter-Engine.md)
- [Impeller](./impeller/README.md) documentation index
- [Life of a Flutter Frame](Life-of-a-Flutter-Frame.md)
-- [Resolving common build failures](https://github.com/flutter/flutter/blob/master/docs/platforms/android/Resolving-common-build-failures.md)
+- [Resolving common build failures](https://github.com/flutter/flutter/blob/main/docs/platforms/android/Resolving-common-build-failures.md)
- [Setting up the Engine development environment](./contributing/Setting-up-the-Engine-development-environment.md)
- [Supporting legacy platforms](Supporting-legacy-platforms.md)
-- [Testing Android Changes in the Devicelab on an Emulator](https://github.com/flutter/flutter/blob/master/docs/platforms/android/Testing-Android-Changes-in-the-Devicelab-on-an-Emulator.md)
+- [Testing Android Changes in the Devicelab on an Emulator](https://github.com/flutter/flutter/blob/main/docs/platforms/android/Testing-Android-Changes-in-the-Devicelab-on-an-Emulator.md)
- [Testing the engine](./testing/Testing-the-engine.md)
-- [The Engine architecture](https://github.com/flutter/flutter/blob/master/docs/about/The-Engine-architecture.md)
-- [Upgrading Engine's Android API version](https://github.com/flutter/flutter/blob/master/docs/platforms/android/Upgrading-Engine's-Android-API-version.md)
+- [The Engine architecture](https://github.com/flutter/flutter/blob/main/docs/about/The-Engine-architecture.md)
+- [Upgrading Engine's Android API version](https://github.com/flutter/flutter/blob/main/docs/platforms/android/Upgrading-Engine's-Android-API-version.md)
- [Using the Dart Development Service (DDS) and Flutter DevTools with a custom Flutter Engine Embedding](./Using-the-Dart-Development-Service-(DDS)-and-Flutter-DevTools-with-a-custom-Flutter-Engine-Embedding.md)
- [Using Sanitizers with the Flutter Engine](./Using-Sanitizers-with-the-Flutter-Engine.md)
diff --git a/engine/src/flutter/docs/Supporting-legacy-platforms.md b/docs/engine/Supporting-legacy-platforms.md
similarity index 100%
rename from engine/src/flutter/docs/Supporting-legacy-platforms.md
rename to docs/engine/Supporting-legacy-platforms.md
diff --git a/engine/src/flutter/docs/Using-Sanitizers-with-the-Flutter-Engine.md b/docs/engine/Using-Sanitizers-with-the-Flutter-Engine.md
similarity index 100%
rename from engine/src/flutter/docs/Using-Sanitizers-with-the-Flutter-Engine.md
rename to docs/engine/Using-Sanitizers-with-the-Flutter-Engine.md
diff --git a/engine/src/flutter/docs/Using-the-Dart-Development-Service-(DDS)-and-Flutter-DevTools-with-a-custom-Flutter-Engine-Embedding.md b/docs/engine/Using-the-Dart-Development-Service-(DDS)-and-Flutter-DevTools-with-a-custom-Flutter-Engine-Embedding.md
similarity index 100%
rename from engine/src/flutter/docs/Using-the-Dart-Development-Service-(DDS)-and-Flutter-DevTools-with-a-custom-Flutter-Engine-Embedding.md
rename to docs/engine/Using-the-Dart-Development-Service-(DDS)-and-Flutter-DevTools-with-a-custom-Flutter-Engine-Embedding.md
diff --git a/engine/src/flutter/docs/app_anatomy.svg b/docs/engine/app_anatomy.svg
similarity index 100%
rename from engine/src/flutter/docs/app_anatomy.svg
rename to docs/engine/app_anatomy.svg
diff --git a/engine/src/flutter/docs/benchmarks/Comparing-AOT-Snapshot-Sizes.md b/docs/engine/benchmarks/Comparing-AOT-Snapshot-Sizes.md
similarity index 100%
rename from engine/src/flutter/docs/benchmarks/Comparing-AOT-Snapshot-Sizes.md
rename to docs/engine/benchmarks/Comparing-AOT-Snapshot-Sizes.md
diff --git a/engine/src/flutter/docs/ci/Engine-Clang-Tidy-Linter.md b/docs/engine/ci/Engine-Clang-Tidy-Linter.md
similarity index 100%
rename from engine/src/flutter/docs/ci/Engine-Clang-Tidy-Linter.md
rename to docs/engine/ci/Engine-Clang-Tidy-Linter.md
diff --git a/engine/src/flutter/docs/ci/Engine-pre-submits-and-post-submits.md b/docs/engine/ci/Engine-pre-submits-and-post-submits.md
similarity index 100%
rename from engine/src/flutter/docs/ci/Engine-pre-submits-and-post-submits.md
rename to docs/engine/ci/Engine-pre-submits-and-post-submits.md
diff --git a/engine/src/flutter/docs/contributing/Compiling-the-engine.md b/docs/engine/contributing/Compiling-the-engine.md
similarity index 91%
rename from engine/src/flutter/docs/contributing/Compiling-the-engine.md
rename to docs/engine/contributing/Compiling-the-engine.md
index 716c9f2274700..30fe2173db5f5 100644
--- a/engine/src/flutter/docs/contributing/Compiling-the-engine.md
+++ b/docs/engine/contributing/Compiling-the-engine.md
@@ -18,7 +18,7 @@ Depending on the platform you are making changes for, you may be interested in a
- Instead of compiling manually as described in this file, it's recommended to use `et`,
the engine tool, located at
- https://github.com/flutter/flutter/blob/master/engine/src/flutter/tools/engine_tool.
+ https://github.com/flutter/flutter/blob/main/engine/src/flutter/tools/engine_tool.
- For local development and testing, it's generally preferable to use `--unopt` builds.
These builds will have additional logging and checks enabled, and generally use build
and link flags that lead to faster compilation and better debugging symbols.
@@ -57,7 +57,7 @@ These steps build the engine used by `flutter run` for Android devices.
Run the following steps from the `engine/src` directory in your local checkout. See [Setting up the Engine development environment](Setting-up-the-Engine-development-environment.md).
-1. Make sure your engine code is [up to date](https://github.com/flutter/flutter/blob/master/engine/src/flutter/docs/contributing/Compiling-the-engine.md#updating-the-engine).
+1. Make sure your engine code is [up to date](https://github.com/flutter/flutter/blob/main/docs/engine/contributing/Compiling-the-engine.md#updating-the-engine).
2. Prepare your build files
* `./flutter/tools/gn --android --unoptimized` for device-side executables.
@@ -70,7 +70,7 @@ Run the following steps from the `engine/src` directory in your local checkout.
> 💡 **TIP**: When developing on a Mac with ARM (M CPU), prefer `host_debug_unopt_arm64`.
>
> You can continue to use `host_debug_unopt` (required for Intel Macs), but the engine will be run under Rosetta
-> which may be slower. See [Developing with Flutter on Apple Silicon](https://github.com/flutter/flutter/blob/master/docs/platforms/desktop/macos/Developing-with-Flutter-on-Apple-Silicon.md)
+> which may be slower. See [Developing with Flutter on Apple Silicon](https://github.com/flutter/flutter/blob/main/docs/platforms/desktop/macos/Developing-with-Flutter-on-Apple-Silicon.md)
> for more information.
3. Build your executables
@@ -90,11 +90,11 @@ If you're going to be debugging crashes in the engine, make sure you add
`android/AndroidManifest.xml` file for the Flutter app you are using
to test the engine.
-See [The flutter tool](https://github.com/flutter/flutter/blob/master/docs/tool/README.md) for instructions on how to use the `flutter` tool with a local engine.
+See [The flutter tool](https://github.com/flutter/flutter/blob/main/docs/tool/README.md) for instructions on how to use the `flutter` tool with a local engine.
You will typically use the `android_debug_unopt` build to debug the engine on a device, and
`android_debug_unopt_x64` to debug in on a simulator. Modifying dart sources in the engine will
require adding a `dependency_override` section in you app's `pubspec.yaml` as detailed
-[here](https://github.com/flutter/flutter/blob/master/docs/tool/README.md#using-a-locally-built-engine-with-the-flutter-tool).
+[here](https://github.com/flutter/flutter/blob/main/docs/tool/README.md#using-a-locally-built-engine-with-the-flutter-tool).
Note that if you use particular android or ios engine build, you will need to have corresponding
host build available next to it: if you use `android_debug_unopt`, you should have built `host_debug_unopt`,
@@ -130,7 +130,7 @@ These steps build the engine used by `flutter run` for iOS devices.
Run the following steps, from the `engine/src` directory:
-1. Make sure your engine code is [up to date](https://github.com/flutter/flutter/blob/master/engine/src/flutter/docs/contributing/Compiling-the-engine.md#updating-the-engine).
+1. Make sure your engine code is [up to date](https://github.com/flutter/flutter/blob/main/docs/engine/contributing/Compiling-the-engine.md#updating-the-engine).
2. `./flutter/tools/gn --ios --unoptimized` to prepare build files for device-side executables (or `--ios --simulator --unoptimized` for simulator).
* This also produces an Xcode project for working with the engine source code at `out/ios_debug_unopt/flutter_engine.xcodeproj`
@@ -142,11 +142,11 @@ Run the following steps, from the `engine/src` directory:
4. `ninja -C out/ios_debug_unopt && ninja -C out/host_debug_unopt` to build all artifacts (use `out/ios_debug_sim_unopt` for Simulator).
-See [The flutter tool](https://github.com/flutter/flutter/blob/master/docs/tool/README.md) for instructions on how to use the `flutter` tool with a local engine.
+See [The flutter tool](https://github.com/flutter/flutter/blob/main/docs/tool/README.md) for instructions on how to use the `flutter` tool with a local engine.
You will typically use the `ios_debug_unopt` build to debug the engine on a device, and
`ios_debug_sim_unopt` to debug in on a simulator. Modifying dart sources in the engine will
require adding a `dependency_override` section in you app's `pubspec.yaml` as detailed
-[here](https://github.com/flutter/flutter/blob/master/docs/tool/README.md#using-a-locally-built-engine-with-the-flutter-tool).
+[here](https://github.com/flutter/flutter/blob/main/docs/tool/README.md#using-a-locally-built-engine-with-the-flutter-tool).
See also [instructions for debugging the engine in a Flutter app in Xcode](../Debugging-the-engine.md#debugging-ios-builds-with-xcode).
@@ -154,7 +154,7 @@ See also [instructions for debugging the engine in a Flutter app in Xcode](../De
These steps build the desktop embedding, and the engine used by `flutter test` on a host workstation.
-1. Make sure your engine code is [up to date](https://github.com/flutter/flutter/blob/master/engine/src/flutter/docs/contributing/Compiling-the-engine.md#updating-the-engine).
+1. Make sure your engine code is [up to date](https://github.com/flutter/flutter/blob/main/docs/engine/contributing/Compiling-the-engine.md#updating-the-engine).
2. `./flutter/tools/gn --unoptimized` to prepare your build files.
* `--unoptimized` disables C++ compiler optimizations. On macOS, binaries are emitted unstripped; on Linux, unstripped binaries are emitted to an `exe.unstripped` subdirectory of the build.
@@ -162,10 +162,10 @@ These steps build the desktop embedding, and the engine used by `flutter test` o
3. `ninja -C out/host_debug_unopt` to build a desktop unoptimized binary.
* If you skipped `--unoptimized`, use `ninja -C out/host_debug` instead.
-See [The flutter tool](https://github.com/flutter/flutter/blob/master/docs/tool/README.md) for instructions on how to use the `flutter` tool with a local engine.
+See [The flutter tool](https://github.com/flutter/flutter/blob/main/docs/tool/README.md) for instructions on how to use the `flutter` tool with a local engine.
You will typically use the `host_debug_unopt` build in this setup. Modifying dart sources in the engine will
require adding a `dependency_override` section in you app's `pubspec.yaml` as detailed
-[here](https://github.com/flutter/flutter/blob/master/docs/tool/README.md#using-a-locally-built-engine-with-the-flutter-tool).
+[here](https://github.com/flutter/flutter/blob/main/docs/tool/README.md#using-a-locally-built-engine-with-the-flutter-tool).
If you have [ccache](https://ccache.dev/) installed on your system, you can enable this by using `--ccache` on `gn` in step 2 above.
This can speed up subsequent builds, especially when switching branches.
@@ -180,7 +180,7 @@ On Windows, ensure that the engine checkout is not deeply nested. This avoid the
1. Make sure you have Visual Studio installed (non-Googlers only). [Debugging Tools for Windows 10](https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/debugger-download-tools#small-classic-windbg-preview-logo-debugging-tools-for-windows-10-windbg) must be installed.
-2. Make sure your engine code is [up to date](https://github.com/flutter/flutter/blob/master/engine/src/flutter/docs/contributing/Compiling-the-engine.md#updating-the-engine).
+2. Make sure your engine code is [up to date](https://github.com/flutter/flutter/blob/main/docs/engine/contributing/Compiling-the-engine.md#updating-the-engine).
3. Ensure long path support is enabled on your machine. Launch PowerShell as an administrator and run:
```
@@ -271,7 +271,7 @@ python3 flutter/tools/fuchsia/with_envs.py flutter/testing/fuchsia/run_tests.py
## Compiling for the Web
-For building the engine for the Web we use the [felt](https://github.com/flutter/flutter/blob/master/engine/src/flutter/lib/web_ui/README.md) tool.
+For building the engine for the Web we use the [felt](https://github.com/flutter/flutter/blob/main/engine/src/flutter/lib/web_ui/README.md) tool.
To test Flutter with a local build of the Web engine, add `--local-web-sdk=wasm_release` to your `flutter` command, e.g.:
@@ -290,7 +290,7 @@ Compiling the web engine might take a few extra steps on Windows. Use cmd.exe an
2. Make sure, depot_tools, ninja and python are installed and added to the path. Also set the following environment variable for depot tools:
* `DEPOT_TOOLS_WIN_TOOLCHAIN = 0`
* Tip: if you get a python error try to use Python 2 instead of 3
-3. Make sure your engine code is [up to date](https://github.com/flutter/flutter/blob/master/engine/src/flutter/docs/contributing/Compiling-the-engine.md#updating-the-engine).
+3. Make sure your engine code is [up to date](https://github.com/flutter/flutter/blob/main/docs/engine/contributing/Compiling-the-engine.md#updating-the-engine).
* Tip: If you get a git authentication errors on this step try Git Bash instead
5. `python .\flutter\tools\gn --unoptimized --full-dart-sdk` to prepare your build files.
6. `ninja -C .\out\