Viewing version 13.1.0. Open the latest package page.
devtools_shared
13.1.0Package of shared Dart structures between devtools_app, dds, and other tools.
Readme
package:devtools_shared/devtools_shared.dart
This is a package shared between devtools_app, dds, and external users accessing exported JSON files. This package contains structures describing the format of JSON files e.g., HeapSample, memory structures collected from the Dart VM (HeapSpace) and collected memory info from Android's ADB (AdbMemoryInfo).
package:devtools_shared/devtools_server.dart
An implementation of shared devtools server classes.
Terms and Privacy
By using Dart DevTools, you agree to the Google Terms of Service.
Changelog
13.1.0
- The
LocalFileSystemextension APIs are deprecated in favor of a newFileSystemExtensionextension, which is based on theFileSystemclass from thefilepackage. In detail:fileSystemis a new top-level constant which represents the local (real) file system.LocalFileSystem.devToolsDir()is replaced by a static getter,FileSystemExtension.devToolsDir.LocalFileSystem.maybeMoveLegacyDevToolsStore()is replaced by an instance method,FileSystemExtension.maybeMoveLegacyDevToolsStore().LocalFileSystem.devToolsStoreLocation()is replaced by a static getter,FileSystemExtension.devToolsStoreLocation.LocalFileSystem.ensureDevToolsDirectory()will be removed.LocalFileSystem.devToolsFileFromPath()is replaced by an instance method,FileSystemExtension.devToolsFileFromPath().LocalFileSystem.devToolsFileAsJson()is replaced by an instance method,FileSystemExtension.devToolsFileAsJson().LocalFileSystem.flutterStoreExists()is replaced by an instance getter,FileSystemExtension.flutterStoreExists.
13.0.2
- Validate the
devtoolsOptionsUriquery parameter in the extension enabled state handler so it must be afile:URI nameddevtools_options.yaml, preventing arbitrary file writes by the DevTools server process. - The minimum Dart SDK version is bumped to 3.11.0.
- The minimum Flutter SDK version is bumped to 3.41.0.
13.0.1
- Handle null values for
FlutterStore.flutterClientId.
13.0.0
- Breaking change: Removed
DevToolsStoreKeys.analyticsEnabledandDevToolsStoreKeys.isFirstRunsince these were only used for legacy analytics. - Breaking change: Removed legacy analytics APIs and state cleanup
(e.g.
apiGetFlutterGAEnabled,apiGetDevToolsEnabled,apiSetDevToolsEnabled,apiGetDevToolsFirstRun,apiResetDevTools). - Breaking change: Removed public constant
devToolsEnabledPropertyName. - Breaking change: Removed
isFirstRun,reset, andanalyticsEnabledfromDevToolsUsage.
12.1.0
- Adds additional logging to
IntegrationTestRunner. - Fixes assertion error when parsing Flutter channel versions using the format
X.XX.X-X.X.pre-XXX. - Fixes breakage associated with ChromeDriver 138 when using
IntegrationTestRunner. - Adds
sanitizeVersionStrhelper toSemanticVersion. - Fixes null error when parsing
bundleIdentifierorteamIndentifierinUniversalLinkSettings.
12.0.0
- Update
dtddependency to^4.0.0. - Register and unregister VM service connections on DTD. This change only applies to the case where the DevTools server starts DTD (i.e. when a DTD connection was not passed to the server on startup).
11.2.1
- Rename
Handlerextension methods toVmServiceHandler. This member was marked@visibleForTestingand should not be used outside of this package, so we consider this change non-breaking.
11.2.0
- Bump
vm_servicedependency upper bound to<16.0.0.
11.1.0
- Bump minimum SDK version to
3.6.0. - Update
package:vm_serviceto>=13.0.0 <16.0.0.
11.0.0
- Breaking change: replace
apiGetLastReleaseNotesVersionwithReleaseNotesApi.getLastReleaseNotesVersion. - Breaking change: replace
apiSetLastReleaseNotesVersionwithReleaseNotesApi.setLastReleaseNotesVersion. - Breaking change: replace
lastReleaseNotesVersionPropertyName. - Breaking change: replace
apiGetBaseAppSizeFilewithAppSizeApi.getBaseAppSizeFile. - Breaking change: replace
apiGetTestAppSizeFilewithAppSizeApi.getTestAppSizeFile. - Breaking change: replace
baseAppSizeFilePropertyNamewithAppSizeApi.baseAppSizeFilePropertyName. - Breaking change: replace
testAppSizeFilePropertyNamewithAppSizeApi.testAppSizeFilePropertyName. - Breaking change: replace
apiSetActiveSurveywithSurveyApi.setActiveSurvey. - Breaking change: remove
activeSurveyName. - Breaking change: replace
apiGetSurveyActionTakenwithSurveyApi.getSurveyActionTaken. - Breaking change: replace
apiSetSurveyActionTakenwithSurveyApi.setSurveyActionTaken. - Breaking change: remove
surveyActionTakenPropertyName. - Breaking change: replace
apiGetSurveyShownCountwithSurveyApi.getSurveyShownCount. - Breaking change: replace
apiIncrementSurveyShownCountwithSurveyApi.incrementSurveyShownCount. - Support Chrome's new headless mode in the integration test runner.
- Add
PreferencesApito get and set preference values. - Deprecate
DTDConnectionInfoin favor ofDtdInfowhich supports tracking two URIs for DTD to better support web/remote environments.
10.0.2
- Update dependency
web_socket_channel: '>=2.4.0 <4.0.0'.
10.0.1
- Added helper
deserializeanddeserializeNullable - Extended serialization for
HeapSampleandExtensionEvents - Added mixin
Serializable - Fix a regression with accessing the Flutter store file.
- Bump minimum Dart SDK version to Dart stable
3.4.3.
10.0.0-dev.2
- Support detecting package roots for nested Dart projects in the
packageRootFromFileUriStringutility method.
10.0.0-dev.1
- Export
DTDConnectionInfofrom thedevtools_shared.dartlibrary instead of thedevtools_server.dartlibrary.
10.0.0-dev.0
- Breaking change: rename
DevToolsExtensionConfig.pathtoDevToolsExtensionConfig.extensionAssetsPathand update class documentation. - Breaking change: rename
ExtensionsApi.extensionRootPathPropertyNametoExtensionsApi.packageRootUriPropertyName, and modify the String value for the parameter from 'rootPath' to 'packageRootUri'. - Breaking change: add new required JSON fields "devtoolsOptionsUri" and
"detectedFromStaticContext" in the
DevToolsExtensionConfig.parsefactory constructor. - Breaking change: remove
DevToolsOptions.optionsFileNameconstant in favor of new constantdevtoolsOptionsFileName. - Breaking change: modify the
ExtensionsApi.apiExtensionEnabledStateAPI to expect a query parameter "devtoolsOptionsUri" instead of "rootPath". - Breaking change: replace the
rootUriparameter in theDevToolsOptions.lookupExtensionEnabledStateandDevToolsOptions.setExtensionEnabledStatemethods with new parameterdevtoolsOptionsUri. Modify logic to expect a full file URI to the options file instead of expecting the package root in which it is contained. - Add new fields
requiresConnection,devtoolsOptionsUri, anddetectedFromStaticContexttoDevToolsExtensionConfig. - Add
ExtensionsApi.devtoolsOptionsUriPropertyNamefield. - Return valid extensions from the
apiServeAvailableExtensionsendpoint even when an exception is thrown. - Add utility extension methods on
Completer:safeCompleteandsafeCompleteError.
9.0.1
- Restructure
devtools_extensions.dartanddevtools_extensions_io.dartlibraries.
9.0.0
- Breaking change: remove parameter
analyticsfromServerApi.handlein favor of DTD implementation. - Breaking change: remove DevTools server APIs
apiMarkConsentMessageAsShownandapiGetConsentMessage - Breaking change: remove parameter
buildDirfromExtensionsManager. in favor of DTD implementation. - Stop copying DevTools extensions assets to the DevTools build directory.
- Bump
package:dtdto2.2.0 - Remove
package:unified_analyticsdependency. - Use DTD in the
packageRootFromFileUriStringutility to detect the package root. - Add
runWithRetryutility method.
8.1.1
- Bump
package:dtdto2.1.0. - Bump the minimum Dart SDK version to
3.4.0-282.1.beta.
8.1.0
- Bump
package:dtdto2.0.0. - Bump
package:unified_analyticsto5.8.8.
8.0.1
- Breaking change: rename
ServerApi.getCompletedtoServerApi.successand make thevalueparameter optional. - Breaking change: remove the
String? dtdUriparameter fromServerApi.handleand replace it with a parameterDTDConnectionInfo? dtd. - Introduce a new typedef
DTDConnectionInfo. - Add a new API
apiNotifyForVmServiceConnectionthat DevTools will call when a VM service connection is connected or disconnected from the client. - Add a helper method
packageRootFromFileUriString. - Refactor yaml extension methods.
- Add intent filters checking functionality for deep link validation.
7.0.0
- Breaking change: remove the
ServerApi.setCompletedmethod that was a duplicate ofServerApi.getCompleted. - Breaking change: add required parameter
analyticstoServerApi.handle, which accepts an instance ofAnalyticsfrompackage:unified_analytics. - Add the ability to send debug logs in DevTools server request responses.
- Add an optional positional parameter
logsto theServerApi.serverErrormethod. - Include debug logs with the
ExtensionsApi.apiServeAvailableExtensionsAPI response. - Devtools server API
apiGetConsentMessageadded to fetch the consent message frompackage:unified_analytics. - Devtools server API
apiMarkConsentMessageAsShownadded to mark the consent message forpackage:unified_analyticsas shown to enable telemetry.
6.0.4
- Add
apiGetDtdUrito the server api. - Add a description and link to documentation to the
devtools_options.yamlfile that is created in a user's project.
6.0.3
CompareMixinis now generic, implementingComparable<T>instead ofComparable<dynamic>, and it's operators each therefore accept aTargument.SemanticVersionnow mixes inCompareMixin<SemanticVersion>, and it'scompareTomethod therefore now accepts aSemanticVersion.- Fix an issue parsing file paths that could prevent extensions from being detected.
- Bump
package:vm_servicedependency to>=13.0.0 <15.0.0.
6.0.2
- Fix an issue parsing file paths on Windows that could prevent extensions from being detected.
6.0.1
- Bump minimum Dart SDK version to
3.3.0-91.0.devand minimum Flutter SDK version to3.17.0-0.0.pre. - Add field
isPublictoDevToolsExtensionConfig. - Add validation for
DevToolsExtensionConfig.namefield to ensure it is a valid Dart package name. - Pass warnings and errors for DevTools extension APIs from the DevTools server to DevTools app.
6.0.0
- Bump
package:vm_servicedependency to ^13.0.0. - Remove
ServiceCreatortypedef and replace usages withVmServiceFactorytypedef frompackage:vm_service.
5.0.0
- Split deeplink exports into
devtools_deeplink_io.dartanddevtools_deeplink.dart. - Bump
package:vm_serviceto ^12.0.0. - Adds
DeeplinkApi.androidAppLinkSettings,DeeplinkApi.iosBuildOptions, andDeeplinkApi.iosUniversalLinkSettingsendpoints to ServerApi. - Add shared integration test utilities to
package:devtools_shared. These test utilities are exported as part of the existingdevtools_test_utils.dartlibrary.
4.0.1
- Override equality operator and hashCode for
DevToolsExtensionConfigto be based on the values of its fields.
4.0.0
- Bump
package:extension_discoveryversion to ^2.0.0 - Adds a
DeeplinkApi.androidBuildVariantsendpoint to ServerApi. - BREAKING CHANGE:
ServerApi.handleparametersextensionsManagerandapiwere converted to named parameters- Adds a new required named parameter
deeplinkManagertoServerApi.handle.
3.0.1
- Bump
package:extension_discoveryversion to ^1.0.1
3.0.0
- Separate extension-related libraries into those that require
dart:io(exported asdevtools_extensions_io.dart) and those that do not (exported asdevtools_extensions.dart).
Prior to version 3.0.0, package:devtools_shared was versioned in lockstep with
package:devtools_app. Both of these packages are developed as part of the broader
DevTools project. To see changes and commits
for package:devtools_shared, prior to version 3.0.0 please view the git log
here.
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'devtools_shared:13.1.0'pubspec.yaml
# Copyright 2025 The Flutter Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd.
name: devtools_shared
description: Package of shared Dart structures between devtools_app, dds, and other tools.
version: 13.1.0
repository: https://github.com/flutter/devtools/tree/master/packages/devtools_shared
environment:
sdk: ^3.11.0
resolution: workspace
dependencies:
args: ^2.4.2
collection: ^1.15.0
dtd: ^4.0.0
extension_discovery: ^2.1.0
file: ^7.0.0
meta: ^1.9.1
path: ^1.8.0
shelf: ^1.1.0
sse: ^4.1.2
vm_service: ">=13.0.0 <16.0.0"
web_socket_channel: '>=2.4.0 <4.0.0'
webkit_inspection_protocol: ">=0.5.0 <2.0.0"
yaml: ^3.1.2
yaml_edit: ^2.1.1
dev_dependencies:
test: ^1.21.2
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 0.0.1 | On demand | Download | 8cb5a217…3fef71 |
| 0.1.0 | On demand | Download | 53123540…cdf3a5 |
| 0.2.0 | On demand | Download | 69ca5cdc…f3d1c3 |
| 0.2.1 | On demand | Download | 3bdc700e…51fd57 |
| 0.2.2 | On demand | Download | 256d4597…2f443b |
| 0.2.3 | On demand | Download | a3d91f1a…8b0f0a |
| 0.2.4-dev.1 | On demand | Download | 26857695…0be74c |
| 0.2.4-dev.3 | On demand | Download | 3411c352…aa6265 |
| 0.2.4 | On demand | Download | 9cee0cb9…2feadc |
| 0.2.4+1 | On demand | Download | 4e734459…4369ee |
| 0.2.5 | On demand | Download | 4cd3eb56…2f8223 |
| 0.2.6-dev.1 | On demand | Download | 70a58d05…fdea63 |
| 0.2.6-dev.3 | On demand | Download | d6585324…f316db |
| 0.8.0-dev.1 | On demand | Download | 5a0ffbe1…2153e9 |
| 0.8.0 | On demand | Download | 3edb46ca…19f3bd |
| 0.8.0+1 | On demand | Download | cd234712…4eb398 |
| 0.8.0+2 | On demand | Download | 34aaa6d1…376a6d |
| 0.8.0+3 | On demand | Download | 463a0550…52588a |
| 0.8.1-dev.1 | On demand | Download | 4a20d851…a70955 |
| 0.9.0 | On demand | Download | 7d8a1787…bebc5c |
| 0.9.1-dev.1 | On demand | Download | 4253164e…8009c1 |
| 0.9.1-dev.2 | On demand | Download | d833bc9d…bfcb66 |
| 0.9.1-dev.3 | On demand | Download | bab72794…e248f2 |
| 0.9.1 | On demand | Download | 0ade662d…dfa53e |
| 0.9.2-dev.1 | On demand | Download | 4f83ac7a…46dcb3 |
| 0.9.2 | On demand | Download | 867493e7…b6934d |
| 0.9.3-dev.1 | On demand | Download | 6a4ce832…99e5ee |
| 0.9.3 | On demand | Download | dcf2f52e…7f4199 |
| 0.9.3+1 | On demand | Download | a4aa23d2…44d194 |
| 0.9.3+2 | On demand | Download | 46c0b3b7…3d10be |
| 0.9.3+3 | On demand | Download | fb0472ce…b5f9e4 |
| 0.9.3+4 | On demand | Download | 87cc3214…e90a5a |
| 0.9.4 | On demand | Download | aa230190…6d326a |
| 0.9.5 | On demand | Download | 0f2902dc…236296 |
| 0.9.5+1 | On demand | Download | 4d2d4a01…372378 |
| 0.9.5+2 | On demand | Download | e824aea0…7deaf4 |
| 0.9.6 | On demand | Download | 05f9c1f7…eecf01 |
| 0.9.6+1 | On demand | Download | e3e8f39c…fece3e |
| 0.9.6+2 | On demand | Download | ef04fb3c…580818 |
| 0.9.6+3 | On demand | Download | 79baf2bd…ba8e50 |
| 0.9.7 | On demand | Download | 7168efa3…f0a11e |
| 0.9.7+1 | On demand | Download | 195ec367…b280d4 |
| 0.9.7+2 | On demand | Download | 69c82364…951068 |
| 0.9.7+3 | On demand | Download | e85998a4…e9d222 |
| 0.9.8-dev.1 | On demand | Download | 6666eeba…024828 |
| 2.0.0-dev.1 | On demand | Download | 980ad7b9…2bc4a1 |
| 2.0.0-dev.2 | On demand | Download | 136282ab…264a3b |
| 2.0.0 | On demand | Download | 37c59beb…ffd36c |
| 2.0.0+1 | On demand | Download | f5629606…c5ae89 |
| 2.0.0+2 | On demand | Download | 8ea5a312…953262 |
| 2.0.0+3 | On demand | Download | fdcaf940…c10f76 |
| 2.0.0+4 | On demand | Download | 9769e8e7…c4e507 |
| 2.1.0 | On demand | Download | 3be3b4be…07f790 |
| 2.1.1 | On demand | Download | 78d08f20…6aaa74 |
| 2.2.0 | On demand | Download | 8e6cc80e…8a2452 |
| 2.2.1 | On demand | Download | aa052178…d41856 |
| 2.2.2 | On demand | Download | c88e8734…0dcb81 |
| 2.2.3 | On demand | Download | 006b698b…04be83 |
| 2.2.4 | On demand | Download | 9530c5f2…04c20d |
| 2.3.0 | On demand | Download | 5f52ee86…b136df |
| 2.3.1 | On demand | Download | d019b735…3224dd |
| 2.3.2 | On demand | Download | 7a5d9034…3c1478 |
| 2.3.3-dev.1 | On demand | Download | 801729ae…f26b79 |
| 2.3.3 | On demand | Download | c1a793b5…be265b |
| 2.4.0-dev.1 | On demand | Download | 138e81e4…d76d82 |
| 2.4.0-dev.2 | On demand | Download | 4ce35ec8…2f7a67 |
| 2.4.0 | On demand | Download | 6989ba9b…c65439 |
| 2.5.0 | On demand | Download | cdff0bc1…cc028d |
| 2.6.0 | On demand | Download | 27e83eeb…9db04e |
| 2.7.0 | On demand | Download | 3422e7bb…cdaa20 |
| 2.8.0 | On demand | Download | 11254dda…b95fd3 |
| 2.9.2 | On demand | Download | a498df6e…df6b59 |
| 2.9.3 | On demand | Download | e832e2a0…d3e9ee |
| 2.9.4 | On demand | Download | c75a8e69…6436d3 |
| 2.11.0 | On demand | Download | 2177869d…55aee6 |
| 2.11.1 | On demand | Download | 7438aa97…0c2b8e |
| 2.11.2 | On demand | Download | 903cde30…25af96 |
| 2.11.3 | On demand | Download | ed22d7c7…d33250 |
| 2.11.4 | On demand | Download | 412c2894…214150 |
| 2.12.1 | On demand | Download | 8178129c…81d64a |
| 2.13.0 | On demand | Download | 4ea1bf03…df9e69 |
| 2.13.1 | On demand | Download | 922ea242…f314a5 |
| 2.14.0 | On demand | Download | e99460e8…9dec50 |
| 2.14.1 | On demand | Download | 8436efed…dd15d9 |
| 2.16.0 | On demand | Download | fc788012…966494 |
| 2.17.0 | On demand | Download | 2016ada1…f38e2a |
| 2.18.0 | On demand | Download | 15f4d194…4d991f |
| 2.20.0 | On demand | Download | bb941e48…099952 |
| 2.20.1 | On demand | Download | 0f426403…ed10da |
| 2.21.0-dev.0 | On demand | Download | a10984a3…815e24 |
| 2.21.1 | On demand | Download | e810bef7…396c2a |
| 2.22.2 | On demand | Download | b0bdcdc9…58ca90 |
| 2.23.0 | On demand | Download | 726cacca…1ad32e |
| 2.24.0 | On demand | Download | ad58ac3a…b6df49 |
| 2.25.0 | On demand | Download | 7f6b6600…a4beec |
| 2.26.1 | On demand | Download | 2fc4a90b…7f1f42 |
| 3.0.0 | On demand | Download | ad7e7814…12c49d |
| 3.0.1 | On demand | Download | 6447f962…3d5c55 |
| 4.0.0 | On demand | Download | 816bf329…485fc7 |
| 4.0.1 | On demand | Download | 81528e76…c4a4c1 |
| 4.1.0 | On demand | Download | c048de84…c5e194 |
| 4.2.0 | On demand | Download | e2c6b7cf…7e0593 |
| 5.0.0 | On demand | Download | 2a042fef…5f89cb |
| 6.0.0 | On demand | Download | 8759e586…84d046 |
| 6.0.1 | On demand | Download | 86d9f967…8e3320 |
| 6.0.2 | On demand | Download | e905b483…ac029e |
| 6.0.3 | On demand | Download | 7f173eda…164df1 |
| 6.0.4 | On demand | Download | 1f46a18c…4135e8 |
| 6.0.5 | On demand | Download | d3164d20…19dfde |
| 7.0.0 | On demand | Download | edd3d6e4…9ebab6 |
| 8.0.0 | On demand | Download | 09abe668…bb1cd4 |
| 8.0.1 | On demand | Download | d171bacb…0d504f |
| 8.1.0 | On demand | Download | 8d3452f1…b321be |
| 8.1.1-dev.0 | On demand | Download | fe2b91b1…9aeb25 |
| 8.1.1 | On demand | Download | e5fa35a0…92d10e |
| 9.0.0 | On demand | Download | 802334fe…4ae2fa |
| 9.0.1 | On demand | Download | 779f8785…8b4e86 |
| 10.0.0-dev.0 | On demand | Download | a2609b86…77a9b4 |
| 10.0.0-dev.1 | On demand | Download | fbe1657c…1a0c49 |
| 10.0.0-dev.2 | On demand | Download | 34da80fd…07783a |
| 10.0.0 | On demand | Download | fc3f4696…0e9dd6 |
| 10.0.1 | On demand | Download | a6e66165…a06fb0 |
| 10.0.2 | On demand | Download | 72369878…437f50 |
| 10.1.0 | On demand | Download | 4e51ad6c…041342 |
| 11.0.0 | On demand | Download | b9151dce…de3a40 |
| 11.1.0 | On demand | Download | ef256850…b0887c |
| 11.2.0 | On demand | Download | fa71f070…001bee |
| 11.2.1 | On demand | Download | 659e2d65…dc1096 |
| 12.0.0 | On demand | Download | 275e48a8…e2c887 |
| 12.1.0 | On demand | Download | 2daf7a9f…419dea |
| 13.0.0 | On demand | Download | d626d5d6…fbf314 |
| 13.0.1 | On demand | Download | 5ab724cf…862556 |
| 13.1.0 | Cached · Upstream SHA-256 matched | Download | 13df2c17…67554b |
| 14.0.0 | On demand | Download | 42f9b1df…0e2444 |
Dependencies
args "^2.4.2"
collection "^1.15.0"
dtd "^4.0.0"
extension_discovery "^2.1.0"
file "^7.0.0"
meta "^1.9.1"
path "^1.8.0"
shelf "^1.1.0"
sse "^4.1.2"
vm_service "\u003e=13.0.0 \u003c16.0.0"
web_socket_channel "\u003e=2.4.0 \u003c4.0.0"
webkit_inspection_protocol "\u003e=0.5.0 \u003c2.0.0"
yaml "^3.1.2"
yaml_edit "^2.1.1"