-
Notifications
You must be signed in to change notification settings - Fork 24
Migrate to the connected app service #208
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
Conversation
PR HealthChangelog Entry ✔️
Changes to files need to be accounted for in their respective changelogs. |
Co-authored-by: Kenzie Davisson <[email protected]>
…connected-app-service
|
||
Future<void> _listenForConnectedAppServiceEvents() async { | ||
final dtd = _dtd!; | ||
dtd.onVmServiceUpdate().listen((e) async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to cancel these listeners in some dispose method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could, but it's not necessary. We keep listening as long as the DTD instance itself is still alive. If that does shut down, this stream will be closed.
@@ -807,10 +796,10 @@ class _AppErrorsListener { | |||
final StreamController<String> _errorsController; | |||
|
|||
/// The listener for Flutter.Error vm service extension events. | |||
final StreamSubscription<Event> _extensionEventsListener; | |||
final StreamSubscription<Event>? _extensionEventsListener; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where are these stream subscriptions set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just normally via the constructor - they aren't late, just nullable. They are created as a part of the forVmService
static method which passes them into the constructor.
Closes #198
This does drop all support for connecting to apps on SDKs that don't have this service, and I bumped the min SDK accordingly.