Skip to content

Commit

Permalink
auto update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins committed Sep 30, 2024
1 parent 327f6af commit fa03b6f
Show file tree
Hide file tree
Showing 43 changed files with 108 additions and 41 deletions.
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: Bug Report
about: Create a report to help us improve
title: "[BR] "
labels: bug
assignees: ''

---

**Before Submitting, be sure to**
- [ ] Update to the latest stable version.
- [ ] Read and follow the guides described in the [documentation](https://docs.regulaforensics.com?utm_source=github).
- [ ] Try to reproduce in our demo project.
- [ ] Search for your issue in the existing GitHub issues.

**Bug Description**
<!--A clear and concise description of what the bug is.-->

**Steps To Reproduce**
<!--
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
-->

**Expected behavior**
<!--A clear and concise description of what you expected to happen.-->

**Screenshots**
<!--If applicable, add screenshots to help explain your issue.-->

**Environment:**
- Device: <!--[e.g. iPhone 12]-->
- OS: <!--[e.g. iOS]-->
- OS version: <!--[e.g. 10.0]-->

**Additional context**
<!--Add any other context about the problem here.-->
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Submit a request
- name: Regula Help Center
url: https://support.regulaforensics.com/hc/requests/new?utm_source=github
about: Submit any requests to Regula Support Team
about: Please submit any requests here
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature Request
about: Suggest an idea for this product
title: "[FR] "
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
<!--A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]-->

**Describe the solution you'd like**
<!--A clear and concise description of what you want to happen.-->

**Describe alternatives you've considered**
<!--A clear and concise description of any alternative solutions or features you've considered.-->

**Additional context**
<!--Add any other context or screenshots about the feature request here.-->
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"version": "0.2.0",
"configurations": [
{
"name": "C#: DocumentReaderSample",
"name": "Run",
"type": "dotnet",
"request": "launch",
"projectPath": "${workspaceFolder}/DocumentReaderSample/DocumentReaderSample.csproj",
"projectPath": "${workspaceFolder}/DocumentReaderSample.csproj",
"launchConfigurationId": "vscode-maui"
}
]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@

<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
<PackageReference Include="Xamarin.DocumentReader.BTDevice.iOS" Version="6.8.318"/>
<PackageReference Include="Xamarin.DocumentReader.Api.iOS" Version="7.4.208"/>
<PackageReference Include="Xamarin.DocumentReader.Api.iOS" Version="7.4.268"/>
<PackageReference Include="Xamarin.DocumentReader.Core.FullAuthRFID.iOS" Version="7.4.403"/>
</ItemGroup>
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">
<PackageReference Include="Xamarin.DocumentReader.BTDevice.Android" Version="1.1.394"/>
<PackageReference Include="Xamarin.DocumentReader.Api.Android" Version="7.4.208"/>
<PackageReference Include="Xamarin.DocumentReader.Api.Android" Version="7.4.268"/>
<PackageReference Include="Xamarin.DocumentReader.Core.FullAuthRFID.Android" Version="7.4.403"/>
</ItemGroup>

Expand Down
52 changes: 25 additions & 27 deletions DocumentReaderSample.sln
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 17.0.31611.283
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DocumentReaderSample", "DocumentReaderSample\DocumentReaderSample.csproj", "{BB066DA3-F2F3-4471-99FD-513C5D97AE91}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BB066DA3-F2F3-4471-99FD-513C5D97AE91}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BB066DA3-F2F3-4471-99FD-513C5D97AE91}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BB066DA3-F2F3-4471-99FD-513C5D97AE91}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{BB066DA3-F2F3-4471-99FD-513C5D97AE91}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BB066DA3-F2F3-4471-99FD-513C5D97AE91}.Release|Any CPU.Build.0 = Release|Any CPU
{BB066DA3-F2F3-4471-99FD-513C5D97AE91}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {61F7FB11-1E47-470C-91E2-47F8143E1572}
EndGlobalSection
EndGlobal

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.002.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DocumentReaderSample", "DocumentReaderSample.csproj", "{7EEC243F-F741-42C9-A939-8D0EECE5EABB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7EEC243F-F741-42C9-A939-8D0EECE5EABB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7EEC243F-F741-42C9-A939-8D0EECE5EABB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7EEC243F-F741-42C9-A939-8D0EECE5EABB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7EEC243F-F741-42C9-A939-8D0EECE5EABB}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {AEA7EA88-F65D-4B78-9C3D-D3CFE424BCDC}
EndGlobalSection
EndGlobal
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions DocumentReaderSample/MainPage.xaml.cs → MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ public MainPage()
Application.Current.UserAppTheme = AppTheme.Light;
Application.Current.RequestedThemeChanged += (s, a) => { Application.Current.UserAppTheme = AppTheme.Light; };

// Fix disappearing selection in iOS
Loaded += (object sender, EventArgs e) =>
{
if (Scenarios.Count > 0)
ScenariosListView.UpdateSelectedItems([ScenariosListView.SelectedItem]);
};

docReaderScanner = DependencyService.Get<IDocReaderScanner>();
docReaderScanner.ResultsObtained += (object s, IDocReaderScannerEvent e) =>
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,14 @@ public void OnCompleted(int action, DocumentReaderResults results, DocumentReade
IsReadRfid = false;
return;
}

var portrait = results.GetGraphicFieldImageByType(EGraphicFieldType.GfPortrait);
var rfidPortrait = results.GetGraphicFieldImageByType(EGraphicFieldType.GfPortrait, ERPRM_ResultType.RfidResultTypeRfidImageData);
if (rfidPortrait != null) portrait = rfidPortrait;
ResultsObtained(this, new DocReaderScannerEvent
{
SurnameAndGivenNames = results.GetTextFieldValueByType(EVisualFieldType.FtSurnameAndGivenNames),
PortraitField = ConvertBitmap(results.GetGraphicFieldImageByType(EGraphicFieldType.GfPortrait)),
PortraitField = ConvertBitmap(portrait),
DocumentField = ConvertBitmap(results.GetGraphicFieldImageByType(EGraphicFieldType.GfDocumentImage))
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace DocumentReaderSample;

[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ScreenOrientation = ScreenOrientation.Portrait, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
public class MainActivity : MauiAppCompatActivity
{
internal static MainActivity Instance { get; private set; }
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,14 @@ private void OnResultsObtained(RGLDocReaderAction action, RGLDocumentReaderResul
IsReadRfid = false;
return;
}

var portrait = result.GetGraphicFieldImageByType(RGLGraphicFieldType.Portrait);
var rfidPortrait = result.GetGraphicFieldImageByType(RGLGraphicFieldType.Portrait, RGLResultType.RfidImageData);
if(rfidPortrait != null) portrait = rfidPortrait;
ResultsObtained(this, new DocReaderScannerEvent
{
SurnameAndGivenNames = result.GetTextFieldValueByType(RGLFieldType.Surname_And_Given_Names),
PortraitField = ConvertImage(result.GetGraphicFieldImageByType(RGLGraphicFieldType.Portrait)),
PortraitField = ConvertImage(portrait),
DocumentField = ConvertImage(result.GetGraphicFieldImageByType(RGLGraphicFieldType.DocumentImage))
});
}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,10 @@
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>XSAppIconAssets</key>
<string>Assets.xcassets/appicon.appiconset</string>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit fa03b6f

Please sign in to comment.