From 28fd49d1eba1711dcb584b8e7027f7b472dca70f Mon Sep 17 00:00:00 2001 From: Matthew Smith Date: Thu, 30 Aug 2018 09:14:24 -0700 Subject: [PATCH] Fix ios barcodes not scanning --- CHANGELOG.md | 4 ++++ ios/Classes/BarcodeScannerViewController.m | 4 ---- pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d8c4cb..3a17f0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [0.0.7] - 8/30/18 + +* Fix iOS barcodes not scanning + ## [0.0.6] - 8/29/18 * Fix android dependencies diff --git a/ios/Classes/BarcodeScannerViewController.m b/ios/Classes/BarcodeScannerViewController.m index 770bde1..fe2e614 100644 --- a/ios/Classes/BarcodeScannerViewController.m +++ b/ios/Classes/BarcodeScannerViewController.m @@ -42,10 +42,6 @@ views:@{@"scanRect": _scanRect}]]; [_scanRect startAnimating]; self.scanner = [[MTBBarcodeScanner alloc] initWithPreviewView:_previewView]; - __weak BarcodeScannerViewController *weakSelf = self; - self.scanner.didStartScanningBlock = ^{ - weakSelf.scanner.scanRect = weakSelf.scanRect.scanLineRect; - }; self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(cancel)]; [self updateFlashButton]; } diff --git a/pubspec.yaml b/pubspec.yaml index e543b35..5c79a69 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: barcode_scan description: A flutter plugin for scanning 2D barcodes and QRCodes. -version: 0.0.6 +version: 0.0.7 author: Matthew Smith homepage: https://github.com/apptreesoftware/flutter_barcode_reader