zebra_printer_cpcl 1.0.4
zebra_printer_cpcl: ^1.0.4 copied to clipboard
Flutter management package for Zebra printers. Uses Zebra Link-OS SDK for Bluetooth & Network discovery, CPCL printing, ZPL printing, and printer management.
Changelog #
1.0.4 #
Breaking Changes #
- Migrated Android plugin implementation from Java to Kotlin (
ZebraPrinterPlugin.kt) - Migrated Android build scripts from Groovy (
build.gradle) to Kotlin DSL (build.gradle.kts/settings.gradle.kts)
Added #
- New
lib/zebra_printer_cpcl.dart— public entrypoint barrel file for the plugin - New
lib/zebra_printer_cpcl_method_channel.dart—MethodChannelimplementation - New
lib/zebra_printer_cpcl_platform_interface.dart— platform interface abstraction - Added
BLUETOOTH_ADVERTISEpermission toAndroidManifest.xml(required for Android 12+) - Added
packageattribute toAndroidManifest.xml(com.sameetdmr.zebra_printer_cpcl) - Added
plugin_platform_interface: ^2.1.8dependency
Changed #
- Updated
permission_handlerfrom^12.0.3to^13.0.2 - Updated
android.compileSdkto 36 - Updated Jackson dependencies to
2.22.2(jackson-core,jackson-databind,jackson-annotations) - Updated Gradle build toolchain — AGP
9.1.0, Gradle wrapper8.10.2, Java17 - Removed Apache Commons Lang3 dependency (no longer required)
- Updated
minSdkto 24
Fixed #
- Fixed
AndroidManifest.xmlBluetooth permission declarations — removedmaxSdkVersionconstraint on legacy permissions to ensure correct behavior across all supported API levels
1.0.3 #
- Fixed resolve Android 13+ Bluetooth permission issues and update build configuration
1.0.2 Add permission handling for Bluetooth operations #
- Add checkAndRequestPermissions() to BluetoothManager for requesting Bluetooth-related permissions.
- Add _requiredBluetoothPermissions() helper method to determine which permissions are needed on different platforms.
- Improve permission handling by checking for permanently denied permissions and opening app settings when necessary.
- Update README.md with information about permission requirements and usage examples.
- Add test/bluetooth_manager_permissions_test.dart to verify permission handling logic.
1.0.1 Refactor argument retrieval in BluetoothManager and PrinterManager to use generics #
- Update README.md to reflect changes in BluetoothManager and PrinterManager
1.0.0 #
- Initial release
- Core features:
- Scan and discover Bluetooth devices
- Pair and unpair with Bluetooth devices
- Connect and disconnect from Zebra printers
- Send CPCL code to printers
- Send ZPL code to printers
- Check printer status
- Get printer information
- Enum usage:
- BluetoothDeviceType
- BluetoothBondState
- BluetoothConnectionState
- BluetoothScanState
- PrinterConnectionState
- PaperState
- HeadState
- PauseState
- Advanced Bluetooth connection management
- Zebra Link-OS SDK integration for Android