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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2022 Sony Group Corporation. All rights reserved.
|
||||
// Copyright 2023 Sony Group Corporation. All rights reserved.
|
||||
// Copyright 2021 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.
|
||||
@@ -6,23 +6,16 @@
|
||||
import 'package:file/file.dart';
|
||||
import 'package:flutter_tools/src/artifacts.dart';
|
||||
import 'package:flutter_tools/src/base/os.dart';
|
||||
import 'package:flutter_tools/src/base/platform.dart';
|
||||
import 'package:flutter_tools/src/build_info.dart';
|
||||
import 'package:flutter_tools/src/cache.dart';
|
||||
|
||||
class ELinuxArtifacts extends CachedArtifacts {
|
||||
ELinuxArtifacts({
|
||||
required FileSystem fileSystem,
|
||||
required Platform platform,
|
||||
required Cache cache,
|
||||
required OperatingSystemUtils operatingSystemUtils,
|
||||
}) : _cache = cache,
|
||||
super(
|
||||
fileSystem: fileSystem,
|
||||
platform: platform,
|
||||
cache: cache,
|
||||
operatingSystemUtils: operatingSystemUtils,
|
||||
);
|
||||
required super.fileSystem,
|
||||
required super.platform,
|
||||
required super.cache,
|
||||
required super.operatingSystemUtils,
|
||||
}) : _cache = cache;
|
||||
|
||||
final Cache _cache;
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ import 'package:flutter_tools/src/build_system/targets/android.dart';
|
||||
import 'package:flutter_tools/src/build_system/targets/assets.dart';
|
||||
import 'package:flutter_tools/src/build_system/targets/common.dart';
|
||||
import 'package:flutter_tools/src/build_system/targets/icon_tree_shaker.dart';
|
||||
import 'package:flutter_tools/src/build_system/targets/shader_compiler.dart';
|
||||
import 'package:flutter_tools/src/cache.dart';
|
||||
import 'package:flutter_tools/src/cmake.dart';
|
||||
import 'package:flutter_tools/src/globals.dart' as globals;
|
||||
@@ -95,6 +96,7 @@ abstract class ELinuxAssetBundle extends Target {
|
||||
outputDirectory,
|
||||
targetPlatform: tp,
|
||||
buildMode: buildMode,
|
||||
shaderTarget: ShaderTarget.sksl,
|
||||
);
|
||||
final DepfileService depfileService = DepfileService(
|
||||
fileSystem: environment.fileSystem,
|
||||
|
||||
@@ -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.
|
||||
@@ -12,6 +12,7 @@ import 'package:flutter_tools/src/cache.dart';
|
||||
import 'package:flutter_tools/src/features.dart';
|
||||
import 'package:flutter_tools/src/flutter_cache.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';
|
||||
|
||||
mixin ELinuxRequiredArtifacts on FlutterCommand {
|
||||
@@ -46,11 +47,13 @@ class ELinuxFlutterCache extends FlutterCache {
|
||||
required FileSystem fileSystem,
|
||||
required Platform platform,
|
||||
required OperatingSystemUtils osUtils,
|
||||
required FlutterProjectFactory projectFactory,
|
||||
}) : super(
|
||||
logger: logger,
|
||||
fileSystem: fileSystem,
|
||||
platform: platform,
|
||||
osUtils: osUtils) {
|
||||
osUtils: osUtils,
|
||||
projectFactory: projectFactory) {
|
||||
registerArtifact(ELinuxEngineArtifacts(this, platform: platform));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
@@ -6,11 +6,9 @@
|
||||
// @dart = 2.8
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter_tools/src/android/android_device.dart';
|
||||
import 'package:flutter_tools/src/base/common.dart';
|
||||
import 'package:flutter_tools/src/base/logger.dart';
|
||||
import 'package:flutter_tools/src/base/os.dart';
|
||||
import 'package:flutter_tools/src/base/process.dart';
|
||||
|
||||
@@ -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.
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
@@ -54,7 +54,6 @@ class ELinuxDeviceManager extends FlutterDeviceManager {
|
||||
macOSWorkflow: context.get<MacOSWorkflow>(),
|
||||
fuchsiaSdk: globals.fuchsiaSdk,
|
||||
operatingSystemUtils: globals.os,
|
||||
terminal: globals.terminal,
|
||||
customDevicesConfig: CustomDevicesConfig(
|
||||
fileSystem: globals.fs,
|
||||
logger: globals.logger,
|
||||
|
||||
+19
-5
@@ -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.
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
@@ -45,11 +45,11 @@ import 'commands/precache.dart';
|
||||
import 'commands/run.dart';
|
||||
import 'commands/test.dart';
|
||||
import 'commands/upgrade.dart';
|
||||
import 'elinux_artifacts.dart';
|
||||
import 'elinux_cache.dart';
|
||||
import 'elinux_device_discovery.dart';
|
||||
import 'elinux_doctor.dart';
|
||||
import 'elinux_package.dart';
|
||||
import 'elinux_artifacts.dart';
|
||||
|
||||
/// Main entry point for commands.
|
||||
///
|
||||
@@ -92,15 +92,27 @@ Future<void> main(List<String> args) async {
|
||||
GenerateLocalizationsCommand(
|
||||
fileSystem: globals.fs,
|
||||
logger: globals.logger,
|
||||
artifacts: globals.artifacts,
|
||||
processManager: globals.processManager,
|
||||
),
|
||||
InstallCommand(),
|
||||
InstallCommand(verboseHelp: verboseHelp),
|
||||
LogsCommand(),
|
||||
ScreenshotCommand(),
|
||||
ScreenshotCommand(fs: globals.fs),
|
||||
SymbolizeCommand(stdio: globals.stdio, fileSystem: globals.fs),
|
||||
ELinuxUpgradeCommand(verboseHelp: verboseHelp),
|
||||
// Commands extended for ELinux.
|
||||
ELinuxAnalyzeCommand(verboseHelp: verboseHelp),
|
||||
ELinuxAttachCommand(verboseHelp: verboseHelp),
|
||||
ELinuxAttachCommand(
|
||||
verboseHelp: verboseHelp,
|
||||
artifacts: globals.artifacts,
|
||||
stdio: globals.stdio,
|
||||
logger: globals.logger,
|
||||
terminal: globals.terminal,
|
||||
signals: globals.signals,
|
||||
platform: globals.platform,
|
||||
processInfo: globals.processInfo,
|
||||
fileSystem: globals.fs,
|
||||
),
|
||||
ELinuxBuildCommand(verboseHelp: verboseHelp),
|
||||
ELinuxCleanCommand(verbose: verbose),
|
||||
ELinuxCreateCommand(verboseHelp: verboseHelp),
|
||||
@@ -126,6 +138,7 @@ Future<void> main(List<String> args) async {
|
||||
logger: globals.logger,
|
||||
platform: globals.platform,
|
||||
osUtils: globals.os,
|
||||
projectFactory: globals.projectFactory,
|
||||
),
|
||||
TemplateRenderer: () => const MustacheTemplateRenderer(),
|
||||
ApplicationPackageFactory: () => ELinuxApplicationPackageFactory(),
|
||||
@@ -151,6 +164,7 @@ Future<void> main(List<String> args) async {
|
||||
outputPreferences: globals.outputPreferences,
|
||||
)),
|
||||
},
|
||||
shutdownHooks: globals.shutdownHooks,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user