resolve method
Implementation
@override
Future<ResolvedPrebuilt?> resolve(PrebuiltResolutionContext context) async {
final cache = ArtifactCache(
cacheDir: Directory.fromUri(context.input.outputDirectoryShared),
installer: DefaultArtifactInstaller(
downloader: downloader,
inspector: inspector,
),
);
final file = await cache.resolve(
manifest: context.manifest,
target: context.target,
libraryStem: context.libraryStem,
payload: context.payload,
logger: context.logger,
);
if (file == null) return null;
final hash = await ArchiveReader.sha256Hash(file);
return ResolvedPrebuiltFound(
file: ResolvedFile(path: file.path, hash: hash),
source: PrebuiltSource.download,
);
}