Skip to content

Commit 60f55a2

Browse files
authored
Release 24.2 (#72)
* Update github checkout version from v3 to v4 * Update version to 24.2.0 * Add 'types' field to recognition tests
1 parent 9a3afb9 commit 60f55a2

File tree

8 files changed

+16
-17
lines changed

8 files changed

+16
-17
lines changed

.github/workflows/check-badges.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
- name: Check badges in README.md
1717
run: ./scripts/check-badges.bash "README.md"

.github/workflows/check-style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- uses: actions/setup-java@v3
1616
with:
1717
distribution: 'corretto'

.github/workflows/maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
- name: Set up JDK 1.8
2020
uses: actions/setup-java@v3
2121
with:

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Maven metadata URL](https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Freleases.aspose.cloud%2Fjava%2Frepo%2Fcom%2Faspose%2Faspose-barcode-cloud%2Fmaven-metadata.xml)](https://releases.aspose.cloud/java/repo/com/aspose/aspose-barcode-cloud/)
66

77
- API version: 3.0
8-
- SDK version: 24.1.1
8+
- SDK version: 24.2.0
99

1010
## Demo applications
1111

@@ -28,7 +28,7 @@ Building the API client library requires:
2828

2929
## Prerequisites
3030

31-
To use Aspose.BarCode Cloud SDK for Java you need to register an account with [Aspose Cloud](https://www.aspose.cloud) and lookup/create Client Id and Client Secret at [Cloud Dashboard](https://dashboard.aspose.cloud/applications). There is free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/pricing).
31+
To use Aspose.BarCode Cloud SDK for Java you need to register an account with [Aspose Cloud](https://www.aspose.cloud) and lookup/create Client Id and Client Secret at [Cloud Dashboard](https://dashboard.aspose.cloud/applications). There is free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/).
3232

3333
## Installation
3434

@@ -68,7 +68,7 @@ Add this dependency to your project's POM:
6868
<dependency>
6969
<groupId>com.aspose</groupId>
7070
<artifactId>aspose-barcode-cloud</artifactId>
71-
<version>24.1.1</version>
71+
<version>24.2.0</version>
7272
<scope>compile</scope>
7373
</dependency>
7474
```
@@ -83,7 +83,7 @@ mvn clean package
8383

8484
Then manually install the following JARs:
8585

86-
- `target/aspose-barcode-cloud-24.1.1.jar`
86+
- `target/aspose-barcode-cloud-24.2.0.jar`
8787
- `target/lib/*.jar`
8888

8989
## Getting Started

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>aspose-barcode-cloud</artifactId>
66
<packaging>jar</packaging>
77
<name>aspose-barcode-cloud</name>
8-
<version>24.1.1</version>
8+
<version>24.2.0</version>
99
<url>https://www.aspose.cloud</url>
1010
<description>Aspose.BarCode Cloud SDK for Java</description>
1111
<scm>

src/main/java/com/aspose/barcode/cloud/ApiClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
/** ApiClient. */
6767
public class ApiClient {
6868
public final String apiVersion = "v3.0";
69-
public final String clientVersion = "24.1.1";
69+
public final String clientVersion = "24.2.0";
7070

7171
private String baseUrl = "https://api.aspose.cloud";
7272
private String tokenUrl = baseUrl + "/connect/token";
@@ -110,7 +110,7 @@ protected ApiClient() {
110110
json = new JSON();
111111

112112
// Set default User-Agent.
113-
setUserAgent("Swagger-Codegen/24.1.1/java");
113+
setUserAgent("Swagger-Codegen/24.2.0/java");
114114

115115
addDefaultHeader("x-aspose-client", "java sdk");
116116
addDefaultHeader("x-aspose-client-version", clientVersion);

src/test/java/com/aspose/barcode/cloud/test/BarcodeApiTest.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import java.nio.file.Path;
1616
import java.nio.file.Paths;
1717
import java.util.Arrays;
18+
import java.util.Collections;
1819
import java.util.List;
1920

2021
/** API tests for BarcodeApi */
@@ -57,7 +58,7 @@ public void getBarcodeRecognizeTest() throws ApiException {
5758
uploadTestFile(testFileName);
5859

5960
GetBarcodeRecognizeRequest request = new GetBarcodeRecognizeRequest(testFileName);
60-
request.type = DecodeBarcodeType.CODE11.getValue();
61+
request.types = Collections.singletonList(DecodeBarcodeType.CODE11);
6162
request.checksumValidation = ChecksumValidation.OFF.toString();
6263
request.preset = PresetType.HIGHPERFORMANCE.toString();
6364
request.storage = testStorageName;
@@ -69,7 +70,7 @@ public void getBarcodeRecognizeTest() throws ApiException {
6970
assertFalse(response.getBarcodes().isEmpty());
7071

7172
BarcodeResponse barcode = response.getBarcodes().get(0);
72-
assertEquals(request.type, barcode.getType());
73+
assertEquals("Code11", barcode.getType());
7374
assertEquals("1234567812", barcode.getBarcodeValue());
7475

7576
List<RegionPoint> region = barcode.getRegion();
@@ -132,6 +133,7 @@ public void postBarcodeRecognizeFromUrlOrContentTest() throws ApiException {
132133
new PostBarcodeRecognizeFromUrlOrContentRequest();
133134
request.checksumValidation = ChecksumValidation.OFF.toString();
134135
request.preset = PresetType.HIGHPERFORMANCE.toString();
136+
request.types = Collections.singletonList(DecodeBarcodeType.CODE11);
135137

136138
Path currentRelativePath = Paths.get("");
137139
String currentPath = currentRelativePath.toAbsolutePath().toString();
@@ -216,10 +218,11 @@ public void putBarcodeRecognizeFromBodyTest() throws ApiException {
216218

217219
ReaderParams readerParams = new ReaderParams();
218220
readerParams.setChecksumValidation(ChecksumValidation.OFF);
221+
readerParams.setTypes(Collections.singletonList(DecodeBarcodeType.CODE11));
222+
readerParams.setPreset(PresetType.HIGHPERFORMANCE);
219223

220224
PutBarcodeRecognizeFromBodyRequest request =
221225
new PutBarcodeRecognizeFromBodyRequest(testFileName, readerParams);
222-
request.type = DecodeBarcodeType.CODE11.getValue();
223226
request.storage = testStorageName;
224227
request.folder = remoteTempFolder;
225228

src/test/java/com/aspose/barcode/cloud/test/RecognizeWithTimeoutTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
import com.aspose.barcode.cloud.ApiException;
77
import com.aspose.barcode.cloud.api.BarcodeApi;
8-
import com.aspose.barcode.cloud.model.ChecksumValidation;
9-
import com.aspose.barcode.cloud.model.PresetType;
108
import com.aspose.barcode.cloud.requests.PostBarcodeRecognizeFromUrlOrContentRequest;
119

1210
import org.junit.BeforeClass;
@@ -29,8 +27,6 @@ public static void oneTimeSetUp() {
2927
public void RecognizeWithTimeoutShouldThrowTimeout() {
3028
PostBarcodeRecognizeFromUrlOrContentRequest request =
3129
new PostBarcodeRecognizeFromUrlOrContentRequest();
32-
request.checksumValidation = ChecksumValidation.OFF.toString();
33-
request.preset = PresetType.HIGHPERFORMANCE.toString();
3430

3531
Path currentRelativePath = Paths.get("");
3632
String currentPath = currentRelativePath.toAbsolutePath().toString();

0 commit comments

Comments
 (0)