[flutter_tools] Use proper project name in templates (#96373)
This commit is contained in:
@@ -436,7 +436,7 @@ Your $application code is in $relativeAppMain.
|
||||
int generatedCount = 0;
|
||||
final String description = argResults.wasParsed('description')
|
||||
? stringArg('description')
|
||||
: 'A new flutter module project.';
|
||||
: 'A new Flutter module project.';
|
||||
templateContext['description'] = description;
|
||||
generatedCount += await renderTemplate(
|
||||
globals.fs.path.join('module', 'common'),
|
||||
@@ -515,7 +515,7 @@ Your $application code is in $relativeAppMain.
|
||||
int generatedCount = 0;
|
||||
final String description = argResults.wasParsed('description')
|
||||
? stringArg('description')
|
||||
: 'A new flutter plugin project.';
|
||||
: 'A new Flutter plugin project.';
|
||||
templateContext['description'] = description;
|
||||
generatedCount += await renderMerged(
|
||||
<String>['plugin', 'plugin_shared'],
|
||||
|
||||
@@ -1488,7 +1488,7 @@ class LogMessage {
|
||||
final StackTrace stackTrace;
|
||||
}
|
||||
|
||||
/// The method by which the flutter app was launched.
|
||||
/// The method by which the Flutter app was launched.
|
||||
class LaunchMode {
|
||||
const LaunchMode._(this._value);
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ class UpgradeCommand extends FlutterCommand {
|
||||
)
|
||||
..addFlag(
|
||||
'verify-only',
|
||||
help: 'Checks for any new flutter updates, without actually fetching them.',
|
||||
help: 'Checks for any new Flutter updates, without actually fetching them.',
|
||||
negatable: false,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -465,7 +465,7 @@ abstract class PollingDeviceDiscovery extends DeviceDiscovery {
|
||||
String toString() => '$name device discovery';
|
||||
}
|
||||
|
||||
/// A device is a physical hardware that can run a flutter application.
|
||||
/// A device is a physical hardware that can run a Flutter application.
|
||||
///
|
||||
/// This may correspond to a connected iOS or Android device, or represent
|
||||
/// the host operating system in the case of Flutter Desktop.
|
||||
@@ -622,7 +622,7 @@ abstract class Device {
|
||||
/// Whether this device implements support for hot restart.
|
||||
bool get supportsHotRestart => true;
|
||||
|
||||
/// Whether flutter applications running on this device can be terminated
|
||||
/// Whether Flutter applications running on this device can be terminated
|
||||
/// from the VM Service.
|
||||
bool get supportsFlutterExit => true;
|
||||
|
||||
|
||||
@@ -530,7 +530,7 @@ const String _pluginRegistrantPodspecTemplate = '''
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'FlutterPluginRegistrant'
|
||||
s.version = '0.0.1'
|
||||
s.summary = 'Registers plugins with your flutter app'
|
||||
s.summary = 'Registers plugins with your Flutter app'
|
||||
s.description = <<-DESC
|
||||
Depends on all your plugins, and provides a function to register them.
|
||||
DESC
|
||||
|
||||
@@ -297,7 +297,7 @@ Future<XcodeBuildResult> buildXcodeProject({
|
||||
if (activeArchName != null) {
|
||||
buildCommands.add('ONLY_ACTIVE_ARCH=YES');
|
||||
// Setting ARCHS to $activeArchName will break the build if a watchOS companion app exists,
|
||||
// as it cannot be build for the architecture of the flutter app.
|
||||
// as it cannot be build for the architecture of the Flutter app.
|
||||
if (!hasWatchCompanion) {
|
||||
buildCommands.add('ARCHS=$activeArchName');
|
||||
}
|
||||
|
||||
@@ -709,7 +709,7 @@ class FlutterVmService {
|
||||
isolateId: isolateId,
|
||||
);
|
||||
// A response of `null` indicates that `invokeFlutterExtensionRpcRaw` caught an RPCError
|
||||
// with a missing method code. This can happen when attempting to quit a flutter app
|
||||
// with a missing method code. This can happen when attempting to quit a Flutter app
|
||||
// that never registered the methods in the bindings.
|
||||
if (result == null) {
|
||||
return false;
|
||||
|
||||
@@ -118,7 +118,7 @@ class IosProject extends XcodeBasedProject {
|
||||
/// True, if the parent Flutter project is a module project.
|
||||
bool get isModule => parent.isModule;
|
||||
|
||||
/// Whether the flutter application has an iOS project.
|
||||
/// Whether the Flutter application has an iOS project.
|
||||
bool get exists => hostAppRoot.existsSync();
|
||||
|
||||
/// Put generated files here.
|
||||
|
||||
Reference in New Issue
Block a user