Fixed few typos (#141543)

I continued [my mission](https://github.com/flutter/flutter/pull/141431) to find as many typos as I could. This time it's a smaller set than before.

There is no need for issues since it's a typo fix.
This commit is contained in:
Anis Alibegić
2024-01-16 22:40:08 +01:00
committed by GitHub
parent b9aba43b44
commit e063f56832
38 changed files with 52 additions and 52 deletions

View File

@@ -833,7 +833,7 @@ class FlutterPlugin implements Plugin<Project> {
// Add a task that can be called on flutter projects that prints the Java version used in Gradle.
//
// Format of the output of this task can be used in debugging what version of Java Gradle is using.
// Not recomended for use in time sensitive commands like `flutter run` or `flutter build` as
// Not recommended for use in time sensitive commands like `flutter run` or `flutter build` as
// Gradle is slower than we want. Particularly in light of https://github.com/flutter/flutter/issues/119196.
private static void addTaskForJavaVersion(Project project) {
// Warning: the name of this task is used by other code. Change with caution.
@@ -1043,7 +1043,7 @@ class FlutterPlugin implements Plugin<Project> {
*
* The AGP team said that this issue is fixed in Gradle 7.0, which isn't released at the
* time of adding this code. Once released, this can be removed. However, after updating to
* AGP/Gradle 7.2.0/7.5, removing this hack still causes build failures. Futher
* AGP/Gradle 7.2.0/7.5, removing this hack still causes build failures. Further
* investigation necessary to remove this.
*
* Tested cases:

View File

@@ -570,7 +570,7 @@ bool validateJavaAndGradle(Logger logger,
/// Returns compatibility information for the valid range of Gradle versions for
/// the specified Java version.
///
/// Returns null when the tooling has not documented the compatibile Gradle
/// Returns null when the tooling has not documented the compatible Gradle
/// versions for the Java version (either the version is too old or too new). If
/// this seems like a mistake, the caller may need to update the
/// [_javaGradleCompatList] detailing Java/Gradle compatibility.

View File

@@ -111,7 +111,7 @@ abstract class FlutterBaseDebugAdapter extends DartDebugAdapter<FlutterLaunchReq
// terminating, however for Flutter apps it may be running on a remote
// device so it's not valid to terminate a process with that pid locally.
// For attach, pids should never be collected as terminateRequest() should
// not terminate the debugee.
// not terminate the debugger.
}
/// Called by [disconnectRequest] to request that we forcefully shut down the app being run (or in the case of an attach, disconnect).

View File

@@ -427,7 +427,7 @@ class Doctor {
final DoctorValidator subValidator = validator.subValidators[i];
// Ensure that all of the subvalidators in the group have
// a corresponding subresult incase a validator crashed
// a corresponding subresult in case a validator crashed
final ValidationResult subResult;
try {
subResult = validator.subResults[i];

View File

@@ -77,7 +77,7 @@ class XCResultGenerator {
/// This is the result from an `xcrun xcresulttool get --path <resultPath> --format json` run.
/// The result contains useful information such as build errors and warnings.
class XCResult {
/// Parse the `resultJson` and stores useful informations in the returned `XCResult`.
/// Parse the `resultJson` and stores useful information in the returned `XCResult`.
factory XCResult({required Map<String, Object?> resultJson, List<XCResultIssueDiscarder> issueDiscarders = const <XCResultIssueDiscarder>[]}) {
final List<XCResultIssue> issues = <XCResultIssue>[];

View File

@@ -322,7 +322,7 @@ Future<Uri?> dryRunNativeAssets({
required List<FlutterDevice> flutterDevices,
}) async {
if (flutterDevices.length != 1) {
return dryRunNativeAssetsMultipeOSes(
return dryRunNativeAssetsMultipleOSes(
projectUri: projectUri,
fileSystem: fileSystem,
targetPlatforms: flutterDevices.map((FlutterDevice d) => d.targetPlatform).nonNulls,
@@ -412,7 +412,7 @@ Future<Uri?> dryRunNativeAssets({
/// Dry run the native builds for multiple OSes.
///
/// Needed for `flutter run -d all`.
Future<Uri?> dryRunNativeAssetsMultipeOSes({
Future<Uri?> dryRunNativeAssetsMultipleOSes({
required NativeAssetsBuildRunner buildRunner,
required Uri projectUri,
required FileSystem fileSystem,

View File

@@ -35,7 +35,7 @@ android {
// Use the NDK version
// declared in /android/app/build.gradle file of the Flutter project.
// Replace it with a version number if this plugin requires a specfic NDK version.
// Replace it with a version number if this plugin requires a specific NDK version.
// (e.g. ndkVersion "23.1.7779620")
ndkVersion android.ndkVersion

View File

@@ -1122,7 +1122,7 @@ void main() {
fileSystem = MemoryFileSystem.test(style: FileSystemStyle.windows);
});
testUsingContext('choses the install with the latest version', () {
testUsingContext('chooses the install with the latest version', () {
const List<String> versions = <String> [
'4.0',
'2022.0',
@@ -1167,7 +1167,7 @@ void main() {
ProcessManager: () => FakeProcessManager.any(),
});
testUsingContext('choses install with lexicographically greatest directory if no installs have known versions', () {
testUsingContext('chooses install with lexicographically greatest directory if no installs have known versions', () {
const List<String> versions = <String> [
'Apple',
'Zucchini',
@@ -1190,7 +1190,7 @@ void main() {
ProcessManager: () => FakeProcessManager.any(),
});
testUsingContext('choses install with lexicographically greatest directory if all installs have the same version', () {
testUsingContext('chooses install with lexicographically greatest directory if all installs have the same version', () {
fileSystem.file(r'C:\Users\Dash\AppData\Local\Google\AndroidStudioPreview4.0\.home')
..createSync(recursive: true)
..writeAsStringSync(r'C:\Program Files\AndroidStudioPreview4.0');

View File

@@ -131,7 +131,7 @@ void main() {
});
testWithoutContext(
'injects the wrapper and the Gradle version is derivated from the AGP version',
'injects the wrapper and the Gradle version is derived from the AGP version',
() {
const Map<String, String> testCases = <String, String>{
// AGP version : Gradle version

View File

@@ -97,7 +97,7 @@ void main() {
for (final bool isNativeAssetsEnabled in <bool>[true, false]) {
final String postFix = isNativeAssetsEnabled ? 'enabled' : 'disabled';
testUsingContext(
'Successfull native_assets.yaml and native_assets.d creation with feature $postFix',
'Successful native_assets.yaml and native_assets.d creation with feature $postFix',
overrides: <Type, Generator>{
FileSystem: () => fileSystem,
ProcessManager: () => processManager,

View File

@@ -430,7 +430,7 @@ void main() {
);
});
testWithoutContext('selects user selected implementation despites default implementation', () async {
testWithoutContext('selects user selected implementation despite default implementation', () async {
final Set<String> directDependencies = <String>{
'user_selected_url_launcher_implementation',
'url_launcher',

View File

@@ -531,7 +531,7 @@ void main() {
]);
});
testUsingContext('Unconnencted devices filtered out by default', () async {
testUsingContext('Unconnected devices filtered out by default', () async {
final List<Device> devices = <Device>[
unconnectedDevice,
];

View File

@@ -683,7 +683,7 @@ void main() {
);
final OperationResult result = await hotRunner.restart(fullRestart: true);
expect(result.isOk, true);
// Hot restart does not require reruning anything for native assets.
// Hot restart does not require rerunning anything for native assets.
// The previous native assets mapping should be used.
expect(buildRunner.buildInvocations, 0);
expect(buildRunner.dryRunInvocations, 0);

View File

@@ -335,7 +335,7 @@ void main() {
});
group('in release mode', () {
testUsingContext('suceeds when install and launch succeed', () async {
testUsingContext('succeeds when install and launch succeed', () async {
final IOSDevice iosDevice = setUpIOSDevice(
fileSystem: fileSystem,
processManager: FakeProcessManager.any(),

View File

@@ -108,7 +108,7 @@ void main() {
testUsingContext('dry run for multiple OSes with no package config', overrides: <Type, Generator>{
ProcessManager: () => FakeProcessManager.empty(),
}, () async {
await dryRunNativeAssetsMultipeOSes(
await dryRunNativeAssetsMultipleOSes(
projectUri: projectUri,
fileSystem: fileSystem,
targetPlatforms: <TargetPlatform>[

View File

@@ -89,7 +89,7 @@ void main() {
testUsingContext('dry run for multiple OSes with no package config', overrides: <Type, Generator>{
ProcessManager: () => FakeProcessManager.empty(),
}, () async {
await dryRunNativeAssetsMultipeOSes(
await dryRunNativeAssetsMultipleOSes(
projectUri: projectUri,
fileSystem: fileSystem,
targetPlatforms: <TargetPlatform>[

View File

@@ -782,7 +782,7 @@ void main() {
});
group('deviceNameMatchesTargetName', () {
testWithoutContext('compares case insensitive and without spaces, hypthens, .local', () {
testWithoutContext('compares case insensitive and without spaces, hyphens, .local', () {
final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery(
mdnsClient: FakeMDnsClient(
<PtrResourceRecord>[],

View File

@@ -89,7 +89,7 @@ void main() {
testUsingContext('dry run for multiple OSes with no package config', overrides: <Type, Generator>{
ProcessManager: () => FakeProcessManager.empty(),
}, () async {
await dryRunNativeAssetsMultipeOSes(
await dryRunNativeAssetsMultipleOSes(
projectUri: projectUri,
fileSystem: fileSystem,
targetPlatforms: <TargetPlatform>[