Reland: Update macOS configuration settings (#45966)

This commit is contained in:
Jonah Williams
2019-12-03 08:13:08 -08:00
committed by GitHub
parent 8e92ba07ce
commit 0b2bf99491
4 changed files with 23 additions and 27 deletions

View File

@@ -146,22 +146,6 @@ class CreateCommand extends FlutterCommand {
defaultsTo: true,
help: 'Generate a project using the AndroidX support libraries',
);
// Deprecated
argParser.addFlag(
'macos',
negatable: true,
defaultsTo: false,
hide: true,
help: 'Include support for building a macOS application',
);
// Deprecated
argParser.addFlag(
'web',
negatable: true,
defaultsTo: false,
hide: true,
help: 'Deprecated',
);
}
@override
@@ -406,7 +390,7 @@ class CreateCommand extends FlutterCommand {
androidLanguage: stringArg('android-language'),
iosLanguage: stringArg('ios-language'),
web: featureFlags.isWebEnabled,
macos: boolArg('macos'),
macos: featureFlags.isMacOSEnabled,
);
final String relativeDirPath = fs.path.relative(projectDirPath);

View File

@@ -106,6 +106,10 @@ const Feature flutterMacOSDesktopFeature = Feature(
available: true,
enabledByDefault: false,
),
dev: FeatureChannelSetting(
available: true,
enabledByDefault: false,
),
);
/// The [Feature] for Linux desktop.