Skip to content

Commit

Permalink
release/54.4.0 (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
vimalvenugopalananyline authored Nov 14, 2024
1 parent 7c99ba1 commit b41fcce
Show file tree
Hide file tree
Showing 394 changed files with 485 additions and 442 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,12 @@ extension CompositeScanViewController: ALViewPluginCompositeDelegate {

extension CompositeScanViewController: ResultViewControllerDelegate {

func didDismissModalViewController(_ viewController: ResultViewController) {
func didDismissModalViewController(_ viewController: ResultViewController,
restart: Bool) {
guard restart else {
self.navigationController?.popViewController(animated: false)
return
}
try? self.scanView.startScanning()
}

Expand Down
54 changes: 37 additions & 17 deletions AnylineExamples/Source Files/ResultViewController.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import UIKit

protocol ResultViewControllerDelegate: AnyObject {
func didDismissModalViewController(_ viewController: ResultViewController)
func didDismissModalViewController(_ viewController: ResultViewController, restart: Bool)
}


Expand Down Expand Up @@ -47,8 +47,10 @@ class ResultViewController: UIViewController {
}


let scanAgainButton = UIButton(type: .custom)

let dismissButton = UIButton(type: .custom)

override func viewDidLoad() {
super.viewDidLoad()
setupViews()
Expand All @@ -63,9 +65,17 @@ class ResultViewController: UIViewController {
headerLabel.text = "Scan Result"
headerLabel.font = UIFont.boldSystemFont(ofSize: 24)
headerLabel.textColor = .white

headerLabel.textAlignment = .center
view.addSubview(headerLabel)


// Config dismissButton
dismissButton.setTitle("Done", for: .normal)
dismissButton.titleLabel?.font = .boldSystemFont(ofSize: 16)
dismissButton.titleLabel?.textColor = .white
dismissButton.addTarget(self, action: #selector(dismissScan), for: .touchUpInside)
view.addSubview(dismissButton)

// Configure collectionView
collectionView.dataSource = self
collectionView.delegate = self
Expand Down Expand Up @@ -96,28 +106,33 @@ class ResultViewController: UIViewController {
view.addSubview(textView)

// Configure dismissButton
dismissButton.backgroundColor = .init(red: 0, green: 0.6, blue: 1, alpha: 1)
dismissButton.setTitle("Scan Again", for: .normal)
dismissButton.titleLabel?.font = .boldSystemFont(ofSize: 18)
dismissButton.addTarget(self, action: #selector(dismissViewController), for: .touchUpInside)
dismissButton.layer.cornerRadius = 4
view.addSubview(dismissButton)
scanAgainButton.backgroundColor = .init(red: 0, green: 0.6, blue: 1, alpha: 1)
scanAgainButton.setTitle("Scan Again", for: .normal)
scanAgainButton.titleLabel?.font = .boldSystemFont(ofSize: 18)
scanAgainButton.addTarget(self, action: #selector(restartScan), for: .touchUpInside)
scanAgainButton.layer.cornerRadius = 4
view.addSubview(scanAgainButton)
}

private func setupConstraints() {
headerLabel.translatesAutoresizingMaskIntoConstraints = false
collectionView.translatesAutoresizingMaskIntoConstraints = false
textView.translatesAutoresizingMaskIntoConstraints = false
jsonLabel.translatesAutoresizingMaskIntoConstraints = false
scanAgainButton.translatesAutoresizingMaskIntoConstraints = false
dismissButton.translatesAutoresizingMaskIntoConstraints = false

NSLayoutConstraint.activate([
// HeaderLabel constraints
headerLabel.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor),
headerLabel.leadingAnchor.constraint(equalTo: view.leadingAnchor),
headerLabel.trailingAnchor.constraint(equalTo: view.trailingAnchor),
headerLabel.heightAnchor.constraint(equalToConstant: 50),


dismissButton.centerYAnchor.constraint(equalTo: headerLabel.centerYAnchor),
dismissButton.widthAnchor.constraint(equalToConstant: 50),
dismissButton.trailingAnchor.constraint(equalTo: headerLabel.trailingAnchor, constant: -10),

// CollectionView constraints
collectionView.topAnchor.constraint(equalTo: headerLabel.bottomAnchor),
collectionView.leadingAnchor.constraint(equalTo: view.leadingAnchor),
Expand All @@ -137,15 +152,20 @@ class ResultViewController: UIViewController {
textView.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor, constant: -16),

// DismissButton constraints
dismissButton.trailingAnchor.constraint(equalTo: view.trailingAnchor, constant: -16),
dismissButton.topAnchor.constraint(equalTo: collectionView.bottomAnchor, constant: 16),
dismissButton.heightAnchor.constraint(equalToConstant: 35),
dismissButton.widthAnchor.constraint(equalToConstant: 120)
scanAgainButton.trailingAnchor.constraint(equalTo: view.trailingAnchor, constant: -16),
scanAgainButton.topAnchor.constraint(equalTo: collectionView.bottomAnchor, constant: 16),
scanAgainButton.heightAnchor.constraint(equalToConstant: 35),
scanAgainButton.widthAnchor.constraint(equalToConstant: 120)
])
}

@objc private func dismissViewController() {
delegate?.didDismissModalViewController(self)
@objc private func restartScan() {
delegate?.didDismissModalViewController(self, restart: true)
dismiss(animated: true, completion: nil)
}

@objc private func dismissScan() {
delegate?.didDismissModalViewController(self, restart: false)
dismiss(animated: true, completion: nil)
}
}
Expand Down
8 changes: 7 additions & 1 deletion AnylineExamples/Source Files/SimpleScanViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ class SimpleScanViewController: UIViewController {
extension SimpleScanViewController: ALScanPluginDelegate {
func scanPlugin(_ scanPlugin: ALScanPlugin, resultReceived scanResult: ALScanResult) {
print("Scan Result: \(scanResult.resultDictionary)")

let modalVC = ResultViewController()
modalVC.modalPresentationStyle = .overFullScreen
modalVC.images = [ scanResult.croppedImage ]
Expand All @@ -144,7 +145,12 @@ extension SimpleScanViewController: ALScanPluginDelegate {

extension SimpleScanViewController: ResultViewControllerDelegate {

func didDismissModalViewController(_ viewController: ResultViewController) {
func didDismissModalViewController(_ viewController: ResultViewController,
restart: Bool) {
guard restart else {
self.navigationController?.popViewController(animated: false)
return
}
try? self.scanView.startScanning()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"maxHeightPercent": "80%",
"alignment": "top_half",
"ratioFromSize": {
"width": 720,
"height": 144
"width": 5,
"height": 1
},
"strokeWidth": 2,
"strokeColor": "FFFFFF",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"maxWidthPercent": "10%",
"alignment": "center",
"ratioFromSize": {
"width": 9,
"height": 62
"width": 0.15,
"height": 1.00
},
"strokeWidth": 2,
"strokeColor": "FFFFFF",
Expand Down
Binary file modified Documentation/Anyline.doccarchive.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions Framework/Anyline.framework/Anyline
Git LFS file not shown
3 changes: 2 additions & 1 deletion Framework/Anyline.framework/Headers/ALScanViewConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,8 @@ NS_ASSUME_NONNULL_BEGIN
/// The minFieldConfidences configure which fields must reach which confidence thresholds in
/// order to be part of the scan result.
@property (nonatomic, nullable, strong) ALMrzMinFieldConfidences *mrzMinFieldConfidences;
/// The strictMode determines whether or not the MRZ must follow the ICAO standard.
/// When enabling the strictMode, a result is only returned if all the check digits on the
/// scanned document are valid.
@property (nonatomic, assign) BOOL isStrictMode;
@end

Expand Down
2 changes: 1 addition & 1 deletion Framework/Anyline.framework/Headers/Anyline-Swift.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
// Generated by Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
#ifndef ANYLINE_SWIFT_H
#define ANYLINE_SWIFT_H
#pragma clang diagnostic push
Expand Down
3 changes: 3 additions & 0 deletions Framework/Anyline.framework/Headers/AnylineSDK.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ NS_ASSUME_NONNULL_BEGIN
/// @return the date of expiry as a string, or null if the license wasn't yet initialized
+ (NSString *)licenseExpirationDate;

/// Returns a boolean indicating if the Anyline license is initialized.
+ (BOOL)isInitialized;

/// Version number of the SDK
/// @return the version number of the SDK
+ (NSString *)versionNumber;
Expand Down
Binary file modified Framework/Anyline.framework/Info.plist
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
// swift-compiler-version: Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
// swift-module-flags: -target arm64-apple-ios12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name Anyline
// swift-module-flags-ignorable: -no-verify-emitted-module-interface
@_exported import Anyline
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
// swift-compiler-version: Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
// swift-module-flags: -target arm64-apple-ios12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name Anyline
// swift-module-flags-ignorable: -no-verify-emitted-module-interface
@_exported import Anyline
Expand Down
Binary file not shown.
30 changes: 15 additions & 15 deletions Framework/Anyline.framework/_CodeSignature/CodeResources
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
</data>
<key>Headers/ALScanViewConfig.h</key>
<data>
oMxVjvRZ0nE8egBpOHcsaskwL+Y=
uKh7cDEhyYTBV3jg1US2mFypaOw=
</data>
<key>Headers/ALScanViewFactory.h</key>
<data>
Expand Down Expand Up @@ -114,39 +114,39 @@
</data>
<key>Headers/Anyline-Swift.h</key>
<data>
F0daAGJHr/511FAP2SZN5Om7x+c=
EiNpjQAe7k+7+BKpUlFr4aBPFzU=
</data>
<key>Headers/Anyline.h</key>
<data>
Sw3P+nRYXMW/0yNONfIquK6xC64=
</data>
<key>Headers/AnylineSDK.h</key>
<data>
crF9BohPYGdT6SQmTdeC4ON1g7o=
gWwIX9FF+zkgfBhyyC3eFj8N87g=
</data>
<key>Info.plist</key>
<data>
kEu8964Q79XovCPNGdYe+FOkVL4=
r7Ql79ipjSMvYSrehWYeDS9BAyk=
</data>
<key>Modules/Anyline.swiftmodule/arm64-apple-ios.abi.json</key>
<data>
oOP2RQhV+LG45tlWgjXtLC5PosM=
</data>
<key>Modules/Anyline.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
<data>
+bI4JmY8PQfvcUVf9I+7nik8mJI=
ScViIyWjv42OJGsjLQMBl9nHXMo=
</data>
<key>Modules/Anyline.swiftmodule/arm64-apple-ios.swiftdoc</key>
<data>
cGEzeBZSM/xEzuQOfyz1idqENJk=
NMjm2FZATjCLJ9qXmN9q0RixRLU=
</data>
<key>Modules/Anyline.swiftmodule/arm64-apple-ios.swiftinterface</key>
<data>
+bI4JmY8PQfvcUVf9I+7nik8mJI=
ScViIyWjv42OJGsjLQMBl9nHXMo=
</data>
<key>Modules/Anyline.swiftmodule/arm64-apple-ios.swiftmodule</key>
<data>
L0B8IyfQSYLgPeBVn2NT9eelQ4w=
Xf6w9Sg19tdYCHdmWTJuJtFs6+c=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand Down Expand Up @@ -292,7 +292,7 @@
<dict>
<key>hash2</key>
<data>
EE0TlMZjCnGgyiLuurYebqWiB1IFDEwnVqX5338ZsxY=
kj+JsA9aLtcqq2vtfygXm6et41ltH47tVDIoKms1ugM=
</data>
</dict>
<key>Headers/ALScanViewFactory.h</key>
Expand Down Expand Up @@ -348,7 +348,7 @@
<dict>
<key>hash2</key>
<data>
KpCioDKDoqOLDYgQNfTLuAgn/+GYYLK58uEhz0K7NF4=
gSkDG/NmneErGlKWWSpQYnFnYHH0F+0FBjbHNiyShgk=
</data>
</dict>
<key>Headers/Anyline.h</key>
Expand All @@ -362,7 +362,7 @@
<dict>
<key>hash2</key>
<data>
+QZURzkNfEHjFbX4muxsGUQYihM8Heo0/o/yGAvwX54=
npdAX/neXzdNViPRt5AlN8ptTLEIPJvJUjDay1xMX10=
</data>
</dict>
<key>Modules/Anyline.swiftmodule/arm64-apple-ios.abi.json</key>
Expand All @@ -376,28 +376,28 @@
<dict>
<key>hash2</key>
<data>
a+Tz9wW5h9GJNLGlVS3jK4S6Irt+2g9m/1VZ9brPY58=
ZzOIyVtL3cJ6BvzuRVNwCtttIRgcZDl5n+EkwzywRRw=
</data>
</dict>
<key>Modules/Anyline.swiftmodule/arm64-apple-ios.swiftdoc</key>
<dict>
<key>hash2</key>
<data>
inDxi6OGZVfG/4e2H7+91CTFN9bp1AGV7zOddvW7Log=
SK46DgbO1Olwv/BK23QVRwAd1gZyhYk+3YIbwGVMLXA=
</data>
</dict>
<key>Modules/Anyline.swiftmodule/arm64-apple-ios.swiftinterface</key>
<dict>
<key>hash2</key>
<data>
a+Tz9wW5h9GJNLGlVS3jK4S6Irt+2g9m/1VZ9brPY58=
ZzOIyVtL3cJ6BvzuRVNwCtttIRgcZDl5n+EkwzywRRw=
</data>
</dict>
<key>Modules/Anyline.swiftmodule/arm64-apple-ios.swiftmodule</key>
<dict>
<key>hash2</key>
<data>
q+/PfNVX3XIBNVS3ZRG5qbL9fZNjCVHGhG/mRbASKJQ=
w76hdP/fUI5FX9poNTpjY9EwuyQOkvpkZZMgM8KWK2A=
</data>
</dict>
<key>Modules/module.modulemap</key>
Expand Down
Binary file modified Framework/Anyline.xcframework/ios-arm64/Anyline.framework/Anyline
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,8 @@ NS_ASSUME_NONNULL_BEGIN
/// The minFieldConfidences configure which fields must reach which confidence thresholds in
/// order to be part of the scan result.
@property (nonatomic, nullable, strong) ALMrzMinFieldConfidences *mrzMinFieldConfidences;
/// The strictMode determines whether or not the MRZ must follow the ICAO standard.
/// When enabling the strictMode, a result is only returned if all the check digits on the
/// scanned document are valid.
@property (nonatomic, assign) BOOL isStrictMode;
@end

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
// Generated by Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
#ifndef ANYLINE_SWIFT_H
#define ANYLINE_SWIFT_H
#pragma clang diagnostic push
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ NS_ASSUME_NONNULL_BEGIN
/// @return the date of expiry as a string, or null if the license wasn't yet initialized
+ (NSString *)licenseExpirationDate;

/// Returns a boolean indicating if the Anyline license is initialized.
+ (BOOL)isInitialized;

/// Version number of the SDK
/// @return the version number of the SDK
+ (NSString *)versionNumber;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
// swift-compiler-version: Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
// swift-module-flags: -target arm64-apple-ios12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name Anyline
// swift-module-flags-ignorable: -no-verify-emitted-module-interface
@_exported import Anyline
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
// swift-compiler-version: Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
// swift-module-flags: -target arm64-apple-ios12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name Anyline
// swift-module-flags-ignorable: -no-verify-emitted-module-interface
@_exported import Anyline
Expand Down
Loading

0 comments on commit b41fcce

Please sign in to comment.