Skip to content

Commit ea20ddb

Browse files
authored
Release 26.7 (#130)
* Remove unused AbstractOpenAPISchema model * Accept v4 branch in badge branch check * Bump version to 26.7.0
1 parent a0ffc40 commit ea20ddb

14 files changed

Lines changed: 21 additions & 104 deletions

.github/workflows/net-framework.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ jobs:
5151
run: |
5252
$ErrorActionPreference = "Stop"
5353
VSTest.Console.exe /Framework:".NETFramework,Version=${{ matrix.net-version }}" /ResultsDirectory:NetFrameworkTests\Results /Logger:"trx;LogFileName=test.log" NetFrameworkTests\bin\Release\${{ matrix.framework }}\Aspose.BarCode.Cloud.Sdk.NetFrameworkTests.dll
54-
if( ([xml](Get-Content NetFrameworkTests\Results\test.log)).TestRun.ResultSummary.Counters.total -ne 27 ){ throw "Not all tests were explored or added new tests" }
54+
$expected = 27
55+
$counters = ([xml](Get-Content NetFrameworkTests\Results\test.log)).TestRun.ResultSummary.Counters
56+
if( $counters.total -ne $expected ){ throw "Expected $expected tests but found $($counters.total) (executed: $($counters.executed), passed: $($counters.passed), failed: $($counters.failed)). Not all tests were explored, or tests were added/removed without updating the expected count." }
5557
5658
env:
5759
TEST_CONFIGURATION_JWT_TOKEN: ${{ secrets.TEST_CONFIGURATION_ACCESS_TOKEN }}

NetFrameworkTests/Aspose.BarCode.Cloud.Sdk.NetFrameworkTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
<PackageReference Include="System.Net.Http" Version="4.3.4"/>
3030
</ItemGroup>
3131
<ItemGroup>
32-
<PackageReference Include="Aspose.BarCode-Cloud" Version="26.6.0" />
32+
<PackageReference Include="Aspose.BarCode-Cloud" Version="26.7.0" />
3333
</ItemGroup>
3434
</Project>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[![Nuget](https://img.shields.io/nuget/v/Aspose.BarCode-Cloud)](https://www.nuget.org/packages/Aspose.BarCode-Cloud/)
88

99
- API version: 4.0
10-
- SDK version: 26.6.0
10+
- SDK version: 26.7.0
1111

1212
## SDK and API Version Compatibility:
1313

Tests/GenerateAndThenRecognize.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public async Task GenerateAndThenRecognizeAsyncTest()
3232
BarcodeResponseList recognized = await _scanApi.ScanMultipartAsync(generatedImage);
3333

3434
Assert.AreEqual(1, recognized.Barcodes.Count);
35-
Assert.AreEqual(DecodeBarcodeType.QR.ToString(), recognized.Barcodes.First().Type);
35+
Assert.AreEqual(nameof(DecodeBarcodeType.QR), recognized.Barcodes.First().Type);
3636
Assert.AreEqual("Test", recognized.Barcodes.First().BarcodeValue);
3737
Assert.AreEqual(
3838
"{\"barcodes\":[{" +

Tests/RecognizeTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public async Task RecognizeBase64AsyncTest()
4848

4949
// Assert
5050
Assert.AreEqual(1, response.Barcodes.Count);
51-
Assert.AreEqual(DecodeBarcodeType.QR.ToString(), response.Barcodes[0].Type);
51+
Assert.AreEqual(nameof(DecodeBarcodeType.QR), response.Barcodes[0].Type);
5252
Assert.AreEqual("Hello world!", response.Barcodes[0].BarcodeValue);
5353
}
5454

@@ -64,7 +64,7 @@ public async Task RecognizeMultipartAsyncTest()
6464

6565
// Assert
6666
Assert.AreEqual(1, response.Barcodes.Count);
67-
Assert.AreEqual(DecodeBarcodeType.QR.ToString(), response.Barcodes[0].Type);
67+
Assert.AreEqual(nameof(DecodeBarcodeType.QR), response.Barcodes[0].Type);
6868
Assert.AreEqual("Hello world!", response.Barcodes[0].BarcodeValue);
6969
}
7070

@@ -82,7 +82,7 @@ public async Task RecognizeAsyncTest()
8282

8383
// Assert
8484
Assert.AreEqual(1, response.Barcodes.Count);
85-
Assert.AreEqual(DecodeBarcodeType.QR.ToString(), response.Barcodes[0].Type);
85+
Assert.AreEqual(nameof(DecodeBarcodeType.QR), response.Barcodes[0].Type);
8686
Assert.AreEqual("http://en.m.wikipedia.org", response.Barcodes[0].BarcodeValue);
8787
}
8888

Tests/ScanTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public async Task ScanBase64AsyncTest()
4040

4141
// Assert
4242
Assert.AreEqual(2, response.Barcodes.Count);
43-
Assert.AreEqual(DecodeBarcodeType.QR.ToString(), response.Barcodes[0].Type);
43+
Assert.AreEqual(nameof(DecodeBarcodeType.QR), response.Barcodes[0].Type);
4444
Assert.AreEqual("Hello world!", response.Barcodes[0].BarcodeValue);
4545
}
4646

@@ -52,7 +52,7 @@ public async Task ScanAsyncTest()
5252

5353
// Assert
5454
Assert.AreEqual(1, response.Barcodes.Count);
55-
Assert.AreEqual(DecodeBarcodeType.QR.ToString(), response.Barcodes[0].Type);
55+
Assert.AreEqual(nameof(DecodeBarcodeType.QR), response.Barcodes[0].Type);
5656
Assert.AreEqual("http://en.m.wikipedia.org", response.Barcodes[0].BarcodeValue);
5757
}
5858

@@ -67,7 +67,7 @@ public async Task ScanMultipartAsyncTest()
6767

6868
// Assert
6969
Assert.AreEqual(2, response.Barcodes.Count);
70-
Assert.AreEqual(DecodeBarcodeType.QR.ToString(), response.Barcodes[0].Type);
70+
Assert.AreEqual(nameof(DecodeBarcodeType.QR), response.Barcodes[0].Type);
7171
Assert.AreEqual("Hello world!", response.Barcodes[0].BarcodeValue);
7272
}
7373

Tests/SyncApiInvokerOnlineTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void SyncScanGetUsesOnlineApi()
3131
typeof(BarcodeResponseList));
3232

3333
Assert.AreEqual(1, result.Barcodes.Count);
34-
Assert.AreEqual(DecodeBarcodeType.QR.ToString(), result.Barcodes[0].Type);
34+
Assert.AreEqual(nameof(DecodeBarcodeType.QR), result.Barcodes[0].Type);
3535
Assert.AreEqual("http://en.m.wikipedia.org", result.Barcodes[0].BarcodeValue);
3636
StringAssert.Contains("\"barcodeValue\":\"http://en.m.wikipedia.org\"", result.ToString());
3737
StringAssert.Contains("\"BarcodeValue\":\"http://en.m.wikipedia.org\"", result.Barcodes[0].ToString());

examples/GenerateQR/GenerateQR.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Aspose.BarCode-Cloud" Version="26.6.0" />
10+
<PackageReference Include="Aspose.BarCode-Cloud" Version="26.7.0" />
1111
</ItemGroup>
1212

1313
</Project>

examples/ReadQR/ReadQR.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Aspose.BarCode-Cloud" Version="26.6.0" />
10+
<PackageReference Include="Aspose.BarCode-Cloud" Version="26.7.0" />
1111
</ItemGroup>
1212

1313
</Project>

scripts/check-badges.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pushd "${SCRIPT_DIR}/.." >/dev/null
1616
fi
1717
done
1818

19-
(grep -oP '[^/]+\.yml/badge.svg(?!\?branch=main)' "${readme_file}" || echo ) | while read -r badge_without_branch; do
19+
(grep -oP '[^/]+\.yml/badge.svg(?!\?branch=(main|v4)\b)' "${readme_file}" || echo ) | while read -r badge_without_branch; do
2020
if [ -z "${badge_without_branch}" ]; then continue; fi
2121
>&2 echo "Badge without branch \"${badge_without_branch}\""
2222
exit 1

0 commit comments

Comments
 (0)