platform_serial 0.1.0 copy "platform_serial: ^0.1.0" to clipboard
platform_serial: ^0.1.0 copied to clipboard

Complete Flutter plugin for managing serial ports. Supports Windows, Linux, macOS, Android (OTG), and iOS (OTG) with a unified interface. Provides synchronous and asynchronous communication, support f [...]

0.1.0 #

First Release - Core Functionality #

Added

  • Unified SerialPort interface for serial communication
  • SerialManager for centralized port management
  • Support for synchronous and asynchronous reading
  • Support for binary and textual data
  • Data streams for continuous asynchronous reading
  • Flexible configuration (baud rate, data bits, stop bits, parity, flow control)
  • Configurable timeouts for read and write operations
  • Robust error handling with specific error types:
    • portNotFound
    • portAlreadyOpen
    • portClosed
    • configurationError
    • timeout
    • platformUnavailable
    • ioError
    • permissionDenied
    • bufferOverflow
    • unknown
  • Example app with language selection (15 languages with flags 🇬🇧 🇮🇹 🇫🇷 etc.)
  • Light/Dark/System theme support
  • Git Flow workflow with GitVersion configuration
  • GitHub Actions CI/CD workflows:
    • Automated testing on PR
    • Automated pub.dev publishing with Google OAuth

Supported Platforms

  • Windows (FFI implementation)
  • Linux (FFI implementation)
  • macOS (FFI implementation)
  • Android (platform channel + OTG support)
  • iOS (platform channel + OTG support)

Port Information

  • List of available ports
  • Device details (vendor ID, product ID, serial number)
  • Port status (open/closed)

Testing

  • Unit tests for core logic
  • Integration tests for platform-specific behavior
  • E2E tests with happy path, failure path, and edge cases
  • Mock serial ports for testing

Documentation

  • Comprehensive architecture documentation
  • Platform-specific implementation guides
  • Git Flow and release process documentation
  • Google OAuth setup for automated publishing

Notes

  • First stable release - production-ready
  • Ready for use on all supported platforms
0
likes
0
points
84
downloads

Documentation

Documentation

Publisher

unverified uploader

Weekly Downloads

Complete Flutter plugin for managing serial ports. Supports Windows, Linux, macOS, Android (OTG), and iOS (OTG) with a unified interface. Provides synchronous and asynchronous communication, support for both binary and textual data, and comprehensive error handling.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ffi, flutter

More

Packages that depend on platform_serial

Packages that implement platform_serial