Skip to content

Commit bd8256f

Browse files
authored
Release 23.9 (#65)
* Added field AztecEncodeMode * Field textEncoding made deprecated * Change to Java 8
1 parent 5decb48 commit bd8256f

139 files changed

Lines changed: 1854 additions & 1530 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.

.dockerignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Ignore all dotfiles
2+
.*
3+
**/.idea/
4+
5+
*.class
6+
7+
# Package Files
8+
*.jar
9+
*.war
10+
*.ear
11+
12+
# build files
13+
**/target
14+
build
15+
aspose-barcode-cloud.iml

.github/workflows/check-style.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Java check style
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-java@v3
16+
with:
17+
distribution: 'corretto'
18+
java-version: 11
19+
20+
- name: Lint with CheckStyle
21+
run: ./scripts/checkstyle.bash

.github/workflows/maven.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919
- name: Set up JDK 1.8
2020
uses: actions/setup-java@v3
2121
with:
22-
distribution: 'semeru'
22+
# Use same in Dockerfile
23+
distribution: 'corretto'
2324
java-version: 8
2425
cache: 'maven'
2526

@@ -30,3 +31,6 @@ jobs:
3031
env:
3132
TEST_CONFIGURATION_ACCESS_TOKEN: ${{ secrets.TEST_CONFIGURATION_ACCESS_TOKEN }}
3233
run: mvn test
34+
35+
- name: Build the Docker image
36+
run: docker build . --file Dockerfile

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
*.class
22

3-
# Package Files #
3+
# Package Files
44
*.jar
55
*.war
66
*.ear
@@ -10,3 +10,5 @@
1010
build
1111
aspose-barcode-cloud.iml
1212
!tools/*
13+
14+
**/configuration*.json

Dockerfile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1-
FROM maven:3.8
1+
FROM maven:3-amazoncorretto-8-debian
22
RUN apt-get update \
33
&& apt-get install -y make \
44
&& rm -rf /var/lib/apt/lists/*
55

66
WORKDIR /aspose-barcode-cloud-java
7+
8+
# Resolve some dependencies
9+
# Due to https://issues.apache.org/jira/browse/MDEP-82
10+
# MVN can't resolve ALL dependencies before build
11+
COPY ./pom.xml .
12+
RUN mvn dependency:go-offline -B
13+
14+
# Build the package
715
COPY . .
16+
RUN mvn clean install -Dmaven.test.skip=true
817

9-
ENTRYPOINT ["make", "publish-docker"]
18+
# Publish package
19+
ENTRYPOINT ["mvn", "deploy"]

Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
SRC=./src
22

33
.PHONY: all
4-
all: format test
4+
all: format build test lint
55

66
.PHONY: fix
77
fix:
@@ -16,13 +16,17 @@ format:
1616
lint:
1717
./scripts/checkstyle.bash
1818

19+
.PHONY: build
20+
build:
21+
mvn compile -Dmaven.test.skip=true
22+
1923
.PHONY: test
2024
test:
2125
mvn test
2226

23-
.PHONY: publish-docker
24-
publish-docker:
25-
mvn deploy
27+
.PHONY: display-updates
28+
display-updates:
29+
mvn versions:display-plugin-updates versions:display-dependency-updates
2630

2731
.PHONY: update
2832
update:

README.md

Lines changed: 5 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: 23.8.0
8+
- SDK version: 23.9.0
99

1010
## Demo applications
1111

@@ -23,7 +23,7 @@ This repository contains Aspose.BarCode Cloud SDK for Java source code. This SDK
2323

2424
Building the API client library requires:
2525

26-
1. Java 1.7+
26+
1. Java 8 (JDK 1.8)
2727
2. Maven
2828

2929
## Prerequisites
@@ -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.8.0</version>
71+
<version>23.9.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.8.0.jar`
86+
- `target/aspose-barcode-cloud-23.9.0.jar`
8787
- `target/lib/*.jar`
8888

8989
## Getting Started
@@ -191,6 +191,7 @@ Class | Method | HTTP request | Description
191191
- [AustralianPostParams](docs/AustralianPostParams.md)
192192
- [AutoSizeMode](docs/AutoSizeMode.md)
193193
- [AvailableGraphicsUnit](docs/AvailableGraphicsUnit.md)
194+
- [AztecEncodeMode](docs/AztecEncodeMode.md)
194195
- [AztecParams](docs/AztecParams.md)
195196
- [AztecSymbolMode](docs/AztecSymbolMode.md)
196197
- [BarcodeResponse](docs/BarcodeResponse.md)

checkstyle.xml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<property name="charset" value="UTF-8"/>
2323

24-
<property name="severity" value="warning"/>
24+
<property name="severity" value="error"/>
2525

2626
<property name="fileExtensions" value="java, properties, xml"/>
2727
<!-- Excludes all 'module-info.java' files -->
@@ -44,7 +44,7 @@
4444

4545
<module name="LineLength">
4646
<property name="fileExtensions" value="java"/>
47-
<property name="max" value="100"/>
47+
<property name="max" value="120"/>
4848
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
4949
</module>
5050

@@ -62,7 +62,9 @@
6262
<property name="allowByTailComment" value="true"/>
6363
<property name="allowNonPrintableEscapes" value="true"/>
6464
</module>
65-
<module name="AvoidStarImport"/>
65+
<module name="AvoidStarImport">
66+
<property name="excludes" value="com.aspose.barcode.cloud.requests"/>
67+
</module>
6668
<module name="OneTopLevelClass"/>
6769
<module name="NoLineWrap">
6870
<property name="tokens" value="PACKAGE_DEF, IMPORT, STATIC_IMPORT"/>
@@ -185,12 +187,12 @@
185187
value="Type name ''{0}'' must match pattern ''{1}''."/>
186188
</module>
187189
<module name="MemberName">
188-
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
190+
<property name="format" value="^[a-zA-Z0-9][a-zA-Z0-9_]*$"/>
189191
<message key="name.invalidPattern"
190192
value="Member name ''{0}'' must match pattern ''{1}''."/>
191193
</module>
192194
<module name="ParameterName">
193-
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
195+
<property name="format" value="^[a-zA-Z]([a-zA-Z0-9]*)?$"/>
194196
<message key="name.invalidPattern"
195197
value="Parameter name ''{0}'' must match pattern ''{1}''."/>
196198
</module>
@@ -251,30 +253,23 @@
251253
value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
252254
</module>
253255
<module name="Indentation">
254-
<property name="basicOffset" value="2"/>
255-
<property name="braceAdjustment" value="2"/>
256-
<property name="caseIndent" value="2"/>
257-
<property name="throwsIndent" value="4"/>
258-
<property name="lineWrappingIndentation" value="4"/>
259-
<property name="arrayInitIndent" value="2"/>
256+
<property name="basicOffset" value="4"/>
257+
<property name="braceAdjustment" value="4"/>
258+
<property name="caseIndent" value="4"/>
259+
<property name="throwsIndent" value="8"/>
260+
<property name="lineWrappingIndentation" value="8"/>
261+
<property name="arrayInitIndent" value="4"/>
260262
</module>
261263
<module name="AbbreviationAsWordInName">
262264
<property name="ignoreFinal" value="false"/>
263-
<property name="allowedAbbreviationLength" value="0"/>
265+
<property name="allowedAbbreviationLength" value="3"/>
264266
<property name="tokens"
265267
value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, ANNOTATION_DEF, ANNOTATION_FIELD_DEF,
266268
PARAMETER_DEF, VARIABLE_DEF, METHOD_DEF, PATTERN_VARIABLE_DEF, RECORD_DEF,
267269
RECORD_COMPONENT_DEF"/>
268270
</module>
269271
<module name="NoWhitespaceBeforeCaseDefaultColon"/>
270272
<module name="OverloadMethodsDeclarationOrder"/>
271-
<module name="VariableDeclarationUsageDistance"/>
272-
<module name="CustomImportOrder">
273-
<property name="sortImportsInGroupAlphabetically" value="true"/>
274-
<property name="separateLineBetweenGroups" value="true"/>
275-
<property name="customImportOrderRules" value="STATIC###THIRD_PARTY_PACKAGE"/>
276-
<property name="tokens" value="IMPORT, STATIC_IMPORT, PACKAGE_DEF"/>
277-
</module>
278273
<module name="MethodParamPad">
279274
<property name="tokens"
280275
value="CTOR_DEF, LITERAL_NEW, METHOD_CALL, METHOD_DEF,
@@ -316,6 +311,7 @@
316311
<module name="InvalidJavadocPosition"/>
317312
<module name="JavadocTagContinuationIndentation"/>
318313
<module name="SummaryJavadoc">
314+
<property name="period" value=""/>
319315
<property name="forbiddenSummaryFragments"
320316
value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>
321317
</module>

docs/AztecEncodeMode.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# AztecEncodeMode
3+
4+
## Enum
5+
6+
7+
* `AUTO` (value: `"Auto"`)
8+
9+
* `BYTES` (value: `"Bytes"`)
10+
11+
* `EXTENDEDCODETEXT` (value: `"ExtendedCodetext"`)
12+
13+
14+

docs/AztecParams.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ Name | Type | Description | Notes
77
**aspectRatio** | **Double** | Height/Width ratio of 2D BarCode module. | [optional]
88
**errorLevel** | **Integer** | Level of error correction of Aztec types of barcode. Value should between 10 to 95. | [optional]
99
**symbolMode** | [**AztecSymbolMode**](AztecSymbolMode.md) | Aztec Symbol mode. Default value: AztecSymbolMode.Auto. | [optional]
10-
**textEncoding** | **String** | Sets the encoding of codetext. | [optional]
10+
**textEncoding** | **String** | DEPRECATED: This property is obsolete and will be removed in future releases. Unicode symbols detection and encoding will be processed in Auto mode with Extended Channel Interpretation charset designator. Using of own encodings requires manual CodeText encoding into byte[] array. Sets the encoding of codetext. | [optional]
11+
**encodeMode** | [**AztecEncodeMode**](AztecEncodeMode.md) | Encoding mode for Aztec barcodes. Default value: Auto | [optional]
12+
**ecIEncoding** | [**ECIEncodings**](ECIEncodings.md) | Identifies ECI encoding. Used when AztecEncodeMode is Auto. Default value: ISO-8859-1. | [optional]
13+
**isReaderInitialization** | **Boolean** | Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization. | [optional]
14+
**layersCount** | **Integer** | Gets or sets layers count of Aztec symbol. Layers count should be in range from 1 to 3 for Compact mode and in range from 1 to 32 for Full Range mode. Default value: 0 (auto). | [optional]
1115

1216

1317

0 commit comments

Comments
 (0)