feat: migrate install_manifest.dart to null-safety (#92062)
This commit is contained in:
parent
6f22783e6d
commit
c0e0f4f82e
@ -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';
|
|||||||
|
|
||||||
/// 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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user