Use AndroidX in new projects by default (#40925)
This commit is contained in:
@@ -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: '
|
||||
|
||||
Reference in New Issue
Block a user