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:
@@ -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:
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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).
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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>[];
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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,
|
||||
];
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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>[
|
||||
|
||||
@@ -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>[
|
||||
|
||||
@@ -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>[],
|
||||
|
||||
@@ -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>[
|
||||
|
||||
Reference in New Issue
Block a user