Use AndroidX in new projects by default (#40925)

This commit is contained in:
Emmanuel Garcia
2019-09-20 08:29:21 -07:00
committed by GitHub
parent 96482eeb5c
commit f7173dcc60
8 changed files with 20 additions and 14 deletions

View File

@@ -141,7 +141,7 @@ class CreateCommand extends FlutterCommand {
argParser.addFlag(
'androidx',
negatable: true,
defaultsTo: false,
defaultsTo: true,
help: 'Generate a project using the AndroidX support libraries',
);
// Deprecated
@@ -398,7 +398,7 @@ class CreateCommand extends FlutterCommand {
final String relativeDirPath = fs.path.relative(projectDirPath);
if (!projectDir.existsSync() || projectDir.listSync().isEmpty) {
printStatus('Creating project $relativeDirPath...');
printStatus('Creating project $relativeDirPath... androidx: ${argResults['androidx']}');
} else {
if (sampleCode != null && !argResults['overwrite']) {
throwToolExit('Will not overwrite existing project in $relativeDirPath: '