diff --git a/CHANGELOG.md b/CHANGELOG.md index 736f5ef..5f241e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.6.0 +- Added 1.0 and 2.0 printing apis +- Compatible with iMin devices that use the 1.0 print api and the 2.0 print api +- Fixed the money box opening bug + ## 0.5.6 - added openCashBox method diff --git a/android/src/main/java/com/imin/printer/imin_printer/IminPrinterPlugin.java b/android/src/main/java/com/imin/printer/imin_printer/IminPrinterPlugin.java index e5c0129..6955e3c 100644 --- a/android/src/main/java/com/imin/printer/imin_printer/IminPrinterPlugin.java +++ b/android/src/main/java/com/imin/printer/imin_printer/IminPrinterPlugin.java @@ -1152,7 +1152,7 @@ public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) { private void getUsePrinterSdkVersion(EventChannel.EventSink events) { Map result = new HashMap(); result.put("action", "printer_sdk_version"); - if (Build.MODEL.equals("W27_Pro") || Build.MODEL.equals("I23D01") || Build.MODEL.equals("I23M01") || Build.MODEL.equals("I23M02")) { + if (Build.MODEL.equals("W27_Pro") || Build.MODEL.equals("I23D01") || || Build.MODEL.equals("I23M01") || Build.MODEL.equals("I23M02")) { //初始化 2.0 的 SDK。 result.put("status", true); } else { diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index c3889c1..f08e40c 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -41,14 +41,14 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } - signingConfigs { - release { - keyAlias keystoreProperties['keyAlias'] - keyPassword keystoreProperties['keyPassword'] - storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null - storePassword keystoreProperties['storePassword'] - } - } + // signingConfigs { + // release { + // keyAlias keystoreProperties['keyAlias'] + // keyPassword keystoreProperties['keyPassword'] + // storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null + // storePassword keystoreProperties['storePassword'] + // } + // } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.imin.printer.imin_printer_example" diff --git a/example/lib/main.dart b/example/lib/main.dart index 10e96fa..b7c74f3 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -22,7 +22,7 @@ class _MyAppState extends State { void initState() { super.initState(); iminPrinter.receiveBroadcastStream.listen((event) { - debugPrint('broadcastStream: ${event['action'] }'); + debugPrint('broadcastStream: ${event['status'] }'); if(event['action'] == 'printer_sdk_version') { setState(() { version = event['status']; diff --git a/pubspec.yaml b/pubspec.yaml index 2b3e62b..da0a56a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: imin_printer description: It is used to print text, pictures, two-dimensional code, bar code and other functions sdk in imin printer using Android system -version: 0.5.6 +version: 0.6.0 homepage: https://github.com/iminsoftware/imin_printer environment: