Unverified Commit c0e0f4f8 authored by 嘟囔's avatar 嘟囔 Committed by GitHub

feat: migrate install_manifest.dart to null-safety (#92062)

parent 6f22783e
...@@ -2,10 +2,6 @@ ...@@ -2,10 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// @dart = 2.8
import 'package:meta/meta.dart';
import '../asset.dart'; import '../asset.dart';
import '../base/common.dart'; import '../base/common.dart';
import '../base/file_system.dart'; import '../base/file_system.dart';
...@@ -16,19 +12,18 @@ import '../cmake_project.dart'; ...@@ -16,19 +12,18 @@ import '../cmake_project.dart';
/// Generate an install manifest that is required for CMAKE on UWP projects. /// Generate an install manifest that is required for CMAKE on UWP projects.
Future<void> createManifest({ Future<void> createManifest({
@required Logger logger, required Logger logger,
@required FileSystem fileSystem, required FileSystem fileSystem,
@required Platform platform, required Platform platform,
@required WindowsUwpProject project, required WindowsUwpProject project,
@required BuildInfo buildInfo, required BuildInfo buildInfo,
@required Directory buildDirectory, required Directory buildDirectory,
}) async { }) async {
final List<File> outputs = <File>[]; final List<File> outputs = <File>[];
final AssetBundle assetBundle = AssetBundleFactory.defaultInstance( final AssetBundle assetBundle = AssetBundleFactory.defaultInstance(
logger: logger, logger: logger,
fileSystem: fileSystem, fileSystem: fileSystem,
platform: platform, platform: platform,
splitDeferredAssets: false,
).createBundle(); ).createBundle();
final int resultCode = await assetBundle.build( final int resultCode = await assetBundle.build(
packagesPath: buildInfo.packagesPath, packagesPath: buildInfo.packagesPath,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment