Skip to content

Commit

Permalink
Merge pull request #3 from BlinkID/feature/v1.0.1
Browse files Browse the repository at this point in the history
Add v1.0.1 framework and docs, update sample app and Package for v1.0.1
  • Loading branch information
juraskrlec authored Jul 3, 2023
2 parents 29c9cfe + 19f4041 commit 41c15d9
Show file tree
Hide file tree
Showing 139 changed files with 170 additions and 144 deletions.
10 changes: 5 additions & 5 deletions Capture.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>Capture.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>Capture.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file modified Capture.xcframework/ios-arm64/Capture.framework/Capture
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,19 @@ MBIC_CORE_FINAL
/// Enables document capture with a margin defined as the percentage of the dimensions of the framed document.
///
/// Both margin and document are required to be fully visible on camera frame in order to finish capture.
///
/// Allowed values are from 0 to 1.
///
/// - Throws: `MBICInvalidDocumentFramingMarginException` if the quantity is less than 0 and more than 1.
///
/// Default: `0.01f`
@property (nonatomic) CGFloat documentFramingMargin;

/// Defines percentage of the document area that is allowed to be occluded by hand.
///
/// Allowed values are from 0 to 1.
///
/// - Throws: `MBICInvalidHandOcclusionTresholdException` if the quantity is less than 0 and more than 1.
///
/// Default: `0.05f`
@property (nonatomic) CGFloat handOcclusionThreshold;

Expand All @@ -82,6 +86,8 @@ MBIC_CORE_FINAL
///
/// Allowed values are from 0 to 1.
///
/// - Throws: `MBICInvalidTiltTresholdException` if the quantity is less than 0 and more than 1.
///
/// Default:` 0.17f`
@property (nonatomic) CGFloat tiltThreshold;

Expand All @@ -98,7 +104,7 @@ MBIC_CORE_FINAL
/// Affects how close the document needs to be to the camera in order to get captured and meet dpi requirements.
/// Allowed values are [ 150, 400 ].
///
/// - Throws: `MBICMissingSettingsException` if the quantity is less than 200 and more than 400.
/// - Throws: `MBICInvalidDocumentDpiException` if the quantity is less than 200 and more than 400.
///
/// Default: `250`
@property (nonatomic) NSInteger minimumDocumentDpi;
Expand All @@ -117,12 +123,16 @@ MBIC_CORE_FINAL
///
/// Allowed values are from 0 to 1.
///
/// - Throws: `MBICInvalidLightingThrsholdsException` if the quantity is less than 0 and more than 1.
///
/// Default: `0.99f`
@property (nonatomic) CGFloat tooDarkThreshold;

/// Threshold used to classify the frame as too bright.
/// If the calculated lighting score is above this threshold, it is discarded.
///
/// - Throws: `MBICInvalidLightingThrsholdsException` if the quantity is less than 0 and more than 1.
///
/// Allowed values are from 0 to 1.
///
/// Default: `0.99f`
Expand Down
Binary file modified Capture.xcframework/ios-arm64/Capture.framework/Info.plist
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</data>
<key>Headers/MBICAnalyserSettings.h</key>
<data>
ZH1LvHMXYs4D91uWuMou9T2mj6Y=
+QwkwJ+DJ+Vg0E/lFzKinwuH5M0=
</data>
<key>Headers/MBICCameraDefines.h</key>
<data>
Expand Down Expand Up @@ -74,7 +74,7 @@
</data>
<key>Info.plist</key>
<data>
7HNBOLW+46PWkbaW982FQ7zOqlE=
QZEL9L0GYnvXOMFBclRViL7xOiE=
</data>
<key>Model_021c530a7efe77c0e90c4bfe19c3bebaaceee433103e4e6d4f1424d921885982.strop</key>
<data>
Expand Down Expand Up @@ -140,7 +140,7 @@
<dict>
<key>hash2</key>
<data>
mn7YYHYo9MwMm8ug+jACkpY1+NypjSWJhxBNES25+nU=
OfU298MuAJH+Pa1E+7D3thdW2+ld25fNUMHFS+Qdto8=
</data>
</dict>
<key>Headers/MBICCameraDefines.h</key>
Expand Down
Binary file modified Capture.xcframework/ios-arm64/Capture.framework/en.strings
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,19 @@ MBIC_CORE_FINAL
/// Enables document capture with a margin defined as the percentage of the dimensions of the framed document.
///
/// Both margin and document are required to be fully visible on camera frame in order to finish capture.
///
/// Allowed values are from 0 to 1.
///
/// - Throws: `MBICInvalidDocumentFramingMarginException` if the quantity is less than 0 and more than 1.
///
/// Default: `0.01f`
@property (nonatomic) CGFloat documentFramingMargin;

/// Defines percentage of the document area that is allowed to be occluded by hand.
///
/// Allowed values are from 0 to 1.
///
/// - Throws: `MBICInvalidHandOcclusionTresholdException` if the quantity is less than 0 and more than 1.
///
/// Default: `0.05f`
@property (nonatomic) CGFloat handOcclusionThreshold;

Expand All @@ -82,6 +86,8 @@ MBIC_CORE_FINAL
///
/// Allowed values are from 0 to 1.
///
/// - Throws: `MBICInvalidTiltTresholdException` if the quantity is less than 0 and more than 1.
///
/// Default:` 0.17f`
@property (nonatomic) CGFloat tiltThreshold;

Expand All @@ -98,7 +104,7 @@ MBIC_CORE_FINAL
/// Affects how close the document needs to be to the camera in order to get captured and meet dpi requirements.
/// Allowed values are [ 150, 400 ].
///
/// - Throws: `MBICMissingSettingsException` if the quantity is less than 200 and more than 400.
/// - Throws: `MBICInvalidDocumentDpiException` if the quantity is less than 200 and more than 400.
///
/// Default: `250`
@property (nonatomic) NSInteger minimumDocumentDpi;
Expand All @@ -117,12 +123,16 @@ MBIC_CORE_FINAL
///
/// Allowed values are from 0 to 1.
///
/// - Throws: `MBICInvalidLightingThrsholdsException` if the quantity is less than 0 and more than 1.
///
/// Default: `0.99f`
@property (nonatomic) CGFloat tooDarkThreshold;

/// Threshold used to classify the frame as too bright.
/// If the calculated lighting score is above this threshold, it is discarded.
///
/// - Throws: `MBICInvalidLightingThrsholdsException` if the quantity is less than 0 and more than 1.
///
/// Allowed values are from 0 to 1.
///
/// Default: `0.99f`
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</data>
<key>Headers/MBICAnalyserSettings.h</key>
<data>
ZH1LvHMXYs4D91uWuMou9T2mj6Y=
+QwkwJ+DJ+Vg0E/lFzKinwuH5M0=
</data>
<key>Headers/MBICCameraDefines.h</key>
<data>
Expand Down Expand Up @@ -74,7 +74,7 @@
</data>
<key>Info.plist</key>
<data>
1m98xmQxcEslIN1wsuXp0djZ/Tg=
EV05pbP+pjlFiQf8MOi2OgdDb90=
</data>
<key>Model_021c530a7efe77c0e90c4bfe19c3bebaaceee433103e4e6d4f1424d921885982.strop</key>
<data>
Expand Down Expand Up @@ -140,7 +140,7 @@
<dict>
<key>hash2</key>
<data>
mn7YYHYo9MwMm8ug+jACkpY1+NypjSWJhxBNES25+nU=
OfU298MuAJH+Pa1E+7D3thdW2+ld25fNUMHFS+Qdto8=
</data>
</dict>
<key>Headers/MBICCameraDefines.h</key>
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let package = Package(
targets: [
.binaryTarget(
name: "Capture",
url: "https://github.com/BlinkID/capture-ios/releases/download/v1.0.0/Capture.xcframework.zip",
checksum: "a8a124dee0320c1b69824e5cb496b72f69af8bdb37b71ecd5ff3c27ff4260a9c")
url: "https://github.com/BlinkID/capture-ios/releases/download/v1.0.1/Capture.xcframework.zip",
checksum: "7198d48835dd8f0ab64ef579a777892e333c58ca378f9506390de5fc86414aaf")
]
)
8 changes: 8 additions & 0 deletions Release_notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Release notes

## v1.0.1

- Various capture optimiziations
- Bug fixes:
- Fix localization issue of multiple `Cancel` text on help screen
- Fix code signing of localization strings for custom localization
- Fix issue where user couldn't open help screen multiple times

## v1.0.0

- Initial release of the Capture SDK for iOS
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
A20CC54F2A39EFA600F669B7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
A20CC5512A39EFA600F669B7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
A20CC5582A39F03F00F669B7 /* libc++.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = "libc++.tbd"; path = "usr/lib/libc++.tbd"; sourceTree = SDKROOT; };
A20CC5592A39F04500F669B7 /* libiconv.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libiconv.tbd; path = usr/lib/libiconv.tbd; sourceTree = SDKROOT; };
A20CC55A2A39F04B00F669B7 /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; };
A20CC55B2A39F08F00F669B7 /* Capture.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = Capture.xcframework; path = ../../Capture.xcframework; sourceTree = "<group>"; };
A20CC55F2A39F26C00F669B7 /* ResultViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ResultViewController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -97,7 +96,6 @@
children = (
A20CC55B2A39F08F00F669B7 /* Capture.xcframework */,
A20CC55A2A39F04B00F669B7 /* libz.tbd */,
A20CC5592A39F04500F669B7 /* libiconv.tbd */,
A20CC5582A39F03F00F669B7 /* libc++.tbd */,
);
name = Frameworks;
Expand Down
2 changes: 1 addition & 1 deletion docs/data/documentation/capture.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/data/documentation/capture/mbic_core_final.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"#define"},{"kind":"text","text":" "},{"kind":"identifier","text":"MBIC_CORE_FINAL"}],"languages":["occ"],"platforms":["iOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/capture\/mbic_core_final"],"traits":[{"interfaceLanguage":"occ"}]}],"identifier":{"url":"doc:\/\/com.microblink.Capture\/documentation\/Capture\/MBIC_CORE_FINAL","interfaceLanguage":"occ"},"kind":"symbol","metadata":{"fragments":[{"kind":"identifier","text":"MBIC_CORE_FINAL"}],"title":"MBIC_CORE_FINAL","roleHeading":"Macro","role":"symbol","symbolKind":"macro","externalID":"c:MBICCoreDefines.h@474@macro@MBIC_CORE_FINAL","modules":[{"name":"Capture"}],"navigatorTitle":[{"kind":"identifier","text":"MBIC_CORE_FINAL"}]},"hierarchy":{"paths":[["doc:\/\/com.microblink.Capture\/documentation\/Capture"]]},"references":{"doc://com.microblink.Capture/documentation/Capture/MBIC_CORE_FINAL":{"role":"symbol","title":"MBIC_CORE_FINAL","fragments":[{"kind":"identifier","text":"MBIC_CORE_FINAL"}],"abstract":[],"identifier":"doc:\/\/com.microblink.Capture\/documentation\/Capture\/MBIC_CORE_FINAL","kind":"symbol","type":"topic","url":"\/documentation\/capture\/mbic_core_final"},"doc://com.microblink.Capture/documentation/Capture":{"role":"collection","title":"Capture","abstract":[],"identifier":"doc:\/\/com.microblink.Capture\/documentation\/Capture","kind":"symbol","type":"topic","url":"\/documentation\/capture"}}}
{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"#define"},{"kind":"text","text":" "},{"kind":"identifier","text":"MBIC_CORE_FINAL"}],"languages":["occ"],"platforms":["iOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/capture\/mbic_core_final"],"traits":[{"interfaceLanguage":"occ"}]}],"identifier":{"url":"doc:\/\/com.microblink.Capture\/documentation\/Capture\/MBIC_CORE_FINAL","interfaceLanguage":"occ"},"kind":"symbol","metadata":{"fragments":[{"kind":"identifier","text":"MBIC_CORE_FINAL"}],"title":"MBIC_CORE_FINAL","roleHeading":"Macro","role":"symbol","symbolKind":"macro","externalID":"c:MBICCoreDefines.h@474@macro@MBIC_CORE_FINAL","modules":[{"name":"Capture"}],"navigatorTitle":[{"kind":"identifier","text":"MBIC_CORE_FINAL"}]},"hierarchy":{"paths":[["doc:\/\/com.microblink.Capture\/documentation\/Capture"]]},"references":{"doc://com.microblink.Capture/documentation/Capture":{"role":"collection","title":"Capture","abstract":[],"identifier":"doc:\/\/com.microblink.Capture\/documentation\/Capture","kind":"symbol","type":"topic","url":"\/documentation\/capture"},"doc://com.microblink.Capture/documentation/Capture/MBIC_CORE_FINAL":{"role":"symbol","title":"MBIC_CORE_FINAL","fragments":[{"kind":"identifier","text":"MBIC_CORE_FINAL"}],"abstract":[],"identifier":"doc:\/\/com.microblink.Capture\/documentation\/Capture\/MBIC_CORE_FINAL","kind":"symbol","type":"topic","url":"\/documentation\/capture\/mbic_core_final"}}}
2 changes: 1 addition & 1 deletion docs/data/documentation/capture/mbic_ui_localized.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"typeIdentifier","text":"NSString","preciseIdentifier":"c:objc(cs)NSString"},{"kind":"text","text":" * "},{"kind":"identifier","text":"MBIC_UI_LOCALIZED"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"NSString","preciseIdentifier":"c:objc(cs)NSString"},{"kind":"text","text":" * "},{"kind":"internalParam","text":"key"},{"kind":"text","text":")"}],"languages":["occ"],"platforms":["iOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/capture\/mbic_ui_localized"],"traits":[{"interfaceLanguage":"occ"}]}],"identifier":{"url":"doc:\/\/com.microblink.Capture\/documentation\/Capture\/MBIC_UI_LOCALIZED","interfaceLanguage":"occ"},"kind":"symbol","metadata":{"fragments":[{"kind":"identifier","text":"MBIC_UI_LOCALIZED"}],"title":"MBIC_UI_LOCALIZED","roleHeading":"Function","role":"symbol","symbolKind":"func","externalID":"c:MBICCaptureUISDK.h@F@MBIC_UI_LOCALIZED","modules":[{"name":"Capture"}],"navigatorTitle":[{"kind":"identifier","text":"MBIC_UI_LOCALIZED"}]},"hierarchy":{"paths":[["doc:\/\/com.microblink.Capture\/documentation\/Capture"]]},"references":{"doc://com.microblink.Capture/documentation/Capture":{"role":"collection","title":"Capture","abstract":[],"identifier":"doc:\/\/com.microblink.Capture\/documentation\/Capture","kind":"symbol","type":"topic","url":"\/documentation\/capture"},"doc://com.microblink.Capture/documentation/Capture/MBIC_UI_LOCALIZED":{"role":"symbol","title":"MBIC_UI_LOCALIZED","fragments":[{"kind":"identifier","text":"MBIC_UI_LOCALIZED"}],"abstract":[],"identifier":"doc:\/\/com.microblink.Capture\/documentation\/Capture\/MBIC_UI_LOCALIZED","kind":"symbol","type":"topic","url":"\/documentation\/capture\/mbic_ui_localized"}}}
{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"typeIdentifier","text":"NSString","preciseIdentifier":"c:objc(cs)NSString"},{"kind":"text","text":" * "},{"kind":"identifier","text":"MBIC_UI_LOCALIZED"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"NSString","preciseIdentifier":"c:objc(cs)NSString"},{"kind":"text","text":" * "},{"kind":"internalParam","text":"key"},{"kind":"text","text":")"}],"languages":["occ"],"platforms":["iOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/capture\/mbic_ui_localized"],"traits":[{"interfaceLanguage":"occ"}]}],"identifier":{"url":"doc:\/\/com.microblink.Capture\/documentation\/Capture\/MBIC_UI_LOCALIZED","interfaceLanguage":"occ"},"kind":"symbol","metadata":{"fragments":[{"kind":"identifier","text":"MBIC_UI_LOCALIZED"}],"title":"MBIC_UI_LOCALIZED","roleHeading":"Function","role":"symbol","symbolKind":"func","externalID":"c:MBICCaptureUISDK.h@F@MBIC_UI_LOCALIZED","modules":[{"name":"Capture"}],"navigatorTitle":[{"kind":"identifier","text":"MBIC_UI_LOCALIZED"}]},"hierarchy":{"paths":[["doc:\/\/com.microblink.Capture\/documentation\/Capture"]]},"references":{"doc://com.microblink.Capture/documentation/Capture/MBIC_UI_LOCALIZED":{"role":"symbol","title":"MBIC_UI_LOCALIZED","fragments":[{"kind":"identifier","text":"MBIC_UI_LOCALIZED"}],"abstract":[],"identifier":"doc:\/\/com.microblink.Capture\/documentation\/Capture\/MBIC_UI_LOCALIZED","kind":"symbol","type":"topic","url":"\/documentation\/capture\/mbic_ui_localized"},"doc://com.microblink.Capture/documentation/Capture":{"role":"collection","title":"Capture","abstract":[],"identifier":"doc:\/\/com.microblink.Capture\/documentation\/Capture","kind":"symbol","type":"topic","url":"\/documentation\/capture"}}}
Loading

0 comments on commit 41c15d9

Please sign in to comment.