Update for flutter 3.3.0 (#130)
Signed-off-by: Hidenori Matsubayashi <[email protected]>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 Sony Group Corporation. All rights reserved.
|
||||
// Copyright 2022 Sony Group Corporation. All rights reserved.
|
||||
// Copyright 2020 Samsung Electronics Co., Ltd. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
import 'package:flutter_tools/src/commands/analyze.dart';
|
||||
import 'package:flutter_tools/src/globals.dart' as globals;
|
||||
import 'package:flutter_tools/src/project_validator.dart';
|
||||
|
||||
import '../elinux_plugins.dart';
|
||||
|
||||
@@ -20,5 +21,8 @@ class ELinuxAnalyzeCommand extends AnalyzeCommand with ELinuxExtension {
|
||||
logger: globals.logger,
|
||||
terminal: globals.terminal,
|
||||
artifacts: globals.artifacts,
|
||||
allProjectValidators: <ProjectValidator>[
|
||||
GeneralInfoProjectValidator()
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 Sony Group Corporation. All rights reserved.
|
||||
// Copyright 2022 Sony Group Corporation. All rights reserved.
|
||||
// Copyright 2020 Samsung Electronics Co., Ltd. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
@@ -33,7 +33,6 @@ class BuildPackageCommand extends BuildSubCommand
|
||||
BuildPackageCommand({bool verboseHelp = false})
|
||||
: super(verboseHelp: verboseHelp) {
|
||||
addCommonDesktopBuildOptions(verboseHelp: verboseHelp);
|
||||
usesBuildNameOption();
|
||||
argParser.addOption(
|
||||
'target-arch',
|
||||
defaultsTo: _getCurrentHostPlatformArchName(),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 Sony Group Corporation. All rights reserved.
|
||||
// Copyright 2022 Sony Group Corporation. All rights reserved.
|
||||
// Copyright 2020 Samsung Electronics Co., Ltd. All rights reserved.
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
@@ -8,10 +8,10 @@
|
||||
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:file/file.dart';
|
||||
import 'package:flutter_tools/src/base/common.dart';
|
||||
import 'package:flutter_tools/src/base/file_system.dart';
|
||||
import 'package:flutter_tools/src/base/terminal.dart';
|
||||
import 'package:flutter_tools/src/base/utils.dart';
|
||||
import 'package:flutter_tools/src/cache.dart';
|
||||
import 'package:flutter_tools/src/commands/create.dart';
|
||||
import 'package:flutter_tools/src/flutter_project_metadata.dart';
|
||||
@@ -108,10 +108,18 @@ class ELinuxCreateCommand extends CreateCommand {
|
||||
'Make sure your $relativePluginPath/pubspec.yaml contains the following lines.',
|
||||
color: TerminalColor.yellow,
|
||||
);
|
||||
|
||||
final String dartSdk = globals.cache.dartSdkBuild;
|
||||
|
||||
// The dart project_name is in snake_case, this variable is the Title Case of the Project Name.
|
||||
final String titleCaseProjectName = snakeCaseToTitleCase(projectName);
|
||||
|
||||
final Map<String, Object> templateContext = createTemplateContext(
|
||||
organization: '',
|
||||
projectName: projectName,
|
||||
flutterRoot: '',
|
||||
titleCaseProjectName: titleCaseProjectName,
|
||||
dartSdkVersionBounds: "'>=$dartSdk <3.0.0'",
|
||||
);
|
||||
globals.printStatus(
|
||||
'\nflutter:\n'
|
||||
|
||||
Reference in New Issue
Block a user