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