From 054d9bb2f1c23d7b2f95af32db4f61aa53ed6b39 Mon Sep 17 00:00:00 2001 From: Kate Lovett Date: Tue, 14 May 2019 10:35:00 -0700 Subject: [PATCH] Updating dart.dev related links (#32641) * Updating dart.dev related links * Update packages/flutter_tools/lib/src/base/context.dart --- .github/ISSUE_TEMPLATE/feature_request.md | 4 ++-- README.md | 4 ++-- dev/docs/README.md | 2 +- dev/integration_tests/ios_add2app/flutterapp/pubspec.yaml | 2 +- dev/integration_tests/simple_codegen/build.yaml | 2 +- examples/stocks/README.md | 2 +- packages/flutter_localizations/lib/src/l10n/README.md | 4 ++-- packages/flutter_tools/lib/src/base/context.dart | 2 +- packages/flutter_tools/lib/src/commands/packages.dart | 4 ++-- packages/flutter_tools/templates/app/pubspec.yaml.tmpl | 2 +- .../flutter_tools/templates/module/common/pubspec.yaml.tmpl | 2 +- packages/flutter_tools/templates/package/pubspec.yaml.tmpl | 2 +- packages/flutter_tools/templates/plugin/pubspec.yaml.tmpl | 2 +- 13 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 2152d2f798..e2ba98238e 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -30,7 +30,7 @@ assignees: '' concise description of what the problem is. Describe alternative solutions you've considered. Is there a package - on pub.dartlang.org that already solves this? + on pub.dev/flutter that already solves this? --> ## Proposal @@ -41,6 +41,6 @@ assignees: '' Consider attaching images showing what you are imagining. Does this have to be provided by Flutter directly, or can it be provided - by a package on pub.dartlang.org? If so, maybe consider implementing and + by a package on pub.dev/flutter? If so, maybe consider implementing and publishing such a package rather than filing a bug. --> diff --git a/README.md b/README.md index 868a291341..0d51b80e1f 100644 --- a/README.md +++ b/README.md @@ -87,10 +87,10 @@ Information on how to get started can be found at our [widget catalog]: https://flutter.dev/widgets/ [Reflectly hero image]: https://github.com/flutter/website/blob/master/src/images/homepage/reflectly-hero-600px.png [Skia]: https://skia.org/ -[Dart platform]: https://www.dartlang.org/ +[Dart platform]: https://dart.dev/ [Hot reload animation]: https://raw.githubusercontent.com/flutter/website/master/src/_assets/image/tools/android-studio/hot-reload.gif [Hot reload]: https://flutter.dev/docs/development/tools/hot-reload [Visual Studio Code]: https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [IntelliJ / Android Studio]: https://plugins.jetbrains.com/plugin/9212-flutter -[Flutter packages]: https://pub.dartlang.org/flutter +[Flutter packages]: https://pub.dev/flutter [interop example]: https://github.com/flutter/flutter/tree/master/examples/platform_channel \ No newline at end of file diff --git a/dev/docs/README.md b/dev/docs/README.md index 70d36a05ba..fa9e7de690 100644 --- a/dev/docs/README.md +++ b/dev/docs/README.md @@ -58,4 +58,4 @@ import 'package:file/local.dart'; Flutter has a rich community of packages that have been contributed by the open-source community. You can browse those packages at -[pub.dartlang.org](http://pub.dartlang.org/flutter) +[pub.dev/flutter](https://pub.dev/flutter) diff --git a/dev/integration_tests/ios_add2app/flutterapp/pubspec.yaml b/dev/integration_tests/ios_add2app/flutterapp/pubspec.yaml index 13ef88dfe1..bf4a03c3bc 100644 --- a/dev/integration_tests/ios_add2app/flutterapp/pubspec.yaml +++ b/dev/integration_tests/ios_add2app/flutterapp/pubspec.yaml @@ -34,7 +34,7 @@ dev_dependencies: sdk: flutter # For information on the generic Dart part of this file, see the -# following page: https://www.dartlang.org/tools/pub/pubspec +# following page: https://dart.dev/tools/pub/pubspec async: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" boolean_selector: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" diff --git a/dev/integration_tests/simple_codegen/build.yaml b/dev/integration_tests/simple_codegen/build.yaml index b5a63635eb..370bf3b9da 100644 --- a/dev/integration_tests/simple_codegen/build.yaml +++ b/dev/integration_tests/simple_codegen/build.yaml @@ -1,4 +1,4 @@ -# Read about `build.yaml` at https://pub.dartlang.org/packages/build_config +# Read about `build.yaml` at https://pub.dev/packages/build_config builders: simple: import: "package:simple_codegen/builders.dart" diff --git a/examples/stocks/README.md b/examples/stocks/README.md index 6ff46abd93..3b0da73d34 100644 --- a/examples/stocks/README.md +++ b/examples/stocks/README.md @@ -24,7 +24,7 @@ The `flutter run --release` command both builds and installs the Flutter app. This app has been internationalized (just enough to show how it's done). It's an example of how one can do so with the -[Dart intl package](https://pub.dartlang.org/packages/intl). +[Dart intl package](https://pub.dev/packages/intl). The [Flutter Internationalization Tutorial](https://flutter.dev/tutorials/internationalization/) covers Flutter app internationalization in general. diff --git a/packages/flutter_localizations/lib/src/l10n/README.md b/packages/flutter_localizations/lib/src/l10n/README.md index f592652350..a881920950 100644 --- a/packages/flutter_localizations/lib/src/l10n/README.md +++ b/packages/flutter_localizations/lib/src/l10n/README.md @@ -18,7 +18,7 @@ The Material and Cupertino libraries use [Application Resource Bundle](https://code.google.com/p/arb/wiki/ApplicationResourceBundleSpecification) files, which have a `.arb` extension, to store localized translations of messages, format strings, and other values. This format is also -used by the Dart [intl](https://pub.dartlang.org/packages/intl) +used by the Dart [intl](https://pub.dev/packages/intl) package and it is supported by the [Google Translators Toolkit](https://translate.google.com/toolkit). @@ -207,5 +207,5 @@ ordinary Flutter app. covers the `.arb` file format used to store localized translations of messages, format strings, and other values. -The Dart [intl](https://pub.dartlang.org/packages/intl) +The Dart [intl](https://pub.dev/packages/intl) package supports internationalization. diff --git a/packages/flutter_tools/lib/src/base/context.dart b/packages/flutter_tools/lib/src/base/context.dart index 84fc8fc4d3..088adb1698 100644 --- a/packages/flutter_tools/lib/src/base/context.dart +++ b/packages/flutter_tools/lib/src/base/context.dart @@ -43,7 +43,7 @@ AppContext get context => Zone.current[_Key.key] as AppContext ?? AppContext._ro /// scope) is created. /// /// Child contexts are created and run using zones. To read more about how -/// zones work, see https://www.dartlang.org/articles/libraries/zones. +/// zones work, see https://api.dartlang.org/stable/dart-async/Zone-class.html. class AppContext { AppContext._( this._parent, diff --git a/packages/flutter_tools/lib/src/commands/packages.dart b/packages/flutter_tools/lib/src/commands/packages.dart index 5185bbde1e..19c51d676f 100644 --- a/packages/flutter_tools/lib/src/commands/packages.dart +++ b/packages/flutter_tools/lib/src/commands/packages.dart @@ -16,12 +16,12 @@ class PackagesCommand extends FlutterCommand { addSubcommand(PackagesGetCommand('upgrade', true)); addSubcommand(PackagesTestCommand()); addSubcommand(PackagesForwardCommand('downgrade', 'Downgrade packages in a Flutter project', requiresPubspec: true)); - addSubcommand(PackagesForwardCommand('publish', 'Publish the current package to pub.dartlang.org', requiresPubspec: true)); + addSubcommand(PackagesForwardCommand('publish', 'Publish the current package to pub.dev', requiresPubspec: true)); addSubcommand(PackagesForwardCommand('deps', 'Print package dependencies', requiresPubspec: true)); addSubcommand(PackagesForwardCommand('run', 'Run an executable from a package', requiresPubspec: true)); addSubcommand(PackagesForwardCommand('cache', 'Work with the Pub system cache')); addSubcommand(PackagesForwardCommand('version', 'Print Pub version')); - addSubcommand(PackagesForwardCommand('uploader', 'Manage uploaders for a package on pub.dartlang.org')); + addSubcommand(PackagesForwardCommand('uploader', 'Manage uploaders for a package on pub.dev')); addSubcommand(PackagesForwardCommand('global', 'Work with Pub global packages')); addSubcommand(PackagesPassthroughCommand()); } diff --git a/packages/flutter_tools/templates/app/pubspec.yaml.tmpl b/packages/flutter_tools/templates/app/pubspec.yaml.tmpl index b9f8a56e70..9cf9b7b9bc 100644 --- a/packages/flutter_tools/templates/app/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/app/pubspec.yaml.tmpl @@ -44,7 +44,7 @@ dev_dependencies: {{/withPluginHook}} # For information on the generic Dart part of this file, see the -# following page: https://www.dartlang.org/tools/pub/pubspec +# following page: https://dart.dev/tools/pub/pubspec # The following section is specific to Flutter. flutter: diff --git a/packages/flutter_tools/templates/module/common/pubspec.yaml.tmpl b/packages/flutter_tools/templates/module/common/pubspec.yaml.tmpl index fc61b10d9b..7baedbe46f 100644 --- a/packages/flutter_tools/templates/module/common/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/module/common/pubspec.yaml.tmpl @@ -37,7 +37,7 @@ dev_dependencies: {{/withDriverTest}} # For information on the generic Dart part of this file, see the -# following page: https://www.dartlang.org/tools/pub/pubspec +# following page: https://dart.dev/tools/pub/pubspec flutter: # The following line ensures that the Material Icons font is diff --git a/packages/flutter_tools/templates/package/pubspec.yaml.tmpl b/packages/flutter_tools/templates/package/pubspec.yaml.tmpl index 8b0c81bb3b..fdd26f9d96 100644 --- a/packages/flutter_tools/templates/package/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/package/pubspec.yaml.tmpl @@ -20,7 +20,7 @@ dev_dependencies: {{/withDriverTest}} # For information on the generic Dart part of this file, see the -# following page: https://www.dartlang.org/tools/pub/pubspec +# following page: https://dart.dev/tools/pub/pubspec # The following section is specific to Flutter. flutter: diff --git a/packages/flutter_tools/templates/plugin/pubspec.yaml.tmpl b/packages/flutter_tools/templates/plugin/pubspec.yaml.tmpl index 94c170064c..f5403e82db 100644 --- a/packages/flutter_tools/templates/plugin/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/plugin/pubspec.yaml.tmpl @@ -16,7 +16,7 @@ dev_dependencies: sdk: flutter # For information on the generic Dart part of this file, see the -# following page: https://www.dartlang.org/tools/pub/pubspec +# following page: https://dart.dev/tools/pub/pubspec # The following section is specific to Flutter. flutter: