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.
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:file/file.dart';
|
||||
import 'package:flutter_tools/src/artifacts.dart';
|
||||
import 'package:flutter_tools/src/base/common.dart';
|
||||
import 'package:flutter_tools/src/base/file_system.dart';
|
||||
@@ -18,7 +17,6 @@ import 'package:flutter_tools/src/build_info.dart';
|
||||
import 'package:flutter_tools/src/build_system/build_system.dart';
|
||||
import 'package:flutter_tools/src/build_system/depfile.dart';
|
||||
import 'package:flutter_tools/src/build_system/exceptions.dart';
|
||||
import 'package:flutter_tools/src/build_system/source.dart';
|
||||
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';
|
||||
@@ -36,7 +34,9 @@ import 'elinux_plugins.dart';
|
||||
///
|
||||
/// Source: [AndroidAssetBundle] in `android.dart`
|
||||
abstract class ELinuxAssetBundle extends Target {
|
||||
const ELinuxAssetBundle();
|
||||
const ELinuxAssetBundle(this.buildInfo);
|
||||
|
||||
final ELinuxBuildInfo buildInfo;
|
||||
|
||||
@override
|
||||
String get name => 'elinux_asset_bundle';
|
||||
@@ -87,10 +87,14 @@ abstract class ELinuxAssetBundle extends Target {
|
||||
.file(isolateSnapshotData)
|
||||
.copySync(outputDirectory.childFile('isolate_snapshot_data').path);
|
||||
}
|
||||
final TargetPlatform tp = buildInfo.targetArch == 'arm64'
|
||||
? TargetPlatform.linux_arm64
|
||||
: TargetPlatform.linux_x64;
|
||||
final Depfile assetDepfile = await copyAssets(
|
||||
environment,
|
||||
outputDirectory,
|
||||
targetPlatform: null, // corresponds to flutter-tester
|
||||
targetPlatform: tp,
|
||||
buildMode: buildMode,
|
||||
);
|
||||
final DepfileService depfileService = DepfileService(
|
||||
fileSystem: environment.fileSystem,
|
||||
@@ -105,9 +109,7 @@ abstract class ELinuxAssetBundle extends Target {
|
||||
|
||||
/// Source: [DebugAndroidApplication] in `android.dart`
|
||||
class DebugELinuxApplication extends ELinuxAssetBundle {
|
||||
DebugELinuxApplication(this.buildInfo);
|
||||
|
||||
final ELinuxBuildInfo buildInfo;
|
||||
DebugELinuxApplication(ELinuxBuildInfo buildInfo) : super(buildInfo);
|
||||
|
||||
@override
|
||||
String get name => 'debug_elinux_application';
|
||||
@@ -138,9 +140,7 @@ class DebugELinuxApplication extends ELinuxAssetBundle {
|
||||
|
||||
/// See: [ReleaseAndroidApplication] in `android.dart`
|
||||
class ReleaseELinuxApplication extends ELinuxAssetBundle {
|
||||
ReleaseELinuxApplication(this.buildInfo);
|
||||
|
||||
final ELinuxBuildInfo buildInfo;
|
||||
ReleaseELinuxApplication(ELinuxBuildInfo buildInfo) : super(buildInfo);
|
||||
|
||||
@override
|
||||
String get name => 'release_elinux_application';
|
||||
@@ -345,7 +345,8 @@ class NativeBundle {
|
||||
globals.fs.path.dirname(globals.fs.path.dirname(engineOutPath));
|
||||
environment['LOCAL_ENGINE'] = globals.fs.path.basename(engineOutPath);
|
||||
}
|
||||
writeGeneratedCmakeConfig(Cache.flutterRoot, eLinuxProject, environment);
|
||||
writeGeneratedCmakeConfig(
|
||||
Cache.flutterRoot, eLinuxProject, buildInfo.buildInfo, environment);
|
||||
await refreshELinuxPluginsList(eLinuxProject.parent);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user