Skip to content

Commit

Permalink
Release 23.9 (#65)
Browse files Browse the repository at this point in the history
* Added field AztecEncodeMode
* Field textEncoding made deprecated

* Change to Java 8
  • Loading branch information
Denis-Averin authored Sep 22, 2023
1 parent 5decb48 commit bd8256f
Show file tree
Hide file tree
Showing 139 changed files with 1,854 additions and 1,530 deletions.
15 changes: 15 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Ignore all dotfiles
.*
**/.idea/

*.class

# Package Files
*.jar
*.war
*.ear

# build files
**/target
build
aspose-barcode-cloud.iml
21 changes: 21 additions & 0 deletions .github/workflows/check-style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Java check style

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: 11

- name: Lint with CheckStyle
run: ./scripts/checkstyle.bash
6 changes: 5 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
distribution: 'semeru'
# Use same in Dockerfile
distribution: 'corretto'
java-version: 8
cache: 'maven'

Expand All @@ -30,3 +31,6 @@ jobs:
env:
TEST_CONFIGURATION_ACCESS_TOKEN: ${{ secrets.TEST_CONFIGURATION_ACCESS_TOKEN }}
run: mvn test

- name: Build the Docker image
run: docker build . --file Dockerfile
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
*.class

# Package Files #
# Package Files
*.jar
*.war
*.ear
Expand All @@ -10,3 +10,5 @@
build
aspose-barcode-cloud.iml
!tools/*

**/configuration*.json
14 changes: 12 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
FROM maven:3.8
FROM maven:3-amazoncorretto-8-debian
RUN apt-get update \
&& apt-get install -y make \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /aspose-barcode-cloud-java

# Resolve some dependencies
# Due to https://issues.apache.org/jira/browse/MDEP-82
# MVN can't resolve ALL dependencies before build
COPY ./pom.xml .
RUN mvn dependency:go-offline -B

# Build the package
COPY . .
RUN mvn clean install -Dmaven.test.skip=true

ENTRYPOINT ["make", "publish-docker"]
# Publish package
ENTRYPOINT ["mvn", "deploy"]
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SRC=./src

.PHONY: all
all: format test
all: format build test lint

.PHONY: fix
fix:
Expand All @@ -16,13 +16,17 @@ format:
lint:
./scripts/checkstyle.bash

.PHONY: build
build:
mvn compile -Dmaven.test.skip=true

.PHONY: test
test:
mvn test

.PHONY: publish-docker
publish-docker:
mvn deploy
.PHONY: display-updates
display-updates:
mvn versions:display-plugin-updates versions:display-dependency-updates

.PHONY: update
update:
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![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/)

- API version: 3.0
- SDK version: 23.8.0
- SDK version: 23.9.0

## Demo applications

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

Building the API client library requires:

1. Java 1.7+
1. Java 8 (JDK 1.8)
2. Maven

## Prerequisites
Expand Down Expand Up @@ -68,7 +68,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-barcode-cloud</artifactId>
<version>23.8.0</version>
<version>23.9.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -83,7 +83,7 @@ mvn clean package

Then manually install the following JARs:

- `target/aspose-barcode-cloud-23.8.0.jar`
- `target/aspose-barcode-cloud-23.9.0.jar`
- `target/lib/*.jar`

## Getting Started
Expand Down Expand Up @@ -191,6 +191,7 @@ Class | Method | HTTP request | Description
- [AustralianPostParams](docs/AustralianPostParams.md)
- [AutoSizeMode](docs/AutoSizeMode.md)
- [AvailableGraphicsUnit](docs/AvailableGraphicsUnit.md)
- [AztecEncodeMode](docs/AztecEncodeMode.md)
- [AztecParams](docs/AztecParams.md)
- [AztecSymbolMode](docs/AztecSymbolMode.md)
- [BarcodeResponse](docs/BarcodeResponse.md)
Expand Down
34 changes: 15 additions & 19 deletions checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

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

<property name="severity" value="warning"/>
<property name="severity" value="error"/>

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

<module name="LineLength">
<property name="fileExtensions" value="java"/>
<property name="max" value="100"/>
<property name="max" value="120"/>
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
</module>

Expand All @@ -62,7 +62,9 @@
<property name="allowByTailComment" value="true"/>
<property name="allowNonPrintableEscapes" value="true"/>
</module>
<module name="AvoidStarImport"/>
<module name="AvoidStarImport">
<property name="excludes" value="com.aspose.barcode.cloud.requests"/>
</module>
<module name="OneTopLevelClass"/>
<module name="NoLineWrap">
<property name="tokens" value="PACKAGE_DEF, IMPORT, STATIC_IMPORT"/>
Expand Down Expand Up @@ -185,12 +187,12 @@
value="Type name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="MemberName">
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
<property name="format" value="^[a-zA-Z0-9][a-zA-Z0-9_]*$"/>
<message key="name.invalidPattern"
value="Member name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="ParameterName">
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
<property name="format" value="^[a-zA-Z]([a-zA-Z0-9]*)?$"/>
<message key="name.invalidPattern"
value="Parameter name ''{0}'' must match pattern ''{1}''."/>
</module>
Expand Down Expand Up @@ -251,30 +253,23 @@
value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
</module>
<module name="Indentation">
<property name="basicOffset" value="2"/>
<property name="braceAdjustment" value="2"/>
<property name="caseIndent" value="2"/>
<property name="throwsIndent" value="4"/>
<property name="lineWrappingIndentation" value="4"/>
<property name="arrayInitIndent" value="2"/>
<property name="basicOffset" value="4"/>
<property name="braceAdjustment" value="4"/>
<property name="caseIndent" value="4"/>
<property name="throwsIndent" value="8"/>
<property name="lineWrappingIndentation" value="8"/>
<property name="arrayInitIndent" value="4"/>
</module>
<module name="AbbreviationAsWordInName">
<property name="ignoreFinal" value="false"/>
<property name="allowedAbbreviationLength" value="0"/>
<property name="allowedAbbreviationLength" value="3"/>
<property name="tokens"
value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, ANNOTATION_DEF, ANNOTATION_FIELD_DEF,
PARAMETER_DEF, VARIABLE_DEF, METHOD_DEF, PATTERN_VARIABLE_DEF, RECORD_DEF,
RECORD_COMPONENT_DEF"/>
</module>
<module name="NoWhitespaceBeforeCaseDefaultColon"/>
<module name="OverloadMethodsDeclarationOrder"/>
<module name="VariableDeclarationUsageDistance"/>
<module name="CustomImportOrder">
<property name="sortImportsInGroupAlphabetically" value="true"/>
<property name="separateLineBetweenGroups" value="true"/>
<property name="customImportOrderRules" value="STATIC###THIRD_PARTY_PACKAGE"/>
<property name="tokens" value="IMPORT, STATIC_IMPORT, PACKAGE_DEF"/>
</module>
<module name="MethodParamPad">
<property name="tokens"
value="CTOR_DEF, LITERAL_NEW, METHOD_CALL, METHOD_DEF,
Expand Down Expand Up @@ -316,6 +311,7 @@
<module name="InvalidJavadocPosition"/>
<module name="JavadocTagContinuationIndentation"/>
<module name="SummaryJavadoc">
<property name="period" value=""/>
<property name="forbiddenSummaryFragments"
value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>
</module>
Expand Down
14 changes: 14 additions & 0 deletions docs/AztecEncodeMode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

# AztecEncodeMode

## Enum


* `AUTO` (value: `"Auto"`)

* `BYTES` (value: `"Bytes"`)

* `EXTENDEDCODETEXT` (value: `"ExtendedCodetext"`)



6 changes: 5 additions & 1 deletion docs/AztecParams.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ Name | Type | Description | Notes
**aspectRatio** | **Double** | Height/Width ratio of 2D BarCode module. | [optional]
**errorLevel** | **Integer** | Level of error correction of Aztec types of barcode. Value should between 10 to 95. | [optional]
**symbolMode** | [**AztecSymbolMode**](AztecSymbolMode.md) | Aztec Symbol mode. Default value: AztecSymbolMode.Auto. | [optional]
**textEncoding** | **String** | Sets the encoding of codetext. | [optional]
**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]
**encodeMode** | [**AztecEncodeMode**](AztecEncodeMode.md) | Encoding mode for Aztec barcodes. Default value: Auto | [optional]
**ecIEncoding** | [**ECIEncodings**](ECIEncodings.md) | Identifies ECI encoding. Used when AztecEncodeMode is Auto. Default value: ISO-8859-1. | [optional]
**isReaderInitialization** | **Boolean** | Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization. | [optional]
**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]



Loading

0 comments on commit bd8256f

Please sign in to comment.