Remove references to Observatory (#118577)
Observatory is being deprecated for Dart 3.0 so it should no longer be referenced in tooling messaging / flags. See https://github.com/dart-lang/sdk/issues/50233
This commit is contained in:
@@ -60,9 +60,9 @@ class Context {
|
||||
// Thinning is handled during the bundle asset assemble build target, so just embed.
|
||||
embedFlutterFrameworks();
|
||||
break;
|
||||
case 'test_observatory_bonjour_service':
|
||||
case 'test_vm_service_bonjour_service':
|
||||
// Exposed for integration testing only.
|
||||
addObservatoryBonjourService();
|
||||
addVmServiceBonjourService();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -220,11 +220,11 @@ class Context {
|
||||
],
|
||||
);
|
||||
|
||||
addObservatoryBonjourService();
|
||||
addVmServiceBonjourService();
|
||||
}
|
||||
|
||||
// Add the observatory publisher Bonjour service to the produced app bundle Info.plist.
|
||||
void addObservatoryBonjourService() {
|
||||
// Add the vmService publisher Bonjour service to the produced app bundle Info.plist.
|
||||
void addVmServiceBonjourService() {
|
||||
final String buildMode = parseFlutterBuildMode();
|
||||
|
||||
// Debug and profile only.
|
||||
@@ -239,13 +239,13 @@ class Context {
|
||||
// The file will be present on re-run.
|
||||
echo(
|
||||
'${environment['INFOPLIST_PATH'] ?? ''} does not exist. Skipping '
|
||||
'_dartobservatory._tcp NSBonjourServices insertion. Try re-building to '
|
||||
'_dartVmService._tcp NSBonjourServices insertion. Try re-building to '
|
||||
'enable "flutter attach".');
|
||||
return;
|
||||
}
|
||||
|
||||
// If there are already NSBonjourServices specified by the app (uncommon),
|
||||
// insert the observatory service name to the existing list.
|
||||
// insert the vmService service name to the existing list.
|
||||
ProcessResult result = runSync(
|
||||
'plutil',
|
||||
<String>[
|
||||
@@ -265,19 +265,19 @@ class Context {
|
||||
'-insert',
|
||||
'NSBonjourServices.0',
|
||||
'-string',
|
||||
'_dartobservatory._tcp',
|
||||
'_dartVmService._tcp',
|
||||
builtProductsPlist,
|
||||
],
|
||||
);
|
||||
} else {
|
||||
// Otherwise, add the NSBonjourServices key and observatory service name.
|
||||
// Otherwise, add the NSBonjourServices key and vmService service name.
|
||||
runSync(
|
||||
'plutil',
|
||||
<String>[
|
||||
'-insert',
|
||||
'NSBonjourServices',
|
||||
'-json',
|
||||
'["_dartobservatory._tcp"]',
|
||||
'["_dartVmService._tcp"]',
|
||||
builtProductsPlist,
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user