2019-02-04 12:37:10 +00:00
|
|
|
#!/usr/bin/env bash
|
2018-07-12 15:47:16 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
|
|
|
|
# for details. All rights reserved. Use of this source code is governed by a
|
|
|
|
# BSD-style license that can be found in the LICENSE file.
|
|
|
|
#
|
|
|
|
# After you have checked out a flutter engine with the latest framework and the
|
|
|
|
# latest dart sdk, run this script to apply workarounds to the source code. It
|
|
|
|
# may patch up the source code so the three HEADs work together correctly.
|
|
|
|
#
|
|
|
|
# Usage: src/third_party/dart/tools/3xhead_flutter_hooks.sh
|
|
|
|
# (run inside the root of a flutter engine checkout)
|
|
|
|
|
|
|
|
set -e
|
2019-02-04 12:37:10 +00:00
|
|
|
|
|
|
|
DIR=$(dirname -- "$(which -- "$0")")
|
|
|
|
. $DIR/patches/utils.sh
|
|
|
|
|
|
|
|
ensure_in_checkout_root
|
|
|
|
|
|
|
|
# Apply patches to the Flutter Framework if needed.
|
|
|
|
src/third_party/dart/tools/patches/flutter-flutter/apply.sh
|
2018-07-12 15:47:16 +00:00
|
|
|
|
|
|
|
# Apply patches to the Flutter Engine if needed.
|
|
|
|
src/third_party/dart/tools/patches/flutter-engine/apply.sh
|