Skip to content

Commit

Permalink
Updated projects
Browse files Browse the repository at this point in the history
  • Loading branch information
ci-bot committed Dec 17, 2024
1 parent 32d314d commit d877d73
Show file tree
Hide file tree
Showing 55 changed files with 2,040 additions and 286 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,55 @@ class ChildViewController: UIViewController {
var completionHandler: DocumentReaderResultsClosure? = nil
var scenario: String?
private var cameraViewController: UIViewController? = nil
private var latestDocumentReaderResults: DocumentReaderResults?

@IBOutlet weak var presenterView: UIView!
@IBOutlet weak var startButton: UIButton!
@IBOutlet weak var showResultsButton: UIButton!
@IBOutlet weak var messageLabel: UILabel!

override func viewDidLoad() {
super.viewDidLoad()
presenterView.layer.borderWidth = 1
self.showResultsButton.isEnabled = false
self.messageLabel.text = ""
}

@IBAction func startAction(_ sender: UIButton) {
startScanner()
startButton.isEnabled = false
self.messageLabel.text = ""
}


@IBAction func showResults(_ sender: Any) {
self.navigationController?.popViewController(animated: false)
if let results = self.latestDocumentReaderResults {
self.completionHandler?(results)
}
}

override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
cameraViewController?.view.frame = presenterView.frame
}

private func startScanner() {
DocReader.shared.startNewSession()
DocReader.shared.isCameraSessionIsPaused = false

DocReader.shared.processParams.scenario = scenario
DocReader.shared.functionality.orientation = .all

let vc = DocReader.shared.prepareCameraViewController(cameraHandler: { [weak self] (action, results, error) in
guard let self = self else { return }
switch action {
case .complete:
case .complete, .processTimeout:
DocReader.shared.isCameraSessionIsPaused = true
self.navigationController?.popViewController(animated: false)
if let results = results {
self.completionHandler?(results)
}
self.latestDocumentReaderResults = results

startButton.isEnabled = true
self.showResultsButton.isEnabled = true
self.messageLabel.text = "RECOGNITION COMPLETED"
case .morePagesAvailable:
break
case .cancel:
Expand All @@ -54,7 +72,7 @@ class ChildViewController: UIViewController {
case .process:
// you can handle intermediate result here
break
case .processWhiteFlashLight:
case .processWhiteFlashLight, .processOnServer:
break;
@unknown default:
break
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<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">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22684"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23084"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
Expand Down Expand Up @@ -63,6 +63,7 @@
<constraint firstItem="t0f-8f-QI3" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="4" id="sil-jE-iDQ"/>
<constraint firstAttribute="trailing" secondItem="qub-fY-mYb" secondAttribute="trailing" constant="15" id="uQW-Wf-LQ7"/>
<constraint firstItem="G9y-0K-dgO" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="4" id="xQe-tD-9Fm"/>
<constraint firstAttribute="bottom" secondItem="qub-fY-mYb" secondAttribute="bottom" constant="10.5" id="zqu-HO-CqB"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
Expand Down
6 changes: 3 additions & 3 deletions Advanced/DocumentReader-Swift/Podfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# frozen_string_literal: true

platform :ios, '11.0'
platform :ios, '12.0'
use_frameworks!

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

# Content
* [How to build the demo application](#how-to-build-the-demo-application)
# Document Reader SDK Advanced Sample Project (iOS)

* [Overview](#overview)
* [Installation](#installation)
* [Documentation](#documentation)
* [Additional information](#additional-information)
* [Demo Application](#demo-application)
* [Technical Support](#technical-support)
* [Business Enquiries](#business-enquiries)

## Overview

Sample project in Swift, demonstrating the Document Reader SDK configuration and customization options.

## How to build the demo application
1. Download or clone the current repository using the command `git clone https://github.com/regulaforensics/DocumentReader-Swift.git`.
## Installation

1. Download or clone the current repository using the command `git clone https://github.com/regulaforensics/DocumentReader-iOS.git`
2. Open the `DocumentReader-Swift` project in an IDE.
3. Run pods `pod install`.
4. Add license and database files to the target:
- 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.
- copy the license file to the project: `Advanced/DocumentReader-Swift/DocumentReader-Swift/`.
- copy the database file db.dat from [Client Portal](https://client.regulaforensics.com/customer/databases) to the project: `Advanced/DocumentReader-Swift/DocumentReader-Swift/`.
5. Change the application Bundle ID to the one you have specified during the registration at [Client Portal](https://client.regulaforensics.com/).
- 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.
- Copy the license file to the project: `Advanced/DocumentReader-Swift/DocumentReader-Swift/`
- Copy the database file `db.dat` from [Regula Client Portal](https://client.regulaforensics.com/customer/databases) to the project: `Advanced/DocumentReader-Swift/DocumentReader-Swift/`
5. Change the application Bundle ID to the one you have specified during the registration at [Regula Client Portal](https://client.regulaforensics.com/).

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

## Additional information
If you have any technical questions or suggestions, feel free to [contact](mailto:[email protected]) us or create an issue [here](https://github.com/regulaforensics/DocumentReader-iOS/issues).
<a target="_blank" href="https://docs.regulaforensics.com/develop/doc-reader-sdk/mobile/">Document Reader SDK Mobile Documentation</a>

## Demo Application

<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>

## Technical Support

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>.

## Business Enquiries

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.
6 changes: 3 additions & 3 deletions BackendProcessing/Podfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
platform :ios, '11.0'
platform :ios, '12.0'
use_frameworks!

target 'BackendProcessing' do
pod 'DocumentReader', '~> 7.4.0'
pod 'DocumentReaderFullRFID', '~> 7.4.0'
pod 'DocumentReader', '~> 7.5.0'
pod 'DocumentReaderFullRFID', '~> 7.5.0'
end
48 changes: 34 additions & 14 deletions BackendProcessing/README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,43 @@
# Regula Document Reader (iOS version)
The sample project for Document Reader Backend Processing demonstration.
[![Version](https://img.shields.io/cocoapods/v/DocumentReader.svg?style=flat)](http://cocoapods.org/pods/DocumentReader)
[![License](https://img.shields.io/cocoapods/l/DocumentReader.svg?style=flat)](http://cocoapods.org/pods/DocumentReader)
[![Platform](https://img.shields.io/cocoapods/p/DocumentReader.svg?style=flat)](http://cocoapods.org/pods/DocumentReader)

# Content
* [How to build the demo application](#how-to-build-the-demo-application)
# Document Reader SDK Backend Processing Sample Project (iOS)

* [Overview](#overview)
* [Installation](#installation)
* [Documentation](#documentation)
* [Additional information](#additional-information)
* [Demo Application](#demo-application)
* [Technical Support](#technical-support)
* [Business Enquiries](#business-enquiries)

## Overview

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.

## How to build the demo application
1. Download or clone the current repository using the command `git clone https://github.com/regulaforensics/DocumentReader-Swift.git`.
## Installation

1. Download or clone the current repository using the command `git clone https://github.com/regulaforensics/DocumentReader-iOS.git`.
2. Open the `BackendProcessing` project in an IDE.
3. Run pods `pod install`.
4. Add license and database files to the target:
- 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.
- copy the license file to the project: `BackendProcessing/BackendProcessing/`.
- copy the database file db.dat from [Client Portal](https://client.regulaforensics.com/customer/databases) to the project: `BackendProcessing/BackendProcessing/`.
5. Change the application Bundle ID to the one you have specified during the registration at [Client Portal](https://client.regulaforensics.com/).
- 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.
- Copy the license file to the project: `BackendProcessing/BackendProcessing/`
- Copy the database file `db.dat` from [Regula Client Portal](https://client.regulaforensics.com/customer/databases) to the project: `BackendProcessing/BackendProcessing/`
5. Change the application Bundle ID to the one you have specified during the registration at [Regula Client Portal](https://client.regulaforensics.com/).

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

## Additional information
If you have any technical questions or suggestions, feel free to [contact](mailto:[email protected]) us or create an issue [here](https://github.com/regulaforensics/DocumentReader-iOS/issues).
<a target="_blank" href="https://docs.regulaforensics.com/develop/doc-reader-sdk/mobile/">Document Reader SDK Mobile Documentation</a>

## Demo Application

<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>

## Technical Support

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>.

## Business Enquiries

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.
6 changes: 3 additions & 3 deletions Basic/DocumentReaderObjectiveC-sample/Podfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# frozen_string_literal: true

platform :ios, '11.0'
platform :ios, '12.0'

target 'DocumentReaderFullObjectiveC-sample' do
pod 'DocumentReader', '~> 7.4.0'
pod 'DocumentReaderFullRFID', '~> 7.4.0'
pod 'DocumentReader', '~> 7.5.0'
pod 'DocumentReaderFullRFID', '~> 7.5.0'
end
49 changes: 34 additions & 15 deletions Basic/DocumentReaderObjectiveC-sample/README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,43 @@
# Regula Document Reader (iOS version)
The sample project for Document Reader basic functionality demonstration.
Objective-C implementation.
[![Version](https://img.shields.io/cocoapods/v/DocumentReader.svg?style=flat)](http://cocoapods.org/pods/DocumentReader)
[![License](https://img.shields.io/cocoapods/l/DocumentReader.svg?style=flat)](http://cocoapods.org/pods/DocumentReader)
[![Platform](https://img.shields.io/cocoapods/p/DocumentReader.svg?style=flat)](http://cocoapods.org/pods/DocumentReader)

# Content
* [How to build the demo application](#how-to-build-the-demo-application)
# Basic Objective-C Sample Project (iOS)

* [Overview](#overview)
* [Installation](#installation)
* [Documentation](#documentation)
* [Additional information](#additional-information)
* [Demo Application](#demo-application)
* [Technical Support](#technical-support)
* [Business Enquiries](#business-enquiries)

## Overview

Sample project in Objective-C, demonstrating the Document Reader SDK basic functionality. UI elements are not included.

## How to build the demo application
1. Download or clone the current repository using the command `git clone https://github.com/regulaforensics/DocumentReader-Swift.git`.
## Installation

1. Download or clone the current repository using the command `git clone https://github.com/regulaforensics/DocumentReader-iOS.git`.
2. Open the `DocumentReaderObjectiveC-sample` project in an IDE.
3. Run pods `pod install`.
4. Add license and database files to the target:
- 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.
- copy the license file to the project: `Basic/DocumentReaderObjectiveC-sample/DocumentReaderObjectiveC-sample/`.
- copy the database file db.dat from [Client Portal](https://client.regulaforensics.com/customer/databases) to the project: `Basic/DocumentReaderObjectiveC-sample/DocumentReaderObjectiveC-sample/`.
5. Change the application Bundle ID to the one you have specified during the registration at [Client Portal](https://client.regulaforensics.com/).
- 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.
- Copy the license file to the project: `Basic/DocumentReaderObjectiveC-sample/DocumentReaderObjectiveC-sample/`.
- Copy the database file `db.dat` from [Regula Client Portal](https://client.regulaforensics.com/customer/databases) to the project: `Basic/DocumentReaderObjectiveC-sample/DocumentReaderObjectiveC-sample/`.
5. Change the application Bundle ID to the one you have specified during the registration at [Regula Client Portal](https://client.regulaforensics.com/).

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

## Additional information
If you have any technical questions or suggestions, feel free to [contact](mailto:[email protected]) us or create an issue [here](https://github.com/regulaforensics/DocumentReader-iOS/issues).
<a target="_blank" href="https://docs.regulaforensics.com/develop/doc-reader-sdk/mobile/">Document Reader SDK Mobile Documentation</a>

## Demo Application

<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>

## Technical Support

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>.

## Business Enquiries

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.
6 changes: 3 additions & 3 deletions Basic/DocumentReaderRFIDSwiftUISample/Podfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
platform :ios, '12.0'

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

# Pods for DocumentReaderSwiftUISample
pod 'DocumentReader', '~> 7.4.0'
pod 'DocumentReaderFullRFID', '~> 7.4.0'
pod 'DocumentReader', '~> 7.5.0'
pod 'DocumentReaderFullRFID', '~> 7.5.0'
end
Loading

0 comments on commit d877d73

Please sign in to comment.