update for flutter 3.7.0 (#158)
Signed-off-by: Hidenori Matsubayashi <[email protected]>
This commit is contained in:
@@ -1,15 +1,23 @@
|
||||
// Copyright 2021 Sony Group Corporation. All rights reserved.
|
||||
// Copyright 2023 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.
|
||||
|
||||
// @dart = 2.8
|
||||
|
||||
import 'package:flutter_tools/src/commands/attach.dart';
|
||||
|
||||
import '../elinux_plugins.dart';
|
||||
|
||||
class ELinuxAttachCommand extends AttachCommand with ELinuxExtension {
|
||||
ELinuxAttachCommand({bool verboseHelp = false})
|
||||
: super(verboseHelp: verboseHelp);
|
||||
ELinuxAttachCommand({
|
||||
super.verboseHelp,
|
||||
super.hotRunnerFactory,
|
||||
required super.artifacts,
|
||||
required super.stdio,
|
||||
required super.logger,
|
||||
required super.terminal,
|
||||
required super.signals,
|
||||
required super.platform,
|
||||
required super.processInfo,
|
||||
required super.fileSystem,
|
||||
});
|
||||
}
|
||||
|
||||
+13
-3
@@ -1,4 +1,4 @@
|
||||
// Copyright 2022 Sony Group Corporation. All rights reserved.
|
||||
// Copyright 2023 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.
|
||||
@@ -22,7 +22,14 @@ import '../elinux_plugins.dart';
|
||||
|
||||
class ELinuxBuildCommand extends BuildCommand {
|
||||
ELinuxBuildCommand({bool verboseHelp = false})
|
||||
: super(verboseHelp: verboseHelp) {
|
||||
: super(
|
||||
fileSystem: globals.fs,
|
||||
buildSystem: globals.buildSystem,
|
||||
osUtils: globals.os,
|
||||
verboseHelp: verboseHelp,
|
||||
androidSdk: globals.androidSdk,
|
||||
logger: globals.logger,
|
||||
) {
|
||||
addSubcommand(BuildPackageCommand(verboseHelp: verboseHelp));
|
||||
}
|
||||
}
|
||||
@@ -31,7 +38,10 @@ class BuildPackageCommand extends BuildSubCommand
|
||||
with ELinuxExtension, ELinuxRequiredArtifacts {
|
||||
/// See: [BuildApkCommand] in `build_apk.dart`
|
||||
BuildPackageCommand({bool verboseHelp = false})
|
||||
: super(verboseHelp: verboseHelp) {
|
||||
: super(
|
||||
verboseHelp: verboseHelp,
|
||||
logger: globals.logger,
|
||||
) {
|
||||
addCommonDesktopBuildOptions(verboseHelp: verboseHelp);
|
||||
argParser.addOption(
|
||||
'target-arch',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 Sony Group Corporation. All rights reserved.
|
||||
// Copyright 2023 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.
|
||||
@@ -19,5 +19,6 @@ class ELinuxDriveCommand extends DriveCommand
|
||||
fileSystem: globals.fs,
|
||||
logger: globals.logger,
|
||||
platform: globals.platform,
|
||||
signals: globals.signals,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 Sony Group Corporation. All rights reserved.
|
||||
// Copyright 2023 Sony Group Corporation. 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
|
||||
// found in the LICENSE file.
|
||||
@@ -16,6 +16,7 @@ import 'package:flutter_tools/src/cache.dart';
|
||||
import 'package:flutter_tools/src/commands/upgrade.dart';
|
||||
import 'package:flutter_tools/src/dart/pub.dart';
|
||||
import 'package:flutter_tools/src/globals.dart' as globals;
|
||||
import 'package:flutter_tools/src/project.dart';
|
||||
import 'package:flutter_tools/src/runner/flutter_command.dart';
|
||||
|
||||
import 'package:meta/meta.dart';
|
||||
@@ -315,9 +316,9 @@ class ELinuxUpgradeCommandRunner {
|
||||
globals.printStatus('');
|
||||
await pub.get(
|
||||
context: PubContext.pubUpgrade,
|
||||
directory: projectRoot,
|
||||
project:
|
||||
FlutterProject.fromDirectory(globals.fs.directory(projectRoot)),
|
||||
upgrade: true,
|
||||
generateSyntheticPackage: false,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user