Skip to content

Commit

Permalink
Release 6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
vyakimchik committed Aug 18, 2022
1 parent f341844 commit 494471d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 23 deletions.
4 changes: 2 additions & 2 deletions Samples/Advanced/DocumentReader-Swift/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ platform :ios, '11.0'
use_frameworks!

target 'DocumentReader-Swift' do
pod 'DocumentReader', '~> 6.4'
pod 'DocumentReaderFullRFID', '~> 6.4'
pod 'DocumentReader', '~> 6.5'
pod 'DocumentReaderFullRFID', '~> 6.5'
end
4 changes: 2 additions & 2 deletions Samples/Basic/DocumentReaderObjectiveC-sample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
platform :ios, '11.0'

target 'DocumentReaderFullObjectiveC-sample' do
pod 'DocumentReader', '~> 6.4'
pod 'DocumentReaderFullRFID', '~> 6.4'
pod 'DocumentReader', '~> 6.5'
pod 'DocumentReaderFullRFID', '~> 6.5'
end
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,14 @@ class ViewController: UIViewController {

@IBAction func useCameraViewController(_ sender: UIButton) {
DocReader.shared.showScanner(self) { (action, result, error) in
switch action {
case .cancel:
print("Cancelled by user")
case .processTimeout:
if action == .complete {
print("Completed")
if self.readRFID.isOn && result?.chipPage != 0 {
self.startRFIDReading()
} else {
self.handleResult(result: result)
}
} else if action == .processTimeout {
print("Timeout")
let timeoutLabel = UILabel(frame: self.view.bounds)
timeoutLabel.text = "Timeout!"
Expand All @@ -101,24 +105,16 @@ class ViewController: UIViewController {
timeoutLabel.removeFromSuperview()
self.handleResult(result: result)
}
case .complete:
print("Completed")
if self.readRFID.isOn && result?.chipPage != 0 {
self.startRFIDReading()
} else {
self.handleResult(result: result)
}
case .error:
} else if action == .error {
print("Error")
guard let error = error else { return }
print("Error string: \(error)")
case .process:
} else if action == .process {
guard let result = result else { return }
print("Scaning not finished. Result: \(result)")
case .morePagesAvailable:
print("This status couldn't be here, it uses for -recognizeImage function")
case .processWhiteFlashLight:
print("Flash light")
} else {
guard let result = result else { return }
print("Results: \(result), action: \(action)")
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions Samples/Basic/DocumentReaderSwift-sample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ platform :ios, '11.0'
use_frameworks!

target 'DocumentReaderFullSwift-sample' do
pod 'DocumentReader', '~> 6.4'
pod 'DocumentReaderFullRFID', '~> 6.4'
pod 'DocumentReader', '~> 6.5'
pod 'DocumentReaderFullRFID', '~> 6.5'
end

0 comments on commit 494471d

Please sign in to comment.