From 4e0025a53ec59ab3cd3e19774118b46fa83ee651 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 7 Feb 2024 06:58:36 +0100 Subject: [PATCH] fix: SerialPortList is now abstract (not sealed) This allows extension of SerialPortList outside of this project (e.g. for mocking purposes in tests) --- lib/src/serial_port_list.dart | 2 +- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/serial_port_list.dart b/lib/src/serial_port_list.dart index a987c04..3c36197 100644 --- a/lib/src/serial_port_list.dart +++ b/lib/src/serial_port_list.dart @@ -7,7 +7,7 @@ import 'package:meta/meta.dart'; import 'package:path/path.dart' as path; @immutable -sealed class SerialPortList { +abstract class SerialPortList { factory SerialPortList() { if (Platform.isLinux) { return const SerialPortListLinux(); diff --git a/pubspec.yaml b/pubspec.yaml index a28252a..a65bf49 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: dart_serial description: Dart package that aims to provide a platform-independent serial port API. -version: 0.1.0-alpha.1 +version: 0.1.0-alpha.2 license: MIT repository: https://github.com/frickly-systems/dart_serial