Skip to content

Commit bc060b8

Browse files
Upgrade DCM to v1.30.0 (#9310)
1 parent f753f9a commit bc060b8

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
wget -qO- https://dcm.dev/pgp-key.public | sudo gpg --dearmor -o /usr/share/keyrings/dcm.gpg
7575
echo 'deb [signed-by=/usr/share/keyrings/dcm.gpg arch=amd64] https://dcm.dev/debian stable main' | sudo tee /etc/apt/sources.list.d/dart_stable.list
7676
sudo apt-get update
77-
sudo apt-get install dcm=1.29.0-1 # To avoid errors add `-1` (build number) to the version
77+
sudo apt-get install dcm=1.30.0-1 # To avoid errors add `-1` (build number) to the version
7878
sudo chmod +x /usr/bin/dcm
7979
echo "$(dcm --version)"
8080
- name: Setup Dart SDK

packages/devtools_app/lib/src/screens/app_size/app_size_controller.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,9 @@ class AppSizeController extends DevToolsScreenController {
360360
deferredLoadingSupportEnabled && _hasDeferredInfo(processedJson);
361361

362362
if (isDeferredApp.value) {
363-
_deferredOnly = _extractDeferredUnits(Map.from(processedJson));
364-
_mainOnly = _extractMainUnit(Map.from(processedJson));
365-
_entireApp = _includeEntireApp(Map.from(processedJson));
363+
_deferredOnly = _extractDeferredUnits(Map.of(processedJson));
364+
_mainOnly = _extractMainUnit(Map.of(processedJson));
365+
_entireApp = _includeEntireApp(Map.of(processedJson));
366366
_loadApp(_dataForAppUnit!);
367367
} else {
368368
// Set root name for non-deferred apps.
@@ -464,17 +464,17 @@ class AppSizeController extends DevToolsScreenController {
464464
}
465465

466466
final oldMainOnlyFileJson = _extractMainUnit(
467-
Map.from(oldEntireAppFileJson),
467+
Map.of(oldEntireAppFileJson),
468468
);
469469
final newMainOnlyFileJson = _extractMainUnit(
470-
Map.from(newEntireAppFileJson),
470+
Map.of(newEntireAppFileJson),
471471
);
472472

473473
final oldDeferredOnlyFileJson = _extractDeferredUnits(
474-
Map.from(oldEntireAppFileJson),
474+
Map.of(oldEntireAppFileJson),
475475
);
476476
final newDeferredOnlyFileJson = _extractDeferredUnits(
477-
Map.from(newEntireAppFileJson),
477+
Map.of(newEntireAppFileJson),
478478
);
479479

480480
diffMap = _generateDiffMapFromAnalyzeSizeFiles(

packages/devtools_app/lib/src/screens/profiler/cpu_profile_model.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ class CpuProfileData with Serializable {
468468
}
469469

470470
for (final sample in originalData.cpuSamples) {
471-
final sampleJson = Map<String, Object?>.from(sample.json);
471+
final sampleJson = Map<String, Object?>.of(sample.json);
472472
final leafStackFrame = originalData.stackFrames[sample.leafId]!;
473473
includeSampleOrWalkUp(sample, sampleJson, leafStackFrame);
474474
}

packages/devtools_app/lib/src/screens/vm_developer/object_inspector/object_store.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class _ObjectColumn extends ColumnData<ObjectStoreEntry>
4646
Widget build(
4747
BuildContext context,
4848
// ignore: avoid-dynamic, requires refactor.
49-
data, {
49+
dynamic data, {
5050
bool isRowSelected = false,
5151
bool isRowHovered = false,
5252
VoidCallback? onPressed,

packages/devtools_app/lib/src/shared/managers/error_badge_manager.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class ErrorBadgeManager extends DisposableController
127127
// Build a new map with the new error. Adding to the existing map
128128
// won't cause the ValueNotifier to fire (and it's not permitted to call
129129
// notifyListeners() directly).
130-
final newValue = LinkedHashMap<String, DevToolsError>.from(errors.value);
130+
final newValue = LinkedHashMap<String, DevToolsError>.of(errors.value);
131131
newValue[error.id] = error;
132132
errors.value = newValue;
133133
}

packages/devtools_app/lib/src/shared/offline/offline_data.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ mixin OfflineScreenControllerMixin<T>
170170
if (offlineDataController.shouldLoadOfflineData(screenId)) {
171171
// TODO(kenz): investigate this line of code. Do we need to be creating a
172172
// second copy of the Map from offlineDataController.offlineDataJson or
173-
// can we use it directly to save this `Map.from` call?
174-
final json = Map<String, Object?>.from(
173+
// can we use it directly to save this `Map.of` call?
174+
final json = Map<String, Object?>.of(
175175
(offlineDataController.offlineDataJson[screenId] as Map)
176176
.cast<String, Object?>(),
177177
);

0 commit comments

Comments
 (0)