From 6e90a72bb21637ab4b8ccebfe2ae13a06c1f3569 Mon Sep 17 00:00:00 2001 From: athulantony95 <154115716+athulantony95@users.noreply.github.com> Date: Fri, 26 Apr 2024 11:02:25 +0530 Subject: [PATCH] fix:Add missing series argument for java classes --- .../main/java/com/pinmi/react/printer/RNBLEPrinterModule.java | 2 +- .../main/java/com/pinmi/react/printer/RNNetPrinterModule.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/pinmi/react/printer/RNBLEPrinterModule.java b/android/src/main/java/com/pinmi/react/printer/RNBLEPrinterModule.java index f29e8af..ee5b1a3 100644 --- a/android/src/main/java/com/pinmi/react/printer/RNBLEPrinterModule.java +++ b/android/src/main/java/com/pinmi/react/printer/RNBLEPrinterModule.java @@ -75,7 +75,7 @@ public void connectPrinter(String innerAddress, Callback successCallback, Callba } @ReactMethod - public void connectAndSend(String innerAddress, String base64Data, String brand, Callback successCallback, Callback errorCallback) { + public void connectAndSend(String innerAddress, String base64Data, String brand,String series, Callback successCallback, Callback errorCallback) { this.adapter = BLEPrinterAdapter.getInstance(); this.adapter.init(reactContext, null, null); adapter.connectAndSend(BLEPrinterDeviceId.valueOf(innerAddress), base64Data, successCallback, errorCallback); diff --git a/android/src/main/java/com/pinmi/react/printer/RNNetPrinterModule.java b/android/src/main/java/com/pinmi/react/printer/RNNetPrinterModule.java index 94856d1..41562d6 100644 --- a/android/src/main/java/com/pinmi/react/printer/RNNetPrinterModule.java +++ b/android/src/main/java/com/pinmi/react/printer/RNNetPrinterModule.java @@ -58,7 +58,7 @@ public void connectPrinter(String host, Integer port, Callback successCallback, } @ReactMethod - public void connectAndSend(String host, Integer port, String data, String brand, Callback successCallback, Callback errorCallback) { + public void connectAndSend(String host, Integer port, String data, String brand,String series, Callback successCallback, Callback errorCallback) { this.adapter = NetPrinterAdapter.getInstance(); this.adapter.init(reactContext, null, null);