flutter_bluetooth_classic_serial 1.3.2
flutter_bluetooth_classic_serial: ^1.3.2 copied to clipboard
A Flutter plugin for Bluetooth Classic communication on Android, iOS, macOS, Linux, and Windows platforms. Supports device discovery, connection management, and data transmission.
1.3.2 #
Bug Fixes #
- π οΈ iOS Plugin Registration: Fixed Swift plugin class name references in pubspec.yaml for proper iOS builds
- π οΈ macOS Plugin Registration: Fixed Swift plugin class name references in pubspec.yaml for proper macOS builds
- π± Cross-Platform Compatibility: Ensured consistent plugin registration across all supported platforms
1.3.1 #
Maintenance #
- π Documentation Updates: Updated README with comprehensive platform support information
- π§ Version Alignment: Synchronized version numbers across documentation and package files
1.3.0 #
Features #
- π§ Linux Support: Added complete Bluetooth Classic support for Linux platform
- π§ BlueZ Integration: Implemented native Linux Bluetooth Classic communication using BlueZ stack
- π± Cross-platform Expansion: Extended plugin support to Android, iOS, macOS, Linux, and Windows platforms
- π RFCOMM Communication: Added RFCOMM socket-based serial communication for Linux
Technical Improvements #
- ποΈ Platform Architecture: Created Linux-specific C++ implementation with HCI and RFCOMM support
- π Unified API: Maintained consistent API across all supported platforms
- π¦ Plugin Registration: Updated Linux plugin registration and build configuration
- π§΅ Threading: Implemented proper threading for Bluetooth data reception on Linux
1.2.0 #
Features #
- π macOS Support: Added complete Bluetooth Classic support for macOS platform
- π§ IOBluetooth Integration: Implemented native macOS Bluetooth Classic communication using IOBluetooth framework
- π± Cross-platform Expansion: Extended plugin support to Android, iOS, macOS, and Windows platforms
- π macOS Permissions: Added Bluetooth usage description for proper macOS app permissions
Technical Improvements #
- ποΈ Platform Architecture: Created macOS-specific Swift implementation with RFCOMM channel support
- π Unified API: Maintained consistent API across all supported platforms
- π¦ Plugin Registration: Updated macOS plugin registration and configuration
1.1.1 #
Bug Fixes #
- π§ Fixed sendData Type Casting: Resolved "byte[] cannot be cast to java.util.List" runtime errors in Android
- π± Enhanced iOS Data Handling: Improved sendData method to handle multiple input types (List
- πͺ Windows Build Fixes: Corrected CMake target naming and include path issues for Windows plugin
- π Cross-platform Type Safety: Implemented robust type checking and conversion in all platform implementations
- π‘ UTF-8 Serialization: Fixed sendString method to use explicit List
Technical Improvements #
- π‘οΈ Defensive Programming: Added type validation in sendData methods across all platforms
- π§ Platform Channel Compatibility: Ensured consistent data type handling between Dart and native platforms
1.1.0 #
Features #
- β¨ Complete Device Discovery: Added
getDiscoveredDevices()method to retrieve devices found during discovery - π Real-time Discovery Events: Added
onDeviceDiscoveredstream for live device discovery notifications - π± Enhanced Example App: Updated example to display discovered devices alongside paired devices
- π Discovery Session Management: Clear discovered devices list when starting new discovery session
- π‘οΈ Duplicate Prevention: Prevent duplicate devices in discovery results
Technical Improvements #
- π‘ Cross-platform Discovery: Implemented device discovery storage in both Android and iOS plugins
- π§ Event Channel Enhancement: Modified state channel to handle device discovery events separately
- ποΈ API Consistency: Added discovery methods to platform interface for consistent cross-platform behavior
1.0.4 #
Bug Fixes #
- π± Added missing iOS podspec file to fix CocoaPods integration
- π§ Fixed "No podspec found for flutter_bluetooth_classic_serial" error
- π¦ Configured iOS podspec with proper Swift 5.0 and iOS 11.0+ support
- ποΈ Improved package structure for better cross-platform compatibility
1.0.3 #
Bug Fixes #
- π§ Fixed MissingPluginException errors by correcting channel name mismatches
- β Updated Android, iOS, and Windows plugin implementations with proper channel names
- π οΈ Fixed Android Bluetooth permissions in plugin manifest
- π± Created working example app with comprehensive Bluetooth demo
- π Fixed API usage in example to match singleton pattern
- β‘ Improved error handling and user feedback in example app
- π― Added support for Android 12+ Bluetooth permissions
1.0.1 #
Bug Fixes #
- β Updated repository URLs to correct GitHub location
- β Improved package metadata for pub.flutter-io.cn publication
- β Removed unsupported web platform references
- π§ Updated Android package structure for better compatibility
1.0.0 #
Features #
- β¨ Initial release of Flutter Bluetooth Classic plugin
- π Device discovery and pairing
- π Connection management for Android, iOS, and Windows
- π‘ Bidirectional data transmission
- π± Multi-platform support (Android, iOS, Windows)
- π Real-time data streaming
- π‘οΈ Robust error handling and connection management
Platform Support #
- β Android: Full Bluetooth Classic support
- β iOS: MFi accessory framework integration
- β Windows: Native Windows Bluetooth API integration
API #
FlutterBluetoothClassic.instance- Main plugin interfaceBluetoothConnection.toAddress()- Device connection- Device discovery and enumeration
- Data transmission and reception
- Connection state management