Skip to content

Commit

Permalink
Release 8.0.0 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-graca authored Aug 1, 2024
1 parent 34fef79 commit 24c1960
Show file tree
Hide file tree
Showing 19 changed files with 42 additions and 36 deletions.
6 changes: 3 additions & 3 deletions MAUI/Anyline.Examples.MAUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<ApplicationIdGuid>9C37433F-9192-4C96-B49A-B9A7E047FBC2</ApplicationIdGuid>

<!-- Versions -->
<ApplicationDisplayVersion>7.0.0</ApplicationDisplayVersion>
<ApplicationDisplayVersion>8.0.0</ApplicationDisplayVersion>
<ApplicationVersion>1</ApplicationVersion>

<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">12.0</SupportedOSPlatformVersion>
Expand Down Expand Up @@ -79,8 +79,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Anyline.SDK.NET.Android" Version="7.0.0" />
<PackageReference Include="Anyline.SDK.NET.iOS" Version="7.0.0" />
<PackageReference Include="Anyline.SDK.NET.Android" Version="8.0.0" />
<PackageReference Include="Anyline.SDK.NET.iOS" Version="8.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ private void _scanView_CameraError(object sender, CameraErrorEventArgs e)
private void _scanView_CameraOpened(object sender, CameraOpenedEventArgs e)
{
if (_scanView != null)
_scanView.Start();
{
if (_scanView.IsInitialized)
{
_scanView.Start();
}
}
}

/// <summary>
Expand Down Expand Up @@ -178,7 +183,10 @@ private void DisposeAnyline()
{
if (_scanView != null)
{
_scanView.Stop();
if (_scanView.IsInitialized)
{
_scanView.Stop();
}
_scanView.CameraView.CameraOpened -= _scanView_CameraOpened;
_scanView.CameraView.CameraError -= _scanView_CameraError;
_scanView.CameraView.ReleaseCameraInBackground();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private void StartAnylineScanner()
return;
}

var success = _scanView.ScanViewPlugin.StartWithError(out error);
var success = _scanView.ViewPlugin.StartWithError(out error);
if (!success)
{
if (error != null)
Expand All @@ -102,9 +102,9 @@ private void StartAnylineScanner()

protected void DisposeAnyline()
{
if (_scanView != null && _scanView.ScanViewPlugin != null)
if (_scanView != null && _scanView.ViewPlugin != null)
{
_scanView.ScanViewPlugin.Stop();
_scanView.ViewPlugin.Stop();
}

_scanView?.Dispose();
Expand Down
4 changes: 2 additions & 2 deletions MAUI/Platforms/iOS/Handlers/AnylineHandler.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected override void ConnectHandler(UIView PlatformView)
private void StartAnyline()
{
NSError error = null;
bool success = _scanView.ScanViewPlugin.StartWithError(out error);
bool success = _scanView.ViewPlugin.StartWithError(out error);

if (!success)
{
Expand All @@ -113,7 +113,7 @@ protected override void DisconnectHandler(UIView PlatformView)
// PlatformView.Delegate = null;
//}
_scanView.StopCamera();
_scanView.ScanViewPlugin.Stop();
_scanView.ViewPlugin.Stop();
PlatformView.RemoveFromSuperview();
}
}
Expand Down
9 changes: 5 additions & 4 deletions MAUI/Platforms/iOS/NFC/NFCScanningViewRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public override void WillMoveToWindow(UIWindow window)
if (window != null)
{
InitializeAnylineScanView();
_nfcDetector = new ALNFCDetector(this, out NSError error);
NSError error = null;
_nfcDetector = new ALNFCDetector(this, out error);
}
else
{
Expand Down Expand Up @@ -77,7 +78,7 @@ public override void SubviewAdded(UIView uiview)
private void StartMRZScanner()
{
NSError error = null;
var success = _scanView.ScanViewPlugin.StartWithError(out error);
var success = _scanView.ViewPlugin.StartWithError(out error);
if (!success)
{
if (error != null)
Expand Down Expand Up @@ -176,9 +177,9 @@ public void NfcFailedWithError(NSError error)
#region teardown
protected void DisposeAnyline()
{
if (_scanView != null && _scanView.ScanViewPlugin != null)
if (_scanView != null && _scanView.ViewPlugin != null)
{
_scanView.ScanViewPlugin.Stop();
_scanView.ViewPlugin.Stop();
}

_scanView?.Dispose();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}
},
"scanFeedbackConfig": {
"style": "CONTOUR_RECT",
"style": "contour_rect",
"strokeColor": "0099FF",
"strokeWidth": 2,
"fillColor": "220099FF",
Expand Down
4 changes: 2 additions & 2 deletions MAUI/Resources/Raw/Configs/id_config_arabic.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
"feedbackStrokeColor": "0099FF"
},
"scanFeedbackConfig": {
"style": "CONTOUR_RECT",
"visualFeedbackRedrawTimeout": 100,
"style": "contour_rect",
"redrawTimeout": 100,
"strokeColor": "0099FF",
"fillColor": "220099FF",
"beepOnResult": true,
Expand Down
4 changes: 2 additions & 2 deletions MAUI/Resources/Raw/Configs/id_config_cyrillic.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
"feedbackStrokeColor": "0099FF"
},
"scanFeedbackConfig": {
"style": "CONTOUR_RECT",
"visualFeedbackRedrawTimeout": 100,
"style": "contour_rect",
"redrawTimeout": 100,
"strokeColor": "0099FF",
"fillColor": "220099FF",
"beepOnResult": true,
Expand Down
7 changes: 3 additions & 4 deletions MAUI/Resources/Raw/Configs/id_config_jlp.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
}
},
"cutoutConfig": {
"style": "rect",
"maxWidthPercent": "70%",
"maxHeightPercent": "70%",
"alignment": "center",
Expand All @@ -37,9 +36,9 @@
},
"feedbackStrokeColor": "0099FF"
},
"scanFeedback": {
"style": "RECT",
"visualFeedbackRedrawTimeout": 100,
"scanFeedbackConfig": {
"style": "rect",
"redrawTimeout": 100,
"strokeColor": "0099FF",
"fillColor": "220099FF",
"beepOnResult": true,
Expand Down
2 changes: 1 addition & 1 deletion MAUI/Resources/Raw/Configs/id_config_mrz.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
"scanFeedbackConfig": {
"style": "rect",
"visualFeedbackRedrawTimeout": 100,
"redrawTimeout": 100,
"strokeColor": "0099FF",
"fillColor": "220099FF",
"beepOnResult": true,
Expand Down
2 changes: 1 addition & 1 deletion MAUI/Resources/Raw/Configs/id_config_universal.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
"scanFeedbackConfig": {
"style": "contour_rect",
"visualFeedbackRedrawTimeout": 100,
"redrawTimeout": 100,
"strokeColor": "0099FF",
"fillColor": "220099FF",
"beepOnResult": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}
},
"scanFeedbackConfig": {
"style": "CONTOUR_RECT",
"style": "contour_rect",
"strokeColor": "0099FF",
"fillColor": "220099FF",
"blinkAnimationOnResult": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}
},
"scanFeedbackConfig": {
"style": "CONTOUR_RECT",
"style": "contour_rect",
"strokeColor": "0099FF",
"fillColor": "220099FF",
"blinkAnimationOnResult": true,
Expand Down
2 changes: 1 addition & 1 deletion MAUI/Resources/Raw/Configs/mro_usnr_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}
},
"scanFeedbackConfig": {
"style": "CONTOUR_RECT",
"style": "contour_rect",
"strokeColor": "0099FF",
"fillColor": "220099FF",
"beepOnResult": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
"scanFeedbackConfig": {
"style": "contour_rect",
"visualFeedbackRedrawTimeout": 100,
"redrawTimeout": 100,
"strokeColor": "0099FF",
"fillColor": "220099FF",
"beepOnResult": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"vinConfig": {}
},
"cutoutConfig": {
"style": "rect",
"width": 720,
"alignment": "top_half",
"maxWidthPercent": "70%",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"startScanDelay": 0
},
"cutoutConfig": {
"style": "rect",
"maxWidthPercent": "100%",
"width": 768,
"alignment": "top_half",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
},
"scanFeedbackConfig": {
"style": "contour_rect",
"visualFeedbackRedrawTimeout": 100,
"redrawTimeout": 100,
"strokeColor": "0099FF",
"fillColor": "220099FF",
"beepOnResult": true,
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Anyline provides an easy-to-use SDK for applications to enable Optical Character
* The Anyline .NET SDK is essentially a Binding Library that wraps around the native Anyline SDK so all native functionality can be simply invoked via C# calls.

* For more information, please refer to the
native Anyline [Android](https://documentation.anyline.com/toc/platforms/android/index.html) and [iOS](https://documentation.anyline.com/toc/platforms/ios/index.html) SDKs documentation pages.
native Anyline [Android](https://documentation.anyline.com/android-sdk-component/latest/index.html) and [iOS](https://documentation.anyline.com/ios-sdk-component/latest/index.html) SDKs documentation pages.

<!-- Anyline [.NET](https://documentation.anyline.com/toc/platforms/dotnet) SDK, as well as the -->
<!-- Anyline [.NET](https://documentation.anyline.com/dotnet-sdk-component/latest/index.html) SDK, as well as the -->

## Quick Start ##

Expand All @@ -22,12 +22,12 @@ native Anyline [Android](https://documentation.anyline.com/toc/platforms/android
### Examples ###

The [MAUI](MAUI) directory provides source code for the Anyline MAUI Example App. Simply build & run the example project for your desired platform and enjoy scanning :)
The examples app is designed in a generic way to work with any technical capability. In your use-case, it is advised to parse the scan results directly into the specific plugin objects. Check the "PLUGIN SPECIFICS" section on the [Android](https://documentation.anyline.com/toc/platforms/android/plugins/index.html) and [iOS](https://documentation.anyline.com/toc/platforms/ios/plugins/index.html) documentation pages for more information.
The examples app is designed in a generic way to work with any technical capability. In your use-case, it is advised to parse the scan results directly into the specific plugin objects. Check the "PLUGIN SPECIFICS" section on the [Android](https://documentation.anyline.com/android-sdk-component/latest/index.html) and [iOS](https://documentation.anyline.com/ios-sdk-component/latest/index.html) documentation pages for more information.

<!--
### Quick start & setup ###
For a detailed setup guide on how to integrate Anyline for your scanning application, please visit the [Anyline .NET documentation](https://documentation.anyline.io/toc/platforms/dotnet/index.html).
For a detailed setup guide on how to integrate Anyline for your scanning application, please visit the [Anyline .NET documentation](https://documentation.anyline.com/dotnet-sdk-component/latest/index.html).
-->

### Available Technical Capabilities ###
Expand Down

0 comments on commit 24c1960

Please sign in to comment.