Skip to content

Commit

Permalink
Added Anyline 39.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aldrichanyline committed May 11, 2022
1 parent fbcc26f commit cfb74be
Show file tree
Hide file tree
Showing 698 changed files with 2,827 additions and 9,717 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#import "ALUniversalIDScanViewController.h"
#import "ALUniversalIDScanViewControllerFrontAndBack.h"
#import "ALFaceAuthentificationViewController.h"

NSString * const kDriversLicenseTitleString = @"Driver's License";
NSString * const kIDCardTitleString = @"ID Card";
Expand Down Expand Up @@ -74,11 +73,6 @@ - (void)initExampleData {
image:[UIImage imageNamed:@"tile_pdf417"]
viewController:[ALPDF417ScanViewController class]];

ALExample *livenessID = [[ALExample alloc] initWithName:NSLocalizedString(@"Liveness Verification", nil)
image:[UIImage imageNamed:@"tile_authentication_NEW"]
viewController:[ALFaceAuthentificationViewController class]
title:@"Face Authentication"];

ALExample *nfcScanning = [[ALExample alloc] initWithName:NSLocalizedString(@"NFC", nil)
image:[UIImage imageNamed:@"tile_nfc"]
viewController:[ALNFCScanViewController class]];
Expand All @@ -87,7 +81,7 @@ - (void)initExampleData {
//we could check [ALNFCDetector readingAvailable]) here and only show the NFC tile if it returns true, but for clarity we will always show it, and just show an alert about why it's not supported when it's tapped on.
self.examples = [@{
self.sectionNames[0] : @[universalID],
self.sectionNames[1] : @[livenessID, nfcScanning, pdf417Scanning,mrzScanning],
self.sectionNames[1] : @[nfcScanning, pdf417Scanning,mrzScanning],
self.sectionNames[2] : @[drivingLicenseScanning, passportScanning, idCardScanning],
} mutableCopy];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ - (void)initExampleData {

ALExample *tireSizeScanning = [[ALExample alloc] initWithName:NSLocalizedString(@"Tire Size Specifications", nil)
image:[UIImage imageNamed:@"tin"]
viewController:[TireViewController class] title:@"Tire Size Specifications"];
viewController:[TireSizeViewController class] title:@"Tire Size Specifications"];

ALExample *commercialTireScanning = [[ALExample alloc] initWithName:NSLocalizedString(@"Commercial Tire Identification Number", nil)
image:[UIImage imageNamed:@"tin"]
viewController:[TireViewController class] title:@"Commercial Tire Identification Number"];
viewController:[CommercialTireIdViewController class] title:@"Commercial Tire Identification Number"];

self.sectionNames = @[@"MRO",];
self.examples = @{
Expand Down
4 changes: 2 additions & 2 deletions AnylineExamples/Anyline Demo App/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>38</string>
<string>39.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>186</string>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NFCReaderUsageDescription</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ @implementation ALMultiformatBarcodeScanViewController
- (void)viewDidLoad {
[super viewDidLoad];

// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];

self.title = @"Barcodes";
CGRect frame = [self scanViewFrame];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ @implementation ALBottlecapScanViewController
*/
- (void)viewDidLoad {
[super viewDidLoad];
// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];

self.title = @"Pepsi Code";

ALOCRConfig *config = [[ALOCRConfig alloc] init];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ import UIKit
override func viewDidLoad() {
super.viewDidLoad();

// Set the background color to black to have a nicer transition
self.view.backgroundColor = UIColor.black;
self.title = "Bottlecap";

// Initializing the scan view. It's a UIView subclass. We set the frame to fill the whole screen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ @implementation ALCattleTagScanViewController

- (void)viewDidLoad {
[super viewDidLoad];
// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];

self.title = @"Cattle Tag";
// Initializing the scan view. It's a UIView subclass. We set the frame to fill the whole screen
CGRect frame = [self scanViewFrame];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ @implementation ALContainerScanViewController

- (void)viewDidLoad {
[super viewDidLoad];
// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor AL_BackgroundColor];

self.title = @"Horizontal Shipping Container";
// Initializing the scan view. It's a UIView subclass. We set the frame to fill the whole screen
CGRect frame = [self scanViewFrame];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ @implementation ALVerticalContainerScanViewController

- (void)viewDidLoad {
[super viewDidLoad];
// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];

self.title = @"Vertical Shipping Container";
// Initializing the scan view. It's a UIView subclass. We set the frame to fill the whole screen
CGRect frame = [self scanViewFrame];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ @implementation ALDocumentScanViewController
- (void)viewDidLoad {
[super viewDidLoad];

// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];
self.title = NSLocalizedString(@"Scan Document", @"Scan Document");
// Initializing the scan view. It's a UIView subclass. We set the frame to fill the whole screen
CGRect frame = [self scanViewFrame];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ @implementation ALIBANScanViewController
*/
- (void)viewDidLoad {
[super viewDidLoad];
// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];

self.title = @"IBAN";
// Initializing the scan view. It's a UIView subclass. We set the frame to fill the whole screen
CGRect frame = [self scanViewFrame];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ @implementation ALISBNScanViewController
*/
- (void)viewDidLoad {
[super viewDidLoad];
// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];

self.title = @"ISBN";

// Initializing the scan view. It's a UIView subclass. We set the frame to fill the whole screen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ @implementation ALAFLicensePlateViewController
*/
- (void)viewDidLoad {
[super viewDidLoad];
// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];

self.title = @"African License Plate";

// Initializing the scan view. It's a UIView subclass. We set the frame to fill the whole screen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ @implementation ALLicensePlateViewController
*/
- (void)viewDidLoad {
[super viewDidLoad];
// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];

self.title = @"EU License Plate";

// Initializing the scan view. It's a UIView subclass. We set the frame to fill the whole screen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ @implementation ALUSLicensePlateViewController
*/
- (void)viewDidLoad {
[super viewDidLoad];
// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];

self.title = @"US License Plate";

// Initializing the scan view. It's a UIView subclass. We set the frame to fill the whole screen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ @implementation ALMRZScanViewController
*/
- (void)viewDidLoad {
[super viewDidLoad];
// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];

self.title = (self.title && self.title.length > 0) ? self.title : @"MRZ";

if (![[[NSBundle mainBundle] bundleIdentifier] localizedCaseInsensitiveContainsString:@"bundle"]) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ @implementation ALAutoAnalogDigitalMeterScanViewController
*/
- (void)viewDidLoad {
[super viewDidLoad];

// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];


self.title = @"Analog/Digital Meter";

CGRect frame = [self scanViewFrame];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ @implementation ALDialMeterScanViewController
- (void)viewDidLoad {
[super viewDidLoad];

// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];

self.title = @"Dial Meter";
CGRect frame = [self scanViewFrame];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ @implementation ALMeterSerialNumberScanViewController
- (void)viewDidLoad {
[super viewDidLoad];

// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];

self.title = @"Serial Number";

CGRect frame = [self scanViewFrame];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ @implementation ALParallelMeterScanViewController
- (void)viewDidLoad {
[super viewDidLoad];

self.view.backgroundColor = [UIColor blackColor];
self.title = @"Analog/Digital Meter";

NSError *error = nil;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ import UIKit
override func viewDidLoad() {
super.viewDidLoad();

// Set the background color to black to have a nicer transition
self.view.backgroundColor = UIColor.black

self.title = "Electric Meter";

self.title = "Electric Meter";

do {
self.meterScanPlugin = try ALMeterScanPlugin.init(pluginID:"ENERGY", delegate: self);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ @implementation ALPDF417ScanViewController
- (void)viewDidLoad {
[super viewDidLoad];

// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];

self.title = @"PDF417";
CGRect frame = [self scanViewFrame];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ - (void)viewDidLoad {
[super viewDidLoad];
self.title = @"NFC";
CGFloat hintMargin = 7;
// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];

UILabel * hintViewLabel = [[UILabel alloc] initWithFrame:CGRectZero];
UIView * hintView = [[UILabel alloc] initWithFrame:CGRectZero];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ @implementation ALEnergyMeterScanViewController
We will do our main setup in viewDidLoad. Its called once the view controller is getting ready to be displayed.
*/
- (void)viewDidLoad {
// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];

self.title = @"Barcode";
CGRect frame = [self scanViewFrame];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ @implementation ALRBScanViewController
*/
- (void)viewDidLoad {
[super viewDidLoad];
// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];

self.title = @"RedBull";
// Initializing the scan view. It's a UIView subclass. We set the frame to fill the whole screen
CGRect frame = [self scanViewFrame];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ @implementation ALRecordNumberScanViewController
*/
- (void)viewDidLoad {
[super viewDidLoad];
// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];
self.title = @"Record Number";

// Initializing the scan view. It's a UIView subclass. We set the frame to fill the whole screen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ @implementation ALScrabbleScanViewController
- (void)viewDidLoad {
[super viewDidLoad];

// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];
self.title = @"Scrabble";
// Initializing the scan view. It's a UIView subclass. We set the frame to fill the whole screen
CGRect frame = [self scanViewFrame];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ @implementation ALUniversalSerialNumberScanViewController
*/
- (void)viewDidLoad {
[super viewDidLoad];
// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];

self.title = @"Universal Serial Number";
// Initializing the scan view. It's a UIView subclass. We set the frame to fill the whole screen
CGRect frame = [self scanViewFrame];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ @implementation ALTINScanViewController

- (void)viewDidLoad {
[super viewDidLoad];
// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor AL_BackgroundColor];

self.title = @"TIN";
self.dialogIndexSelected = 0;
[self setupScanner:ALTINUniversal];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,6 @@ class TireViewController: ALBaseScanViewController, ALTireScanPluginDelegate {

override func viewDidLoad() {
super.viewDidLoad()

// a quick, temporary way to use a different config on startup through the featured banner
// (ALFeaturedExampleLoader)
switch title {
case "Tire Size Specifications":
configType = .tireSizeConfig
case "Commercial Tire Identification Number":
configType = .commercialTireConfig
case "Tire Identification Number (DOT)":
configType = .tinConfig
default: break
}

setupTirePlugin()
}

Expand Down Expand Up @@ -69,9 +56,6 @@ class TireViewController: ALBaseScanViewController, ALTireScanPluginDelegate {
}

func setupTirePlugin() {

let instructionBackground = UIView()
view.addSubview(instructionBackground)
do {
var tireConfig: ALBaseTireConfig = .init()
switch configType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ @implementation ALUniversalIDScanViewController

- (void)viewDidLoad {
[super viewDidLoad];
// Set the background color to black to have a nicer transition
self.view.backgroundColor = [UIColor blackColor];

self.title = @"Universal ID";

// Initializing the scan view. It's a UIView subclass. We set the frame to fill the whole screen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ @implementation ALUniversalIDScanViewControllerFrontAndBack
- (void)viewDidLoad {
[super viewDidLoad];

self.view.backgroundColor = [UIColor blackColor];
self.title = (self.title && self.title.length > 0) ? self.title : @"Universal ID";

NSError *error = nil;
Expand Down

This file was deleted.

Loading

0 comments on commit cfb74be

Please sign in to comment.