Skip to content

Commit 728a4d1

Browse files
authored
Release 23.3 (#54)
* Release 23.3 * Add test with Timeout * Update dependencies
1 parent e136da4 commit 728a4d1

108 files changed

Lines changed: 274 additions & 148 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.

.github/workflows/maven.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Java CI with Maven
55

66
on:
77
push:
8-
branches: [ master, main ]
8+
branches: [ main ]
99
pull_request:
10-
branches: [ master, main ]
10+
branches: [ main ]
1111

1212
jobs:
1313
test:

Makefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,9 @@ fix:
88
./scripts/fix-region-point.bash
99

1010
.PHONY: format
11-
format: fix
11+
format:
1212
./scripts/format.bash
1313

14-
.PHONY: format_tests
15-
format_tests:
16-
find $(SRC)/test -iname "*.java" | xargs java -jar tools/google-java-format-1.9-all-deps.jar --aosp --replace
17-
1814
.PHONY: test
1915
test:
2016
mvn test
@@ -26,3 +22,6 @@ publish-docker:
2622
.PHONY: update
2723
update:
2824
mvn versions:use-latest-releases
25+
26+
.PHONY: after-gen
27+
after-gen: fix format

README.md

Lines changed: 3 additions & 3 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: 23.2.0
8+
- SDK version: 23.3.0
99

1010
## Demo applications
1111

@@ -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>23.2.0</version>
71+
<version>23.3.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-23.2.0.jar`
86+
- `target/aspose-barcode-cloud-23.3.0.jar`
8787
- `target/lib/*.jar`
8888

8989
## Getting Started

docs/BarcodeApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Name | Type | Description | Notes
147147
**rectWidth** | **Integer**| Set Width of area for recognition. | [optional]
148148
**rectHeight** | **Integer**| Set Height of area for recognition. | [optional]
149149
**stripFNC** | **Boolean**| Value indicating whether FNC symbol strip must be done. | [optional]
150-
**timeout** | **Integer**| Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional]
150+
**timeout** | **Integer**| Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 60_000 (1 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional]
151151
**medianSmoothingWindowSize** | **Integer**| Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set. | [optional]
152152
**allowMedianSmoothing** | **Boolean**| Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes. | [optional]
153153
**allowComplexBackground** | **Boolean**| Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode. | [optional]
@@ -230,7 +230,7 @@ Name | Type | Description | Notes
230230
**rectWidth** | **Integer**| Set Width of area for recognition. | [optional]
231231
**rectHeight** | **Integer**| Set Height of area for recognition. | [optional]
232232
**stripFNC** | **Boolean**| Value indicating whether FNC symbol strip must be done. | [optional]
233-
**timeout** | **Integer**| Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional]
233+
**timeout** | **Integer**| Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 60_000 (1 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional]
234234
**medianSmoothingWindowSize** | **Integer**| Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set. | [optional]
235235
**allowMedianSmoothing** | **Boolean**| Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes. | [optional]
236236
**allowComplexBackground** | **Boolean**| Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode. | [optional]

docs/ReaderParams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
1313
**rectWidth** | **Integer** | Set Width of area for recognition. | [optional]
1414
**rectHeight** | **Integer** | Set Height of area for recognition. | [optional]
1515
**stripFNC** | **Boolean** | Value indicating whether FNC symbol strip must be done. | [optional]
16-
**timeout** | **Integer** | Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional]
16+
**timeout** | **Integer** | Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 60_000 (1 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional]
1717
**medianSmoothingWindowSize** | **Integer** | Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set. | [optional]
1818
**allowMedianSmoothing** | **Boolean** | Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes. | [optional]
1919
**allowComplexBackground** | **Boolean** | Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode. | [optional]

pom.xml

Lines changed: 4 additions & 4 deletions
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>23.2.0</version>
8+
<version>23.3.0</version>
99
<url>https://www.aspose.cloud</url>
1010
<description>Aspose.BarCode Cloud SDK for Java</description>
1111
<scm>
@@ -212,10 +212,10 @@
212212
<maven.compiler.source>${java.version}</maven.compiler.source>
213213
<maven.compiler.target>${java.version}</maven.compiler.target>
214214
<gson-fire-version>1.8.5</gson-fire-version>
215-
<swagger-core-version>1.6.6</swagger-core-version>
215+
<gson-version>2.8.6</gson-version>
216+
<swagger-core-version>1.6.8</swagger-core-version>
216217
<okhttp-version>2.7.5</okhttp-version>
217-
<gson-version>2.9.0</gson-version>
218-
<threetenbp-version>1.6.0</threetenbp-version>
218+
<threetenbp-version>1.6.5</threetenbp-version>
219219
<maven-plugin-version>1.0.0</maven-plugin-version>
220220
<junit-version>4.13.2</junit-version>
221221
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

scripts/format.bash

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#
55
set -euo pipefail
66

7-
find ./src -iname "*.java" -print0 | xargs -0 java -jar tools/google-java-format-1.7-all-deps.jar --aosp --replace
7+
FORMAT_TOOL="tools/google-java-format-1.16.0-all-deps.jar"
8+
9+
find ./src -iname "*.java" -print0 | xargs -0 java -jar "${FORMAT_TOOL}" --aosp --replace --skip-reflowing-long-strings
810
# Repeat for consistent formatting
9-
find ./src -iname "*.java" -print0 | xargs -0 java -jar tools/google-java-format-1.7-all-deps.jar --aosp --replace
11+
find ./src -iname "*.java" -print0 | xargs -0 java -jar "${FORMAT_TOOL}" --aosp --replace --skip-reflowing-long-strings

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@
3030
import com.squareup.okhttp.internal.http.HttpMethod;
3131
import com.squareup.okhttp.logging.HttpLoggingInterceptor;
3232
import com.squareup.okhttp.logging.HttpLoggingInterceptor.Level;
33+
34+
import okio.BufferedSink;
35+
import okio.Okio;
36+
37+
import org.threeten.bp.LocalDate;
38+
import org.threeten.bp.OffsetDateTime;
39+
3340
import java.io.File;
3441
import java.io.IOException;
3542
import java.io.UnsupportedEncodingException;
@@ -42,15 +49,11 @@
4249
import java.util.concurrent.TimeUnit;
4350
import java.util.regex.Matcher;
4451
import java.util.regex.Pattern;
45-
import okio.BufferedSink;
46-
import okio.Okio;
47-
import org.threeten.bp.LocalDate;
48-
import org.threeten.bp.OffsetDateTime;
4952

5053
public class ApiClient {
5154

5255
public final String apiVersion = "v3.0";
53-
public final String clientVersion = "23.2.0";
56+
public final String clientVersion = "23.3.0";
5457
private String baseUrl = "https://api.aspose.cloud";
5558
private String clientId;
5659
private String clientSecret;
@@ -96,7 +99,7 @@ protected ApiClient() {
9699
json = new JSON();
97100

98101
// Set default User-Agent.
99-
setUserAgent("Swagger-Codegen/23.2.0/java");
102+
setUserAgent("Swagger-Codegen/23.3.0/java");
100103

101104
addDefaultHeader("x-aspose-client", "java sdk");
102105
addDefaultHeader("x-aspose-client-version", clientVersion);

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
import com.aspose.barcode.cloud.model.ApiError;
2929
import com.aspose.barcode.cloud.model.ApiErrorResponse;
30+
3031
import java.util.List;
3132
import java.util.Map;
3233

0 commit comments

Comments
 (0)