Skip to content

Commit

Permalink
Merge pull request #34 from BlinkID/release/v4.10.0
Browse files Browse the repository at this point in the history
Release/v4.10.0
  • Loading branch information
i1E authored Jul 17, 2019
2 parents a5a839e + 1c5b535 commit 82ad9be
Show file tree
Hide file tree
Showing 101 changed files with 3,438 additions and 1,169 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>4.9.0</PackageVersion>
<PackageVersion>4.10.0</PackageVersion>
<Authors>Microblink</Authors>
<Owners>Microblink</Owners>
<PackageProjectUrl>https://github.com/blinkid/blinkid-xamarin</PackageProjectUrl>
<PackageReleaseNotes>Updated to BlinkID Android SDK v4.9.0:
<PackageReleaseNotes>Updated to BlinkID Android SDK v4.10.0:

https://github.com/BlinkID/blinkid-android/releases/tag/v4.9.0</PackageReleaseNotes>
https://github.com/BlinkID/blinkid-android/releases/tag/v4.10.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
3 changes: 2 additions & 1 deletion Binding/Android/Transforms/Metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@

<remove-node path="/api/package[starts-with(@name, 'com.microblink.entities')]/class/method[@name='consumeResultFrom']" />

<attr path="/api/package[starts-with(@name, 'com.microblink.entities')]/class/method[@name='clone']" name="managedName">Copy</attr>
<remove-node path="/api/package[starts-with(@name, 'com.microblink.entities')]/class/method[@name='clone']" />

</metadata>
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>4.9.0.1</PackageVersion>
<PackageVersion>4.10.0</PackageVersion>
<Authors>Microblink</Authors>
<Owners>Microblink</Owners>
<PackageProjectUrl>https://github.com/blinkid/blinkid-xamarin</PackageProjectUrl>
Expand All @@ -23,10 +23,8 @@
<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 v4.9.0:
https://github.com/BlinkID/blinkid-android/releases/tag/v4.9.0

- fix: included missing PassportRecognizer</PackageReleaseNotes>
<PackageReleaseNotes>- Updated for BlinkID Android SDK v4.10.0:
https://github.com/BlinkID/blinkid-android/releases/tag/v4.10.0</PackageReleaseNotes>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -192,6 +190,7 @@ https://github.com/BlinkID/blinkid-android/releases/tag/v4.9.0
<Compile Include="MicroblinkScannerImplementation.cs" />
<Compile Include="Overlays/OverlaySettings.cs" />
<Compile Include="Overlays/Implementations/BlinkCardOverlaySettings.cs" />
<Compile Include="Overlays/Implementations/BlinkIdOverlaySettings.cs" />
<Compile Include="Overlays/Implementations/DocumentOverlaySettings.cs" />
<Compile Include="Overlays/Implementations/DocumentVerificationOverlaySettings.cs" />
<Compile Include="Overlays/Implementations/BarcodeOverlaySettings.cs" />
Expand All @@ -205,6 +204,7 @@ https://github.com/BlinkID/blinkid-android/releases/tag/v4.9.0
<Compile Include="Recognizers/Implementations/IndonesiaIdFrontRecognizer.cs" />
<Compile Include="Recognizers/Implementations/EudlRecognizer.cs" />
<Compile Include="Recognizers/Implementations/SloveniaCombinedRecognizer.cs" />
<Compile Include="Recognizers/Implementations/NigeriaVoterIdBackRecognizer.cs" />
<Compile Include="Recognizers/Implementations/AustriaDlFrontRecognizer.cs" />
<Compile Include="Recognizers/Implementations/BruneiResidencePermitBackRecognizer.cs" />
<Compile Include="Recognizers/Implementations/CyprusIdBackRecognizer.cs" />
Expand Down Expand Up @@ -237,6 +237,7 @@ https://github.com/BlinkID/blinkid-android/releases/tag/v4.9.0
<Compile Include="Recognizers/Implementations/SlovakiaCombinedRecognizer.cs" />
<Compile Include="Recognizers/Implementations/MalaysiaMyPrFrontRecognizer.cs" />
<Compile Include="Recognizers/Implementations/VinRecognizer.cs" />
<Compile Include="Recognizers/Implementations/BlinkIdCombinedRecognizer.cs" />
<Compile Include="Recognizers/Implementations/CroatiaIdBackRecognizer.cs" />
<Compile Include="Recognizers/Implementations/MexicoVoterIdFrontRecognizer.cs" />
<Compile Include="Recognizers/Implementations/CroatiaCombinedRecognizer.cs" />
Expand Down Expand Up @@ -278,6 +279,7 @@ https://github.com/BlinkID/blinkid-android/releases/tag/v4.9.0
<Compile Include="Recognizers/Implementations/AustriaIdFrontRecognizer.cs" />
<Compile Include="Recognizers/Implementations/JordanCombinedRecognizer.cs" />
<Compile Include="Recognizers/Implementations/ItalyDlFrontRecognizer.cs" />
<Compile Include="Recognizers/Implementations/BlinkIdRecognizer.cs" />
<Compile Include="Recognizers/Implementations/BruneiMilitaryIdBackRecognizer.cs" />
<Compile Include="Recognizers/Implementations/GermanyIdBackRecognizer.cs" />
<Compile Include="Recognizers/Implementations/GermanyDlBackRecognizer.cs" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using Microblink.Forms.Droid.Overlays;
using Microblink.Forms.Droid.Recognizers;
using Microblink.Forms.Core.Overlays;
using Microblink.Forms.Core.Recognizers;
using Com.Microblink.Uisettings;

[assembly: Xamarin.Forms.Dependency(typeof(BlinkIdOverlaySettingsFactory))]
namespace Microblink.Forms.Droid.Overlays
{
public sealed class BlinkIdOverlaySettings : OverlaySettings, IBlinkIdOverlaySettings
{
public BlinkIdOverlaySettings(IRecognizerCollection recognizerCollection)
: base(new BlinkIdUISettings((recognizerCollection as RecognizerCollection).NativeRecognizerBundle), recognizerCollection)
{}
}

public sealed class BlinkIdOverlaySettingsFactory : IBlinkIdOverlaySettingsFactory
{
public IBlinkIdOverlaySettings CreateBlinkIdOverlaySettings(IRecognizerCollection recognizerCollection)
{
return new BlinkIdOverlaySettings(recognizerCollection);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
using Microblink.Forms.Droid.Recognizers;
using Microblink.Forms.Core.Recognizers;

[assembly: Xamarin.Forms.Dependency(typeof(BlinkIdCombinedRecognizer))]
namespace Microblink.Forms.Droid.Recognizers
{
public sealed class BlinkIdCombinedRecognizer : Recognizer, IBlinkIdCombinedRecognizer
{
Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdCombinedRecognizer nativeRecognizer;

BlinkIdCombinedRecognizerResult result;

public BlinkIdCombinedRecognizer() : base(new Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdCombinedRecognizer())
{
nativeRecognizer = NativeRecognizer as Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdCombinedRecognizer;
result = new BlinkIdCombinedRecognizerResult(nativeRecognizer.GetResult() as Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdCombinedRecognizer.Result);
}

public override IRecognizerResult BaseResult => result;

public IBlinkIdCombinedRecognizerResult Result => result;


public uint FaceImageDpi
{
get => (uint)nativeRecognizer.FaceImageDpi;
set => nativeRecognizer.FaceImageDpi = (int)value;
}

public uint FullDocumentImageDpi
{
get => (uint)nativeRecognizer.FullDocumentImageDpi;
set => nativeRecognizer.FullDocumentImageDpi = (int)value;
}

public IImageExtensionFactors FullDocumentImageExtensionFactors
{
get => new ImageExtensionFactors(nativeRecognizer.FullDocumentImageExtensionFactors);
set => nativeRecognizer.FullDocumentImageExtensionFactors = (value as ImageExtensionFactors).NativeImageExtensionFactors;
}

public bool ReturnFaceImage
{
get => nativeRecognizer.ShouldReturnFaceImage();
set => nativeRecognizer.SetReturnFaceImage(value);
}

public bool ReturnFullDocumentImage
{
get => nativeRecognizer.ShouldReturnFullDocumentImage();
set => nativeRecognizer.SetReturnFullDocumentImage(value);
}

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

}

public sealed class BlinkIdCombinedRecognizerResult : RecognizerResult, IBlinkIdCombinedRecognizerResult
{
Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdCombinedRecognizer.Result nativeResult;

internal BlinkIdCombinedRecognizerResult(Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdCombinedRecognizer.Result nativeResult) : base(nativeResult)
{
this.nativeResult = nativeResult;
}
public string Address => nativeResult.Address;
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 bool DocumentDataMatch => nativeResult.IsDocumentDataMatch;
public string DocumentNumber => nativeResult.DocumentNumber;
public IDriverLicenseDetailedInfo DriverLicenseDetailedInfo => new DriverLicenseDetailedInfo(nativeResult.DriverLicenseDetailedInfo);
public Xamarin.Forms.ImageSource FaceImage => nativeResult.FaceImage != null ? Utils.ConvertAndroidBitmap(nativeResult.FaceImage.ConvertToBitmap()) : null;
public string FirstName => nativeResult.FirstName;
public Xamarin.Forms.ImageSource FullDocumentImage => nativeResult.FullDocumentImage != null ? Utils.ConvertAndroidBitmap(nativeResult.FullDocumentImage.ConvertToBitmap()) : null;
public string FullName => nativeResult.FullName;
public string LastName => nativeResult.LastName;
public bool ScanningFirstSideDone => nativeResult.IsScanningFirstSideDone;
public string Sex => nativeResult.Sex;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
using Microblink.Forms.Droid.Recognizers;
using Microblink.Forms.Core.Recognizers;

[assembly: Xamarin.Forms.Dependency(typeof(BlinkIdRecognizer))]
namespace Microblink.Forms.Droid.Recognizers
{
public sealed class BlinkIdRecognizer : Recognizer, IBlinkIdRecognizer
{
Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdRecognizer nativeRecognizer;

BlinkIdRecognizerResult result;

public BlinkIdRecognizer() : base(new Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdRecognizer())
{
nativeRecognizer = NativeRecognizer as Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdRecognizer;
result = new BlinkIdRecognizerResult(nativeRecognizer.GetResult() as Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdRecognizer.Result);
}

public override IRecognizerResult BaseResult => result;

public IBlinkIdRecognizerResult Result => result;


public uint FaceImageDpi
{
get => (uint)nativeRecognizer.FaceImageDpi;
set => nativeRecognizer.FaceImageDpi = (int)value;
}

public uint FullDocumentImageDpi
{
get => (uint)nativeRecognizer.FullDocumentImageDpi;
set => nativeRecognizer.FullDocumentImageDpi = (int)value;
}

public IImageExtensionFactors FullDocumentImageExtensionFactors
{
get => new ImageExtensionFactors(nativeRecognizer.FullDocumentImageExtensionFactors);
set => nativeRecognizer.FullDocumentImageExtensionFactors = (value as ImageExtensionFactors).NativeImageExtensionFactors;
}

public bool ReturnFaceImage
{
get => nativeRecognizer.ShouldReturnFaceImage();
set => nativeRecognizer.SetReturnFaceImage(value);
}

public bool ReturnFullDocumentImage
{
get => nativeRecognizer.ShouldReturnFullDocumentImage();
set => nativeRecognizer.SetReturnFullDocumentImage(value);
}

}

public sealed class BlinkIdRecognizerResult : RecognizerResult, IBlinkIdRecognizerResult
{
Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdRecognizer.Result nativeResult;

internal BlinkIdRecognizerResult(Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdRecognizer.Result nativeResult) : base(nativeResult)
{
this.nativeResult = nativeResult;
}
public string Address => nativeResult.Address;
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 string DocumentNumber => nativeResult.DocumentNumber;
public IDriverLicenseDetailedInfo DriverLicenseDetailedInfo => new DriverLicenseDetailedInfo(nativeResult.DriverLicenseDetailedInfo);
public Xamarin.Forms.ImageSource FaceImage => nativeResult.FaceImage != null ? Utils.ConvertAndroidBitmap(nativeResult.FaceImage.ConvertToBitmap()) : null;
public string FirstName => nativeResult.FirstName;
public Xamarin.Forms.ImageSource FullDocumentImage => nativeResult.FullDocumentImage != null ? Utils.ConvertAndroidBitmap(nativeResult.FullDocumentImage.ConvertToBitmap()) : null;
public string FullName => nativeResult.FullName;
public string LastName => nativeResult.LastName;
public string Sex => nativeResult.Sex;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
using Microblink.Forms.Droid.Recognizers;
using Microblink.Forms.Core.Recognizers;

[assembly: Xamarin.Forms.Dependency(typeof(NigeriaVoterIdBackRecognizer))]
namespace Microblink.Forms.Droid.Recognizers
{
public sealed class NigeriaVoterIdBackRecognizer : Recognizer, INigeriaVoterIdBackRecognizer
{
Com.Microblink.Entities.Recognizers.Blinkid.Nigeria.NigeriaVoterIdBackRecognizer nativeRecognizer;

NigeriaVoterIdBackRecognizerResult result;

public NigeriaVoterIdBackRecognizer() : base(new Com.Microblink.Entities.Recognizers.Blinkid.Nigeria.NigeriaVoterIdBackRecognizer())
{
nativeRecognizer = NativeRecognizer as Com.Microblink.Entities.Recognizers.Blinkid.Nigeria.NigeriaVoterIdBackRecognizer;
result = new NigeriaVoterIdBackRecognizerResult(nativeRecognizer.GetResult() as Com.Microblink.Entities.Recognizers.Blinkid.Nigeria.NigeriaVoterIdBackRecognizer.Result);
}

public override IRecognizerResult BaseResult => result;

public INigeriaVoterIdBackRecognizerResult Result => result;


public bool DetectGlare
{
get => nativeRecognizer.ShouldDetectGlare();
set => nativeRecognizer.SetDetectGlare(value);
}

public uint FullDocumentImageDpi
{
get => (uint)nativeRecognizer.FullDocumentImageDpi;
set => nativeRecognizer.FullDocumentImageDpi = (int)value;
}

public IImageExtensionFactors FullDocumentImageExtensionFactors
{
get => new ImageExtensionFactors(nativeRecognizer.FullDocumentImageExtensionFactors);
set => nativeRecognizer.FullDocumentImageExtensionFactors = (value as ImageExtensionFactors).NativeImageExtensionFactors;
}

public bool ReturnFullDocumentImage
{
get => nativeRecognizer.ShouldReturnFullDocumentImage();
set => nativeRecognizer.SetReturnFullDocumentImage(value);
}

}

public sealed class NigeriaVoterIdBackRecognizerResult : RecognizerResult, INigeriaVoterIdBackRecognizerResult
{
Com.Microblink.Entities.Recognizers.Blinkid.Nigeria.NigeriaVoterIdBackRecognizer.Result nativeResult;

internal NigeriaVoterIdBackRecognizerResult(Com.Microblink.Entities.Recognizers.Blinkid.Nigeria.NigeriaVoterIdBackRecognizer.Result nativeResult) : base(nativeResult)
{
this.nativeResult = nativeResult;
}
public string Address => nativeResult.Address;
public IDate DateOfBirth => nativeResult.DateOfBirth.Date != null ? new Date(nativeResult.DateOfBirth.Date) : null;
public string FirstName => nativeResult.FirstName;
public Xamarin.Forms.ImageSource FullDocumentImage => nativeResult.FullDocumentImage != null ? Utils.ConvertAndroidBitmap(nativeResult.FullDocumentImage.ConvertToBitmap()) : null;
public string RawBarcodeData => nativeResult.RawBarcodeData;
public string Sex => nativeResult.Sex;
public string Surname => nativeResult.Surname;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ internal RomaniaIdFrontRecognizerResult(Com.Microblink.Entities.Recognizers.Blin
this.nativeResult = nativeResult;
}
public string Address => nativeResult.Address;
public string CnpNumber => nativeResult.CnpNumber;
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 Xamarin.Forms.ImageSource FaceImage => nativeResult.FaceImage != null ? Utils.ConvertAndroidBitmap(nativeResult.FaceImage.ConvertToBitmap()) : null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ internal SloveniaCombinedRecognizerResult(Com.Microblink.Entities.Recognizers.Bl
public string AdministrativeUnit => nativeResult.AdministrativeUnit;
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 bool DateOfExpiryPermanent => nativeResult.IsDateOfExpiryPermanent;
public IDate DateOfIssue => nativeResult.DateOfIssue.Date != null ? new Date(nativeResult.DateOfIssue.Date) : null;
public byte[] DigitalSignature => nativeResult.GetDigitalSignature();
public uint DigitalSignatureVersion => (uint)nativeResult.DigitalSignatureVersion;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ internal SloveniaIdFrontRecognizerResult(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 bool DateOfExpiryPermanent => nativeResult.IsDateOfExpiryPermanent;
public Xamarin.Forms.ImageSource FaceImage => nativeResult.FaceImage != null ? Utils.ConvertAndroidBitmap(nativeResult.FaceImage.ConvertToBitmap()) : null;
public Xamarin.Forms.ImageSource FullDocumentImage => nativeResult.FullDocumentImage != null ? Utils.ConvertAndroidBitmap(nativeResult.FullDocumentImage.ConvertToBitmap()) : null;
public string GivenNames => nativeResult.GivenNames;
Expand Down
Loading

0 comments on commit 82ad9be

Please sign in to comment.