Skip to content

Commit

Permalink
Merge pull request #43 from BlinkID/release/5.2.0
Browse files Browse the repository at this point in the history
Release/5.2.0
  • Loading branch information
i1E authored Feb 6, 2020
2 parents ad9830a + 63fdeb8 commit 44f75d4
Show file tree
Hide file tree
Showing 54 changed files with 1,214 additions and 996 deletions.
6 changes: 3 additions & 3 deletions Binding/Android/AndroidBinding.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
<AndroidClassParser>class-parse</AndroidClassParser>
<PackageId>BlinkID.Android.Binding</PackageId>
<PackageVersion>5.1.0</PackageVersion>
<PackageVersion>5.2.0</PackageVersion>
<Authors>Microblink</Authors>
<Owners>Microblink</Owners>
<PackageProjectUrl>https://github.com/blinkid/blinkid-xamarin</PackageProjectUrl>
<PackageReleaseNotes>Updated to BlinkID Android SDK v5.1.0
<PackageReleaseNotes>Updated to BlinkID Android SDK v5.2.0

https://github.com/BlinkID/blinkid-android/releases/tag/v5.1.0</PackageReleaseNotes>
https://github.com/BlinkID/blinkid-android/releases/tag/v5.2.0</PackageReleaseNotes>
<Summary>A small, but powerful ID scanning library - native Android SDK binding package.</Summary>
<Title>BlinkID</Title>
<Description>A small, but powerful ID scanning library - native Android SDK binding package.</Description>
Expand Down
4 changes: 2 additions & 2 deletions Binding/Android/Jars/LibBlinkID.aar
Git LFS file not shown
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
<PackageId>BlinkID.Forms.Android</PackageId>
<PackageVersion>5.1.0</PackageVersion>
<PackageVersion>5.2.0</PackageVersion>
<Authors>Microblink</Authors>
<Owners>Microblink</Owners>
<PackageProjectUrl>https://github.com/blinkid/blinkid-xamarin</PackageProjectUrl>
Expand All @@ -23,9 +23,9 @@
<Description>A small, but powerful ID scanning library - Android implementation for Xamarin Forms.</Description>
<ReleaseVersion>4.0.0</ReleaseVersion>
<PackOnBuild>true</PackOnBuild>
<PackageReleaseNotes>Updated for BlinkID Android SDK v5.1.0
<PackageReleaseNotes>Updated for BlinkID Android SDK v5.2.0

https://github.com/BlinkID/blinkid-android/releases/tag/v5.1.0</PackageReleaseNotes>
https://github.com/BlinkID/blinkid-android/releases/tag/v5.2.0</PackageReleaseNotes>
<!-- Workaround for build error -->
<DesignTimeBuild>false</DesignTimeBuild>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ public bool ReturnFullDocumentImage
set => nativeRecognizer.SetReturnFullDocumentImage(value);
}

public bool SignResult
{
get => nativeRecognizer.ShouldSignResult();
set => nativeRecognizer.SetSignResult(value);
}

}

public sealed class BlinkIdCombinedRecognizerResult : RecognizerResult, IBlinkIdCombinedRecognizerResult
Expand All @@ -74,6 +80,8 @@ internal BlinkIdCombinedRecognizerResult(Com.Microblink.Entities.Recognizers.Bli
public IDate DateOfBirth => nativeResult.DateOfBirth.Date != null ? new Date(nativeResult.DateOfBirth.Date) : null;
public IDate DateOfExpiry => nativeResult.DateOfExpiry.Date != null ? new Date(nativeResult.DateOfExpiry.Date) : null;
public IDate DateOfIssue => nativeResult.DateOfIssue.Date != null ? new Date(nativeResult.DateOfIssue.Date) : null;
public byte[] DigitalSignature => nativeResult.GetDigitalSignature();
public uint DigitalSignatureVersion => (uint)nativeResult.DigitalSignatureVersion;
public string DocumentAdditionalNumber => nativeResult.DocumentAdditionalNumber;
public DataMatchResult DocumentDataMatch => (DataMatchResult)nativeResult.DocumentDataMatch.Ordinal();
public string DocumentNumber => nativeResult.DocumentNumber;
Expand All @@ -86,6 +94,7 @@ internal BlinkIdCombinedRecognizerResult(Com.Microblink.Entities.Recognizers.Bli
public string FullName => nativeResult.FullName;
public string IssuingAuthority => nativeResult.IssuingAuthority;
public string LastName => nativeResult.LastName;
public string LocalizedName => nativeResult.LocalizedName;
public string MaritalStatus => nativeResult.MaritalStatus;
public IMrzResult MrzResult => new MrzResult(nativeResult.MrzResult);
public string Nationality => nativeResult.Nationality;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ internal BlinkIdRecognizerResult(Com.Microblink.Entities.Recognizers.Blinkid.Gen
public string FullName => nativeResult.FullName;
public string IssuingAuthority => nativeResult.IssuingAuthority;
public string LastName => nativeResult.LastName;
public string LocalizedName => nativeResult.LocalizedName;
public string MaritalStatus => nativeResult.MaritalStatus;
public IMrzResult MrzResult => new MrzResult(nativeResult.MrzResult);
public string Nationality => nativeResult.Nationality;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ public PassportRecognizer() : base(new Com.Microblink.Entities.Recognizers.Blink
public IPassportRecognizerResult Result => result;


public bool AnonymizeNetherlandsMrz
{
get => nativeRecognizer.ShouldAnonymizeNetherlandsMrz();
set => nativeRecognizer.SetAnonymizeNetherlandsMrz(value);
}

public bool DetectGlare
{
get => nativeRecognizer.ShouldDetectGlare();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<TargetFramework>netstandard1.0</TargetFramework>
<PackOnBuild>true</PackOnBuild>
<PackageId>BlinkID.Forms.Core</PackageId>
<PackageVersion>5.1.0</PackageVersion>
<PackageVersion>5.2.0</PackageVersion>
<Authors>Microblink</Authors>
<Owners>Microblink</Owners>
<PackageProjectUrl>https://github.com/blinkid/blinkid-xamarin</PackageProjectUrl>
<PackageReleaseNotes>Updated for BlinkID Android and iOS SDKs v5.1.0</PackageReleaseNotes>
<PackageReleaseNotes>Updated for BlinkID Android and iOS SDKs v5.2.0</PackageReleaseNotes>
<Summary>A small, but powerful ID scanning library - abstractions library for Xamarin Forms.</Summary>
<Title>BlinkID</Title>
<Description>A small, but powerful ID scanning library - abstractions library for Xamarin Forms.</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ public interface IBlinkIdCombinedRecognizer : IRecognizer
/// </summary>
bool ReturnFullDocumentImage { get; set; }

/// <summary>
/// Whether or not recognition result should be signed.
///
///
///
/// By default, this is set to 'false'
/// </summary>
bool SignResult { get; set; }


/// <summary>
/// Gets the result.
Expand Down Expand Up @@ -110,6 +119,16 @@ public interface IBlinkIdCombinedRecognizerResult : IRecognizerResult {
/// </summary>
IDate DateOfIssue { get; }

/// <summary>
/// Digital signature of the recognition result. Available only if enabled with signResult property.
/// </summary>
byte[] DigitalSignature { get; }

/// <summary>
/// Version of the digital signature. Available only if enabled with signResult property.
/// </summary>
uint DigitalSignatureVersion { get; }

/// <summary>
/// The additional number of the document.
/// </summary>
Expand Down Expand Up @@ -173,6 +192,11 @@ public interface IBlinkIdCombinedRecognizerResult : IRecognizerResult {
/// </summary>
string LastName { get; }

/// <summary>
/// The localized name of the document owner.
/// </summary>
string LocalizedName { get; }

/// <summary>
/// The marital status of the document owner.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ public interface IBlinkIdRecognizerResult : IRecognizerResult {
/// </summary>
string LastName { get; }

/// <summary>
/// The localized name of the document owner.
/// </summary>
string LocalizedName { get; }

/// <summary>
/// The marital status of the document owner.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
public interface IPassportRecognizer : IRecognizer
{

/// <summary>
/// Defines whether to anonymize Netherlands MRZ
///
///
///
/// By default, this is set to 'true'
/// </summary>
bool AnonymizeNetherlandsMrz { get; set; }

/// <summary>
/// Defines if glare detection should be turned on/off.
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ProjectGuid>{36E524FC-AC6D-4614-96E8-B974F93609C9}</ProjectGuid>
<Description>BlinkID - a small, but powerful ID scanning library. Use this package in your Xamarin Forms project.</Description>
<PackageId>BlinkID.Forms</PackageId>
<PackageVersion>5.1.0</PackageVersion>
<PackageVersion>5.2.0</PackageVersion>
<Authors>Microblink</Authors>
<DevelopmentDependency>false</DevelopmentDependency>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
Expand All @@ -21,7 +21,7 @@
<Title>BlinkID</Title>
<Summary>BlinkID - a small, but powerful ID scanning library. Use this package in your Xamarin Forms project.</Summary>
<PackageProjectUrl>https://github.com/blinkid/blinkid-xamarin</PackageProjectUrl>
<PackageReleaseNotes>Updated for BlinkID Android and iOS SDKs v5.1.0</PackageReleaseNotes>
<PackageReleaseNotes>Updated for BlinkID Android and iOS SDKs v5.2.0</PackageReleaseNotes>
<ReleaseVersion>4.0.0</ReleaseVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<AssemblyName>BlinkID</AssemblyName>
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
<PackageId>BlinkID.Forms.iOS</PackageId>
<PackageVersion>5.1.0</PackageVersion>
<PackageVersion>5.2.0</PackageVersion>
<Authors>Microblink</Authors>
<Owners>Microblink</Owners>
<PackageProjectUrl>https://github.com/blinkid/blinkid-xamarin</PackageProjectUrl>
Expand All @@ -21,9 +21,9 @@
<Description>A small, but powerful ID scanning library - iOS implementation for Xamarin Forms.</Description>
<ReleaseVersion>4.0.0</ReleaseVersion>
<PackOnBuild>true</PackOnBuild>
<PackageReleaseNotes>Updated for BlinkID iOS SDK v5.1.0
<PackageReleaseNotes>Updated for BlinkID iOS SDK v5.2.0

https://github.com/BlinkID/blinkid-ios/releases/tag/v5.1.0</PackageReleaseNotes>
https://github.com/BlinkID/blinkid-ios/releases/tag/v5.2.0</PackageReleaseNotes>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ public bool ReturnFullDocumentImage
set => nativeRecognizer.ReturnFullDocumentImage = value;
}

public bool SignResult
{
get => nativeRecognizer.SignResult;
set => nativeRecognizer.SignResult = value;
}

}

public sealed class BlinkIdCombinedRecognizerResult : RecognizerResult, IBlinkIdCombinedRecognizerResult
Expand All @@ -74,6 +80,8 @@ internal BlinkIdCombinedRecognizerResult(MBBlinkIdCombinedRecognizerResult nativ
public IDate DateOfBirth => nativeResult.DateOfBirth != null ? new Date(nativeResult.DateOfBirth) : null;
public IDate DateOfExpiry => nativeResult.DateOfExpiry != null ? new Date(nativeResult.DateOfExpiry) : null;
public IDate DateOfIssue => nativeResult.DateOfIssue != null ? new Date(nativeResult.DateOfIssue) : null;
public byte[] DigitalSignature => nativeResult.DigitalSignature != null ? nativeResult.DigitalSignature.ToArray() : null;
public uint DigitalSignatureVersion => (uint)nativeResult.DigitalSignatureVersion;
public string DocumentAdditionalNumber => nativeResult.DocumentAdditionalNumber;
public DataMatchResult DocumentDataMatch => (DataMatchResult)nativeResult.DocumentDataMatch;
public string DocumentNumber => nativeResult.DocumentNumber;
Expand All @@ -86,6 +94,7 @@ internal BlinkIdCombinedRecognizerResult(MBBlinkIdCombinedRecognizerResult nativ
public string FullName => nativeResult.FullName;
public string IssuingAuthority => nativeResult.IssuingAuthority;
public string LastName => nativeResult.LastName;
public string LocalizedName => nativeResult.LocalizedName;
public string MaritalStatus => nativeResult.MaritalStatus;
public IMrzResult MrzResult => new MrzResult(nativeResult.MrzResult);
public string Nationality => nativeResult.Nationality;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ internal BlinkIdRecognizerResult(MBBlinkIdRecognizerResult nativeResult) : base(
public string FullName => nativeResult.FullName;
public string IssuingAuthority => nativeResult.IssuingAuthority;
public string LastName => nativeResult.LastName;
public string LocalizedName => nativeResult.LocalizedName;
public string MaritalStatus => nativeResult.MaritalStatus;
public IMrzResult MrzResult => new MrzResult(nativeResult.MrzResult);
public string Nationality => nativeResult.Nationality;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ public PassportRecognizer() : base(new MBPassportRecognizer())
public IPassportRecognizerResult Result => result;


public bool AnonymizeNetherlandsMrz
{
get => nativeRecognizer.AnonymizeNetherlandsMrz;
set => nativeRecognizer.AnonymizeNetherlandsMrz = value;
}

public bool DetectGlare
{
get => nativeRecognizer.DetectGlare;
Expand Down
34 changes: 13 additions & 21 deletions Binding/iOS/ApiDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1723,6 +1723,10 @@ interface MBBlinkIdRecognizerResult : INSCopying, IMBFullDocumentImageResult, IM
[NullAllowed, Export ("sex")]
string Sex { get; }

// @property (readonly, nonatomic) NSString * _Nullable localizedName;
[NullAllowed, Export ("localizedName")]
string LocalizedName { get; }

// @property (readonly, nonatomic) NSString * _Nullable additionalNameInformation;
[NullAllowed, Export ("additionalNameInformation")]
string AdditionalNameInformation { get; }
Expand Down Expand Up @@ -1797,14 +1801,6 @@ interface MBBlinkIdRecognizer : INSCopying, IMBFaceImage, IMBEncodeFaceImage, IM
[Export ("result", ArgumentSemantic.Strong)]
MBBlinkIdRecognizerResult Result { get; }

// -(void)setDewarpedImageDelegate:(id<MBBlinkIdRecognizerDelegate> _Nullable)delegate;
[Export ("setDewarpedImageDelegate:")]
void SetDewarpedImageDelegate ([NullAllowed] MBBlinkIdRecognizerDelegate @delegate);

// -(void)setClassifierDelegate:(id<MBBlinkIdRecognizerDelegate> _Nullable)delegate;
[Export ("setClassifierDelegate:")]
void SetClassifierDelegate ([NullAllowed] MBBlinkIdRecognizerDelegate @delegate);

// @property (assign, nonatomic) BOOL allowBlurFilter;
[Export ("allowBlurFilter")]
bool AllowBlurFilter { get; set; }
Expand All @@ -1828,7 +1824,7 @@ interface MBBlinkIdRecognizerDelegate
[iOS (8,0)]
[BaseType (typeof(MBRecognizerResult))]
[DisableDefaultCtor]
interface MBBlinkIdCombinedRecognizerResult : INSCopying, MBCombinedRecognizerResult, IMBFaceImageResult, IMBEncodedFaceImageResult, IMBCombinedFullDocumentImageResult, IMBEncodedCombinedFullDocumentImageResult
interface MBBlinkIdCombinedRecognizerResult : INSCopying, MBCombinedRecognizerResult, IMBDigitalSignatureResult, IMBFaceImageResult, IMBEncodedFaceImageResult, IMBCombinedFullDocumentImageResult, IMBEncodedCombinedFullDocumentImageResult
{
// @property (readonly, nonatomic) NSString * _Nullable address;
[NullAllowed, Export ("address")]
Expand Down Expand Up @@ -1866,6 +1862,10 @@ interface MBBlinkIdCombinedRecognizerResult : INSCopying, MBCombinedRecognizerRe
[NullAllowed, Export ("sex")]
string Sex { get; }

// @property (readonly, nonatomic) NSString * _Nullable localizedName;
[NullAllowed, Export ("localizedName")]
string LocalizedName { get; }

// @property (readonly, nonatomic) NSString * _Nullable additionalNameInformation;
[NullAllowed, Export ("additionalNameInformation")]
string AdditionalNameInformation { get; }
Expand Down Expand Up @@ -1940,14 +1940,6 @@ interface MBBlinkIdCombinedRecognizer : INSCopying, IMBCombinedRecognizer, IMBDi
[Export ("result", ArgumentSemantic.Strong)]
MBBlinkIdCombinedRecognizerResult Result { get; }

// -(void)setDewarpedImageDelegate:(id<MBBlinkIdCombinedRecognizerDelegate> _Nullable)delegate;
[Export ("setDewarpedImageDelegate:")]
void SetDewarpedImageDelegate ([NullAllowed] MBBlinkIdCombinedRecognizerDelegate @delegate);

// -(void)setClassifierDelegate:(id<MBBlinkIdCombinedRecognizerDelegate> _Nullable)delegate;
[Export ("setClassifierDelegate:")]
void SetClassifierDelegate ([NullAllowed] MBBlinkIdCombinedRecognizerDelegate @delegate);

// @property (assign, nonatomic) BOOL allowBlurFilter;
[Export ("allowBlurFilter")]
bool AllowBlurFilter { get; set; }
Expand Down Expand Up @@ -2020,10 +2012,6 @@ interface MBMrtdRecognizer : INSCopying, IMBFullDocumentImage, IMBEncodeFullDocu
// @property (readonly, nonatomic, strong) NSArray<__kindof MBMrtdSpecification *> * _Nullable mrtdSpecifications;
[NullAllowed, Export ("mrtdSpecifications", ArgumentSemantic.Strong)]
MBMrtdSpecification[] MrtdSpecifications { get; }

// -(void)setMrzFilter:(id<MBMrzFilter> _Nullable)mrzFilter;
[Export ("setMrzFilter:")]
void SetMrzFilter ([NullAllowed] MBMrzFilter mrzFilter);
}

// @protocol MBMrzFilter <NSObject>
Expand Down Expand Up @@ -2150,6 +2138,10 @@ interface MBPassportRecognizer : INSCopying, IMBGlareDetection, IMBFaceImage, IM
// @property (readonly, nonatomic, strong) MBPassportRecognizerResult * _Nonnull result;
[Export ("result", ArgumentSemantic.Strong)]
MBPassportRecognizerResult Result { get; }

// @property (assign, nonatomic) BOOL anonymizeNetherlandsMrz;
[Export ("anonymizeNetherlandsMrz")]
bool AnonymizeNetherlandsMrz { get; set; }
}

// @interface MBVisaRecognizerResult : MBRecognizerResult <NSCopying, MBFaceImageResult, MBEncodedFaceImageResult, MBFullDocumentImageResult, MBEncodedFullDocumentImageResult>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Binding/iOS/Microblink.bundle/BlinkID_Ocr_general_6.4.1.strop
Binary file not shown.
Binary file modified Binding/iOS/Microblink.bundle/BlinkID_Ocr_mrz_6.2.0.strop
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Binding/iOS/Microblink.bundle/Info.plist
Binary file not shown.
3 changes: 3 additions & 0 deletions Binding/iOS/Microblink.bundle/ccc_lookup_table.zzip
Git LFS file not shown
3 changes: 3 additions & 0 deletions Binding/iOS/Microblink.bundle/en.strings
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@
"blinkid_too_far_error_message" = "Move closer";
"blinkid_scan_unsuccessful_error_title" = "Scan unsuccessful";
"blinkid_scan_unsuccessful_error_message" = "Unable to read the document. Please try again.";

"document_capture_too_far_message" = "Move closer";
"document_capture_detected" = "Hold steady";
Loading

0 comments on commit 44f75d4

Please sign in to comment.