refactor: Refactor DevExpressSwissQrCodeProcessor to use Codecrete QRBill parser

- Change return type to tuple (Bill, string[])
- Remove custom parsing methods (ParseSwissQrBillContent, MapAddress, DetermineReferenceType)
- Use Codecrete QRBill.DecodeQrCodeText() for parsing
- Add SkiaSharp.QrCode v1.0.0 for QR decoding
- Remove obsolete ZXing and System.Drawing dependencies
- Add StringExtensions for QR code detection
- Raw lines properly split and trimmed from QR text
This commit is contained in:
2026-07-16 15:47:33 +02:00
parent 889144f144
commit 88bde13422
3 changed files with 146 additions and 156 deletions

View File

@@ -6,12 +6,24 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<Compile Remove="DependencyInjection\**" />
<Compile Remove="Services\DocumentValidation\**" />
<Compile Remove="Services\FileStorage\**" />
<EmbeddedResource Remove="DependencyInjection\**" />
<EmbeddedResource Remove="Services\DocumentValidation\**" />
<EmbeddedResource Remove="Services\FileStorage\**" />
<None Remove="DependencyInjection\**" />
<None Remove="Services\DocumentValidation\**" />
<None Remove="Services\FileStorage\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Codecrete.SwissQRBill.Generator" Version="3.4.0" />
<PackageReference Include="DevExpress.Document.Processor" Version="26.1.3" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="8.0.0" />
<PackageReference Include="SkiaSharp.QrCode" Version="1.0.0" />
<PackageReference Include="System.Drawing.Common" Version="10.0.9" />
<PackageReference Include="ZXing.Net.Bindings.Windows.Compatibility" Version="0.16.14" />
</ItemGroup>
<ItemGroup>
@@ -19,10 +31,4 @@
<ProjectReference Include="..\DocumentOperator.Domain\DocumentOperator.Domain.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="DependencyInjection\" />
<Folder Include="Services\FileStorage\" />
<Folder Include="Services\DocumentValidation\" />
</ItemGroup>
</Project>