Skip to content

Commit

Permalink
Release MAUI v2.0.2 / Android v10.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Miquel-Martinez authored Oct 28, 2024
2 parents a8688c1 + 8cf3ee7 commit f481b28
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ExampleAppMAUI/ExampleAppMAUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="iProov.NET.MAUI" Version="2.0.1" />
<PackageReference Include="iProov.NET.MAUI" Version="2.0.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\APIClient\APIClient.csproj" />
Expand Down
16 changes: 12 additions & 4 deletions ExampleAppMAUI/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,18 @@ private void LoadFrameResult(byte[] frame)
private static byte[] ImageToByteArrayAsync(string path)
{
var assem = Assembly.GetExecutingAssembly();
using var stream = assem.GetManifestResourceStream(path);
byte[] bytesAvailable = new byte[stream.Length];
stream.Read(bytesAvailable, 0, bytesAvailable.Length);
return bytesAvailable;
if (assem is not null) {
using var stream = assem.GetManifestResourceStream(path);
if(stream is not null) {
byte[] bytesAvailable = new byte[stream.Length];
stream.Read(bytesAvailable, 0, bytesAvailable.Length);
return bytesAvailable;
} else {
return [];
}
} else {
return [];
}
}


Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ The **iProov.NET.MAUI** library is available at [nugets.org](https://www.nuget.o

```
<ItemGroup>
<PackageReference Include="iProov.NET.MAUI" Version="2.0.1" />
<PackageReference Include="iProov.NET.MAUI" Version="2.0.2" />
</ItemGroup>
```

Expand Down

0 comments on commit f481b28

Please sign in to comment.