commit | e006278e6e39f31850463f0083a8793099d3d0d2 | [log] [tgz] |
---|---|---|
author | Devon Carew <devoncarew@google.com> | Wed Feb 05 08:10:50 2025 -0800 |
committer | dart-internal-monorepo <dart-internal-monorepo@dart-ci-internal.iam.gserviceaccount.com> | Wed Feb 05 08:32:29 2025 -0800 |
tree | 47c9bbf866d7cd95b3d2eb26c2dc0a954053c650 | |
parent | f7f4ae6ba18f3b4e706a3f68ae3d05e77ea0b4e1 [diff] |
[deps] rev core, ecosystem, http, markdown, test, vector_math, web, web_socket_channel, webdev, webdriver Revisions updated by `dart tools/rev_sdk_deps.dart`. core (https://github.com/dart-lang/core/compare/3b35aca..2458e1a): 2458e1aa 2025-01-28 Vladimir E. Koltunov [fix,async] exception in async _CancelOnErrorSubscriptionWrapper.onError (dart-lang/core#855) ecosystem (https://github.com/dart-lang/ecosystem/compare/c4a163a..5b0d815): 5b0d815 2025-02-03 dependabot[bot] Bump the github-actions group with 6 updates (dart-lang/ecosystem#340) http (https://github.com/dart-lang/http/compare/6d99ff5..c7cc4f8): c7cc4f8 2025-01-29 Brian Quinlan [ok_http] Add support for client certificates using Java `PrivateKey`s (dart-lang/http#1444) markdown (https://github.com/dart-lang/markdown/compare/19aaded..62f78c6): 62f78c6 2025-02-01 dependabot[bot] Bump actions/stale from 9.0.0 to 9.1.0 in the github-actions group (dart-lang/markdown#635) test (https://github.com/dart-lang/test/compare/92eed6c..2ccfc5c): 2ccfc5cd 2025-02-01 dependabot[bot] Bump the github-actions group with 3 updates (dart-lang/test#2455) d8ee364a 2025-01-28 Lasse R.H. Nielsen Release fake_async v1.3.3 (dart-lang/test#2453) 385c4f75 2025-01-28 Lasse R.H. Nielsen Remove "-wip" from CHANGELOG.md too. 82417ab3 2025-01-27 Lasse R.H. Nielsen Release fake_async v1.3.3 vector_math (https://github.com/google/vector_math.dart/compare/bd4b574..533c513): 533c513 2025-02-01 dependabot[bot] Bump the github-actions group with 2 updates (google/vector_math.dart#339) web (https://github.com/dart-lang/web/compare/fd3d988..c2d5f63): c2d5f63 2025-02-01 dependabot[bot] Bump actions/stale from 9.0.0 to 9.1.0 in the github-actions group (dart-lang/web#338) web_socket_channel (https://github.com/dart-lang/web_socket_channel/compare/a937243..f335e52): f335e52 2025-02-01 dependabot[bot] Bump actions/stale from 9.0.0 to 9.1.0 in the github-actions group (dart-lang/web_socket_channel#391) webdev (https://github.com/dart-lang/webdev/compare/5dc7950..616da45): 616da455 2025-01-30 Srujan Gaddam [dwds] Implement hot reload and publish 24.3.4 (dart-lang/webdev#2583) a7ea61ff 2025-01-28 Jessy Yameogo Added support for getModuleLibraries with the DDC library bundle format (dart-lang/webdev#2581) webdriver (https://github.com/google/webdriver.dart/compare/d83d6a3..e84e9cc): e84e9cc 2025-01-28 Ivan Inozemtsev Explicitly close http clients (google/webdriver.dart#311) Change-Id: I0c7fc6c3d0ae8f810c753babd9297d5f9565a0ee Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/407940 Commit-Queue: Devon Carew <devoncarew@google.com> Reviewed-by: Kevin Moore <kevmoo@google.com> https://dart.googlesource.com/sdk/+/43e190beda22b15310b6f37b4f672ff1adf347b9
Monorepo is:
With depot_tools installed and on your path, create a directory for your monorepo checkout and run these commands to create a gclient solution in that directory:
mkdir monorepo cd monorepo gclient config --unmanaged https://dart.googlesource.com/monorepo gclient sync -D
This gives you a checkout in the monorepo directory that contains:
monorepo/ DEPS - the DEPS used for this gclient checkout commits.json - the pinned commits for Dart, flutter/engine, and flutter/flutter tools/ - scripts used to create monorepo DEPS engine/src/ - the flutter/buildroot repo flutter/ - the flutter/engine repo out/ - the build directory, where Flutter engine builds are created third_party/ - Flutter dependencies checked out by DEPS dart/ - the Dart SDK checkout. third_party - Dart dependencies, also used by Flutter flutter/ - the flutter/flutter repo
Flutter's instructions for building the engine are at Compiling the engine
They can be followed closely, with a few changes:
goma_ctl ensure_start
is sufficient.Example build commands that work on linux:
MONOREPO_PATH=$PWD if [[ ! $PATH =~ (^|:)$MONOREPO_PATH/flutter/bin(:|$) ]]; then PATH=$MONOREPO_PATH/flutter/bin:$PATH fi export GOMA_DIR=$(dirname $(command -v gclient))/.cipd_bin goma_ctl ensure_start pushd engine/src flutter/tools/gn --goma --no-prebuilt-dart-sdk --unoptimized --full-dart-sdk autoninja -C out/host_debug_unopt popd
The Flutter commands used to build and run apps will use the locally built Flutter engine and Dart SDK, instead of the one downloaded by the Flutter tool, if the --local-engine
option is provided.
For example, to build and run the Flutter spinning square sample on the web platform,
MONOREPO_PATH=$PWD cd flutter/examples/layers flutter --local-engine=host_debug_unopt \ -d chrome run widgets/spinning_square.dart cd $MONOREPO_PATH
To build for desktop, specify the desktop platform device in flutter run
as -d macos
or -d linux
or -d windows
. You may also need to run the command
flutter create --platforms=windows,macos,linux
on existing apps, such as sample apps. New apps created with flutter create
already include these support files. Details of desktop support are at Desktop Support for Flutter
Tests in the Flutter source tree can be run with the flutter test
command, run in the directory of a package containing tests. For example:
MONOREPO_PATH=$PWD cd flutter/packages/flutter flutter test --local-engine=host_debug_unopt cd $MONOREPO_PATH
Please file an issue or email the dart-engprod team with any problems with or questions about using monorepo.
We will update this documentation to address them.
flutter
commands may download the engine and Dart SDK files for the configured channel, even though they will be using the local engine and its SDK.gclient sync
needs to be run in an administrator session, because some installed dependencies create symlinks.