validateBuildOutput function
Invoked by package:native_assets_builder
Implementation
Future<ValidationErrors> validateBuildOutput(
BuildConfig config,
BuildOutput output,
) async {
final errors = [
..._validateAssetsForLinking(config, output),
..._validateOutputAssetTypes(config, output.encodedAssets),
];
if (config.linkingEnabled) {
for (final assets in output.encodedAssetsForLinking.values) {
errors.addAll(_validateOutputAssetTypes(config, assets));
}
}
return errors;
}