[deps] rev args, bazel_worker, benchmark_harness, collection, file, glob, http_multi_server, http_parser, json_rpc_2, mockito, native, package_config, pool, sync_http, usage, webkit_inspection_protocol Revisions updated by `dart tools/rev_sdk_deps.dart`. args (https://github.com/dart-lang/args/compare/df9b428..46d5033): 46d5033 2023-11-01 dependabot[bot] Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (#258) 5f7c8b5 2023-11-01 dependabot[bot] Bump actions/checkout from 4.1.0 to 4.1.1 (#259) bazel_worker (https://github.com/dart-lang/bazel_worker/compare/b1b6a66..3d9cd58): 3d9cd58 2023-11-02 dependabot[bot] Bump actions/checkout from 4.1.0 to 4.1.1 (#83) 1d7bed3 2023-11-01 dependabot[bot] Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (#84) benchmark_harness (https://github.com/dart-lang/benchmark_harness/compare/59aea95..e59f675): e59f675 2023-11-01 dependabot[bot] Bump actions/checkout from 4.1.0 to 4.1.1 (#96) 1899e39 2023-11-01 dependabot[bot] Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (#95) collection (https://github.com/dart-lang/collection/compare/d27bfaf..e8d7e92): e8d7e92 2023-11-02 dependabot[bot] Bump actions/checkout from 4.1.0 to 4.1.1 (#318) 1f5c234 2023-11-01 dependabot[bot] Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (#319) file (https://github.com/google/file.dart/compare/e7c03aa..cd3a932): cd3a932 2023-11-01 dependabot[bot] Bump actions/checkout from 3.6.0 to 4.1.1 (#232) glob (https://github.com/dart-lang/glob/compare/0046533..7c9a121): 7c9a121 2023-11-01 dependabot[bot] Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (#86) 713142b 2023-11-01 dependabot[bot] Bump actions/checkout from 4.1.0 to 4.1.1 (#85) http_multi_server (https://github.com/dart-lang/http_multi_server/compare/03041aa..2238a6b): 2238a6b 2023-11-01 dependabot[bot] Bump actions/checkout from 4.1.0 to 4.1.1 (#60) http_parser (https://github.com/dart-lang/http_parser/compare/c557f57..1cf5b7c): 1cf5b7c 2023-11-02 dependabot[bot] Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (#80) cb6f142 2023-11-01 dependabot[bot] Bump actions/checkout from 4.1.0 to 4.1.1 (#81) json_rpc_2 (https://github.com/dart-lang/json_rpc_2/compare/0521afb..460545c): 460545c 2023-11-01 dependabot[bot] Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (#105) 189b1a8 2023-11-01 dependabot[bot] Bump actions/checkout from 4.1.0 to 4.1.1 (#106) mockito (https://github.com/dart-lang/mockito/compare/b7d752e..fcb9779): fcb9779 2023-11-01 dependabot[bot] Bump actions/checkout from 4.1.0 to 4.1.1 (#713) 1c4a6ff 2023-11-01 dependabot[bot] Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (#712) native (https://github.com/dart-lang/native/compare/de9d59e..c72ed16): c72ed16 2023-11-01 Daco Harkes [native_toolchain_c] Bump version to 0.3.2 (#184) 4c9a50f 2023-11-01 Daco Harkes [native_toolchain_c] Add workaround for minSdkVersion 19 and 20 (#181) 45b5e6c 2023-11-01 Daco Harkes [infra] Bump NDK version (#183) package_config (https://github.com/dart-lang/package_config/compare/100533d..33dd246): 33dd246 2023-11-01 dependabot[bot] Bump actions/checkout from 4.1.0 to 4.1.1 (#144) 30c8f25 2023-11-01 dependabot[bot] Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (#143) pool (https://github.com/dart-lang/pool/compare/c78cef4..3c1bd42): 3c1bd42 2023-11-01 dependabot[bot] Bump actions/checkout from 4.1.0 to 4.1.1 (#77) sync_http (https://github.com/dart-lang/sync_http/compare/8233f74..d8e9f3d): d8e9f3d 2023-11-01 dependabot[bot] Bump actions/checkout from 3.6.0 to 4.1.1 (#40) c59b6d4 2023-11-01 dependabot[bot] Bump dart-lang/setup-dart from 1.5.0 to 1.6.0 (#41) usage (https://github.com/dart-lang/usage/compare/d7d2964..e99690a): e99690a 2023-11-02 dependabot[bot] Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (#201) a540a6d 2023-11-01 dependabot[bot] Bump actions/checkout from 4.1.0 to 4.1.1 (#200) webkit_inspection_protocol (https://github.com/google/webkit_inspection_protocol.dart/compare/2c6f8b6..667c55e): 667c55e 2023-11-01 dependabot[bot] Bump dart-lang/setup-dart from 1.5.0 to 1.6.0 (#113) Change-Id: Ie6f2f0df0060cd77b9d56dc40172c134605417e7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/333680 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com> Auto-Submit: Devon Carew <devoncarew@google.com> https://dart.googlesource.com/sdk/+/dfdadb83b895b28a278b25263612c2d6f825734f
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.