Fixed few typos (#147087)

Here's another PR with a couple of typos fixed. As you can see there was a typo in _fileReferenceI**n**dentifiers_, in class _ParsedProjectInfo._ Maybe we should do some check on that since I'm not sure if that property is used somewhere outside Flutter?
This commit is contained in:
Anis Alibegić
2024-04-22 18:49:19 +02:00
committed by GitHub
parent d737b7bae0
commit 140edb9883
25 changed files with 64 additions and 64 deletions

View File

@@ -1148,9 +1148,9 @@ class FlutterPlugin implements Plugin<Project> {
bundleSkSLPathValue = project.property(propBundleSkslPath)
}
String performanceMeasurementFileValue
final String propPerformanceMesaurementFile = "performance-measurement-file"
if (project.hasProperty(propPerformanceMesaurementFile)) {
performanceMeasurementFileValue = project.property(propPerformanceMesaurementFile)
final String propPerformanceMeasurementFile = "performance-measurement-file"
if (project.hasProperty(propPerformanceMeasurementFile)) {
performanceMeasurementFileValue = project.property(propPerformanceMeasurementFile)
}
String codeSizeDirectoryValue
final String propCodeSizeDirectory = "code-size-directory"

View File

@@ -43,31 +43,31 @@ class SwiftPackageManagerIntegrationMigration extends ProjectMigrator {
final File _xcodeProjectInfoFile;
final PlistParser _plistParser;
/// New identifer for FlutterGeneratedPluginSwiftPackage PBXBuildFile.
/// New identifier for FlutterGeneratedPluginSwiftPackage PBXBuildFile.
static const String _flutterPluginsSwiftPackageBuildFileIdentifier = '78A318202AECB46A00862997';
/// New identifer for FlutterGeneratedPluginSwiftPackage XCLocalSwiftPackageReference.
/// New identifier for FlutterGeneratedPluginSwiftPackage XCLocalSwiftPackageReference.
static const String _localFlutterPluginsSwiftPackageReferenceIdentifer = '781AD8BC2B33823900A9FFBB';
/// New identifer for FlutterGeneratedPluginSwiftPackage XCSwiftPackageProductDependency.
/// New identifier for FlutterGeneratedPluginSwiftPackage XCSwiftPackageProductDependency.
static const String _flutterPluginsSwiftPackageProductDependencyIdentifer = '78A3181F2AECB46A00862997';
/// Existing iOS identifer for Runner PBXFrameworksBuildPhase.
/// Existing iOS identifier for Runner PBXFrameworksBuildPhase.
static const String _iosRunnerFrameworksBuildPhaseIdentifer = '97C146EB1CF9000F007C117D';
/// Existing macOS identifer for Runner PBXFrameworksBuildPhase.
/// Existing macOS identifier for Runner PBXFrameworksBuildPhase.
static const String _macosRunnerFrameworksBuildPhaseIdentifer = '33CC10EA2044A3C60003C045';
/// Existing iOS identifer for Runner PBXNativeTarget.
/// Existing iOS identifier for Runner PBXNativeTarget.
static const String _iosRunnerNativeTargetIdentifer = '97C146ED1CF9000F007C117D';
/// Existing macOS identifer for Runner PBXNativeTarget.
/// Existing macOS identifier for Runner PBXNativeTarget.
static const String _macosRunnerNativeTargetIdentifer = '33CC10EC2044A3C60003C045';
/// Existing iOS identifer for Runner PBXProject.
/// Existing iOS identifier for Runner PBXProject.
static const String _iosProjectIdentifier = '97C146E61CF9000F007C117D';
/// Existing macOS identifer for Runner PBXProject.
/// Existing macOS identifier for Runner PBXProject.
static const String _macosProjectIdentifier = '33CC10E52044A3C60003C045';
File get backupProjectSettings => _fileSystem
@@ -160,7 +160,7 @@ class SwiftPackageManagerIntegrationMigration extends ProjectMigrator {
// TODO(vashworth): Add link to instructions on how to manually integrate
// once available on website.
throwToolExit(
'An error occured when adding Swift Package Manager integration:\n'
'An error occurred when adding Swift Package Manager integration:\n'
' $e\n\n'
'Swift Package Manager is currently an experimental feature, please file a bug at\n'
' https://github.com/flutter/flutter/issues/new?template=1_activation.yml \n'
@@ -842,7 +842,7 @@ class SchemeInfo {
class ParsedProjectInfo {
ParsedProjectInfo._({
required this.buildFileIdentifiers,
required this.fileReferenceIndentifiers,
required this.fileReferenceIdentifiers,
required this.parsedGroups,
required this.frameworksBuildPhases,
required this.nativeTargets,
@@ -896,7 +896,7 @@ class ParsedProjectInfo {
return ParsedProjectInfo._(
buildFileIdentifiers: buildFiles,
fileReferenceIndentifiers: references,
fileReferenceIdentifiers: references,
parsedGroups: groups,
frameworksBuildPhases: buildPhases,
nativeTargets: native,
@@ -911,7 +911,7 @@ class ParsedProjectInfo {
List<String> buildFileIdentifiers;
/// List of identifiers under PBXFileReference section.
List<String> fileReferenceIndentifiers;
List<String> fileReferenceIdentifiers;
/// List of [ParsedProjectGroup] items under PBXGroup section.
List<ParsedProjectGroup> parsedGroups;

View File

@@ -298,7 +298,7 @@ Transformation failed, but I forgot to exit with a non-zero code.'''
expect(fileSystem.directory('.tmp_rand0').listSync(), isEmpty, reason: 'Transformer did not clean up after itself.');
});
testWithoutContext('prints an error when a transformer in a chain (thats not the first) does not produce an output', () async {
testWithoutContext("prints an error when a transformer in a chain (that's not the first) does not produce an output", () async {
final FileSystem fileSystem = MemoryFileSystem();
final Artifacts artifacts = Artifacts.test();

View File

@@ -87,7 +87,7 @@ void main() {
returnsNormally);
});
testUsingContext('printEmulators prints the emualtors information with header', () {
testUsingContext('printEmulators prints the emulators information with header', () {
Emulator.printEmulators(emulators, testLogger);
expect(testLogger.statusText, '''

View File

@@ -54,12 +54,12 @@ void main() {
expectedLines: _expectedLines(
platform: platformName,
appDirectoryPath: appDirectoryPath,
cococapodsPlugin: integrationTestPlugin,
cocoaPodsPlugin: integrationTestPlugin,
),
unexpectedLines: _unexpectedLines(
platform: platformName,
appDirectoryPath: appDirectoryPath,
cococapodsPlugin: integrationTestPlugin,
cocoaPodsPlugin: integrationTestPlugin,
),
);
expect(
@@ -164,14 +164,14 @@ void main() {
expectedLines: _expectedLines(
platform: platformName,
appDirectoryPath: appDirectoryPath,
cococapodsPlugin: createdCocoaPodsPlugin,
cocoaPodsPlugin: createdCocoaPodsPlugin,
swiftPackageMangerEnabled: true,
swiftPackagePlugin: integrationTestPlugin,
),
unexpectedLines: _unexpectedLines(
platform: platformName,
appDirectoryPath: appDirectoryPath,
cococapodsPlugin: createdCocoaPodsPlugin,
cocoaPodsPlugin: createdCocoaPodsPlugin,
swiftPackageMangerEnabled: true,
swiftPackagePlugin: integrationTestPlugin,
),
@@ -208,12 +208,12 @@ void main() {
expectedLines: _expectedLines(
platform: platformName,
appDirectoryPath: appDirectoryPath,
cococapodsPlugin: integrationTestPlugin,
cocoaPodsPlugin: integrationTestPlugin,
),
unexpectedLines: _unexpectedLines(
platform: platformName,
appDirectoryPath: appDirectoryPath,
cococapodsPlugin: integrationTestPlugin,
cocoaPodsPlugin: integrationTestPlugin,
),
);
@@ -229,12 +229,12 @@ void main() {
expectedLines: _expectedLines(
platform: platformName,
appDirectoryPath: appDirectoryPath,
cococapodsPlugin: integrationTestPlugin,
cocoaPodsPlugin: integrationTestPlugin,
),
unexpectedLines: _unexpectedLines(
platform: platformName,
appDirectoryPath: appDirectoryPath,
cococapodsPlugin: integrationTestPlugin,
cocoaPodsPlugin: integrationTestPlugin,
),
);
} finally {
@@ -679,7 +679,7 @@ _Plugin _integrationTestPlugin(String platform) {
List<Pattern> _expectedLines({
required String platform,
required String appDirectoryPath,
_Plugin? cococapodsPlugin,
_Plugin? cocoaPodsPlugin,
_Plugin? swiftPackagePlugin,
bool swiftPackageMangerEnabled = false,
}) {
@@ -710,14 +710,14 @@ List<Pattern> _expectedLines({
]);
}
}
if (cococapodsPlugin != null) {
if (cocoaPodsPlugin != null) {
expectedLines.addAll(<String>[
'Running pod install...',
'-> Installing $frameworkName (1.0.0)',
'-> Installing ${cococapodsPlugin.pluginName} (0.0.1)',
'-> Installing ${cocoaPodsPlugin.pluginName} (0.0.1)',
"Target 'Pods-Runner' in project 'Pods'",
"➜ Explicit dependency on target '$frameworkName' in project 'Pods'",
"➜ Explicit dependency on target '${cococapodsPlugin.pluginName}' in project 'Pods'",
"➜ Explicit dependency on target '${cocoaPodsPlugin.pluginName}' in project 'Pods'",
]);
}
return expectedLines;
@@ -726,13 +726,13 @@ List<Pattern> _expectedLines({
List<String> _unexpectedLines({
required String platform,
required String appDirectoryPath,
_Plugin? cococapodsPlugin,
_Plugin? cocoaPodsPlugin,
_Plugin? swiftPackagePlugin,
bool swiftPackageMangerEnabled = false,
}) {
final String frameworkName = platform == 'ios' ? 'Flutter' : 'FlutterMacOS';
final List<String> unexpectedLines = <String>[];
if (cococapodsPlugin == null) {
if (cocoaPodsPlugin == null) {
unexpectedLines.addAll(<String>[
'Running pod install...',
'-> Installing $frameworkName (1.0.0)',