Skip to content

Commit

Permalink
Require analyzer 2.8.0, remove UriResolver.restoreAbsolute() implemen…
Browse files Browse the repository at this point in the history
…tation. (#3254)
  • Loading branch information
scheglov committed Mar 8, 2022
1 parent cfb5aec commit 7260e2c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions build_resolvers/lib/src/build_asset_uri_resolver.dart
Expand Up @@ -191,7 +191,6 @@ class BuildAssetUriResolver extends UriResolver {
}

@override
// ignore: override_on_non_overriding_member
Uri pathToUri(String path) {
var pathSegments = p.posix.split(path);
var packageName = pathSegments[1];
Expand All @@ -207,11 +206,6 @@ class BuildAssetUriResolver extends UriResolver {
);
}
}

@override
Uri restoreAbsolute(Source source) {
return pathToUri(source.fullName);
}
}

String assetPath(AssetId assetId) =>
Expand Down
2 changes: 1 addition & 1 deletion build_resolvers/pubspec.yaml
Expand Up @@ -7,7 +7,7 @@ environment:
sdk: ">=2.14.0 <3.0.0"

dependencies:
analyzer: ">=2.7.0 <4.0.0"
analyzer: ">=2.8.0 <4.0.0"
async: ^2.5.0
build: ^2.0.0
crypto: ^3.0.0
Expand Down

0 comments on commit 7260e2c

Please sign in to comment.