forked from firka/flutter
Pass URI converter from context to DDS (#106840)
* Pass URI converter from context to DDS * Match change that will be merged * Revert SDK web change
This commit is contained in:
@@ -8,6 +8,7 @@ import 'package:dds/dds.dart' as dds;
|
||||
import 'package:meta/meta.dart';
|
||||
|
||||
import 'common.dart';
|
||||
import 'context.dart';
|
||||
import 'io.dart' as io;
|
||||
import 'logger.dart';
|
||||
|
||||
@@ -18,6 +19,7 @@ Future<dds.DartDevelopmentService> Function(
|
||||
bool ipv6,
|
||||
Uri? serviceUri,
|
||||
List<String> cachedUserTags,
|
||||
dds.UriConverter? uriConverter,
|
||||
}) ddsLauncherCallback = dds.DartDevelopmentService.startDartDevelopmentService;
|
||||
|
||||
/// Helper class to launch a [dds.DartDevelopmentService]. Allows for us to
|
||||
@@ -56,6 +58,7 @@ class DartDevelopmentService {
|
||||
ipv6: ipv6 ?? false,
|
||||
// Enables caching of CPU samples collected during application startup.
|
||||
cachedUserTags: cacheStartupProfile ? const <String>['AppStartUp'] : const <String>[],
|
||||
uriConverter: context.get<dds.UriConverter>(),
|
||||
);
|
||||
unawaited(_ddsInstance?.done.whenComplete(() {
|
||||
if (!_completer.isCompleted) {
|
||||
|
||||
Reference in New Issue
Block a user