Bump to v7.1.1

This commit is contained in:
Yannick Loriot 2016-10-12 22:05:51 +02:00
parent d272e93155
commit 15a8124dfb
6 changed files with 28 additions and 10 deletions

View File

@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>7.1.0</string>
<string>7.1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>

View File

@ -29,7 +29,7 @@ import AVFoundation
class ViewController: UIViewController, QRCodeReaderViewControllerDelegate {
lazy var reader = QRCodeReaderViewController(builder: QRCodeReaderViewControllerBuilder {
$0.reader = QRCodeReader()
$0.reader = QRCodeReader(metadataObjectTypes: [AVMetadataObjectTypeQRCode])
$0.showTorchButton = true
})

View File

@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>7.1.0</string>
<string>7.1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>

View File

@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = 'QRCodeReader.swift'
s.module_name = 'QRCodeReader'
s.version = '7.1.0'
s.version = '7.1.1'
s.license = 'MIT'
s.summary = 'Simple QRCode and 1D bar code reader in Swift'
s.homepage = 'https://github.com/yannickl/QRCodeReader.swift.git'

View File

@ -105,7 +105,7 @@ platform :ios, '8.0'
use_frameworks!
target 'TargetName' do
pod 'QRCodeReader.swift', '~> 7.1.0'
pod 'QRCodeReader.swift', '~> 7.1.1'
end
```
@ -137,7 +137,7 @@ $ brew install carthage
To integrate `QRCodeReader` into your Xcode project using Carthage, specify it in your `Cartfile` file:
```ogdl
github "yannickl/QRCodeReader.swift" >= 7.1.0
github "yannickl/QRCodeReader.swift" >= 7.1.1
```
#### Swift Package Manager
@ -151,7 +151,7 @@ let package = Package(
name: "YOUR_PROJECT_NAME",
targets: [],
dependencies: [
.Package(url: "https://github.com/yannickl/QRCodeReader.swift.git", versions: "7.1.0" ..< Version.max)
.Package(url: "https://github.com/yannickl/QRCodeReader.swift.git", versions: "7.1.1" ..< Version.max)
]
)
```

View File

@ -88,11 +88,29 @@ public final class QRCodeReader: NSObject, AVCaptureMetadataOutputObjectsDelegat
}
/**
Initializes the code reader with an array of metadata object types.
- parameter startingCaptureDevicePosition: The Camera to use on start of scanning
Initializes the code reader with an array of metadata object types, and the default initial capture position
- parameter metadataObjectTypes: An array of strings identifying the types of metadata objects to process.
*/
public convenience init(metadataObjectTypes types: [String]) {
self.init(metadataObjectTypes: types, captureDevicePosition: .back)
}
/**
Initializes the code reader with the starting capture device position, and the default array of metadata object types
- parameter captureDevicePosition: The capture position to use on start of scanning
*/
public convenience init(captureDevicePosition position: AVCaptureDevicePosition) {
self.init(metadataObjectTypes: [AVMetadataObjectTypeQRCode], captureDevicePosition: position)
}
/**
Initializes the code reader with an array of metadata object types.
- parameter metadataObjectTypes: An array of strings identifying the types of metadata objects to process.
- parameter captureDevicePosition: The Camera to use on start of scanning.
*/
public init(metadataObjectTypes types: [String], captureDevicePosition: AVCaptureDevicePosition) {
metadataObjectTypes = types