diff --git a/CHANGELOG.md b/CHANGELOG.md index 176909d..6db4296 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -71,4 +71,7 @@ - Replaces flutter_blue with flutter_blu_plus ## 0.0.28 -- Resolves issue where app UI freezes while calling printImage on iOS. \ No newline at end of file +- Resolves issue where app UI freezes while calling printImage on iOS. + +## 0.0.29 +- Upgrades Android libs to v4.6.1 of the Brother SDK. \ No newline at end of file diff --git a/README.md b/README.md index d2da69b..1f4c6e1 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ Have an app built using another_brother let me know and I will add it here! - QR Storage: https://play.google.com/store/apps/details?id=com.rouninlabs.qrstorage - Speed Dater: https://youtu.be/z4jxO9HWze8 - 4.events: https://play.google.com/store/apps/details?id=com.fourevents.app +- PoachMe.dev: https://poachme.dev/#/devLand?reqCode=SAVETIME& # Brother Hackathon Feel free to use any of my GitHub repositories in your apps. You should also consider diff --git a/android/build.gradle b/android/build.gradle index f57ab75..f3af36b 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -44,6 +44,6 @@ android { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9' - implementation 'com.brother.sdk:printer:1.0.0' + implementation 'com.brother.sdk:printer:4.6.1' implementation 'com.brother.typeb:print:1.0.0' } diff --git a/android/src/main/kotlin/com/rouninlabs/another_brother/method/BrotherUtils.kt b/android/src/main/kotlin/com/rouninlabs/another_brother/method/BrotherUtils.kt index a42f46e..ce98f9f 100644 --- a/android/src/main/kotlin/com/rouninlabs/another_brother/method/BrotherUtils.kt +++ b/android/src/main/kotlin/com/rouninlabs/another_brother/method/BrotherUtils.kt @@ -102,8 +102,10 @@ fun customPaperInfoFromMap(map:Map?):CustomPaperInfo? { val customPaperInfo:CustomPaperInfo = when(paperKind) { PaperKind.DIE_CUT -> { - CustomPaperInfo.newCustomDiaCutPaper(printerModel, + CustomPaperInfo.newCustomDieCutPaper(printerModel, unit, tapeWidth, tapeLength, rightMargin, leftMargin, topMargin, bottomMargin, labelPitch) + //CustomPaperInfo.newCustomDiaCutPaper(printerModel, + // unit, tapeWidth, tapeLength, rightMargin, leftMargin, topMargin, bottomMargin, labelPitch) } PaperKind.MARKED_ROLL -> { CustomPaperInfo.newCustomMarkRollPaper(printerModel, diff --git a/android/src/main/kotlin/com/rouninlabs/another_brother/method/GetPdfPagesMethodCall.kt b/android/src/main/kotlin/com/rouninlabs/another_brother/method/GetPdfPagesMethodCall.kt index 7420113..9d4b69e 100644 --- a/android/src/main/kotlin/com/rouninlabs/another_brother/method/GetPdfPagesMethodCall.kt +++ b/android/src/main/kotlin/com/rouninlabs/another_brother/method/GetPdfPagesMethodCall.kt @@ -62,7 +62,7 @@ class GetPdfPagesMethodCall(val flutterAssets: FlutterPlugin.FlutterAssets, val val started: Boolean = printer.startCommunication() } - val pages = printer.getPDFPages(filePath) + val pages = printer.getPDFFilePages(filePath) // End Communication if (isOneTime) { diff --git a/pubspec.yaml b/pubspec.yaml index d5b1767..f9742df 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: another_brother description: A flutter plugin for printing with the Brother label and TypeB printers. -version: 0.0.28 +version: 0.0.29 repository: https://github.com/CodeMinion/another_brother environment: