Rename flutter packages to flutter pub (#33041)

This commit is contained in:
Michael Thomsen
2019-05-21 16:38:58 +02:00
committed by GitHub
parent d5aae54a28
commit 7ae3caf309
20 changed files with 31 additions and 31 deletions

View File

@@ -565,7 +565,7 @@ linter:
if (stdout.isNotEmpty && stdout.first == 'Building flutter tool...') {
stdout.removeAt(0);
}
if (stdout.isNotEmpty && stdout.first.startsWith('Running "flutter packages get" in ')) {
if (stdout.isNotEmpty && stdout.first.startsWith('Running "flutter pub get" in ')) {
stdout.removeAt(0);
}
_exitCode = result.exitCode;

View File

@@ -108,7 +108,7 @@ fi
# This script generates a unified doc set, and creates
# a custom index.html, placing everything into dev/docs/doc.
(cd "$FLUTTER_ROOT/dev/tools" && "$FLUTTER" packages get)
(cd "$FLUTTER_ROOT/dev/tools" && "$FLUTTER" pub get)
(cd "$FLUTTER_ROOT/dev/tools" && "$PUB" get)
(cd "$FLUTTER_ROOT" && "$DART" "$FLUTTER_ROOT/dev/tools/dartdoc.dart")
(cd "$FLUTTER_ROOT" && "$DART" "$FLUTTER_ROOT/dev/tools/java_and_objc_doc.dart")

View File

@@ -59,7 +59,7 @@ Future<int> runTest({bool coverage = false}) async {
step = TestStep.buildingFlutterTool;
} else if (step == TestStep.testPassed && entry.contains('Collecting coverage information...')) {
// ignore this line
} else if (step.index < TestStep.runningPubGet.index && entry == 'Running "flutter packages get" in automated_tests...') {
} else if (step.index < TestStep.runningPubGet.index && entry == 'Running "flutter pub get" in automated_tests...') {
// ignore this line
step = TestStep.runningPubGet;
} else if (step.index < TestStep.testWritesFirstCarriageReturn.index && entry == '') {

View File

@@ -54,7 +54,7 @@ void main() {
throw 'flutter run --release had output on standard error.';
if (stdout.first.startsWith('Building flutter tool...'))
stdout.removeAt(0);
if (stdout.first.startsWith('Running "flutter packages get" in ui...'))
if (stdout.first.startsWith('Running "flutter pub get" in ui...'))
stdout.removeAt(0);
if (stdout.first.startsWith('Initializing gradle...'))
stdout.removeAt(0);

View File

@@ -41,7 +41,7 @@ target 'Runner' do
# Flutter Pods
generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
if generated_xcode_build_settings.empty?
puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first."
end
generated_xcode_build_settings.map { |p|
if p[:name] == 'FLUTTER_FRAMEWORK_DIR'