-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8f8f75
commit 8f116c5
Showing
30 changed files
with
114 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,8 @@ | ||
#!/bin/bash -e | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
# This file serves as an alias for the 'dt' executable so that | ||
# the legacy `dt` can be used. | ||
# TODO(kenz): remove this file in ~6 months (April 2025). | ||
|
||
if [ ! -z "$DEVTOOLS_TOOL_FLUTTER_FROM_PATH" ] | ||
then | ||
echo Running devtools_tool using Dart/Flutter from PATH because DEVTOOLS_TOOL_FLUTTER_FROM_PATH is set | ||
dart run "$SCRIPT_DIR/devtools_tool.dart" "$@" | ||
else | ||
if [ ! -d $SCRIPT_DIR/../flutter-sdk ] | ||
then | ||
# If the `devtools/tool/flutter-sdk` directory does not exist yet, use whatever Dart | ||
# is on the user's path to update it before proceeding. | ||
echo "Running devtools_tool using the Dart SDK from `which dart` to create the Flutter SDK in tool/flutter-sdk." | ||
dart run "$SCRIPT_DIR/devtools_tool.dart" update-flutter-sdk | ||
fi | ||
|
||
"$SCRIPT_DIR/../flutter-sdk/bin/dart" run "$SCRIPT_DIR/devtools_tool.dart" "$@" | ||
fi | ||
echo Warning: devtools_tool has been replaced by dt. Please use dt instead. | ||
dt |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash -e | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
|
||
if [ ! -z "$DEVTOOLS_TOOL_FLUTTER_FROM_PATH" ] | ||
then | ||
echo Running dt using Dart/Flutter from PATH because DEVTOOLS_TOOL_FLUTTER_FROM_PATH is set | ||
dart run "$SCRIPT_DIR/dt.dart" "$@" | ||
else | ||
if [ ! -d $SCRIPT_DIR/../flutter-sdk ] | ||
then | ||
# If the `devtools/tool/flutter-sdk` directory does not exist yet, use whatever Dart | ||
# is on the user's path to update it before proceeding. | ||
echo "Running dt using the Dart SDK from `which dart` to create the Flutter SDK in tool/flutter-sdk." | ||
dart run "$SCRIPT_DIR/dt.dart" update-flutter-sdk | ||
fi | ||
|
||
"$SCRIPT_DIR/../flutter-sdk/bin/dart" run "$SCRIPT_DIR/dt.dart" "$@" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@echo off | ||
|
||
IF DEFINED DEVTOOLS_TOOL_FLUTTER_FROM_PATH ( | ||
echo Running dt using Dart/Flutter from PATH because DEVTOOLS_TOOL_FLUTTER_FROM_PATH is set | ||
dart run %~dp0/dt.dart %* | ||
) ELSE ( | ||
|
||
rem If the `devtools/tool/flutter-sdk` directory does not exist yet, use whatever Dart | ||
rem is on the user's path to update it before proceeding. | ||
IF NOT EXIST "%~dp0/../flutter-sdk/" ( | ||
echo Running dt using the Dart SDK from `where.exe dart` to create the Flutter SDK in tool/flutter-sdk. | ||
dart run %~dp0/dt.dart update-flutter-sdk | ||
) | ||
|
||
%~dp0/../flutter-sdk/bin/dart run %~dp0/dt.dart %* | ||
) | ||
|
||
EXIT /B %errorlevel% |
File renamed without changes.
Oops, something went wrong.