Skip to content

Commit

Permalink
feat(makefile): bump .NET Android and iOS SDK versions to 3.0.0; add …
Browse files Browse the repository at this point in the history
…"Parallel - First Scan" mode example (#3)
  • Loading branch information
ricardocolombo authored Mar 30, 2023
1 parent 8bc145f commit 4d4c86b
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 6 deletions.
8 changes: 5 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>2.0.0</ApplicationDisplayVersion>
<ApplicationDisplayVersion>3.0.0</ApplicationDisplayVersion>
<ApplicationVersion>1</ApplicationVersion>

<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">12.0</SupportedOSPlatformVersion>
Expand Down Expand Up @@ -73,11 +73,12 @@
<None Remove="Platforms\Android\NFC\" />
<None Remove="Platforms\Android\Resources\layout\" />
<None Remove="Platforms\iOS\NFC\" />
<None Remove="Resources\Raw\Configs\workflows_config_parallel_first_scan.json" />
</ItemGroup>

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

Expand Down Expand Up @@ -110,6 +111,7 @@
<ItemGroup>
<BundleResource Include="Resources\Raw\Configs\vehicle_registration_certificate_config.json" />
<BundleResource Include="Resources\Raw\Configs\others_config_barcode_pdf417_config.json" />
<BundleResource Include="Resources\Raw\Configs\workflows_config_parallel_first_scan.json" />
</ItemGroup>
<ItemGroup>
<Folder Include="NFC\" />
Expand Down
3 changes: 1 addition & 2 deletions MAUI/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ public MainPage()
InitializeComponent();
NavigationPage.SetBackButtonTitle(this, "Home");

// YOUR LICENSE KEY HERE
// (this license key should be, ideally, securely fetched from your back-end server, a secret manager/provider, or obfuscated in the final app)
string licenseKey = "ewogICJsaWNlbnNlS2V5VmVyc2lvbiI6ICIzLjAiLAogICJkZWJ1Z1JlcG9ydGluZyI6ICJwaW5nIiwKICAibWFqb3JWZXJzaW9uIjogIjM3IiwKICAic2NvcGUiOiBbCiAgICAiQUxMIgogIF0sCiAgIm1heERheXNOb3RSZXBvcnRlZCI6IDUsCiAgImFkdmFuY2VkQmFyY29kZSI6IHRydWUsCiAgIm11bHRpQmFyY29kZSI6IHRydWUsCiAgInN1cHBvcnRlZEJhcmNvZGVGb3JtYXRzIjogWwogICAgIkFMTCIKICBdLAogICJwbGF0Zm9ybSI6IFsKICAgICJpT1MiLAogICAgIkFuZHJvaWQiCiAgXSwKICAic2hvd1dhdGVybWFyayI6IHRydWUsCiAgInRvbGVyYW5jZURheXMiOiAzMCwKICAidmFsaWQiOiAiMjAyMy0wNi0zMCIsCiAgImlvc0lkZW50aWZpZXIiOiBbCiAgICAiY29tLmFueWxpbmUueGFtYXJpbi5leGFtcGxlcyIsCiAgICAiY29tLmFueWxpbmUueGFtYXJpbi5mb3Jtcy5leGFtcGxlcyIsCiAgICAiY29tLmFueWxpbmUuZXhhbXBsZXMiLAogICAgImNvbS5hbnlsaW5lLm1hdWkuZXhhbXBsZXMiCiAgXSwKICAiYW5kcm9pZElkZW50aWZpZXIiOiBbCiAgICAiY29tLmFueWxpbmUueGFtYXJpbi5leGFtcGxlcyIsCiAgICAiY29tLmFueWxpbmUueGFtYXJpbi5mb3Jtcy5leGFtcGxlcyIsCiAgICAiY29tLmFueWxpbmUuZXhhbXBsZXMiLAogICAgImNvbS5hbnlsaW5lLm1hdWkuZXhhbXBsZXMiCiAgXQp9CnhFU0JoNVhZSGQyMXh3aHkvaUhsNVdYd1NmZDFscytqQ0VST2x2bGRzam1CV1BpWG44MzloZnZCdG00Y0Qyd3VEdVBHeDNMZXZNcUlPOVhxaXJ3Q256Z1hWd00rZ3hZU2k2N21aazJPMzcyQmlRcE1QQU5mUjFEQTBwcGZPSVN4V09ocjcwVXViNWJicnhYREVmblZPU0svYXFzb0Z2YzVEdDlTNWlmeE5POXV3dVY3Q3RIcjBKZ2NpcmU1UkdzS0xocmEyUTE5TVBDT1hsb3U0MlJadG9JN1dSMnZ6NUR6eUhkUDhGRjJUVlF0TWRiNGZxS1lNbFB3TXRKYUl5OEZtMkRTdmp6QlBCU0RRQUo3SVZMM2R6NEZ4MnhXQnBvTEN6YXNDdG4rc21vakJPYUIwc1NkckFBWFU5RFEwa1BIUjhUMW5XSmZMQ3JOeml2ZUdVK1RjZz09";
string licenseKey = "YOUR_LICENSE_KEY_HERE";

string licenseErrorMessage = null;

Expand Down
3 changes: 2 additions & 1 deletion MAUI/Models/AnylineScanModes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public static List<AnylineScanModeGroup> GetAnylineScanModesGroupedList()
}),
new AnylineScanModeGroup("Composite", new List<AnylineScanMode>{
new AnylineScanMode("Serial Scanning (LPT - EU > DVL > VIN)","workflows_config_serial_scanning.json"),
new AnylineScanMode("Parallel Scanning (Meter / Serial Number)","workflows_config_parallel_scanning.json")
new AnylineScanMode("Parallel Scanning (Meter / Serial Number)","workflows_config_parallel_scanning.json"),
new AnylineScanMode("Parallel - First Scan (VIN or Barcode)","workflows_config_parallel_first_scan.json")
}),
new AnylineScanModeGroup("NFC", new List<AnylineScanMode>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"cameraConfig": {
"captureResolution": "1080p",
"pictureResolution": "1080p"
},
"flashConfig": {
"mode": "manual",
"alignment": "top_right"
},
"viewPluginCompositeConfig": {
"id": "Workflows|VIN or Barcode (parallelFirstScan)",
"processingMode": "parallelFirstScan",
"viewPlugins": [
{
"viewPluginConfig": {
"pluginConfig": {
"id": "VIN",
"vinConfig": {}
},
"cutoutConfig": {
"style": "rect",
"width": 720,
"alignment": "top_half",
"maxWidthPercent": "70%",
"ratioFromSize": {
"width": 62,
"height": 9
},
"strokeWidth": 2,
"strokeColor": "FFFFFF",
"cornerRadius": 4,
"outerColor": "000000",
"outerAlpha": 0.0,
"feedbackStrokeColor": "0099FF"
},
"scanFeedbackConfig": {
"animation": "traverse_multi",
"animationDuration": 250,
"style": "contour_rect",
"strokeWidth": 2,
"strokeColor": "0099FF",
"beepOnResult": false,
"vibrateOnResult": true,
"blinkAnimationOnResult": false
}
}
},
{
"viewPluginConfig": {
"pluginConfig": {
"id": "BARCODE",
"barcodeConfig": {
"barcodeFormats": [ "ALL" ]
}
},
"scanFeedbackConfig": {
"animation": "traverse_multi",
"animationDuration": 250,
"style": "contour_rect",
"strokeWidth": 2,
"strokeColor": "00FF00",
"beepOnResult": false,
"vibrateOnResult": true,
"blinkAnimationOnResult": false
}
}
}
]
}
}

0 comments on commit 4d4c86b

Please sign in to comment.