Repository navigation
v1.1.0
π v1.1.0 β Android Refactor: Unified Printer Adapter Architecture
Released: 2026-02-27
π§ Refactoring (Android)
This release is a major internal refactor of the Android layer, consolidating duplicated logic across BLE, Network, and USB printers into a clean, unified adapter hierarchy.
New Classes
BasePrinterAdapterβ Base class for all printer adapters, centralizing shared logic for image processing and base64 decoding.RNBasePrinterModuleβ Common React Native bridge logic extracted and shared across all printer modules.
Refactored
BLEPrinterAdapter,NetPrinterAdapter,USBPrinterAdapterβ Now extend the unified base classes, eliminating code duplication.RNBLEPrinterModule,RNNetPrinterModule,RNUSBPrinterModuleβ Slimmed down and delegating shared logic toRNBasePrinterModule.
Build & Configuration
- Updated
build.gradlewith explicit AndroidX support and Gradle plugin8.13.2. - Added
gradle.propertiesfor AndroidX migration flags. - Updated Gradle wrapper.
- Corrected package naming to
com.harold.rn.printeracross all Android files.
ποΈ Removed
BaseStreamPrinterAdapter.javaβ Merged into the newBasePrinterAdapterhierarchy.ExampleInstrumentedTest.java/ExampleUnitTest.javaβ Removed stale boilerplate test files.
β οΈ Notes
- No public API changes β this is a refactor with no functional breaking changes for JS/TS consumers.
- Improves reliability with better automatic reconnect logic in the base adapter.
Full Changelog: v1.0.20...v1.1.0