This reverts commit dc7fea8d19.
This commit is contained in:
@@ -17,6 +17,7 @@ Future<dds.DartDevelopmentService> Function(
|
||||
bool enableAuthCodes,
|
||||
bool ipv6,
|
||||
Uri? serviceUri,
|
||||
List<String> cachedUserTags,
|
||||
}) ddsLauncherCallback = dds.DartDevelopmentService.startDartDevelopmentService;
|
||||
|
||||
/// Helper class to launch a [dds.DartDevelopmentService]. Allows for us to
|
||||
@@ -36,6 +37,7 @@ class DartDevelopmentService {
|
||||
int? hostPort,
|
||||
bool? ipv6,
|
||||
bool? disableServiceAuthCodes,
|
||||
bool cacheStartupProfile = false,
|
||||
}) async {
|
||||
final Uri ddsUri = Uri(
|
||||
scheme: 'http',
|
||||
@@ -52,6 +54,8 @@ class DartDevelopmentService {
|
||||
serviceUri: ddsUri,
|
||||
enableAuthCodes: disableServiceAuthCodes != true,
|
||||
ipv6: ipv6 == true,
|
||||
// Enables caching of CPU samples collected during application startup.
|
||||
cachedUserTags: cacheStartupProfile ? const <String>['AppStartUp'] : const <String>[],
|
||||
);
|
||||
unawaited(_ddsInstance?.done.whenComplete(() {
|
||||
if (!_completer.isCompleted) {
|
||||
|
||||
@@ -70,6 +70,7 @@ Future<void> _kDefaultDartDevelopmentServiceStarter(
|
||||
ipv6: true,
|
||||
disableServiceAuthCodes: disableServiceAuthCodes,
|
||||
logger: globals.logger,
|
||||
cacheStartupProfile: true,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -267,6 +267,7 @@ class FlutterDevice {
|
||||
ipv6: ipv6,
|
||||
disableServiceAuthCodes: disableServiceAuthCodes,
|
||||
logger: globals.logger,
|
||||
cacheStartupProfile: true,
|
||||
);
|
||||
} on dds.DartDevelopmentServiceException catch (e, st) {
|
||||
if (!allowExistingDdsInstance ||
|
||||
|
||||
Reference in New Issue
Block a user