Skip to content

Commit e30bf85

Browse files
authored
use uuid from package:uuid instead of from package:usage (#161102)
- use uuid from package:uuid instead of from package:usage `package:usage` is discontinued and no longer maintained; this removes one use of it from the flutter_tools codebase. *List which issues are fixed by this PR. You must list at least one issue. An issue is not required if the PR fixes something trivial like a typo.* See also: - flutter/flutter#152692 - https://github.com/dart-archive/usage ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [ ] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview [Tree Hygiene]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md [test-exempt]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests [Flutter Style Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md [Features we expect every widget to implement]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md [Data Driven Fixes]: https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
1 parent bb4628e commit e30bf85

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/flutter_tools/lib/src/compile.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'dart:typed_data';
88
import 'package:meta/meta.dart';
99
import 'package:package_config/package_config.dart';
1010
import 'package:process/process.dart';
11-
import 'package:usage/uuid/uuid.dart';
11+
import 'package:uuid/v4.dart';
1212

1313
import 'artifacts.dart';
1414
import 'base/common.dart';
@@ -753,7 +753,7 @@ class DefaultResidentCompiler implements ResidentCompiler {
753753
nativeAssetsUri: nativeAssets,
754754
);
755755
}
756-
final String inputKey = Uuid().generateV4();
756+
final String inputKey = const UuidV4().generate();
757757

758758
if (nativeAssets != null && nativeAssets.isNotEmpty) {
759759
server.stdin.writeln('native-assets $nativeAssets');
@@ -953,7 +953,7 @@ class DefaultResidentCompiler implements ResidentCompiler {
953953
return null;
954954
}
955955

956-
final String inputKey = Uuid().generateV4();
956+
final String inputKey = const UuidV4().generate();
957957
server.stdin
958958
..writeln('compile-expression $inputKey')
959959
..writeln(request.expression);
@@ -1016,7 +1016,7 @@ class DefaultResidentCompiler implements ResidentCompiler {
10161016
return null;
10171017
}
10181018

1019-
final String inputKey = Uuid().generateV4();
1019+
final String inputKey = const UuidV4().generate();
10201020
server.stdin
10211021
..writeln('compile-expression-to-js $inputKey')
10221022
..writeln(request.libraryUri ?? '')

0 commit comments

Comments
 (0)