Skip to content

Commit

Permalink
Added Anyline 42.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aldrichanyline committed Nov 15, 2022
1 parent dad900c commit 97cb984
Show file tree
Hide file tree
Showing 575 changed files with 6,010 additions and 6,203 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ - (IBAction)toggleBarcodeScanning:(id)sender {
self.barcodeResult = @"";
} else {
self.enableBarcodeSwitch.on = true;
[self.scanView.captureDeviceManager setNativeBarcodeFormats:[self.class nativeBarcodeFormats]];
[self.scanView.captureDeviceManager addBarcodeDelegate:self error:nil];
}

Expand Down Expand Up @@ -213,4 +214,24 @@ - (void)anylineCaptureDeviceManager:(ALCaptureDeviceManager *)captureDeviceManag
}


#pragma mark - List of (native) barcode formats to support

+ (NSArray *)nativeBarcodeFormats {
return @[
AVMetadataObjectTypeAztecCode,
AVMetadataObjectTypeCode128Code,
AVMetadataObjectTypeCode39Code,
AVMetadataObjectTypeCode39Mod43Code,
AVMetadataObjectTypeCode93Code,
AVMetadataObjectTypeDataMatrixCode,
AVMetadataObjectTypeEAN13Code,
AVMetadataObjectTypeEAN8Code,
AVMetadataObjectTypeITF14Code,
AVMetadataObjectTypeInterleaved2of5Code,
AVMetadataObjectTypePDF417Code,
AVMetadataObjectTypeQRCode,
AVMetadataObjectTypeUPCECode,
];
}

@end
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ - (void)viewDidLoad {
switch (self.scanMode) {
case ALDigitalMeter:
case ALAutoAnalogDigitalMeter:
case ALDigitalMeter2Experimental:
unit = @"kWh";
break;
case ALHeatMeter4:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,16 @@ @implementation ALParallelMeterScanViewController

- (void)viewDidLoad {
[super viewDidLoad];

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

// ALMeterCollectionViewController can give it its title
if (!self.title.length) {
self.title = @"Analog/Digital Meter";
}

ALScanMode scanMode = ALAutoAnalogDigitalMeter;
if ([self.title isEqualToString:@"Digital (APAC)"]) {
scanMode = ALDigitalMeter2Experimental;
}

NSError *error = nil;
ALMeterScanPlugin *meterScanPlugin = [[ALMeterScanPlugin alloc] initWithPluginID:kMeterScanViewPluginID
Expand All @@ -49,7 +57,7 @@ - (void)viewDidLoad {
NSAssert(meterScanPlugin, @"Setup Error: %@", error.debugDescription);

// Set ScanMode to ALAutoAnalogDigitalMeter
BOOL success = [meterScanPlugin setScanMode:ALAutoAnalogDigitalMeter error:&error];
BOOL success = [meterScanPlugin setScanMode:scanMode error:&error];
if (!success) {
__weak __block typeof(self) weakSelf = self;
[self showAlertWithTitle:@"Set ScanMode Error" message:error.debugDescription completion:^{
Expand All @@ -58,17 +66,23 @@ - (void)viewDidLoad {
}

self.meterScanViewPlugin = [[ALMeterScanViewPlugin alloc] initWithScanPlugin:meterScanPlugin];


// since barcode cutout region (full screen) doesn't match meter, we will disable have both's cutout
// BG colors be clear so as to avoid having visible areas where the cutout mask don't intersect while
// parallel scanning mode is on.
ALScanViewPluginConfig *meterScanViewPluginConfig = [ALScanViewPluginConfig defaultMeterConfig];
meterScanViewPluginConfig.cutoutConfig.backgroundColor = [UIColor clearColor];
self.meterScanViewPlugin.scanViewPluginConfig = meterScanViewPluginConfig;

ALBarcodeScanPlugin *barcodeScanPlugin = [[ALBarcodeScanPlugin alloc]
initWithPluginID:kBarcodeScanViewPluginID
delegate:self // we don't needed this, but must
error:&error];

NSAssert(barcodeScanPlugin, @"Setup Error: %@", error.debugDescription);
[barcodeScanPlugin setBarcodeFormatOptions:@[kCodeTypeAll]];

// will borrow from the meter scan config (so that they share identical cutout regions)
ALScanViewPluginConfig *barcodeScanViewPluginConfig = self.meterScanViewPlugin.scanViewPluginConfig;
ALScanViewPluginConfig *barcodeScanViewPluginConfig = [self.class barcodeScanViewPluginConfig];
self.barcodeScanViewPlugin = [[ALBarcodeScanViewPlugin alloc] initWithScanPlugin:barcodeScanPlugin
scanViewPluginConfig:barcodeScanViewPluginConfig];

Expand Down Expand Up @@ -110,6 +124,22 @@ - (void)viewDidLoad {
[self.scanView startCamera];
}

+ (ALScanViewPluginConfig *)barcodeScanViewPluginConfig {
ALScanViewPluginConfig *barcodeScanViewPluginConfig = [ALScanViewPluginConfig defaultBarcodeConfig];
barcodeScanViewPluginConfig.cutoutConfig = [ALCutoutConfig defaultCutoutConfig];
barcodeScanViewPluginConfig.cutoutConfig.path = [UIBezierPath bezierPathWithRect:CGRectMake(0, 0, 1024, 1920)];
barcodeScanViewPluginConfig.cutoutConfig.strokeWidth = 0; // hide this
barcodeScanViewPluginConfig.cutoutConfig.backgroundColor = [[UIColor whiteColor] colorWithAlphaComponent:0];
barcodeScanViewPluginConfig.cutoutConfig.cornerRadius = 0;
barcodeScanViewPluginConfig.cutoutConfig.alignment = ALCutoutAlignmentMiddle;
barcodeScanViewPluginConfig.scanFeedbackConfig.strokeWidth = 0;
barcodeScanViewPluginConfig.scanFeedbackConfig.beepOnResult = NO;
barcodeScanViewPluginConfig.scanFeedbackConfig.vibrateOnResult = NO;
barcodeScanViewPluginConfig.scanFeedbackConfig.fillColor = [UIColor clearColor];
barcodeScanViewPluginConfig.scanFeedbackConfig.strokeColor = [UIColor clearColor];
return barcodeScanViewPluginConfig;
}

// MARK: - UIViewController Lifecycle Methods

- (void)viewDidAppear:(BOOL)animated {
Expand Down
4 changes: 3 additions & 1 deletion AnylineExamples/AnylineExamples.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,7 @@
};
};
buildConfigurationList = 909D08860FE438988E319563 /* Build configuration list for PBXProject "AnylineExamples" */;
compatibilityVersion = "Xcode 10.0";
compatibilityVersion = "Xcode 11.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
Expand Down Expand Up @@ -1723,6 +1723,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = AnylineExamples.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
DEVELOPMENT_TEAM = 2MSE892CA7;
ENABLE_BITCODE = NO;
Expand Down Expand Up @@ -1810,6 +1811,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = AnylineExamples.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
DEVELOPMENT_TEAM = 2MSE892CA7;
ENABLE_BITCODE = NO;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1200"
version = "1.3">
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
Expand All @@ -27,10 +27,8 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
onlyGenerateCoverageForSpecifiedTargets = "NO"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
shouldUseLaunchSchemeArgsEnv = "YES"
onlyGenerateCoverageForSpecifiedTargets = "NO">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
Expand All @@ -40,6 +38,8 @@
ReferencedContainer = "container:AnylineExamples.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
</Testables>
<CommandLineArguments>
</CommandLineArguments>
</TestAction>
Expand Down
6 changes: 3 additions & 3 deletions Documentation/html/Blocks/ALImageProviderBlock.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<link rel="stylesheet" href="../css/style.css">
<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
<meta name="generator" content="appledoc 2.2.1 (build 1333)">
<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
<header>
Expand Down Expand Up @@ -112,10 +112,10 @@ <h4 class="method-subtitle">Declared In</h4>
<footer>
<div class="footer-copyright">

<p class="copyright">Copyright &copy; 2022 Anyline GmbH. All rights reserved. Updated: 2022-11-07</p>
<p class="copyright">Copyright &copy; 2022 Anyline GmbH. All rights reserved. Updated: 2022-11-15</p>


<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1333)</a>.</p>
<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>

</div>
</footer>
Expand Down
8 changes: 4 additions & 4 deletions Documentation/html/Blocks/APDUCompletionHandler.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<link rel="stylesheet" href="../css/style.css">
<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
<meta name="generator" content="appledoc 2.2.1 (build 1333)">
<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
<header>
Expand Down Expand Up @@ -82,7 +82,7 @@ <h4 class="method-subtitle parameter-title">Block Definition</h4>
<h3 class="subsubtitle method-title">APDUCompletionHandler</h3>


<code>typedef void (^APDUCompletionHandler) (ALResponseAPDU *_Nullable, response ,, NSError *_Nullable, tagError ), ; typedef, void (, ^ TagReadingCompletionHandler)</code>
<code>typedef void (^APDUCompletionHandler) (ALResponseAPDU *_Nullable, response , NSError *_Nullable, tagError )</code>



Expand All @@ -93,10 +93,10 @@ <h3 class="subsubtitle method-title">APDUCompletionHandler</h3>
<footer>
<div class="footer-copyright">

<p class="copyright">Copyright &copy; 2022 Anyline GmbH. All rights reserved. Updated: 2022-11-07</p>
<p class="copyright">Copyright &copy; 2022 Anyline GmbH. All rights reserved. Updated: 2022-11-15</p>


<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1333)</a>.</p>
<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>

</div>
</footer>
Expand Down
8 changes: 4 additions & 4 deletions Documentation/html/Blocks/DataGroupCompletionHandler.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<link rel="stylesheet" href="../css/style.css">
<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
<meta name="generator" content="appledoc 2.2.1 (build 1333)">
<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
<header>
Expand Down Expand Up @@ -82,7 +82,7 @@ <h4 class="method-subtitle parameter-title">Block Definition</h4>
<h3 class="subsubtitle method-title">DataGroupCompletionHandler</h3>


<code>typedef void (^DataGroupCompletionHandler) (DataGroupId dataGroupID, ALInternalDataGroup *_Nonnull, dataGroup ), ; @property, DataGroupCompletionHandler _Nullable, dataGroupCompletionHandler ;, @property (, readonly ), NSMutableDictionary <, NSNumber *,, ALInternalDataGroup *>, * _Nonnull, dataGroupsRead ;, - (, void ), addDataGroup :, ( ALInternalDataGroup, * _Nonnull, ) dataGroup, forID :, ( DataGroupId, ) dataGroupID, ; -, ( NSString, * _Nonnull, ) passportMRZ, ; -, ( NSDictionary, < NSString, * ,, NSString *>, * _Nullable, ) passportDataElements, ; -, ( UIImage, * _Nullable, ) passportDataImage, ; -, ( UIImage, * _Nullable, ) signatureImage, ; -, ( ALInternalDataGroup, * _Nullable, ) getDataGroupWithID, : (, DataGroupId ), groupID ;, @end #, endif )</code>
<code>typedef void (^DataGroupCompletionHandler) (DataGroupId dataGroupID, ALInternalDataGroup *_Nonnull, dataGroup )</code>



Expand All @@ -93,10 +93,10 @@ <h3 class="subsubtitle method-title">DataGroupCompletionHandler</h3>
<footer>
<div class="footer-copyright">

<p class="copyright">Copyright &copy; 2022 Anyline GmbH. All rights reserved. Updated: 2022-11-07</p>
<p class="copyright">Copyright &copy; 2022 Anyline GmbH. All rights reserved. Updated: 2022-11-15</p>


<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1333)</a>.</p>
<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>

</div>
</footer>
Expand Down
8 changes: 4 additions & 4 deletions Documentation/html/Blocks/ErrorHandler.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<link rel="stylesheet" href="../css/style.css">
<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
<meta name="generator" content="appledoc 2.2.1 (build 1333)">
<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
<header>
Expand Down Expand Up @@ -82,7 +82,7 @@ <h4 class="method-subtitle parameter-title">Block Definition</h4>
<h3 class="subsubtitle method-title">ErrorHandler</h3>


<code>typedef void (^ErrorHandler) (NSError *_Nullable, tagError ), ; -, ( instancetype, _Nullable ), initWithTagReader :, ( ALTagReader, * _Nonnull, ) tagReader, ; -, ( void, ) performBACAndGetSessionKeysWithMRZKey, : (, NSString *_Nonnull, ) mrzKey, completionHandler :, ( _Nonnull, ErrorHandler ), handler ;, @end #, endif )</code>
<code>typedef void (^ErrorHandler) (NSError *_Nullable, tagError )</code>



Expand All @@ -93,10 +93,10 @@ <h3 class="subsubtitle method-title">ErrorHandler</h3>
<footer>
<div class="footer-copyright">

<p class="copyright">Copyright &copy; 2022 Anyline GmbH. All rights reserved. Updated: 2022-11-07</p>
<p class="copyright">Copyright &copy; 2022 Anyline GmbH. All rights reserved. Updated: 2022-11-15</p>


<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1333)</a>.</p>
<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>

</div>
</footer>
Expand Down
8 changes: 4 additions & 4 deletions Documentation/html/Blocks/NFCCompletionHandler.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<link rel="stylesheet" href="../css/style.css">
<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
<meta name="generator" content="appledoc 2.2.1 (build 1333)">
<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
<header>
Expand Down Expand Up @@ -82,7 +82,7 @@ <h4 class="method-subtitle parameter-title">Block Definition</h4>
<h3 class="subsubtitle method-title">NFCCompletionHandler</h3>


<code>typedef void (^NFCCompletionHandler) (ALNFCPassportModel *_Nullable, passportModel ,, NSError *_Nullable, tagError ), ; API_AVAILABLE, ( ios, ( 13.0, ) ), @interface ALPassportReader, : NSObject, < NFCTagReaderSessionDelegate, > -, ( void, ) readPassportWithMRZKey, : (, NSString *_Nonnull, ) mrzKey, tags :, ( NSArray, < NSNumber, * >, * _Nonnull, ) tags, completed :, ( NFCCompletionHandler, _Nonnull ), handler dataGroupCompleted, : (, DataGroupCompletionHandler _Nonnull, ) dataGroupCompletionHandler, ; @property, ( readonly, ) ALNFCResult, * _Nonnull, result ;, + (, BOOL ), readingAvailable ;, @end #, endif )</code>
<code>typedef void (^NFCCompletionHandler) (ALNFCPassportModel *_Nullable, passportModel , NSError *_Nullable, tagError )</code>



Expand All @@ -93,10 +93,10 @@ <h3 class="subsubtitle method-title">NFCCompletionHandler</h3>
<footer>
<div class="footer-copyright">

<p class="copyright">Copyright &copy; 2022 Anyline GmbH. All rights reserved. Updated: 2022-11-07</p>
<p class="copyright">Copyright &copy; 2022 Anyline GmbH. All rights reserved. Updated: 2022-11-15</p>


<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1333)</a>.</p>
<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>

</div>
</footer>
Expand Down
Loading

0 comments on commit 97cb984

Please sign in to comment.