Remove "note that" in our documentation (as per style guide) (#120842)
* lerp documentation * Remove Note, Note That from repo * Improve BorderSide documentation. * apply review comments
This commit is contained in:
@@ -180,8 +180,8 @@ def flutter_install_ios_engine_pod(ios_application_path = nil)
|
||||
File.open(copied_podspec_path, 'w') do |podspec|
|
||||
podspec.write <<~EOF
|
||||
#
|
||||
# NOTE: This podspec is NOT to be published. It is only used as a local source!
|
||||
# This is a generated file; do not edit or check into version control.
|
||||
# This podspec is NOT to be published. It is only used as a local source!
|
||||
# This is a generated file; do not edit or check into version control.
|
||||
#
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
@@ -218,8 +218,8 @@ def flutter_install_macos_engine_pod(mac_application_path = nil)
|
||||
File.open(copied_podspec_path, 'w') do |podspec|
|
||||
podspec.write <<~EOF
|
||||
#
|
||||
# NOTE: This podspec is NOT to be published. It is only used as a local source!
|
||||
# This is a generated file; do not edit or check into version control.
|
||||
# This podspec is NOT to be published. It is only used as a local source!
|
||||
# This is a generated file; do not edit or check into version control.
|
||||
#
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
|
||||
@@ -9,7 +9,7 @@ import groovy.json.JsonSlurper
|
||||
|
||||
def flutterProjectRoot = rootProject.projectDir.parentFile
|
||||
|
||||
// Note: if this logic is changed, also change the logic in module_plugin_loader.gradle.
|
||||
// If this logic is changed, also change the logic in module_plugin_loader.gradle.
|
||||
def pluginsFile = new File(flutterProjectRoot, '.flutter-plugins-dependencies')
|
||||
if (!pluginsFile.exists()) {
|
||||
return
|
||||
|
||||
@@ -279,9 +279,8 @@ class FlutterPlugin implements Plugin<Project> {
|
||||
// Enables code shrinking, obfuscation, and optimization for only
|
||||
// your project's release build type.
|
||||
minifyEnabled true
|
||||
// Enables resource shrinking, which is performed by the
|
||||
// Android Gradle plugin.
|
||||
// NOTE: The resource shrinker can't be used for libraries.
|
||||
// Enables resource shrinking, which is performed by the Android Gradle plugin.
|
||||
// The resource shrinker can't be used for libraries.
|
||||
shrinkResources isBuiltAsApp(project)
|
||||
// Fallback to `android/app/proguard-rules.pro`.
|
||||
// This way, custom Proguard rules can be configured as needed.
|
||||
@@ -682,7 +681,7 @@ class FlutterPlugin implements Plugin<Project> {
|
||||
/**
|
||||
* Returns a Flutter build mode suitable for the specified Android buildType.
|
||||
*
|
||||
* Note: The BuildType DSL type is not public, and is therefore omitted from the signature.
|
||||
* The BuildType DSL type is not public, and is therefore omitted from the signature.
|
||||
*
|
||||
* @return "debug", "profile", or "release" (fall-back).
|
||||
*/
|
||||
|
||||
@@ -11,7 +11,7 @@ def moduleProjectRoot = project(':flutter').projectDir.parentFile.parentFile
|
||||
|
||||
def object = null;
|
||||
String flutterModulePath = project(':flutter').projectDir.parentFile.getAbsolutePath()
|
||||
// Note: if this logic is changed, also change the logic in app_plugin_loader.gradle.
|
||||
// If this logic is changed, also change the logic in app_plugin_loader.gradle.
|
||||
def pluginsFile = new File(moduleProjectRoot, '.flutter-plugins-dependencies')
|
||||
if (pluginsFile.exists()) {
|
||||
object = new JsonSlurper().parseText(pluginsFile.text)
|
||||
|
||||
@@ -461,8 +461,8 @@ final GradleHandledError minSdkVersionHandler = GradleHandledError(
|
||||
globals.printBox(
|
||||
'The plugin ${minSdkVersionMatch?.group(3)} requires a higher Android SDK version.\n'
|
||||
'$textInBold\n'
|
||||
"Note that your app won't be available to users running Android SDKs below ${minSdkVersionMatch?.group(2)}.\n"
|
||||
'Alternatively, try to find a version of this plugin that supports these lower versions of the Android SDK.\n'
|
||||
'Following this change, your app will not be available to users running Android SDKs below ${minSdkVersionMatch?.group(2)}.\n'
|
||||
'Consider searching for a version of this plugin that supports these lower versions of the Android SDK instead.\n'
|
||||
'For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration',
|
||||
title: _boxTitle,
|
||||
);
|
||||
|
||||
@@ -189,7 +189,7 @@ class Config {
|
||||
//
|
||||
// If the searched environment variables are not set, '.' is returned instead.
|
||||
//
|
||||
// Note that this is different from FileSystemUtils.homeDirPath.
|
||||
// This is different from [FileSystemUtils.homeDirPath].
|
||||
static String _userHomePath(Platform platform) {
|
||||
final String envKey = platform.isWindows ? 'APPDATA' : 'HOME';
|
||||
return platform.environment[envKey] ?? '.';
|
||||
|
||||
@@ -303,7 +303,7 @@ class CompositeTarget extends Target {
|
||||
///
|
||||
/// Example (Good):
|
||||
///
|
||||
/// Using the build mode to produce different output. Note that the action
|
||||
/// Using the build mode to produce different output. The action
|
||||
/// is still responsible for outputting a different file, as defined by the
|
||||
/// corresponding output [Source].
|
||||
///
|
||||
|
||||
@@ -117,7 +117,7 @@ class ReleaseCopyFlutterBundle extends CopyFlutterBundle {
|
||||
|
||||
/// Generate a snapshot of the dart code used in the program.
|
||||
///
|
||||
/// Note that this target depends on the `.dart_tool/package_config.json` file
|
||||
/// This target depends on the `.dart_tool/package_config.json` file
|
||||
/// even though it is not listed as an input. Pub inserts a timestamp into
|
||||
/// the file which causes unnecessary rebuilds, so instead a subset of the contents
|
||||
/// are used an input instead.
|
||||
|
||||
@@ -99,9 +99,8 @@ class BuildAarCommand extends BuildSubCommand {
|
||||
final String description = 'Build a repository containing an AAR and a POM file.\n\n'
|
||||
'By default, AARs are built for `release`, `debug` and `profile`.\n'
|
||||
'The POM file is used to include the dependencies that the AAR was compiled against.\n'
|
||||
'To learn more about how to use these artifacts, see '
|
||||
'https://flutter.dev/go/build-aar\n'
|
||||
'Note: this command builds applications assuming that the entrypoint is lib/main.dart. '
|
||||
'To learn more about how to use these artifacts, see: https://flutter.dev/go/build-aar\n'
|
||||
'This command assumes that the entrypoint is "lib/main.dart". '
|
||||
'This cannot currently be configured.';
|
||||
|
||||
@override
|
||||
|
||||
@@ -166,11 +166,11 @@ class CustomDevicePortForwarder extends DevicePortForwarder {
|
||||
|
||||
final Completer<ForwardedPort?> completer = Completer<ForwardedPort?>();
|
||||
|
||||
// read the outputs of the process, if we find a line that matches
|
||||
// Read the outputs of the process; if we find a line that matches
|
||||
// the configs forwardPortSuccessRegex, we complete with a successfully
|
||||
// forwarded port
|
||||
// Note that if that regex never matches, this will potentially run forever
|
||||
// and the forwarding will never complete
|
||||
// forwarded port.
|
||||
// If that regex never matches, this will potentially run forever
|
||||
// and the forwarding will never complete.
|
||||
final CustomDeviceLogReader reader = CustomDeviceLogReader(_deviceName)..listenToProcessOutput(process);
|
||||
final StreamSubscription<String> logLinesSubscription = reader.logLines.listen((String line) {
|
||||
if (_forwardPortSuccessRegex.hasMatch(line) && !completer.isCompleted) {
|
||||
|
||||
@@ -278,7 +278,7 @@ abstract class DeviceManager {
|
||||
// user only typed 'flutter run' and both an Android device and desktop
|
||||
// device are available, choose the Android device.
|
||||
|
||||
// Note: ephemeral is nullable for device types where this is not well
|
||||
// Ephemeral is nullable for device types where this is not well
|
||||
// defined.
|
||||
final List<Device> ephemeralDevices = <Device>[
|
||||
for (final Device device in devices)
|
||||
|
||||
@@ -696,7 +696,7 @@ class FuchsiaDevice extends Device {
|
||||
Future<int> findIsolatePort(String isolateName, List<int> ports) async {
|
||||
for (final int port in ports) {
|
||||
try {
|
||||
// Note: The square-bracket enclosure for using the IPv6 loopback
|
||||
// The square-bracket enclosure for using the IPv6 loopback
|
||||
// didn't appear to work, but when assigning to the IPv4 loopback device,
|
||||
// netstat shows that the local port is actually being used on the IPv6
|
||||
// loopback (::1).
|
||||
@@ -848,7 +848,7 @@ class _FuchsiaPortForwarder extends DevicePortForwarder {
|
||||
throwToolExit('Cannot interact with device. No ssh config.\n'
|
||||
'Try setting FUCHSIA_SSH_CONFIG or FUCHSIA_BUILD_DIR.');
|
||||
}
|
||||
// Note: the provided command works around a bug in -N, see US-515
|
||||
// The provided command works around a bug in -N, see US-515
|
||||
// for more explanation.
|
||||
final List<String> command = <String>[
|
||||
'ssh',
|
||||
|
||||
@@ -181,7 +181,7 @@ Future<List<String>> _xcodeBuildSettingsLines({
|
||||
// Tell Xcode not to build universal binaries for local engines, which are
|
||||
// single-architecture.
|
||||
//
|
||||
// NOTE: this assumes that local engine binary paths are consistent with
|
||||
// This assumes that local engine binary paths are consistent with
|
||||
// the conventions uses in the engine: 32-bit iOS engines are built to
|
||||
// paths ending in _arm, 64-bit builds are not.
|
||||
|
||||
|
||||
@@ -1034,7 +1034,7 @@ void log(logging.LogRecord event) {
|
||||
if (event.level >= logging.Level.SEVERE) {
|
||||
globals.printError('${event.loggerName}: ${event.message}$error', stackTrace: event.stackTrace);
|
||||
} else if (event.level == logging.Level.WARNING) {
|
||||
// Note: Temporary fix for https://github.com/flutter/flutter/issues/109792
|
||||
// Temporary fix for https://github.com/flutter/flutter/issues/109792
|
||||
// TODO(annagrin): Remove the condition after the bogus warning is
|
||||
// removed in dwds: https://github.com/dart-lang/webdev/issues/1722
|
||||
if (!event.message.contains('No module for')) {
|
||||
|
||||
@@ -617,8 +617,7 @@ class LocalizationsGenerator {
|
||||
/// locales, the difference is negligible, and might slow down the start up
|
||||
/// compared to bundling the localizations with the rest of the application.
|
||||
///
|
||||
/// Note that this flag does not affect other platforms such as mobile or
|
||||
/// desktop.
|
||||
/// This flag does not affect other platforms such as mobile or desktop.
|
||||
final bool useDeferredLoading;
|
||||
|
||||
/// Contains a map of each output language file to its corresponding content in
|
||||
|
||||
@@ -492,23 +492,24 @@ class Parser {
|
||||
ST.other: 'other',
|
||||
};
|
||||
|
||||
// Compress the syntax tree. Note that after
|
||||
// parse(lex(message)), the individual parts (ST.string, ST.placeholderExpr,
|
||||
// ST.pluralExpr, and ST.selectExpr) are structured as a linked list See diagram
|
||||
// below. This
|
||||
// function compresses these parts into a single children array (and does this
|
||||
// for ST.pluralParts and ST.selectParts as well). Then it checks extra syntax
|
||||
// rules. Essentially, it converts
|
||||
// Compress the syntax tree.
|
||||
//
|
||||
// Message
|
||||
// / \
|
||||
// PluralExpr Message
|
||||
// / \
|
||||
// String Message
|
||||
// / \
|
||||
// SelectExpr ...
|
||||
// After `parse(lex(message))`, the individual parts (`ST.string`,
|
||||
// `ST.placeholderExpr`, `ST.pluralExpr`, and `ST.selectExpr`) are structured
|
||||
// as a linked list (see diagram below). This function compresses these parts
|
||||
// into a single children array (and does this for `ST.pluralParts` and
|
||||
// `ST.selectParts` as well). Then it checks extra syntax rules. Essentially, it
|
||||
// converts:
|
||||
//
|
||||
// to
|
||||
// Message
|
||||
// / \
|
||||
// PluralExpr Message
|
||||
// / \
|
||||
// String Message
|
||||
// / \
|
||||
// SelectExpr ...
|
||||
//
|
||||
// ...to:
|
||||
//
|
||||
// Message
|
||||
// / | \
|
||||
|
||||
@@ -24,8 +24,10 @@ import 'migrations/remove_macos_framework_link_and_embedding_migration.dart';
|
||||
/// Passing this regexp to trace moves the stdout output to stderr.
|
||||
///
|
||||
/// Filter out xcodebuild logging unrelated to macOS builds:
|
||||
/// ```
|
||||
/// xcodebuild[2096:1927385] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
|
||||
/// note: Using new build system
|
||||
/// ```
|
||||
final RegExp _filteredOutput = RegExp(r'^((?!Requested but did not find extension point with identifier|note\:).)*$');
|
||||
|
||||
/// Builds the macOS project through xcodebuild.
|
||||
|
||||
@@ -51,7 +51,7 @@ abstract class Usage {
|
||||
|
||||
/// Sends a 'command' to the underlying analytics implementation.
|
||||
///
|
||||
/// Note that using [command] above is preferred to ensure that the parameter
|
||||
/// Using [command] above is preferred to ensure that the parameter
|
||||
/// keys are well-defined in [CustomDimensions] above.
|
||||
void sendCommand(
|
||||
String command, {
|
||||
@@ -60,8 +60,8 @@ abstract class Usage {
|
||||
|
||||
/// Sends an 'event' to the underlying analytics implementation.
|
||||
///
|
||||
/// Note that this method should not be used directly, instead see the
|
||||
/// event types defined in this directory in events.dart.
|
||||
/// This method should not be used directly, instead see the
|
||||
/// event types defined in this directory in `events.dart`.
|
||||
@visibleForOverriding
|
||||
@visibleForTesting
|
||||
void sendEvent(
|
||||
|
||||
@@ -121,7 +121,7 @@ FlutterPlatform installHook({
|
||||
/// The [integrationTest] argument can be specified to generate the bootstrap
|
||||
/// for integration tests.
|
||||
///
|
||||
// NOTE: this API is used by the fuchsia source tree, do not add new
|
||||
// This API is used by the Fuchsia source tree, do not add new
|
||||
// required or position parameters.
|
||||
String generateTestBootstrap({
|
||||
required Uri testUrl,
|
||||
|
||||
@@ -174,7 +174,7 @@ class ChromiumLauncher {
|
||||
final String chromeExecutable = _browserFinder(_platform, _fileSystem);
|
||||
|
||||
if (_logger.isVerbose && !_platform.isWindows) {
|
||||
// Note: --version is not supported on windows.
|
||||
// The "--version" argument is not supported on Windows.
|
||||
final ProcessResult versionResult = await _processManager.run(<String>[chromeExecutable, '--version']);
|
||||
_logger.printTrace('Using ${versionResult.stdout}');
|
||||
}
|
||||
@@ -332,7 +332,7 @@ class ChromiumLauncher {
|
||||
/// Copy Chrome user information from a Chrome session into a per-project
|
||||
/// cache.
|
||||
///
|
||||
/// Note: more detailed docs of the Chrome user preferences store exists here:
|
||||
/// More detailed docs of the Chrome user preferences store exists here:
|
||||
/// https://www.chromium.org/developers/design-documents/preferences.
|
||||
///
|
||||
/// This intentionally skips the Cache, Code Cache, and GPUCache directories.
|
||||
@@ -419,9 +419,13 @@ class ChromiumLauncher {
|
||||
|
||||
/// Gets the first [chrome] tab.
|
||||
///
|
||||
/// Note: Retry getting tabs from Chrome for a few seconds and retry finding
|
||||
/// the tab a few times. This prevents flakes caused by Chrome not returning
|
||||
/// Retries getting tabs from Chrome for a few seconds and retries finding
|
||||
/// the tab a few times. This reduces flakes caused by Chrome not returning
|
||||
/// correct output if the call was too close to the start.
|
||||
//
|
||||
// TODO(ianh): remove the timeouts here, they violate our style guide.
|
||||
// (We should just keep waiting forever, and print a warning when it's
|
||||
// taking too long.)
|
||||
Future<ChromeTab?> _getFirstTab(Chromium chrome) async {
|
||||
const Duration retryFor = Duration(seconds: 2);
|
||||
const int attempts = 5;
|
||||
|
||||
@@ -808,9 +808,9 @@ assembleProfile
|
||||
'│ } │\n'
|
||||
'│ } │\n'
|
||||
'│ │\n'
|
||||
"│ Note that your app won't be available to users running Android SDKs below 19. │\n"
|
||||
'│ Alternatively, try to find a version of this plugin that supports these lower versions of the │\n'
|
||||
'│ Android SDK. │\n'
|
||||
'│ Following this change, your app will not be available to users running Android SDKs below 19. │\n'
|
||||
'│ Consider searching for a version of this plugin that supports these lower versions of the │\n'
|
||||
'│ Android SDK instead. │\n'
|
||||
'│ For more information, see: │\n'
|
||||
'│ https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration │\n'
|
||||
'└───────────────────────────────────────────────────────────────────────────────────────────────┘\n'
|
||||
|
||||
@@ -458,6 +458,7 @@ void main() {
|
||||
'LANG': 'en_US.UTF-8',
|
||||
},
|
||||
exitCode: 1,
|
||||
// This output is the output that a real CocoaPods install would generate.
|
||||
stdout: '''
|
||||
[!] Unable to satisfy the following requirements:
|
||||
|
||||
@@ -481,8 +482,7 @@ Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by
|
||||
), throwsToolExit());
|
||||
expect(
|
||||
logger.errorText,
|
||||
contains(
|
||||
"CocoaPods's specs repository is too out-of-date to satisfy dependencies"),
|
||||
contains("CocoaPods's specs repository is too out-of-date to satisfy dependencies"),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -2465,8 +2465,8 @@ flutter:
|
||||
}));
|
||||
}
|
||||
|
||||
// NOTE: implements [dds.DartDevelopmentService] and NOT [DartDevelopmentService]
|
||||
// from package:flutter_tools.
|
||||
// This implements [dds.DartDevelopmentService], not the [DartDevelopmentService]
|
||||
// interface from package:flutter_tools.
|
||||
class FakeDartDevelopmentService extends Fake implements dds.DartDevelopmentService {
|
||||
@override
|
||||
Future<void> get done => Future<void>.value();
|
||||
|
||||
@@ -275,13 +275,13 @@ abstract class FlutterTestDriver {
|
||||
///
|
||||
/// Returns a future that completes when the [kind] event is received.
|
||||
///
|
||||
/// Note that this method should be called before the command that triggers
|
||||
/// This method should be called before the command that triggers
|
||||
/// the event to subscribe to the event in time, for example:
|
||||
///
|
||||
/// ```
|
||||
/// var event = subscribeToDebugEvent('Pause', id); // Subscribe to 'pause' events.
|
||||
/// ... // Code that pauses the app.
|
||||
/// await waitForDebugEvent('Pause', id, event); // Isolate is paused now.
|
||||
/// ```dart
|
||||
/// var event = subscribeToDebugEvent('Pause', id); // Subscribe to 'pause' events.
|
||||
/// ... // Code that pauses the app.
|
||||
/// await waitForDebugEvent('Pause', id, event); // Isolate is paused now.
|
||||
/// ```
|
||||
Future<Event> subscribeToDebugEvent(String kind, String isolateId) {
|
||||
_debugPrint('Start listening for $kind events');
|
||||
|
||||
Reference in New Issue
Block a user