+
Skip to content

Upgrade DCM to v1.30.0 #9310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
wget -qO- https://dcm.dev/pgp-key.public | sudo gpg --dearmor -o /usr/share/keyrings/dcm.gpg
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
sudo apt-get update
sudo apt-get install dcm=1.29.0-1 # To avoid errors add `-1` (build number) to the version
sudo apt-get install dcm=1.30.0-1 # To avoid errors add `-1` (build number) to the version
sudo chmod +x /usr/bin/dcm
echo "$(dcm --version)"
- name: Setup Dart SDK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,9 @@ class AppSizeController extends DevToolsScreenController {
deferredLoadingSupportEnabled && _hasDeferredInfo(processedJson);

if (isDeferredApp.value) {
_deferredOnly = _extractDeferredUnits(Map.from(processedJson));
_mainOnly = _extractMainUnit(Map.from(processedJson));
_entireApp = _includeEntireApp(Map.from(processedJson));
_deferredOnly = _extractDeferredUnits(Map.of(processedJson));
_mainOnly = _extractMainUnit(Map.of(processedJson));
_entireApp = _includeEntireApp(Map.of(processedJson));
_loadApp(_dataForAppUnit!);
} else {
// Set root name for non-deferred apps.
Expand Down Expand Up @@ -464,17 +464,17 @@ class AppSizeController extends DevToolsScreenController {
}

final oldMainOnlyFileJson = _extractMainUnit(
Map.from(oldEntireAppFileJson),
Map.of(oldEntireAppFileJson),
);
final newMainOnlyFileJson = _extractMainUnit(
Map.from(newEntireAppFileJson),
Map.of(newEntireAppFileJson),
);

final oldDeferredOnlyFileJson = _extractDeferredUnits(
Map.from(oldEntireAppFileJson),
Map.of(oldEntireAppFileJson),
);
final newDeferredOnlyFileJson = _extractDeferredUnits(
Map.from(newEntireAppFileJson),
Map.of(newEntireAppFileJson),
);

diffMap = _generateDiffMapFromAnalyzeSizeFiles(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ class CpuProfileData with Serializable {
}

for (final sample in originalData.cpuSamples) {
final sampleJson = Map<String, Object?>.from(sample.json);
final sampleJson = Map<String, Object?>.of(sample.json);
final leafStackFrame = originalData.stackFrames[sample.leafId]!;
includeSampleOrWalkUp(sample, sampleJson, leafStackFrame);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class _ObjectColumn extends ColumnData<ObjectStoreEntry>
Widget build(
BuildContext context,
// ignore: avoid-dynamic, requires refactor.
data, {
dynamic data, {
bool isRowSelected = false,
bool isRowHovered = false,
VoidCallback? onPressed,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class ErrorBadgeManager extends DisposableController
// Build a new map with the new error. Adding to the existing map
// won't cause the ValueNotifier to fire (and it's not permitted to call
// notifyListeners() directly).
final newValue = LinkedHashMap<String, DevToolsError>.from(errors.value);
final newValue = LinkedHashMap<String, DevToolsError>.of(errors.value);
newValue[error.id] = error;
errors.value = newValue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ mixin OfflineScreenControllerMixin<T>
if (offlineDataController.shouldLoadOfflineData(screenId)) {
// TODO(kenz): investigate this line of code. Do we need to be creating a
// second copy of the Map from offlineDataController.offlineDataJson or
// can we use it directly to save this `Map.from` call?
final json = Map<String, Object?>.from(
// can we use it directly to save this `Map.of` call?
final json = Map<String, Object?>.of(
(offlineDataController.offlineDataJson[screenId] as Map)
.cast<String, Object?>(),
);
Expand Down
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载