Skip to content

Commit

Permalink
7.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins committed Apr 21, 2024
1 parent 96bf584 commit f930896
Show file tree
Hide file tree
Showing 9 changed files with 2,642 additions and 1,014 deletions.
6 changes: 3 additions & 3 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
},
"private": true,
"dependencies": {
"@regulaforensics/cordova-plugin-document-reader-api": "7.1.0",
"@regulaforensics/cordova-plugin-document-reader-core-fullrfid": "7.1.0",
"@regulaforensics/ionic-native-document-reader": "7.1.0",
"@regulaforensics/cordova-plugin-document-reader-api": "7.2.0",
"@regulaforensics/cordova-plugin-document-reader-core-fullrfid": "7.2.0",
"@regulaforensics/ionic-native-document-reader": "7.2.0",
"cordova-plugin-camera": "7.0.0",
"@awesome-cordova-plugins/camera": "6.6.0",
"@awesome-cordova-plugins/core": "6.6.0",
Expand Down
12 changes: 6 additions & 6 deletions example/src/app/home/home.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, ViewChild, ElementRef } from '@angular/core'
import { File } from '@awesome-cordova-plugins/file'
import { Camera, DestinationType, MediaType, PictureSourceType } from '@awesome-cordova-plugins/camera/ngx'
import { Platform } from '@ionic/angular'
import { DocumentReader, DocumentReaderScenario, Enum, DocumentReaderCompletion, DocumentReaderResults, DocumentReaderNotification, ScannerConfig, RecognizeConfig, DocReaderConfig } from '@regulaforensics/ionic-native-document-reader/ngx'
import { DocumentReader, DocumentReaderScenario, Enum, DocumentReaderCompletion, DocumentReaderResults, DocumentReaderNotification, ScannerConfig, RecognizeConfig, DocReaderConfig, Functionality } from '@regulaforensics/ionic-native-document-reader/ngx'

var selectedScenario = "Mrz"
var doRfid: boolean = false
Expand Down Expand Up @@ -43,9 +43,9 @@ export class HomePage {
app.status.nativeElement.innerHTML = "Ready"
app.status.nativeElement.style.backgroundColor = "green"

DocumentReader.setFunctionality({
showCaptureButton: true
})
var functionality = new Functionality()
functionality.showCaptureButton = true
DocumentReader.setFunctionality(functionality)
}

var app = this
Expand Down Expand Up @@ -107,7 +107,7 @@ export class HomePage {
hideRfidUI()
displayResults(completion.results)
}
} else if (actionSuccess(completion.action))
} else if (actionSuccess(completion.action) || actionError(completion.action))
handleResults(completion.results)
}

Expand Down Expand Up @@ -213,7 +213,7 @@ export class HomePage {

function handleResults(results: DocumentReaderResults) {
clearResults()
if (doRfid && !isReadingRfid && results != null) {
if (doRfid && !isReadingRfid && results != null && results.chipPage != 0) {
// customRFID()
usualRFID()
} else {
Expand Down
Loading

0 comments on commit f930896

Please sign in to comment.