forked from firka/flutter
Update link branches to main (#146558)
- Update CS and googlesource.com link branches - Update GitHub /blob/ and /tree/ links Tested links manually and fixes a few broken or deprecated links Added a test that validates that `master` isn't used, except for specified repos. Part of https://github.com/flutter/flutter/issues/121564 ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/wiki/Tree-hygiene#overview [Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene [test-exempt]: https://github.com/flutter/flutter/wiki/Tree-hygiene#tests [Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [Features we expect every widget to implement]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/wiki/Chat [Data Driven Fixes]: https://github.com/flutter/flutter/wiki/Data-driven-Fixes
This commit is contained in:
@@ -1230,7 +1230,7 @@ class _DecelerateCurve extends Curve {
|
||||
@override
|
||||
double transformInternal(double t) {
|
||||
// Intended to match the behavior of:
|
||||
// https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/view/animation/DecelerateInterpolator.java
|
||||
// https://android.googlesource.com/platform/frameworks/base/+/main/core/java/android/view/animation/DecelerateInterpolator.java
|
||||
// ...as of December 2016.
|
||||
t = 1.0 - t;
|
||||
return 1.0 - t * t;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
// Modeled after Android's ViewConfiguration:
|
||||
// https://github.com/android/platform_frameworks_base/blob/master/core/java/android/view/ViewConfiguration.java
|
||||
// https://github.com/android/platform_frameworks_base/blob/main/core/java/android/view/ViewConfiguration.java
|
||||
|
||||
/// The time that must elapse before a tap gesture sends onTapDown, if there's
|
||||
/// any doubt that the gesture is a tap.
|
||||
|
||||
@@ -316,9 +316,9 @@ class InkSparkle extends InteractiveInkFeature {
|
||||
|
||||
/// All double values for uniforms come from the Android 12 ripple
|
||||
/// implementation from the following files:
|
||||
/// - https://cs.android.com/android/platform/superproject/+/master:frameworks/base/graphics/java/android/graphics/drawable/RippleShader.java
|
||||
/// - https://cs.android.com/android/platform/superproject/+/master:frameworks/base/graphics/java/android/graphics/drawable/RippleDrawable.java
|
||||
/// - https://cs.android.com/android/platform/superproject/+/master:frameworks/base/graphics/java/android/graphics/drawable/RippleAnimationSession.java
|
||||
/// - https://cs.android.com/android/platform/superproject/+/main:frameworks/base/graphics/java/android/graphics/drawable/RippleShader.java
|
||||
/// - https://cs.android.com/android/platform/superproject/+/main:frameworks/base/graphics/java/android/graphics/drawable/RippleDrawable.java
|
||||
/// - https://cs.android.com/android/platform/superproject/+/main:frameworks/base/graphics/java/android/graphics/drawable/RippleAnimationSession.java
|
||||
void _updateFragmentShader() {
|
||||
const double turbulenceScale = 1.5;
|
||||
final double turbulencePhase = _turbulenceSeed + _radiusScale.value;
|
||||
|
||||
@@ -1185,7 +1185,7 @@ final class _LayoutCacheStorage {
|
||||
/// positioned at 0,0. If this is not true, then use [RenderShiftedBox] instead.
|
||||
///
|
||||
/// See
|
||||
/// [proxy_box.dart](https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/rendering/proxy_box.dart)
|
||||
/// [proxy_box.dart](https://github.com/flutter/flutter/blob/main/packages/flutter/lib/src/rendering/proxy_box.dart)
|
||||
/// for examples of inheriting from [RenderProxyBox].
|
||||
///
|
||||
/// #### Using RenderShiftedBox
|
||||
@@ -1196,7 +1196,7 @@ final class _LayoutCacheStorage {
|
||||
/// default layout algorithm.
|
||||
///
|
||||
/// See
|
||||
/// [shifted_box.dart](https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/rendering/shifted_box.dart)
|
||||
/// [shifted_box.dart](https://github.com/flutter/flutter/blob/main/packages/flutter/lib/src/rendering/shifted_box.dart)
|
||||
/// for examples of inheriting from [RenderShiftedBox].
|
||||
///
|
||||
/// #### Kinds of children and child-specific data
|
||||
|
||||
@@ -53,7 +53,7 @@ class RawKeyEventDataFuchsia extends RawKeyEventData {
|
||||
|
||||
/// The modifiers that were present when the key event occurred.
|
||||
///
|
||||
/// See <https://fuchsia.googlesource.com/garnet/+/master/public/fidl/fuchsia.ui.input/input_event_constants.fidl>
|
||||
/// See <https://android.googlesource.com/platform/prebuilts/fuchsia_sdk/+/main/fidl/fuchsia.ui.input/input_event_constants.fidl>
|
||||
/// for the numerical values of the modifiers. Many of these are also
|
||||
/// replicated as static constants in this class.
|
||||
///
|
||||
|
||||
@@ -230,7 +230,7 @@ class RawKeyEventDataWindows extends RawKeyEventData {
|
||||
// These are not the values defined by the Windows header for each modifier. Since they
|
||||
// can't be packaged into a single int, we are re-defining them here to reduce the size
|
||||
// of the message from the embedder. Embedders should map these values to the native key codes.
|
||||
// Keep this in sync with https://github.com/flutter/engine/blob/master/shell/platform/windows/key_event_handler.cc
|
||||
// Keep this in sync with https://github.com/flutter/engine/blob/main/shell/platform/windows/key_event_handler.cc
|
||||
|
||||
/// This mask is used to check the [modifiers] field to test whether one of the
|
||||
/// SHIFT modifier keys is pressed.
|
||||
|
||||
@@ -296,7 +296,7 @@ class _GlowingOverscrollIndicatorState extends State<GlowingOverscrollIndicator>
|
||||
}
|
||||
|
||||
// The Glow logic is a port of the logic in the following file:
|
||||
// https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/widget/EdgeEffect.java
|
||||
// https://android.googlesource.com/platform/frameworks/base/+/main/core/java/android/widget/EdgeEffect.java
|
||||
// as of December 2016.
|
||||
|
||||
enum _GlowState { idle, absorb, pull, recede }
|
||||
|
||||
@@ -38,7 +38,7 @@ format do not break Flutter.
|
||||
See [tools/bots/flutter/analyze_flutter_flutter.sh](https://github.com/dart-lang/sdk/blob/main/tools/bots/flutter/analyze_flutter_flutter.sh)
|
||||
for where the flutter fix tests are invoked for the dart repo.
|
||||
|
||||
See [dev/bots/test.dart](https://github.com/flutter/flutter/blob/master/dev/bots/test.dart)
|
||||
See [dev/bots/test.dart](https://github.com/flutter/flutter/blob/main/dev/bots/test.dart)
|
||||
for where the flutter fix tests are invoked for the flutter/flutter repo.
|
||||
|
||||
When possible, please coordinate changes to this directory that might affect the
|
||||
|
||||
@@ -16,7 +16,7 @@ const Set<String> kProfilingEvents = <String>{
|
||||
};
|
||||
|
||||
// These field names need to be in-sync with:
|
||||
// https://github.com/flutter/engine/blob/master/shell/profiling/sampling_profiler.cc
|
||||
// https://github.com/flutter/engine/blob/main/shell/profiling/sampling_profiler.cc
|
||||
const String _kCpuProfile = 'CpuUsage';
|
||||
const String _kGpuProfile = 'GpuUsage';
|
||||
const String _kMemoryProfile = 'MemoryUsage';
|
||||
|
||||
@@ -20,7 +20,7 @@ and `WidgetsLocalizations`, with appropriate name substitutions):
|
||||
String get showMenuTooltip;
|
||||
```
|
||||
to the localizations class `MaterialLocalizations`,
|
||||
in [`packages/flutter/lib/src/material/material_localizations.dart`](https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/material/material_localizations.dart);
|
||||
in [`packages/flutter/lib/src/material/material_localizations.dart`](https://github.com/flutter/flutter/blob/main/packages/flutter/lib/src/material/material_localizations.dart);
|
||||
|
||||
### For messages with parameters, add new function
|
||||
```
|
||||
@@ -41,7 +41,7 @@ and `WidgetsLocalizations`, with appropriate name substitutions):
|
||||
@override
|
||||
String aboutListTileTitle(String applicationName) => 'About $applicationName';
|
||||
```
|
||||
For messages with parameters, do also add the function to `GlobalMaterialLocalizations` in [`packages/flutter_localizations/lib/src/material_localizations.dart`](https://github.com/flutter/flutter/blob/master/packages/flutter_localizations/lib/src/material_localizations.dart), and add a raw getter as demonstrated below:
|
||||
For messages with parameters, do also add the function to `GlobalMaterialLocalizations` in [`packages/flutter_localizations/lib/src/material_localizations.dart`](https://github.com/flutter/flutter/blob/main/packages/flutter_localizations/lib/src/material_localizations.dart), and add a raw getter as demonstrated below:
|
||||
|
||||
```
|
||||
/// The raw version of [aboutListTileTitle], with `$applicationName` verbatim
|
||||
|
||||
@@ -38,7 +38,7 @@ format do not break Flutter.
|
||||
See [tools/bots/flutter/analyze_flutter_flutter.sh](https://github.com/dart-lang/sdk/blob/main/tools/bots/flutter/analyze_flutter_flutter.sh)
|
||||
for where the flutter fix tests are invoked for the dart repo.
|
||||
|
||||
See [dev/bots/test.dart](https://github.com/flutter/flutter/blob/master/dev/bots/test.dart)
|
||||
See [dev/bots/test.dart](https://github.com/flutter/flutter/blob/main/dev/bots/test.dart)
|
||||
for where the flutter fix tests are invoked for the flutter/flutter repo.
|
||||
|
||||
When possible, please coordinate changes to this directory that might affect the
|
||||
|
||||
@@ -23,4 +23,4 @@ known, it can be explicitly provided to attach via the command-line, e.g.
|
||||
|
||||
## Source
|
||||
|
||||
See the [source](https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/commands/attach.dart) for the attach command.
|
||||
See the [source](https://github.com/flutter/flutter/blob/main/packages/flutter_tools/lib/src/commands/attach.dart) for the attach command.
|
||||
|
||||
@@ -300,7 +300,7 @@ The following subset of the app domain is available in `flutter run --machine`.
|
||||
|
||||
## Source
|
||||
|
||||
See the [source](https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/commands/daemon.dart) for the daemon protocol and implementation.
|
||||
See the [source](https://github.com/flutter/flutter/blob/main/packages/flutter_tools/lib/src/commands/daemon.dart) for the daemon protocol and implementation.
|
||||
|
||||
## Changelog
|
||||
|
||||
|
||||
@@ -728,7 +728,7 @@ void _handlePosixException(Exception e, String? message, int errorCode, String?
|
||||
// From:
|
||||
// https://github.com/torvalds/linux/blob/master/include/uapi/asm-generic/errno.h
|
||||
// https://github.com/torvalds/linux/blob/master/include/uapi/asm-generic/errno-base.h
|
||||
// https://github.com/apple/darwin-xnu/blob/master/bsd/dev/dtrace/scripts/errno.d
|
||||
// https://github.com/apple/darwin-xnu/blob/main/bsd/dev/dtrace/scripts/errno.d
|
||||
const int eperm = 1;
|
||||
const int enospc = 28;
|
||||
const int eacces = 13;
|
||||
@@ -762,7 +762,7 @@ void _handlePosixException(Exception e, String? message, int errorCode, String?
|
||||
}
|
||||
|
||||
void _handleMacOSException(Exception e, String? message, int errorCode, String? posixPermissionSuggestion) {
|
||||
// https://github.com/apple/darwin-xnu/blob/master/bsd/dev/dtrace/scripts/errno.d
|
||||
// https://github.com/apple/darwin-xnu/blob/main/bsd/dev/dtrace/scripts/errno.d
|
||||
const int ebadarch = 86;
|
||||
if (errorCode == ebadarch) {
|
||||
final StringBuffer errorBuffer = StringBuffer();
|
||||
|
||||
@@ -229,7 +229,7 @@ class AnsiTerminal implements Terminal {
|
||||
// Assume unicode emojis are supported when not on Windows.
|
||||
// If we are on Windows, unicode emojis are supported in Windows Terminal,
|
||||
// which sets the WT_SESSION environment variable. See:
|
||||
// https://github.com/microsoft/terminal/blob/master/doc/user-docs/index.md#tips-and-tricks
|
||||
// https://learn.microsoft.com/en-us/windows/terminal/tips-and-tricks
|
||||
@override
|
||||
bool get supportsEmoji => !_platform.isWindows
|
||||
|| _platform.environment.containsKey('WT_SESSION');
|
||||
|
||||
@@ -221,7 +221,7 @@ class UpgradeCommandRunner {
|
||||
'We do not recommend using this channel for normal use as it more likely to contain serious regressions.\n'
|
||||
'\n'
|
||||
'For information on contributing to Flutter, see our contributing guide:\n'
|
||||
' https://github.com/flutter/flutter/blob/master/CONTRIBUTING.md\n'
|
||||
' https://github.com/flutter/flutter/blob/main/CONTRIBUTING.md\n'
|
||||
'\n'
|
||||
'For the most up to date stable version of flutter, consider using the "beta" channel instead. '
|
||||
'The Flutter "beta" channel enjoys all the same automated testing as the "stable" channel, '
|
||||
|
||||
@@ -47,7 +47,7 @@ bool _inUnitTest() {
|
||||
/// for language declarations other than library, part, or import.
|
||||
///
|
||||
/// The specification for the language version tag is defined at:
|
||||
/// https://github.com/dart-lang/language/blob/master/accepted/future-releases/language-versioning/feature-specification.md#individual-library-language-version-override
|
||||
/// https://github.com/dart-lang/language/blob/main/accepted/2.8/language-versioning/feature-specification.md#individual-library-language-version-override
|
||||
LanguageVersion determineLanguageVersion(File file, Package? package, String flutterRoot) {
|
||||
int blockCommentDepth = 0;
|
||||
// If reading the file fails, default to a null-safe version. The
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
This document is Flutter-specific. For information on the standard Dart DAP implementation, [see this document](https://github.com/dart-lang/sdk/blob/main/pkg/dds/tool/dap/README.md).
|
||||
|
||||
Flutter includes support for debugging using [the Debug Adapter Protocol](https://microsoft.github.io/debug-adapter-protocol/) as an alternative to using the [VM Service](https://github.com/dart-lang/sdk/blob/master/runtime/vm/service/service.md) directly, simplifying the integration for new editors.
|
||||
Flutter includes support for debugging using [the Debug Adapter Protocol](https://microsoft.github.io/debug-adapter-protocol/) as an alternative to using the [VM Service](https://github.com/dart-lang/sdk/blob/main/runtime/vm/service/service.md) directly, simplifying the integration for new editors.
|
||||
|
||||
The debug adapters are started with the `flutter debug-adapter` command and are intended to be consumed by DAP-compliant tools such as Flutter-specific extensions for editors, or configured by users whose editors include generic configurable DAP clients.
|
||||
|
||||
|
||||
@@ -190,7 +190,7 @@ void main() {
|
||||
'for normal use as it more likely to contain serious regressions.\n'
|
||||
'\n'
|
||||
'For information on contributing to Flutter, see our contributing guide:\n'
|
||||
' https://github.com/flutter/flutter/blob/master/CONTRIBUTING.md\n'
|
||||
' https://github.com/flutter/flutter/blob/main/CONTRIBUTING.md\n'
|
||||
'\n'
|
||||
'For the most up to date stable version of flutter, consider using the "beta" channel '
|
||||
'instead. The Flutter "beta" channel enjoys all the same automated testing as the '
|
||||
|
||||
@@ -75,7 +75,7 @@ const String _kSamplePluginPubspec = '''
|
||||
name: path_provider_linux
|
||||
description: linux implementation of the path_provider plugin
|
||||
// version: 2.0.1
|
||||
// homepage: https://github.com/flutter/plugins/tree/master/packages/path_provider/path_provider_linux
|
||||
// homepage: https://github.com/flutter/plugins/tree/main/packages/path_provider/path_provider_linux
|
||||
|
||||
flutter:
|
||||
plugin:
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// by Flutter Web users.
|
||||
// This should be somewhat kept in sync with the different index.html files present
|
||||
// in `flutter/dev/integration_tests/web/web`.
|
||||
// @see https://github.com/flutter/flutter/tree/master/dev/integration_tests/web/web
|
||||
// @see https://github.com/flutter/flutter/tree/main/dev/integration_tests/web/web
|
||||
|
||||
/// index_with_flutterjs_entrypoint_loaded.html
|
||||
String indexHtmlFlutterJsCallback = _generateFlutterJsIndexHtml('''
|
||||
|
||||
@@ -50,7 +50,7 @@ Future<void> main() => integrationDriver();
|
||||
You can also use different driver scripts to customize the behavior of the app
|
||||
under test. For example, `FlutterDriver` can also be parameterized with
|
||||
different [options](https://api.flutter.dev/flutter/flutter_driver/FlutterDriver/connect.html).
|
||||
See the [extended driver](https://github.com/flutter/flutter/blob/master/packages/integration_test/example/test_driver/extended_integration_test.dart) for an example.
|
||||
See the [extended driver](https://github.com/flutter/flutter/blob/main/packages/integration_test/example/test_driver/extended_integration_test.dart) for an example.
|
||||
|
||||
### Package Structure
|
||||
|
||||
@@ -68,7 +68,7 @@ test_driver/
|
||||
integration_test.dart
|
||||
```
|
||||
|
||||
[Example](https://github.com/flutter/flutter/tree/master/packages/integration_test/example)
|
||||
[Example](https://github.com/flutter/flutter/tree/main/packages/integration_test/example)
|
||||
|
||||
## Using Flutter Driver to Run Tests
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ Pod::Spec.new do |s|
|
||||
No-op implementation of integration to avoid build issues on iOS.
|
||||
See https://github.com/flutter/flutter/issues/39659
|
||||
DESC
|
||||
s.homepage = 'https://github.com/flutter/flutter/tree/master/packages/integration_test/integration_test_macos'
|
||||
s.homepage = 'https://github.com/flutter/flutter/tree/main/packages/integration_test/integration_test_macos'
|
||||
s.license = { :file => '../LICENSE' }
|
||||
s.author = { 'Flutter Team' => 'flutter-dev@googlegroups.com' }
|
||||
s.source = { :path => '.' }
|
||||
|
||||
@@ -8,13 +8,13 @@ Pod::Spec.new do |s|
|
||||
s.description = <<-DESC
|
||||
Runs tests that use the flutter_test API as integration tests on macOS.
|
||||
DESC
|
||||
s.homepage = 'https://github.com/flutter/flutter/tree/master/packages/integration_test/integration_test_macos'
|
||||
s.homepage = 'https://github.com/flutter/flutter/tree/main/packages/integration_test/integration_test_macos'
|
||||
s.license = { :type => 'BSD', :text => <<-LICENSE
|
||||
Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
||||
LICENSE
|
||||
}
|
||||
s.author = { 'Flutter Team' => 'flutter-dev@googlegroups.com' }
|
||||
s.source = { :http => 'https://github.com/flutter/flutter/tree/master/packages/integration_test/integration_test_macos' }
|
||||
s.source = { :http => 'https://github.com/flutter/flutter/tree/main/packages/integration_test/integration_test_macos' }
|
||||
s.source_files = 'Classes/**/*'
|
||||
s.dependency 'FlutterMacOS'
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
name: integration_test_macos
|
||||
description: Desktop implementation of integration_test plugin
|
||||
version: 0.0.1+1
|
||||
homepage: https://github.com/flutter/flutter/tree/master/packages/integration_test/integration_test_macos
|
||||
homepage: https://github.com/flutter/flutter/tree/main/packages/integration_test/integration_test_macos
|
||||
|
||||
flutter:
|
||||
plugin:
|
||||
|
||||
@@ -8,13 +8,13 @@ Pod::Spec.new do |s|
|
||||
s.description = <<-DESC
|
||||
Runs tests that use the flutter_test API as integration tests.
|
||||
DESC
|
||||
s.homepage = 'https://github.com/flutter/flutter/tree/master/packages/integration_test'
|
||||
s.homepage = 'https://github.com/flutter/flutter/tree/main/packages/integration_test'
|
||||
s.license = { :type => 'BSD', :text => <<-LICENSE
|
||||
Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
||||
LICENSE
|
||||
}
|
||||
s.author = { 'Flutter Team' => 'flutter-dev@googlegroups.com' }
|
||||
s.source = { :http => 'https://github.com/flutter/flutter/tree/master/packages/integration_test' }
|
||||
s.source = { :http => 'https://github.com/flutter/flutter/tree/main/packages/integration_test' }
|
||||
s.source_files = 'Classes/**/*'
|
||||
s.public_header_files = 'Classes/**/*.h'
|
||||
s.dependency 'Flutter'
|
||||
|
||||
@@ -38,7 +38,7 @@ format do not break Flutter.
|
||||
See [tools/bots/flutter/analyze_flutter_flutter.sh](https://github.com/dart-lang/sdk/blob/main/tools/bots/flutter/analyze_flutter_flutter.sh)
|
||||
for where the flutter fix tests are invoked for the dart repo.
|
||||
|
||||
See [dev/bots/test.dart](https://github.com/flutter/flutter/blob/master/dev/bots/test.dart)
|
||||
See [dev/bots/test.dart](https://github.com/flutter/flutter/blob/main/dev/bots/test.dart)
|
||||
for where the flutter fix tests are invoked for the flutter/flutter repo.
|
||||
|
||||
When possible, please coordinate changes to this directory that might affect the
|
||||
|
||||
Reference in New Issue
Block a user