Skip to content

Commit

Permalink
Prepare devtools_extensions, devtools_app_shared releases and fix…
Browse files Browse the repository at this point in the history
… bug (#6269)
  • Loading branch information
kenzieschmoll authored Aug 28, 2023
1 parent 6503653 commit 3542eb1
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 16 deletions.
7 changes: 3 additions & 4 deletions packages/devtools_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ dependencies:
collection: ^1.15.0
dap: ^1.1.0
dds_service_extensions: ^1.6.0
devtools_extensions: ^0.0.2-dev.0
devtools_shared: 3.0.0
devtools_app_shared:
path: ../devtools_app_shared
devtools_extensions: ^0.0.2
devtools_shared: ^3.0.1
devtools_app_shared: ^0.0.1
file: ^6.0.0
file_selector: ^0.8.0
file_selector_linux: ^0.0.2
Expand Down
4 changes: 3 additions & 1 deletion packages/devtools_app_shared/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ environment:
flutter: '>=3.0.0'

dependencies:
devtools_shared: ^3.0.0
collection: ^1.15.0
devtools_shared: ^3.0.1
flutter:
sdk: flutter
logging: ^1.1.1
meta: ^1.9.1
pointer_interceptor: ^0.9.3+3
vm_service: ^11.3.0
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools_extensions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 0.0.3
## 0.0.2
* Add a simulated DevTools environment that for easier development.
* Add a `build_and_copy` command to build a devtools extension and copy the output to the
parent package's extension/devtools directory.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

part of '_simulated_devtools_environment.dart';

// TODO(kenz): delete this once we can bump to vm_service ^11.10.0
String? _connectedUri;

class _VmServiceConnection extends StatelessWidget {
const _VmServiceConnection({
required this.simController,
Expand Down Expand Up @@ -45,7 +48,7 @@ class _ConnectedVmServiceDisplay extends StatelessWidget {
'Debugging:',
style: theme.regularTextStyle,
),
const Text('<connected uri>'),
Text(_connectedUri ?? '--'),
// TODO(kenz): uncomment once we can bump to vm_service ^11.10.0
// Text(
// serviceManager.service!.wsUri ?? '--',
Expand All @@ -59,7 +62,10 @@ class _ConnectedVmServiceDisplay extends StatelessWidget {
DevToolsButton(
elevated: true,
label: 'Disconnect',
onPressed: serviceManager.manuallyDisconnect,
onPressed: () {
_connectedUri = null;
unawaited(serviceManager.manuallyDisconnect());
},
),
],
);
Expand Down Expand Up @@ -106,7 +112,6 @@ class _DisconnectedVmServiceDisplayState
autofocus: true,
style: theme.regularTextStyle,
decoration: InputDecoration(
// contentPadding: const EdgeInsets.all(denseSpacing),
isDense: true,
border: const OutlineInputBorder(),
enabledBorder: OutlineInputBorder(
Expand All @@ -126,9 +131,12 @@ class _DisconnectedVmServiceDisplayState
DevToolsButton(
elevated: true,
label: 'Connect',
onPressed: () => widget.simController.vmServiceConnectionChanged(
uri: _connectTextFieldController.text,
),
onPressed: () {
_connectedUri = _connectTextFieldController.text;
widget.simController.vmServiceConnectionChanged(
uri: _connectTextFieldController.text,
);
},
),
],
);
Expand Down
6 changes: 3 additions & 3 deletions packages/devtools_extensions/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: devtools_extensions
description: A package for building and supporting extensions for Dart DevTools.
version: 0.0.3
version: 0.0.2
repository: https://github.com/flutter/devtools/tree/master/packages/devtools_extensions

environment:
Expand All @@ -12,8 +12,8 @@ executables:

dependencies:
args: ^2.4.2
devtools_shared: ^3.0.0
devtools_app_shared: ^0.0.1-dev.0
devtools_shared: ^3.0.1
devtools_app_shared: ^0.0.1
flutter:
sdk: flutter
io: ^1.0.4
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools_test/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ environment:
dependencies:
async: ^2.0.0
collection: ^1.15.0
devtools_shared: 3.0.0
devtools_shared: ^3.0.1
devtools_app: 2.27.0-dev.16
devtools_app_shared:
path: ../devtools_app_shared
Expand Down

0 comments on commit 3542eb1

Please sign in to comment.