Skip to content

Commit cfe6f3d

Browse files
authored
Remove 2023 deprecated 'platforms' key from daemon output (flutter#172593)
Closes flutter#140473.
1 parent 525fb21 commit cfe6f3d

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

packages/flutter_tools/lib/src/commands/daemon.dart

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -599,11 +599,7 @@ class DaemonDomain extends Domain {
599599

600600
PlatformType.values.forEach(handlePlatformType);
601601

602-
return <String, Object>{
603-
// TODO(fujino): delete this key https://github.com/flutter/flutter/issues/140473
604-
'platforms': platformTypes,
605-
'platformTypes': platformTypesMap,
606-
};
602+
return <String, Object>{'platformTypes': platformTypesMap};
607603
} on Exception catch (err, stackTrace) {
608604
sendEvent('log', <String, Object?>{
609605
'log': 'Failed to parse project metadata',
@@ -613,7 +609,6 @@ class DaemonDomain extends Domain {
613609
// On any sort of failure, fall back to Android and iOS for backwards
614610
// compatibility.
615611
return const <String, Object>{
616-
'platforms': <String>['android', 'ios'],
617612
'platformTypes': <String, Object>{
618613
'android': <String, Object>{'isSupported': true},
619614
'ios': <String, Object>{'isSupported': true},

packages/flutter_tools/test/commands.shard/hermetic/daemon_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ void main() {
124124
expect(response.data['id'], 0);
125125
expect(response.data['result'], isNotEmpty);
126126
expect(response.data['result']! as Map<String, Object?>, const <String, Object>{
127-
'platforms': <String>['macos', 'windows'],
128127
'platformTypes': <String, Map<String, Object>>{
129128
'web': <String, Object>{
130129
'isSupported': false,

0 commit comments

Comments
 (0)