Skip to content

Commit d877d73

Browse files
author
ci-bot
committed
Updated projects
1 parent 32d314d commit d877d73

55 files changed

Lines changed: 2040 additions & 286 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Advanced/DocumentReader-Swift/DocumentReader-Swift/AdditionalScreens/ChildViewController.swift

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,55 @@ class ChildViewController: UIViewController {
1414
var completionHandler: DocumentReaderResultsClosure? = nil
1515
var scenario: String?
1616
private var cameraViewController: UIViewController? = nil
17+
private var latestDocumentReaderResults: DocumentReaderResults?
1718

1819
@IBOutlet weak var presenterView: UIView!
1920
@IBOutlet weak var startButton: UIButton!
21+
@IBOutlet weak var showResultsButton: UIButton!
22+
@IBOutlet weak var messageLabel: UILabel!
2023

2124
override func viewDidLoad() {
2225
super.viewDidLoad()
2326
presenterView.layer.borderWidth = 1
27+
self.showResultsButton.isEnabled = false
28+
self.messageLabel.text = ""
2429
}
2530

2631
@IBAction func startAction(_ sender: UIButton) {
2732
startScanner()
2833
startButton.isEnabled = false
34+
self.messageLabel.text = ""
2935
}
30-
36+
37+
@IBAction func showResults(_ sender: Any) {
38+
self.navigationController?.popViewController(animated: false)
39+
if let results = self.latestDocumentReaderResults {
40+
self.completionHandler?(results)
41+
}
42+
}
43+
3144
override func viewDidLayoutSubviews() {
3245
super.viewDidLayoutSubviews()
3346
cameraViewController?.view.frame = presenterView.frame
3447
}
3548

3649
private func startScanner() {
50+
DocReader.shared.startNewSession()
51+
DocReader.shared.isCameraSessionIsPaused = false
52+
3753
DocReader.shared.processParams.scenario = scenario
3854
DocReader.shared.functionality.orientation = .all
55+
3956
let vc = DocReader.shared.prepareCameraViewController(cameraHandler: { [weak self] (action, results, error) in
4057
guard let self = self else { return }
4158
switch action {
42-
case .complete:
59+
case .complete, .processTimeout:
4360
DocReader.shared.isCameraSessionIsPaused = true
44-
self.navigationController?.popViewController(animated: false)
45-
if let results = results {
46-
self.completionHandler?(results)
47-
}
61+
self.latestDocumentReaderResults = results
62+
63+
startButton.isEnabled = true
64+
self.showResultsButton.isEnabled = true
65+
self.messageLabel.text = "RECOGNITION COMPLETED"
4866
case .morePagesAvailable:
4967
break
5068
case .cancel:
@@ -54,7 +72,7 @@ class ChildViewController: UIViewController {
5472
case .process:
5573
// you can handle intermediate result here
5674
break
57-
case .processWhiteFlashLight:
75+
case .processWhiteFlashLight, .processOnServer:
5876
break;
5977
@unknown default:
6078
break

Advanced/DocumentReader-Swift/DocumentReader-Swift/Resources/Base.lproj/Main.storyboard

Lines changed: 58 additions & 37 deletions
Large diffs are not rendered by default.

Advanced/DocumentReader-Swift/DocumentReader-Swift/ResultsViewController/Cells/TextCell.xib

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="23094" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
33
<device id="retina6_1" orientation="portrait" appearance="light"/>
44
<dependencies>
55
<deployment identifier="iOS"/>
6-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22684"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23084"/>
77
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
88
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
99
</dependencies>
@@ -63,6 +63,7 @@
6363
<constraint firstItem="t0f-8f-QI3" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="4" id="sil-jE-iDQ"/>
6464
<constraint firstAttribute="trailing" secondItem="qub-fY-mYb" secondAttribute="trailing" constant="15" id="uQW-Wf-LQ7"/>
6565
<constraint firstItem="G9y-0K-dgO" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="4" id="xQe-tD-9Fm"/>
66+
<constraint firstAttribute="bottom" secondItem="qub-fY-mYb" secondAttribute="bottom" constant="10.5" id="zqu-HO-CqB"/>
6667
</constraints>
6768
</tableViewCellContentView>
6869
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# frozen_string_literal: true
22

3-
platform :ios, '11.0'
3+
platform :ios, '12.0'
44
use_frameworks!
55

66
target 'DocumentReader-Swift' do
7-
pod 'DocumentReader', '~> 7.4.0'
8-
pod 'DocumentReaderFullRFID', '~> 7.4.0'
7+
pod 'DocumentReader', '~> 7.5.0'
8+
pod 'DocumentReaderFullRFID', '~> 7.5.0'
99
end
Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,43 @@
1-
# Regula Document Reader (iOS version)
2-
The sample project for Document Reader advanced functionality demonstration.
3-
Swift implementation.
1+
[![Version](https://img.shields.io/cocoapods/v/DocumentReader.svg?style=flat)](http://cocoapods.org/pods/DocumentReader)
2+
[![License](https://img.shields.io/cocoapods/l/DocumentReader.svg?style=flat)](http://cocoapods.org/pods/DocumentReader)
3+
[![Platform](https://img.shields.io/cocoapods/p/DocumentReader.svg?style=flat)](http://cocoapods.org/pods/DocumentReader)
44

5-
# Content
6-
* [How to build the demo application](#how-to-build-the-demo-application)
5+
# Document Reader SDK Advanced Sample Project (iOS)
6+
7+
* [Overview](#overview)
8+
* [Installation](#installation)
79
* [Documentation](#documentation)
8-
* [Additional information](#additional-information)
10+
* [Demo Application](#demo-application)
11+
* [Technical Support](#technical-support)
12+
* [Business Enquiries](#business-enquiries)
13+
14+
## Overview
15+
16+
Sample project in Swift, demonstrating the Document Reader SDK configuration and customization options.
917

10-
## How to build the demo application
11-
1. Download or clone the current repository using the command `git clone https://github.com/regulaforensics/DocumentReader-Swift.git`.
18+
## Installation
19+
20+
1. Download or clone the current repository using the command `git clone https://github.com/regulaforensics/DocumentReader-iOS.git`
1221
2. Open the `DocumentReader-Swift` project in an IDE.
1322
3. Run pods `pod install`.
1423
4. Add license and database files to the target:
15-
- visit our [Client Portal](https://client.regulaforensics.com/) to get a trial license (`regula.license` file). The license creation wizard will guide you through the necessary steps.
16-
- copy the license file to the project: `Advanced/DocumentReader-Swift/DocumentReader-Swift/`.
17-
- copy the database file db.dat from [Client Portal](https://client.regulaforensics.com/customer/databases) to the project: `Advanced/DocumentReader-Swift/DocumentReader-Swift/`.
18-
5. Change the application Bundle ID to the one you have specified during the registration at [Client Portal](https://client.regulaforensics.com/).
24+
- Visit [Regula Client Portal](https://client.regulaforensics.com/) to get a trial license (`regula.license` file). The license creation wizard will guide you through the necessary steps.
25+
- Copy the license file to the project: `Advanced/DocumentReader-Swift/DocumentReader-Swift/`
26+
- Copy the database file `db.dat` from [Regula Client Portal](https://client.regulaforensics.com/customer/databases) to the project: `Advanced/DocumentReader-Swift/DocumentReader-Swift/`
27+
5. Change the application Bundle ID to the one you have specified during the registration at [Regula Client Portal](https://client.regulaforensics.com/).
1928

2029
## Documentation
21-
The documentation on the SDK can be found [here](https://docs.regulaforensics.com/develop/doc-reader-sdk/mobile?utm_source=github).
2230

23-
## Additional information
24-
If you have any technical questions or suggestions, feel free to [contact](mailto:support@regulaforensics.com) us or create an issue [here](https://github.com/regulaforensics/DocumentReader-iOS/issues).
31+
<a target="_blank" href="https://docs.regulaforensics.com/develop/doc-reader-sdk/mobile/">Document Reader SDK Mobile Documentation</a>
32+
33+
## Demo Application
34+
35+
<a target="_blank" href="https://apps.apple.com/us/app/regula-document-reader/id1001303920">Regula Document Reader iOS Demo Application in the App Store</a>
36+
37+
## Technical Support
38+
39+
To submit a request to the Support Team, visit <a target="_blank" href="https://support.regulaforensics.com/hc/en-us/requests/new?utm_source=github">Regula Help Center</a>.
40+
41+
## Business Enquiries
42+
43+
To discuss business opportunities, fill the <a target="_blank" href="https://explore.regula.app/docs-support-request">Enquiry Form</a> and specify your scenarios, applications, and technical requirements.

BackendProcessing/Podfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
platform :ios, '11.0'
1+
platform :ios, '12.0'
22
use_frameworks!
33

44
target 'BackendProcessing' do
5-
pod 'DocumentReader', '~> 7.4.0'
6-
pod 'DocumentReaderFullRFID', '~> 7.4.0'
5+
pod 'DocumentReader', '~> 7.5.0'
6+
pod 'DocumentReaderFullRFID', '~> 7.5.0'
77
end

BackendProcessing/README.md

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,43 @@
1-
# Regula Document Reader (iOS version)
2-
The sample project for Document Reader Backend Processing demonstration.
1+
[![Version](https://img.shields.io/cocoapods/v/DocumentReader.svg?style=flat)](http://cocoapods.org/pods/DocumentReader)
2+
[![License](https://img.shields.io/cocoapods/l/DocumentReader.svg?style=flat)](http://cocoapods.org/pods/DocumentReader)
3+
[![Platform](https://img.shields.io/cocoapods/p/DocumentReader.svg?style=flat)](http://cocoapods.org/pods/DocumentReader)
34

4-
# Content
5-
* [How to build the demo application](#how-to-build-the-demo-application)
5+
# Document Reader SDK Backend Processing Sample Project (iOS)
6+
7+
* [Overview](#overview)
8+
* [Installation](#installation)
69
* [Documentation](#documentation)
7-
* [Additional information](#additional-information)
10+
* [Demo Application](#demo-application)
11+
* [Technical Support](#technical-support)
12+
* [Business Enquiries](#business-enquiries)
13+
14+
## Overview
15+
16+
Sample project in Swift, demonstrating how to set up and use the <a target="_blank" href="https://docs.regulaforensics.com/develop/doc-reader-sdk/mobile/integration/server-side-verification/">Complete Server-Side Verification</a> feature.
817

9-
## How to build the demo application
10-
1. Download or clone the current repository using the command `git clone https://github.com/regulaforensics/DocumentReader-Swift.git`.
18+
## Installation
19+
20+
1. Download or clone the current repository using the command `git clone https://github.com/regulaforensics/DocumentReader-iOS.git`.
1121
2. Open the `BackendProcessing` project in an IDE.
1222
3. Run pods `pod install`.
1323
4. Add license and database files to the target:
14-
- visit our [Client Portal](https://client.regulaforensics.com/) to get a trial license (`regula.license` file). The license creation wizard will guide you through the necessary steps.
15-
- copy the license file to the project: `BackendProcessing/BackendProcessing/`.
16-
- copy the database file db.dat from [Client Portal](https://client.regulaforensics.com/customer/databases) to the project: `BackendProcessing/BackendProcessing/`.
17-
5. Change the application Bundle ID to the one you have specified during the registration at [Client Portal](https://client.regulaforensics.com/).
24+
- Visit [Regula Client Portal](https://client.regulaforensics.com/) to get a trial license (`regula.license` file). The license creation wizard will guide you through the necessary steps.
25+
- Copy the license file to the project: `BackendProcessing/BackendProcessing/`
26+
- Copy the database file `db.dat` from [Regula Client Portal](https://client.regulaforensics.com/customer/databases) to the project: `BackendProcessing/BackendProcessing/`
27+
5. Change the application Bundle ID to the one you have specified during the registration at [Regula Client Portal](https://client.regulaforensics.com/).
1828

1929
## Documentation
20-
The documentation on the SDK can be found [here](https://docs.regulaforensics.com/develop/doc-reader-sdk/mobile?utm_source=github).
2130

22-
## Additional information
23-
If you have any technical questions or suggestions, feel free to [contact](mailto:support@regulaforensics.com) us or create an issue [here](https://github.com/regulaforensics/DocumentReader-iOS/issues).
31+
<a target="_blank" href="https://docs.regulaforensics.com/develop/doc-reader-sdk/mobile/">Document Reader SDK Mobile Documentation</a>
32+
33+
## Demo Application
34+
35+
<a target="_blank" href="https://apps.apple.com/us/app/regula-document-reader/id1001303920">Regula Document Reader iOS Demo Application in the App Store</a>
36+
37+
## Technical Support
38+
39+
To submit a request to the Support Team, visit <a target="_blank" href="https://support.regulaforensics.com/hc/en-us/requests/new?utm_source=github">Regula Help Center</a>.
40+
41+
## Business Enquiries
42+
43+
To discuss business opportunities, fill the <a target="_blank" href="https://explore.regula.app/docs-support-request">Enquiry Form</a> and specify your scenarios, applications, and technical requirements.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# frozen_string_literal: true
22

3-
platform :ios, '11.0'
3+
platform :ios, '12.0'
44

55
target 'DocumentReaderFullObjectiveC-sample' do
6-
pod 'DocumentReader', '~> 7.4.0'
7-
pod 'DocumentReaderFullRFID', '~> 7.4.0'
6+
pod 'DocumentReader', '~> 7.5.0'
7+
pod 'DocumentReaderFullRFID', '~> 7.5.0'
88
end
Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,43 @@
1-
# Regula Document Reader (iOS version)
2-
The sample project for Document Reader basic functionality demonstration.
3-
Objective-C implementation.
1+
[![Version](https://img.shields.io/cocoapods/v/DocumentReader.svg?style=flat)](http://cocoapods.org/pods/DocumentReader)
2+
[![License](https://img.shields.io/cocoapods/l/DocumentReader.svg?style=flat)](http://cocoapods.org/pods/DocumentReader)
3+
[![Platform](https://img.shields.io/cocoapods/p/DocumentReader.svg?style=flat)](http://cocoapods.org/pods/DocumentReader)
44

5-
# Content
6-
* [How to build the demo application](#how-to-build-the-demo-application)
5+
# Basic Objective-C Sample Project (iOS)
6+
7+
* [Overview](#overview)
8+
* [Installation](#installation)
79
* [Documentation](#documentation)
8-
* [Additional information](#additional-information)
10+
* [Demo Application](#demo-application)
11+
* [Technical Support](#technical-support)
12+
* [Business Enquiries](#business-enquiries)
13+
14+
## Overview
15+
16+
Sample project in Objective-C, demonstrating the Document Reader SDK basic functionality. UI elements are not included.
917

10-
## How to build the demo application
11-
1. Download or clone the current repository using the command `git clone https://github.com/regulaforensics/DocumentReader-Swift.git`.
18+
## Installation
19+
20+
1. Download or clone the current repository using the command `git clone https://github.com/regulaforensics/DocumentReader-iOS.git`.
1221
2. Open the `DocumentReaderObjectiveC-sample` project in an IDE.
1322
3. Run pods `pod install`.
1423
4. Add license and database files to the target:
15-
- visit our [Client Portal](https://client.regulaforensics.com/) to get a trial license (`regula.license` file). The license creation wizard will guide you through the necessary steps.
16-
- copy the license file to the project: `Basic/DocumentReaderObjectiveC-sample/DocumentReaderObjectiveC-sample/`.
17-
- copy the database file db.dat from [Client Portal](https://client.regulaforensics.com/customer/databases) to the project: `Basic/DocumentReaderObjectiveC-sample/DocumentReaderObjectiveC-sample/`.
18-
5. Change the application Bundle ID to the one you have specified during the registration at [Client Portal](https://client.regulaforensics.com/).
24+
- Visit [Regula Client Portal](https://client.regulaforensics.com/) to get a trial license (`regula.license` file). The license creation wizard will guide you through the necessary steps.
25+
- Copy the license file to the project: `Basic/DocumentReaderObjectiveC-sample/DocumentReaderObjectiveC-sample/`.
26+
- Copy the database file `db.dat` from [Regula Client Portal](https://client.regulaforensics.com/customer/databases) to the project: `Basic/DocumentReaderObjectiveC-sample/DocumentReaderObjectiveC-sample/`.
27+
5. Change the application Bundle ID to the one you have specified during the registration at [Regula Client Portal](https://client.regulaforensics.com/).
1928

2029
## Documentation
21-
The documentation on the SDK can be found [here](https://docs.regulaforensics.com/develop/doc-reader-sdk/mobile?utm_source=github).
2230

23-
## Additional information
24-
If you have any technical questions or suggestions, feel free to [contact](mailto:support@regulaforensics.com) us or create an issue [here](https://github.com/regulaforensics/DocumentReader-iOS/issues).
31+
<a target="_blank" href="https://docs.regulaforensics.com/develop/doc-reader-sdk/mobile/">Document Reader SDK Mobile Documentation</a>
32+
33+
## Demo Application
34+
35+
<a target="_blank" href="https://apps.apple.com/us/app/regula-document-reader/id1001303920">Regula Document Reader iOS Demo Application in the App Store</a>
36+
37+
## Technical Support
38+
39+
To submit a request to the Support Team, visit <a target="_blank" href="https://support.regulaforensics.com/hc/en-us/requests/new?utm_source=github">Regula Help Center</a>.
40+
41+
## Business Enquiries
42+
43+
To discuss business opportunities, fill the <a target="_blank" href="https://explore.regula.app/docs-support-request">Enquiry Form</a> and specify your scenarios, applications, and technical requirements.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Uncomment the next line to define a global platform for your project
2-
# platform :ios, '9.0'
2+
platform :ios, '12.0'
33

44
target 'DocumentReaderRFIDSwiftUISample' do
55
# Comment the next line if you don't want to use dynamic frameworks
66
use_frameworks!
77

88
# Pods for DocumentReaderSwiftUISample
9-
pod 'DocumentReader', '~> 7.4.0'
10-
pod 'DocumentReaderFullRFID', '~> 7.4.0'
9+
pod 'DocumentReader', '~> 7.5.0'
10+
pod 'DocumentReaderFullRFID', '~> 7.5.0'
1111
end

0 commit comments

Comments
 (0)