Skip to content

Commit

Permalink
fix(lib/mqtt_browser_client): switch dart:html to universal_html (#509)
Browse files Browse the repository at this point in the history
Focus is to fix some issues when using with flutter.
since the `dart:html` package only supports browsers, it is currently not possible to bundle both browser and APK support within the same application, changing this to a universal html package, should allow supporting multiple platforms within a single application
  • Loading branch information
Mycroft-Studios committed Jan 20, 2024
1 parent 62180ae commit d7eec87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mqtt_browser_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
library mqtt_browser_client;

import 'dart:async';
import 'dart:html';
import 'package:universal_html/html.dart';
import 'dart:typed_data';
import 'package:event_bus/event_bus.dart' as events;
import 'package:typed_data/typed_data.dart' as typed;
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies:
typed_data: '^1.3.2'
event_bus: '^2.0.0'
path: '^1.8.2'
universal_html: '^2.2.4'
crypto: '^3.0.3'
meta: '^1.9.1'

Expand Down

0 comments on commit d7eec87

Please sign in to comment.