From 4cc24a0b9ef8c63c994c70e72a340f0c9650f0eb Mon Sep 17 00:00:00 2001 From: "Frank E. Hernandez" Date: Fri, 16 Jul 2021 17:26:11 -0400 Subject: [PATCH 01/39] Version 0.0.23 --- CHANGELOG.md | 5 ++++- README.md | 6 ++++++ pubspec.yaml | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4668a77..1753b50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,4 +53,7 @@ - Fixes toMap on TbModel. ## 0.0.22 -- PaperSize now shares common interface as other labels. \ No newline at end of file +- PaperSize now shares common interface as other labels. + +## 0.0.23 +- Fixes issue with startPTTPrint. Special thanks to rendesg for the fixes. \ No newline at end of file diff --git a/README.md b/README.md index 6b90dd8..1ea4c20 100644 --- a/README.md +++ b/README.md @@ -51,3 +51,9 @@ Add the following to your Info.plist ``` On your Runner make sure to mark: Allow non-modular includes as yes. Also make sure to mark the libBROTHERSDK.a as belonging to another_brother in xCode: https://www.youtube.com/watch?v=42dBVdXU8gk + +## Apps Built with another_brother +Have an app built using another_brother let me know and I will add it here! + +- Easy Menu: https://www.youtube.com/watch?v=xy9qYo03pOQ +- QR Storage: https://play.google.com/store/apps/details?id=com.rouninlabs.qrstorage \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 898fa24..ead8427 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.22 +version: 0.0.23 repository: https://github.com/CodeMinion/another_brother environment: From cbdcea179c735294e20ca8b0ceef77f346b5b194 Mon Sep 17 00:00:00 2001 From: Frank Hernandez Date: Fri, 17 Sep 2021 22:46:19 -0400 Subject: [PATCH 02/39] Fixes exception after printing on iOS. --- .idea/libraries/Dart_SDK.xml | 40 ++++++------- .idea/libraries/Flutter_Plugins.xml | 8 +-- CHANGELOG.md | 6 +- example/ios/Podfile | 2 +- example/ios/Podfile.lock | 2 +- example/ios/Runner.xcodeproj/project.pbxproj | 2 +- example/ios/Runner/Info.plist | 62 +++++++++----------- ios/Classes/Method/BrotherUtils.m | 2 +- pubspec.yaml | 2 +- 9 files changed, 62 insertions(+), 64 deletions(-) diff --git a/.idea/libraries/Dart_SDK.xml b/.idea/libraries/Dart_SDK.xml index c53e9ae..f531cdf 100644 --- a/.idea/libraries/Dart_SDK.xml +++ b/.idea/libraries/Dart_SDK.xml @@ -1,26 +1,26 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/.idea/libraries/Flutter_Plugins.xml b/.idea/libraries/Flutter_Plugins.xml index b967119..054aa80 100644 --- a/.idea/libraries/Flutter_Plugins.xml +++ b/.idea/libraries/Flutter_Plugins.xml @@ -1,11 +1,11 @@ + + + + - - - - diff --git a/CHANGELOG.md b/CHANGELOG.md index 4668a77..e7ef9a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,4 +53,8 @@ - Fixes toMap on TbModel. ## 0.0.22 -- PaperSize now shares common interface as other labels. \ No newline at end of file +- PaperSize now shares common interface as other labels. + +## 0.0.23 +- Fixes PTT print. +- Fixes exception on iOS print. \ No newline at end of file diff --git a/example/ios/Podfile b/example/ios/Podfile index 252d9ec..336ea92 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -38,4 +38,4 @@ post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) end -end +end \ No newline at end of file diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 4083cf7..a641fe0 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -97,6 +97,6 @@ SPEC CHECKSUMS: SDWebImage: 7acbb57630ac7db4a495547fb73916ff3e432f6b SwiftyGif: 5d4af95df24caf1c570dbbcb32a3b8a0763bc6d7 -PODFILE CHECKSUM: a75497545d4391e2d394c3668e20cfb1c2bbd4aa +PODFILE CHECKSUM: e9d2e36fdb111ed27aa58aa68798042a4da5c3d8 COCOAPODS: 1.10.1 diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index f82d408..f8bc8b5 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -240,7 +240,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build\n"; }; B2E62E5DDA9518603D715144 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; diff --git a/example/ios/Runner/Info.plist b/example/ios/Runner/Info.plist index 29e7674..2af52b1 100644 --- a/example/ios/Runner/Info.plist +++ b/example/ios/Runner/Info.plist @@ -2,11 +2,6 @@ - UIBackgroundModes - - fetch - remote-notifications - CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleExecutable @@ -27,10 +22,38 @@ $(FLUTTER_BUILD_NUMBER) LSRequiresIPhoneOS + NSBluetoothAlwaysUsageDescription + Need BLE permission + NSBluetoothPeripheralUsageDescription + Need BLE permission + NSBonjourServices + + _ipp._tcp + _printer._tcp + _pdl-datastream._tcp + + NSLocalNetworkUsageDescription + Looking for local tcp Bonjour service + NSLocationAlwaysAndWhenInUseUsageDescription + Need Location permission + NSLocationAlwaysUsageDescription + Need Location permission + NSLocationWhenInUseUsageDescription + Need Location permission + UIBackgroundModes + + fetch + remote-notifications + UILaunchStoryboardName LaunchScreen UIMainStoryboardFile Main + UISupportedExternalAccessoryProtocols + + com.brother.ptcbp + com.issc.datapath + UISupportedInterfaceOrientations UIInterfaceOrientationPortrait @@ -46,34 +69,5 @@ UIViewControllerBasedStatusBarAppearance - - NSLocalNetworkUsageDescription - Looking for local tcp Bonjour service - NSBonjourServices - - _ipp._tcp - _printer._tcp - _pdl-datastream._tcp - - UIBackgroundModes - - fetch - remote-notifications - - NSBluetoothAlwaysUsageDescription - Need BLE permission - NSBluetoothPeripheralUsageDescription - Need BLE permission - NSLocationAlwaysAndWhenInUseUsageDescription - Need Location permission - NSLocationAlwaysUsageDescription - Need Location permission - NSLocationWhenInUseUsageDescription - Need Location permission - UISupportedExternalAccessoryProtocols - - com.brother.ptcbp - com.issc.datapath - diff --git a/ios/Classes/Method/BrotherUtils.m b/ios/Classes/Method/BrotherUtils.m index 331705f..3c2d598 100644 --- a/ios/Classes/Method/BrotherUtils.m +++ b/ios/Classes/Method/BrotherUtils.m @@ -1499,7 +1499,7 @@ + (BRLMMWPrintSettings *)mwPrintSettingsFromMapWithValue:(NSDictionary Date: Sat, 18 Sep 2021 00:53:08 -0400 Subject: [PATCH 03/39] Removed tracked files. --- .idea/libraries/Dart_SDK.xml | 28 ----- .idea/libraries/Flutter_Plugins.xml | 13 --- .idea/workspace.xml | 158 ---------------------------- 3 files changed, 199 deletions(-) delete mode 100644 .idea/libraries/Dart_SDK.xml delete mode 100644 .idea/libraries/Flutter_Plugins.xml delete mode 100644 .idea/workspace.xml diff --git a/.idea/libraries/Dart_SDK.xml b/.idea/libraries/Dart_SDK.xml deleted file mode 100644 index f531cdf..0000000 --- a/.idea/libraries/Dart_SDK.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Flutter_Plugins.xml b/.idea/libraries/Flutter_Plugins.xml deleted file mode 100644 index b967119..0000000 --- a/.idea/libraries/Flutter_Plugins.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 495cc81..0000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - - - - - - - - - - - - - - - -