Skip to content

Commit 87cd557

Browse files
committed
Updated samples to the latest SDK - 5.2
1 parent fd7a4de commit 87cd557

11 files changed

Lines changed: 94 additions & 100 deletions

File tree

Samples/DocumentReaderObjectiveC-sample/DocumentReaderObjectiveC-sample.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@
437437
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
438438
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
439439
CODE_SIGN_STYLE = Automatic;
440-
DEVELOPMENT_TEAM = H6WR54S268;
440+
DEVELOPMENT_TEAM = "";
441441
INFOPLIST_FILE = "$(SRCROOT)/DocumentReaderObjectiveC-sample/DocumentReaderFullObjectiveC-sample.plist";
442442
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
443443
PRODUCT_BUNDLE_IDENTIFIER = regula.DocumentReader;
@@ -453,7 +453,7 @@
453453
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
454454
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
455455
CODE_SIGN_STYLE = Automatic;
456-
DEVELOPMENT_TEAM = H6WR54S268;
456+
DEVELOPMENT_TEAM = "";
457457
INFOPLIST_FILE = "$(SRCROOT)/DocumentReaderObjectiveC-sample/DocumentReaderFullObjectiveC-sample.plist";
458458
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
459459
PRODUCT_BUNDLE_IDENTIFIER = regula.DocumentReader;

Samples/DocumentReaderObjectiveC-sample/DocumentReaderObjectiveC-sample/RGRecognizeImageViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ - (void)captureOutput:(AVCaptureOutput *)output didOutputSampleBuffer:(CMSampleB
270270
if (dispatch_semaphore_wait(self.scanningSemaphore, DISPATCH_TIME_NOW) == 0) {
271271
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^{
272272
dispatch_async(self.scaningQueue, ^{
273-
[RGLDocReader.shared recognizeImage:image cameraMode:YES completion:^(RGLDocReaderAction action, RGLDocumentReaderResults * _Nullable results, NSString * _Nullable error) {
273+
[RGLDocReader.shared recognizeImage:image cameraMode:YES completion:^(RGLDocReaderAction action, RGLDocumentReaderResults * _Nullable results, NSError * _Nullable error) {
274274
dispatch_async(dispatch_get_main_queue(), ^{
275275
if (action == RGLDocReaderActionComplete || action == RGLDocReaderActionMorePagesAvailable) {
276276
[self.delegate recognizeDidFinishedWith:results viewController:self];

Samples/DocumentReaderObjectiveC-sample/DocumentReaderObjectiveC-sample/ViewController.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ - (void)initializationReader {
4646

4747
[RGLDocReader.shared prepareDatabase:@"Full" progressHandler:^(NSProgress * _Nonnull progress) {
4848
self.initializationLabel.text = [NSString stringWithFormat:@"%.1f", progress.fractionCompleted * 100];
49-
} completion:^(BOOL successful, NSString * _Nullable error) {
49+
} completion:^(BOOL successful, NSError * _Nullable error) {
5050
if (successful) {
5151
self.initializationLabel.text = @"Initialization...";
52-
[RGLDocReader.shared initializeReader:licenseData completion:^(BOOL successful, NSString * _Nullable error ) {
52+
[RGLDocReader.shared initializeReader:licenseData completion:^(BOOL successful, NSError * _Nullable error ) {
5353
if (successful) {
5454
[self.activityIndicator stopAnimating];
5555
[self.initializationLabel setHidden:YES];
@@ -84,7 +84,7 @@ - (void)initializationReader {
8484
}
8585

8686
- (IBAction)useCameraViewController:(UIButton *)sender {
87-
[RGLDocReader.shared showScanner:self completion:^(enum RGLDocReaderAction action, RGLDocumentReaderResults * _Nullable result, NSString * _Nullable error) {
87+
[RGLDocReader.shared showScanner:self completion:^(enum RGLDocReaderAction action, RGLDocumentReaderResults * _Nullable result, NSError * _Nullable error) {
8888
switch (action) {
8989
case RGLDocReaderActionCancel: {
9090
NSLog(@"Cancelled by user");
@@ -183,7 +183,7 @@ - (void)imagePickerController:(UIImagePickerController *)picker didFinishPicking
183183
UIImage *image = info[UIImagePickerControllerOriginalImage];
184184
[self dismissViewControllerAnimated:YES completion:^{
185185

186-
[RGLDocReader.shared recognizeImage:image cameraMode:NO completion:^(RGLDocReaderAction action, RGLDocumentReaderResults * _Nullable results, NSString * _Nullable error) {
186+
[RGLDocReader.shared recognizeImage:image cameraMode:NO completion:^(RGLDocReaderAction action, RGLDocumentReaderResults * _Nullable results, NSError * _Nullable error) {
187187
if (action == RGLDocReaderActionComplete) {
188188
if (results != nil) {
189189
NSLog(@"Completed");
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PODS:
2-
- DocumentReader (5.1.1194)
3-
- DocumentReaderFullRFID (5.1.2760)
2+
- DocumentReader (5.2.1315)
3+
- DocumentReaderFullRFID (5.2.3112)
44

55
DEPENDENCIES:
66
- DocumentReader
@@ -12,9 +12,9 @@ SPEC REPOS:
1212
- DocumentReaderFullRFID
1313

1414
SPEC CHECKSUMS:
15-
DocumentReader: 9424151f4912c1efe3276ecb495a44d871dd1d9b
16-
DocumentReaderFullRFID: 130d328a5fbd6b2602b77a564fd593cd57f4fe2d
15+
DocumentReader: 4bf46e4fd4e15bccb835d0defdecb2efd8fcf27c
16+
DocumentReaderFullRFID: 290d29a6f80976b393bdca0ae68e3cca401da5d8
1717

1818
PODFILE CHECKSUM: aedfba8b9622aba4d7cef142bfff825294d12478
1919

20-
COCOAPODS: 1.9.1
20+
COCOAPODS: 1.8.4

Samples/DocumentReaderObjectiveC-sample/Pods/Manifest.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Samples/DocumentReaderObjectiveC-sample/Pods/Pods.xcodeproj/project.pbxproj

Lines changed: 63 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Samples/DocumentReaderSwift-sample/DocumentReaderSwift-sample/ChildModeViewController.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,8 @@ class ChildModeViewController: UIViewController {
5656

5757
} else {
5858
self.activityIndicator.stopAnimating()
59-
let licenseError = error ?? "Unknown error"
60-
self.initializationLabel.text = "Initialization error: \(licenseError)"
61-
print(licenseError)
59+
self.initializationLabel.text = "Initialization error: \(error?.localizedDescription)"
60+
print(error?.localizedDescription)
6261
}
6362
}
6463

Samples/DocumentReaderSwift-sample/DocumentReaderSwift-sample/CustomRfidViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class CustomRfidViewController: UIViewController {
8484
self.rfidImageView.tintColor = UIColor.red
8585
if let err = error {
8686
let newError = "RFID Failed: \(err) (custom)"
87-
self.rfidStateLabel.text = err
87+
self.rfidStateLabel.text = err.localizedDescription
8888
DocReader.shared.rfidSessionStatus = newError
8989
}
9090
case .sessionRestarted:

0 commit comments

Comments
 (0)