diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3d7c4e1ca..cf7149a82 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,15 @@
# Release notes
+## 4.0.1
+- Bugfixes
+ - Calling `reconfigureRecognizers` before showing camera now correctly applies supplied recognizers
+ - Fixed autorotation of overlays and `MBRecognizerRunnerViewController`
+ - Fixed localization issues with some overlays
+ - Fixed constraint errors on `MBDocumentVerificationOverlayViewController`
+
+- Updates and additions
+ - Added `reconfigureRecognizers` method to `MBBaseOverlayViewController`, enabling it on all it's subclasses
+
## 4.0.0
- new API, which is not backward compatible. Please check [README](README.md) and updated demo applications for more information, but the gist of it is:
diff --git a/MicroBlink.bundle/Info.plist b/MicroBlink.bundle/Info.plist
index 447fed85d..b30080b7c 100644
Binary files a/MicroBlink.bundle/Info.plist and b/MicroBlink.bundle/Info.plist differ
diff --git a/MicroBlink.bundle/en.strings b/MicroBlink.bundle/en.strings
index c6d6119f7..dc2383c42 100644
--- a/MicroBlink.bundle/en.strings
+++ b/MicroBlink.bundle/en.strings
@@ -17,5 +17,3 @@
"photopay_back_verification_document" = "Place the back side of the document in the frame and wait for automatic scan.";
"photopay_front_splash_verification_document" = "Document front side";
"photopay_back_splash_verification_document" = "Document back side";
-
-"photopay_time_restricted_license_key" = "Using time-limited license!";
diff --git a/MicroBlink.framework/Headers/MBBarcodeOverlaySettings.h b/MicroBlink.framework/Headers/MBBarcodeOverlaySettings.h
index 88b147573..b47b2f1e4 100644
--- a/MicroBlink.framework/Headers/MBBarcodeOverlaySettings.h
+++ b/MicroBlink.framework/Headers/MBBarcodeOverlaySettings.h
@@ -15,8 +15,18 @@ NS_ASSUME_NONNULL_BEGIN
MB_CLASS_AVAILABLE_IOS(8.0)
@interface MBBarcodeOverlaySettings : MBBaseOverlaySettings
+/**
+ * If YES, viewfinder (4 corner markers) will move when payslip is detected
+ *
+ * Default: YES
+ */
@property (nonatomic, assign) BOOL displayBarcodeDots;
+/**
+ * If YES; view finder will be displayed
+ *
+ * Default: YES
+ */
@property (nonatomic, assign) BOOL displayViewfinder;
@end
diff --git a/MicroBlink.framework/Headers/MBBaseOverlaySettings.h b/MicroBlink.framework/Headers/MBBaseOverlaySettings.h
index 286141f52..49a80e64a 100644
--- a/MicroBlink.framework/Headers/MBBaseOverlaySettings.h
+++ b/MicroBlink.framework/Headers/MBBaseOverlaySettings.h
@@ -33,7 +33,7 @@ MB_CLASS_AVAILABLE_IOS(8.0)
/**
* Default: UIInterfaceOrientationMaskPortrait
*/
-@property (nonatomic, assign) NSUInteger supportedOrientations;
+@property (nonatomic, assign) UIInterfaceOrientationMask supportedOrientations;
/**
* Full path to the sound file which is played when the valid result is scanned.
@@ -47,11 +47,35 @@ MB_CLASS_AVAILABLE_IOS(8.0)
*/
@property (nonatomic, assign) BOOL displayCancelButton;
+/**
+ * Returns/sets cancel button text that is shown if displayCancelButton is on.
+ *
+ * Default: string defined by "photopay_close"
+ * key in strings file in Microblink.bundle
+ */
+@property(nonatomic, strong) NSString *cancelButtonText;
+
/**
* Default: YES.
*/
@property (nonatomic, assign) BOOL displayTorchButton;
+/**
+ * Returns/sets torch on button text that is shown if displayTorchButton is on.
+ *
+ * Default: string defined by "photopay_light_on"
+ * key in strings file in Microblink.bundle
+ */
+@property(nonatomic, strong) NSString *torchOnButtonText;
+
+/**
+ * Returns/sets torch off button text that is shown if displayTorchButton is on.
+ *
+ * Default: string defined by "photopay_light_off"
+ * key in strings file in Microblink.bundle
+ */
+@property(nonatomic, strong) NSString *torchOffButtonText;
+
@end
NS_ASSUME_NONNULL_END
diff --git a/MicroBlink.framework/Headers/MBBaseOverlayViewController.h b/MicroBlink.framework/Headers/MBBaseOverlayViewController.h
index 1f322a126..4f6cbccbc 100644
--- a/MicroBlink.framework/Headers/MBBaseOverlayViewController.h
+++ b/MicroBlink.framework/Headers/MBBaseOverlayViewController.h
@@ -18,6 +18,11 @@ NS_ASSUME_NONNULL_BEGIN
MB_CLASS_AVAILABLE_IOS(8.0)
@interface MBBaseOverlayViewController : MBOverlayViewController
+/**
+ * Reconfigures current recognizer collection to new recognizer collection. Use this method to reconfigure what you wish to scan.
+ */
+- (void)reconfigureRecognizers:(MBRecognizerCollection *)recognizerCollection;
+
@end
NS_ASSUME_NONNULL_END
diff --git a/MicroBlink.framework/Headers/MBCustomOverlayViewController.h b/MicroBlink.framework/Headers/MBCustomOverlayViewController.h
index ddaef8f71..d0270fac7 100644
--- a/MicroBlink.framework/Headers/MBCustomOverlayViewController.h
+++ b/MicroBlink.framework/Headers/MBCustomOverlayViewController.h
@@ -73,6 +73,9 @@ MB_CLASS_AVAILABLE_IOS(8.0)
*/
@property (nonatomic, assign) NSUInteger supportedOrientations;
+/**
+ * Reconfigures current recognizer collection to new recognizer collection. Use this method to reconfigure what you wish to scan.
+ */
- (void)reconfigureRecognizers:(MBRecognizerCollection *)recognizerCollection;
@end
diff --git a/MicroBlink.framework/Headers/MBDocumentOverlaySettings.h b/MicroBlink.framework/Headers/MBDocumentOverlaySettings.h
index 7e8d95f91..0392396e4 100644
--- a/MicroBlink.framework/Headers/MBDocumentOverlaySettings.h
+++ b/MicroBlink.framework/Headers/MBDocumentOverlaySettings.h
@@ -16,10 +16,22 @@ MB_CLASS_AVAILABLE_IOS(8.0)
@interface MBDocumentOverlaySettings : MBBaseOcrOverlaySettings
/**
- * Gets/sets tootlip text that is defines under document view finder
+ * Gets/sets tootlip text that is defines under document view finder.
+ *
+ * Default: string defined by "photopay_id_position_tooltip"
+ * key in strings file in Microblink.bundle
*/
@property(nonatomic, strong) NSString *tooltipText;
+/**
+ * Returns/sets glare status message that is shown if glare detection is turned on
+ * and it is shown if glare is detected.
+ *
+ * Default: string defined by "photopay_glare_status"
+ * key in strings file in Microblink.bundle
+ */
+@property(nonatomic, strong) NSString *glareStatusMessage;
+
/**
* Gets/sets tooltip visibility
*/
diff --git a/MicroBlink.framework/Headers/MBDocumentVerificationOverlaySettings.h b/MicroBlink.framework/Headers/MBDocumentVerificationOverlaySettings.h
index 1c8f92697..048e70d74 100644
--- a/MicroBlink.framework/Headers/MBDocumentVerificationOverlaySettings.h
+++ b/MicroBlink.framework/Headers/MBDocumentVerificationOverlaySettings.h
@@ -18,27 +18,48 @@ MB_CLASS_AVAILABLE_IOS(8.0)
/**
* Returns/sets user instructions that are shown above camera preview while the first side of the
* document is being scanned.
+ *
+ * Default: string defined by "photopay_front_verification_document"
+ * key in strings file in Microblink.bundle
*/
@property(nonatomic, strong) NSString *firstSideInstructions;
/**
* Returns/sets user instructions that are shown above camera preview while the second side of the
* document is being scanned.
+ *
+ * Default: string defined by "photopay_back_verification_document"
+ * key in strings file in Microblink.bundle
*/
@property(nonatomic, strong) NSString *secondSideInstructions;
/**
* Returns/sets splash message that is shown before scanning the first side of the document,
* while starting camera.
+ *
+ * Default: string defined by "photopay_front_splash_verification_document"
+ * key in strings file in Microblink.bundle
*/
@property(nonatomic, strong) NSString *firstSideSplashMessage;
/**
* Returns/sets splash message that is shown before scanning the second side of the document,
* while starting camera.
+ *
+ * Default: string defined by "photopay_back_splash_verification_document"
+ * key in strings file in Microblink.bundle
*/
@property(nonatomic, strong) NSString *secondSideSplashMessage;
+/**
+ * Returns/sets glare status message that is shown if glare detection is turned on
+ * and it is shown if glare is detected.
+ *
+ * Default: string defined by "photopay_glare_status"
+ * key in strings file in Microblink.bundle
+ */
+@property(nonatomic, strong) NSString *glareStatusMessage;
+
/**
* Returns/sets splash image which is shown below splash message, before scanning the first side of
* the document, while starting camera.
diff --git a/MicroBlink.framework/Headers/PPMicroBlinkDefines.h b/MicroBlink.framework/Headers/PPMicroBlinkDefines.h
index 22660ea96..960844217 100644
--- a/MicroBlink.framework/Headers/PPMicroBlinkDefines.h
+++ b/MicroBlink.framework/Headers/PPMicroBlinkDefines.h
@@ -34,6 +34,16 @@ MB_LOCALIZED_DEFAULT_STRING(key), nil), \
##__VA_ARGS__]
#endif
+#ifndef MB_LOCALIZED_PROPERTY_GETTER
+// note - this might return nil if frameworkBundle is nil!
+#define MB_LOCALIZED_PROPERTY_GETTER(propertyName, key) \
+if (propertyName) { \
+return propertyName; \
+} else { \
+return MB_LOCALIZED(key); \
+}
+#endif
+
#ifdef __cplusplus
#define PP_EXTERN extern "C" __attribute__((visibility("default")))
#else
diff --git a/MicroBlink.framework/Info.plist b/MicroBlink.framework/Info.plist
index f12d14719..9e136cc03 100644
Binary files a/MicroBlink.framework/Info.plist and b/MicroBlink.framework/Info.plist differ
diff --git a/MicroBlink.framework/MicroBlink b/MicroBlink.framework/MicroBlink
index f4e653dc3..f44dea665 100755
--- a/MicroBlink.framework/MicroBlink
+++ b/MicroBlink.framework/MicroBlink
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:85dfc5ea4aeac87d53e5418c8c915392b6a70d0167b5c6b5cf41b2f6d1e82413
-size 131918096
+oid sha256:bcf37d1ccd86923bf55b61d0ec23d103a78a453b9176ce5b0f86203ecc90aace
+size 131680032
diff --git a/MicroBlink.framework/_CodeSignature/CodeResources b/MicroBlink.framework/_CodeSignature/CodeResources
index b4374ee66..d2b457b1d 100644
--- a/MicroBlink.framework/_CodeSignature/CodeResources
+++ b/MicroBlink.framework/_CodeSignature/CodeResources
@@ -66,7 +66,7 @@
Headers/MBBarcodeOverlaySettings.h
- TJbkp8L2vcKiWqdTZCxyqgfrVMw=
+ UMYN30bejIsBy5SsEZPohb6w97M=
Headers/MBBarcodeOverlayViewController.h
@@ -102,11 +102,11 @@
Headers/MBBaseOverlaySettings.h
- E9zGTmK4w0LaGjL3d0zfUY3YxL4=
+ WdytmHWrdISiASbJrQVV30k3imM=
Headers/MBBaseOverlayViewController.h
- oO19CN5viDYBWodk3lia1LVZpx0=
+ dQJiU8ZZIm4S+TsVdFB31Fjz81k=
Headers/MBBlinkIDEntities.h
@@ -190,7 +190,7 @@
Headers/MBCustomOverlayViewController.h
- 57ovNFJm2EjMnQWIRcjC2ibjzp0=
+ II5Qw8o7D/VAIsLP+g11VLo26fI=
Headers/MBCzechiaCombinedRecognizer.h
@@ -322,7 +322,7 @@
Headers/MBDocumentOverlaySettings.h
- CuKGk6DhXfpavjQrtuKS8Wok+no=
+ vC+0c+Y9An/xU5dpsgJh0f3wP1o=
Headers/MBDocumentOverlayViewController.h
@@ -346,7 +346,7 @@
Headers/MBDocumentVerificationOverlaySettings.h
- OXI2rHKrGjAoB97CmezTrwXtBSY=
+ Uc1aBbEJQvBCqx2Icl+KTqwcUdk=
Headers/MBDocumentVerificationOverlayViewController.h
@@ -1214,11 +1214,11 @@
Headers/PPMicroBlinkDefines.h
- R7L06bZfIBS7EOFa5cC/DbR4ZbE=
+ iLU8D8oejxsZXnWup4B/TVJm2Eo=
Info.plist
- irUxxei+ZclJmpljmPevmHAzmbs=
+ /DMHxZgAykTObWuoTJzI/TfDPic=
Modules/module.modulemap
@@ -1396,11 +1396,11 @@
hash
- TJbkp8L2vcKiWqdTZCxyqgfrVMw=
+ UMYN30bejIsBy5SsEZPohb6w97M=
hash2
- /Awsxse/NAwBh+YAgmupNxmGjvYZnEEpQ5yyNfDims0=
+ E+Awksld+RGOmXBxTHLVFyLIFPWN4wYeTP6swROXKhg=
Headers/MBBarcodeOverlayViewController.h
@@ -1495,22 +1495,22 @@
hash
- E9zGTmK4w0LaGjL3d0zfUY3YxL4=
+ WdytmHWrdISiASbJrQVV30k3imM=
hash2
- P5PSjS5ANrZDMCkD5OmV7B7LnhYapGoWp5K6L4l7Yds=
+ 2EnLHr1C1krv7eHq9g/xAqSt6qaMOFAA9SuQNWpbZus=
Headers/MBBaseOverlayViewController.h
hash
- oO19CN5viDYBWodk3lia1LVZpx0=
+ dQJiU8ZZIm4S+TsVdFB31Fjz81k=
hash2
- vwgU3xw+iEpXPSKk3ikG43NIhopSpMTB1OpBWqOMP/g=
+ r0VbZHjkTb9kJjVAy2dbrIMHZk3nzz1EBcn0tWVQFGA=
Headers/MBBlinkIDEntities.h
@@ -1737,11 +1737,11 @@
hash
- 57ovNFJm2EjMnQWIRcjC2ibjzp0=
+ II5Qw8o7D/VAIsLP+g11VLo26fI=
hash2
- nTGMFnt2decFRI15sko/M6lycm7JYKUwbz+2TnWkrIE=
+ yhv07axUUrdL0QKkVSBp90Td17yEm1XylFt/Me5ARq8=
Headers/MBCzechiaCombinedRecognizer.h
@@ -2100,11 +2100,11 @@
hash
- CuKGk6DhXfpavjQrtuKS8Wok+no=
+ vC+0c+Y9An/xU5dpsgJh0f3wP1o=
hash2
- CnKKtj2ObZ9+hsmImEsFteonSJRrIeIBeRs+/8W3hWg=
+ vRDHjKqtAYqbQLldt3Yce8f/cbNfWtCDeCnb7An4xeQ=
Headers/MBDocumentOverlayViewController.h
@@ -2166,11 +2166,11 @@
hash
- OXI2rHKrGjAoB97CmezTrwXtBSY=
+ Uc1aBbEJQvBCqx2Icl+KTqwcUdk=
hash2
- yzQOGTd2Zp+SctJdH9AGLK+5xd9+ZfV7X9vDOnBMS1c=
+ HsuqVnOriyt4tKpu4RhBWpYMdtSPgJ7YarnvAOmfLQM=
Headers/MBDocumentVerificationOverlayViewController.h
@@ -4553,11 +4553,11 @@
hash
- R7L06bZfIBS7EOFa5cC/DbR4ZbE=
+ iLU8D8oejxsZXnWup4B/TVJm2Eo=
hash2
- Dc3TkXU61/+ofj8U9PYIOBfSVDgnYBo6Q07rKWotK7M=
+ 1RcExkAASufAzz9NQBHClG43MZ9jLDVePsH0N2p+yp8=
Modules/module.modulemap
diff --git a/PPBlinkID.podspec b/PPBlinkID.podspec
index 3fb853f98..03a77454b 100644
--- a/PPBlinkID.podspec
+++ b/PPBlinkID.podspec
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "PPBlinkID"
- s.version = "4.0.0"
+ s.version = "((VERSION))"
s.summary = "A delightful component for barcode scanning"
s.homepage = "http://microblink.com"
@@ -32,7 +32,7 @@ Pod::Spec.new do |s|
s.source = {
:git => 'https://github.com/BlinkID/blinkid-ios.git',
- :tag => 'v4.0.0'
+ :tag => 'v((VERSION))'
}
s.platform = :ios
diff --git a/Release notes.md b/Release notes.md
index 3d7c4e1ca..cf7149a82 100644
--- a/Release notes.md
+++ b/Release notes.md
@@ -1,5 +1,15 @@
# Release notes
+## 4.0.1
+- Bugfixes
+ - Calling `reconfigureRecognizers` before showing camera now correctly applies supplied recognizers
+ - Fixed autorotation of overlays and `MBRecognizerRunnerViewController`
+ - Fixed localization issues with some overlays
+ - Fixed constraint errors on `MBDocumentVerificationOverlayViewController`
+
+- Updates and additions
+ - Added `reconfigureRecognizers` method to `MBBaseOverlayViewController`, enabling it on all it's subclasses
+
## 4.0.0
- new API, which is not backward compatible. Please check [README](README.md) and updated demo applications for more information, but the gist of it is:
diff --git a/Transition guide.md b/Transition guide.md
index d016c8fb6..e7b7ff733 100644
--- a/Transition guide.md
+++ b/Transition guide.md
@@ -1,3 +1,7 @@
+## 4.0.1
+
+- No changes
+
## 4.0.0
Please check [README](README.md) and updated demo applications for more information, but the gist of it is:
- `PPScanningViewController` has been renamed to `MBRecognizerRunnerViewController` and `MBCoordinator` to `MBRecognizerRunner`
@@ -293,4 +297,4 @@ for (PPRecognizerResult *result in results) {
- Main header of the framework was renamed to ``. Change all references to previous header with the new one.
-- method `[PPCoordinator isPhotoPaySupported]` was renamed to `[PPCoordinator isScanningSupported]`. Change all occurances of the method name.
\ No newline at end of file
+- method `[PPCoordinator isPhotoPaySupported]` was renamed to `[PPCoordinator isScanningSupported]`. Change all occurances of the method name.
diff --git a/buildCommit.txt b/buildCommit.txt
index 8b7f60dbb..0edbae052 100644
--- a/buildCommit.txt
+++ b/buildCommit.txt
@@ -1 +1 @@
-Built from core repository commit 11634bfd9dfb21b0212ea15b8078ad7d58574d5a
+Built from core repository commit 365af672517598f381974ea2cfbd0c7e06842494
diff --git a/docs/Classes.html b/docs/Classes.html
index 9584bc240..43b8aa29b 100644
--- a/docs/Classes.html
+++ b/docs/Classes.html
@@ -10849,7 +10849,7 @@ Declaration