Skip to content

Commit

Permalink
发布版本
Browse files Browse the repository at this point in the history
  • Loading branch information
song.chao committed Jan 31, 2024
1 parent 6017c33 commit 12bc74a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {
private void getUsePrinterSdkVersion(EventChannel.EventSink events) {
Map<String, Object> result = new HashMap<String, Object>();
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 {
Expand Down
16 changes: 8 additions & 8 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class _MyAppState extends State<MyApp> {
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'];
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 12bc74a

Please sign in to comment.