Skip to content

Commit

Permalink
Updated framework with MBException
Browse files Browse the repository at this point in the history
  • Loading branch information
juraskrlec committed Feb 9, 2018
1 parent 0a94a6e commit 3d782bb
Show file tree
Hide file tree
Showing 12 changed files with 90 additions and 37 deletions.
Binary file modified MicroBlink.bundle/Info.plist
Binary file not shown.
20 changes: 20 additions & 0 deletions MicroBlink.framework/Headers/MBException.h
@@ -0,0 +1,20 @@
//
// MBException.h
// Pdf417MobiDev
//
// Created by Jura Skrlec on 07/02/2018.
//

#ifndef MBException_h
#define MBException_h

typedef NSString * MBExceptionName NS_EXTENSIBLE_STRING_ENUM;

FOUNDATION_EXPORT MBExceptionName const MBIllegalModificationException;
FOUNDATION_EXPORT MBExceptionName const MBInvalidLicenseKeyException;
FOUNDATION_EXPORT MBExceptionName const MBInvalidLicenseeKeyException;
FOUNDATION_EXPORT MBExceptionName const MBInvalidLicenseResourceException;
FOUNDATION_EXPORT MBExceptionName const MBInvalidBundleException;
FOUNDATION_EXPORT MBExceptionName const MBMissingSettingsException;

#endif /* MBException_h */
2 changes: 1 addition & 1 deletion MicroBlink.framework/Headers/MBFrameGrabberRecognizer.h
Expand Up @@ -22,7 +22,7 @@ PP_CLASS_AVAILABLE_IOS(8.0)
@interface MBFrameGrabberRecognizer : MBRecognizer<NSCopying>

- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithFrameGrabberDelegate:(id<MBFrameGrabberRecognizerDelegate>)frameGrabberDelegate error:(NSError * _Nullable * _Nonnull)error __attribute__((swift_error(nonnull_error))) NS_SWIFT_NAME(init(frameGrabberDelegate:));
- (instancetype)initWithFrameGrabberDelegate:(id<MBFrameGrabberRecognizerDelegate>)frameGrabberDelegate NS_SWIFT_NAME(init(frameGrabberDelegate:));

/**
* Allow sending focused camera frames to MBFrameGrabberRecognizerDelegate.
Expand Down
4 changes: 1 addition & 3 deletions MicroBlink.framework/Headers/MBMicroBlinkInitialization.h
Expand Up @@ -9,8 +9,6 @@
#define MBMicroBlinkInitialization_h

#define MB_INIT \
- (instancetype)init NS_UNAVAILABLE; \
- (instancetype)initWithError:(NSError **)error __attribute__((swift_error(nonnull_error))) NS_SWIFT_NAME(init()) NS_DESIGNATED_INITIALIZER; \

- (instancetype)init NS_DESIGNATED_INITIALIZER; \

#endif /* MBMicroBlinkInitialization_h */
18 changes: 6 additions & 12 deletions MicroBlink.framework/Headers/MBMicroblinkSDK.h
Expand Up @@ -21,9 +21,8 @@ PP_CLASS_AVAILABLE_IOS(8.0)
/**
* Set license buffer and unlock the SDK. Application package will be used to validate the license.
* @param licenseBuffer Byte array containing the license.
* @param error Out with invalid license key error.
*/
- (BOOL)setLicenseBuffer:(NSData * _Nonnull)licenseBuffer error:(NSError * _Nullable * _Nonnull)error;
- (void)setLicenseBuffer:(NSData * _Nonnull)licenseBuffer;

/**
* Set license buffer and unlock the SDK. Also define licensee that will be used to validate the license.
Expand All @@ -32,16 +31,14 @@ PP_CLASS_AVAILABLE_IOS(8.0)
* single license within multiple application packages.
* @param licenseBuffer Byte array containing the license.
* @param licensee Licensee to which license is given to.
* @param error Out with invalid license key error.
*/
- (BOOL)setLicenseBuffer:(NSData * _Nonnull)licenseBuffer andLicensee:(NSString * _Nonnull)licensee error:(NSError * _Nullable * _Nonnull)error;
- (void)setLicenseBuffer:(NSData * _Nonnull)licenseBuffer andLicensee:(NSString * _Nonnull)licensee;

/**
* Set license key and unlock the SDK. Application package will be used to validate the license.
* @param base64LicenseKey License file encoded as base64 string.
* @param error Out with invalid license key error.
*/
- (BOOL)setLicenseKey:(NSString * _Nonnull)base64LicenseKey error:(NSError * _Nullable * _Nonnull)error;
- (void)setLicenseKey:(NSString * _Nonnull)base64LicenseKey;

/**
* Set license key and unlock the SDK. Also define licensee that will be used to validate the license.
Expand All @@ -50,19 +47,17 @@ PP_CLASS_AVAILABLE_IOS(8.0)
* single license within multiple application packages.
* @param base64LicenseKey Byte array containing the license.
* @param licensee Licensee to which license is given to.
* @param error Out with invalid license key error.
*/
- (BOOL)setLicenseKey:(NSString * _Nonnull)base64LicenseKey andLicensee:(NSString * _Nonnull)licensee error:(NSError * _Nullable * _Nonnull)error;
- (void)setLicenseKey:(NSString * _Nonnull)base64LicenseKey andLicensee:(NSString * _Nonnull)licensee;

/**
* Set the license file and unlock the SDK. Application package will be used to validate the license.
* @param fileName The name of resource file contained in the directory specified by subdirectory. If you specify nil, the method returns the first resource file it finds with the specified extension in that directory.
* @param extension The filename extension of the file (etc. txt). If you specify an empty string or nil, the extension is assumed not to exist and the file URL is the first file encountered that exactly matches name.
* @param subdirectory The valid path of top-level directory in which file is located inside bundle (etc. licenseFiles/). If you specify an empty string or nil, root direcotry of bundle will be searched.
* @param bundle NSBundle bundle required to access file.
* @param error Out with invalid license key error.
*/
- (BOOL)setLicenseResource:(NSString * _Nonnull)fileName withExtension:(NSString * _Nullable)extension inSubdirectory:(NSString * _Nullable)subdirectory forBundle:(NSBundle * _Nonnull)bundle error:(NSError * _Nullable * _Nonnull)error;
- (void)setLicenseResource:(NSString * _Nonnull)fileName withExtension:(NSString * _Nullable)extension inSubdirectory:(NSString * _Nullable)subdirectory forBundle:(NSBundle * _Nonnull)bundle;

/**
* Set the license file and unlock the SDK. Also define licensee that will be used to validate the license.
Expand All @@ -74,9 +69,8 @@ PP_CLASS_AVAILABLE_IOS(8.0)
* @param subdirectory The valid path of top-level directory in which file is located inside bundle (etc. licenseFiles/). If you specify an empty string or nil, root direcotry of bundle will be searched.
* @param bundle NSBundle bundle required to access file.
* @param licensee Licensee to which license is given to.
* @param error Out with invalid license key error.
*/
- (BOOL)setLicenseResource:(NSString * _Nonnull)fileName withExtension:(NSString * _Nullable)extension inSubdirectory:(NSString * _Nullable)subdirectory forBundle:(NSBundle * _Nonnull)bundle andLicensee:(NSString *)licensee error:(NSError * _Nullable * _Nonnull)error;
- (void)setLicenseResource:(NSString * _Nonnull)fileName withExtension:(NSString * _Nullable)extension inSubdirectory:(NSString * _Nullable)subdirectory forBundle:(NSBundle * _Nonnull)bundle andLicensee:(NSString *)licensee;

@end

Expand Down
Expand Up @@ -19,7 +19,7 @@ PP_CLASS_AVAILABLE_IOS(8.0)
@interface MBSuccessFrameGrabberRecognizer : MBRecognizer<NSCopying>

- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithRecognizer:(MBRecognizer *)recognizer error:(NSError * _Nullable * _Nonnull)error __attribute__((swift_error(nonnull_error))) NS_SWIFT_NAME(init(recognizer:)) NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithRecognizer:(MBRecognizer *)recognizer NS_SWIFT_NAME(init(recognizer:)) NS_DESIGNATED_INITIALIZER;

/**
* SuccessFrameGrabber recognizer results
Expand Down
2 changes: 1 addition & 1 deletion MicroBlink.framework/Headers/MBViewControllerFactory.h
Expand Up @@ -34,7 +34,7 @@ PP_CLASS_AVAILABLE_IOS(6.0)
*
* @return Scanning view controller fully initialized for presenting on screen.
*/
+ (UIViewController<MBRecognizerRunnerViewController> *)recognizerRunnerViewControllerWithOverlayViewController:(MBOverlayViewController *)overlayViewController error:(NSError **)error __attribute__((swift_error(nonnull_error))) NS_SWIFT_NAME(recognizerRunnerViewController(withOverlayViewController:));
+ (UIViewController<MBRecognizerRunnerViewController> *)recognizerRunnerViewControllerWithOverlayViewController:(MBOverlayViewController *)overlayViewController NS_SWIFT_NAME(recognizerRunnerViewController(withOverlayViewController:));

@end

Expand Down
3 changes: 3 additions & 0 deletions MicroBlink.framework/Headers/MicroBlink.h
Expand Up @@ -68,6 +68,9 @@
// Settings
#import "MBBarcodeOverlaySettings.h"

// Exception
#import "MBException.h"

// Detectors
#import "MBQuadrangle.h"
#import "MBDisplayableQuadDetection.h"
Expand Down
Binary file modified MicroBlink.framework/Info.plist
Binary file not shown.
Binary file modified MicroBlink.framework/MicroBlink
Binary file not shown.
51 changes: 33 additions & 18 deletions MicroBlink.framework/_CodeSignature/CodeResources
Expand Up @@ -84,9 +84,13 @@
<data>
0Gw2Cqe1mXgLhPbf9ipGpsrnSnM=
</data>
<key>Headers/MBException.h</key>
<data>
GE2w2FGq4uGpzIdklhFi0gBzcHw=
</data>
<key>Headers/MBFrameGrabberRecognizer.h</key>
<data>
+zqfTxHKO6jAc+Rx2ek7NgE4P6Q=
tAq++R25n251xE0aQyTJ+/0QBzc=
</data>
<key>Headers/MBGlareStatusOverlaySubview.h</key>
<data>
Expand All @@ -102,11 +106,11 @@
</data>
<key>Headers/MBMicroBlinkInitialization.h</key>
<data>
sLw1aqe7tJy8gDlLXQe52CGmKKo=
sgABlDoGH26XdB1GZ1a7ItMweLg=
</data>
<key>Headers/MBMicroblinkSDK.h</key>
<data>
nfMdE1LVECQRZY208k3xCT643a4=
wufGPbif1mBbQFMeFcAWML9gd50=
</data>
<key>Headers/MBModernBaseOverlayViewController.h</key>
<data>
Expand Down Expand Up @@ -206,7 +210,7 @@
</data>
<key>Headers/MBSuccessFrameGrabberRecognizer.h</key>
<data>
z3fYsf1a7c+mIwwudHu/kHwlTTM=
hU3Vl9dB6RlE0MepQ5YjH5OdV3I=
</data>
<key>Headers/MBSuccessFrameGrabberRecognizerResult.h</key>
<data>
Expand Down Expand Up @@ -234,15 +238,15 @@
</data>
<key>Headers/MBViewControllerFactory.h</key>
<data>
QQxRjY4fbTFqgwRhP3JpDmEl+pA=
AAZiZWeRfrX0Y3EKmR6f23Cl8wA=
</data>
<key>Headers/MBViewFinderOverlaySubview.h</key>
<data>
7pRpXjqjV3mETlKm1ppYREmnhjY=
</data>
<key>Headers/MicroBlink.h</key>
<data>
k6QrZAu5nFbUEgF43yKy3bP/cdU=
/EtYLO/ooG4tzC78J5Jt+SS1JQY=
</data>
<key>Headers/PPApp.h</key>
<data>
Expand Down Expand Up @@ -567,15 +571,26 @@
t4UfMJ0PvqlCMWyThaDqY9T8TUjr2VBMuM8nmpanBIE=
</data>
</dict>
<key>Headers/MBException.h</key>
<dict>
<key>hash</key>
<data>
GE2w2FGq4uGpzIdklhFi0gBzcHw=
</data>
<key>hash2</key>
<data>
VlKY4CEhCQ480jhU+tgpCktVXVutctVoBBUmM+DFPbs=
</data>
</dict>
<key>Headers/MBFrameGrabberRecognizer.h</key>
<dict>
<key>hash</key>
<data>
+zqfTxHKO6jAc+Rx2ek7NgE4P6Q=
tAq++R25n251xE0aQyTJ+/0QBzc=
</data>
<key>hash2</key>
<data>
GdfiFRhKpGJZxjgv/zJjc5m8KF13f8G4HpFy+PhS5+Q=
A9P/z37gLo7OEhS8Q1WUovIITA8lkuq/u3yJiXmQON4=
</data>
</dict>
<key>Headers/MBGlareStatusOverlaySubview.h</key>
Expand Down Expand Up @@ -615,22 +630,22 @@
<dict>
<key>hash</key>
<data>
sLw1aqe7tJy8gDlLXQe52CGmKKo=
sgABlDoGH26XdB1GZ1a7ItMweLg=
</data>
<key>hash2</key>
<data>
uijfUJ0QL9OPfw62lcuAG5H6RC26vxxDjSVo9vCoC2Y=
9efDheUTLW+Gba3+ysJkS3kt8dDnhWxTgUDB06ZeEww=
</data>
</dict>
<key>Headers/MBMicroblinkSDK.h</key>
<dict>
<key>hash</key>
<data>
nfMdE1LVECQRZY208k3xCT643a4=
wufGPbif1mBbQFMeFcAWML9gd50=
</data>
<key>hash2</key>
<data>
saXVXiSuwpu7X2YKUIxFZFbisPG3ESUIO0rQnQos5iE=
SsZJb0Kh0QV55ifuZipAXp4xM/rOleBgpnyBwrI7x5Q=
</data>
</dict>
<key>Headers/MBModernBaseOverlayViewController.h</key>
Expand Down Expand Up @@ -901,11 +916,11 @@
<dict>
<key>hash</key>
<data>
z3fYsf1a7c+mIwwudHu/kHwlTTM=
hU3Vl9dB6RlE0MepQ5YjH5OdV3I=
</data>
<key>hash2</key>
<data>
xPxlbTPJ3I05n2er7YxnXnclnazpIwzBKOF/JhaN/Fk=
GohreXh5yy2T9kir5Kp5u/Wms7gGzUK6jmQbFsJrny0=
</data>
</dict>
<key>Headers/MBSuccessFrameGrabberRecognizerResult.h</key>
Expand Down Expand Up @@ -978,11 +993,11 @@
<dict>
<key>hash</key>
<data>
QQxRjY4fbTFqgwRhP3JpDmEl+pA=
AAZiZWeRfrX0Y3EKmR6f23Cl8wA=
</data>
<key>hash2</key>
<data>
BhYSk9KquDt7riSaULZu7T4eWJEgKId2bU79DbfN6Uw=
Q57SqAvO4tsWGsFoP/NIkm5ji3tYr8cHRA41NrvuAmI=
</data>
</dict>
<key>Headers/MBViewFinderOverlaySubview.h</key>
Expand All @@ -1000,11 +1015,11 @@
<dict>
<key>hash</key>
<data>
k6QrZAu5nFbUEgF43yKy3bP/cdU=
/EtYLO/ooG4tzC78J5Jt+SS1JQY=
</data>
<key>hash2</key>
<data>
tqMci8qUITzYsMa0rz+hX2PFJd2VH3m98vm/9GQF94g=
AGEkSszo9bajI2KB0YON40JTkwcsw9RjJQZw9gystCY=
</data>
</dict>
<key>Headers/PPApp.h</key>
Expand Down
25 changes: 24 additions & 1 deletion docs/Classes/MBBaseBarcodeOverlayViewController.html
Expand Up @@ -223,6 +223,26 @@
</li>
</ul>
</li>
<li class="nav-group-name">
<a class="nav-group-name-link" href="../Constants.html">Constants</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Constants.html#/c:@MBIllegalModificationException">MBIllegalModificationException</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Constants.html#/c:@MBInvalidBundleException">MBInvalidBundleException</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Constants.html#/c:@MBInvalidLicenseKeyException">MBInvalidLicenseKeyException</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Constants.html#/c:@MBInvalidLicenseResourceException">MBInvalidLicenseResourceException</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Constants.html#/c:@MBInvalidLicenseeKeyException">MBInvalidLicenseeKeyException</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a class="nav-group-name-link" href="../Enums.html">Enumerations</a>
<ul class="nav-group-tasks">
Expand Down Expand Up @@ -344,6 +364,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Type Definitions/CGLine.html">CGLine</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Type Definitions.html#/c:MBException.h@T@MBExceptionName">MBExceptionName</a>
</li>
</ul>
</li>
<li class="nav-group-name">
Expand Down Expand Up @@ -504,7 +527,7 @@ <h4>Declaration</h4>
</article>
</div>
<section class="footer">
<p>&copy; 2018 <a class="link" href="http://microblink.com" target="_blank" rel="external">Microblink</a>. All rights reserved. (Last updated: 2018-02-06)</p>
<p>&copy; 2018 <a class="link" href="http://microblink.com" target="_blank" rel="external">Microblink</a>. All rights reserved. (Last updated: 2018-02-07)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.1</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
Expand Down

0 comments on commit 3d782bb

Please sign in to comment.