[flutter_tools] refactor artifact downloading to retry zip exceptions. (#64512)

This commit is contained in:
Jonah Williams
2020-08-25 10:06:04 -07:00
committed by GitHub
parent 39d7a019c1
commit 23032d772d
6 changed files with 471 additions and 293 deletions

View File

@@ -915,11 +915,6 @@ class FakeCache implements Cache {
throw UnsupportedError('Not supported in the fake Cache');
}
@override
Future<String> getThirdPartyFile(String urlStr, String serviceName) {
throw UnsupportedError('Not supported in the fake Cache');
}
@override
String getVersionFor(String artifactName) {
throw UnsupportedError('Not supported in the fake Cache');
@@ -949,10 +944,6 @@ class FakeCache implements Cache {
Future<void> updateAll(Set<DevelopmentArtifact> requiredArtifacts) async {
}
@override
Future<void> downloadFile(Uri url, File location) async {
}
@override
Future<bool> doesRemoteExist(String message, Uri url) async {
return true;