Skip to content

Release 25.5 #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
dart test
chmod +x scripts/*
./scripts/run_snippets.sh
git checkout scripts qr.png Pdf417.png
git checkout scripts test_data
env:
TEST_CONFIGURATION_ACCESS_TOKEN: ${{ secrets.TEST_CONFIGURATION_ACCESS_TOKEN }}

Expand Down
4 changes: 4 additions & 0 deletions .pubignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
snippets/
test_data/
scripts/
Makefile
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 4.25.5

* May 2025 Release

## 4.25.4

* April 2025 Release
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ insert-example:
.PHONY: update
update:
dart pub upgrade
dart pub outdated

.PHONY: cover
cover:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Dart test](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dart/actions/workflows/dart.yml/badge.svg?branch=main)](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dart/actions/workflows/dart.yml)

- API version: 4.0
- SDK version: 4.25.4
- SDK version: 4.25.5

## SDK and API Version Compatibility:

Expand Down Expand Up @@ -39,7 +39,7 @@ Add this dependency to your *pubspec.yaml*:

```yaml
dependencies:
aspose_barcode_cloud: 4.25.4
aspose_barcode_cloud: 4.25.5
```

## Sample usage
Expand All @@ -55,7 +55,7 @@ import 'dart:typed_data';
import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart';

Future<void> main() async {
const fileName = "qr.png";
final fileName = "test_data${Platform.pathSeparator}qr.png";

final client = ApiClient(Configuration(
clientId: "Client Id from https://dashboard.aspose.cloud/applications",
Expand Down
30 changes: 15 additions & 15 deletions doc/api/GenerateApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ Name | Type | Description | Notes
---- | ---- | ------------ | -----
**barcodeType** | [**EncodeBarcodeType**](.md)| Type of barcode to generate. |
**data** | **String**| String represents data to encode |
**dataType** | [**EncodeDataType**](.md)| Type of data to encode. Default value: StringData. | [optional]
**imageFormat** | [**BarcodeImageFormat**](.md)| Barcode output image format. Default value: png | [optional]
**textLocation** | [**CodeLocation**](.md)| Specify the displaying Text Location, set to CodeLocation.None to hide CodeText. Default value: Depends on BarcodeType. CodeLocation.Below for 1D Barcodes. CodeLocation.None for 2D Barcodes. | [optional]
**foregroundColor** | **String**| Specify the displaying bars and content Color. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: Black. | [optional] [default to &#39;Black&#39;]
**backgroundColor** | **String**| Background color of the barcode image. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: White. | [optional] [default to &#39;White&#39;]
**dataType** | [**EncodeDataType**](.md)| Type of data to encode. Default value: StringData. | [optional]
**imageFormat** | [**BarcodeImageFormat**](.md)| Barcode output image format. Default value: png | [optional]
**textLocation** | [**CodeLocation**](.md)| Specify the displaying Text Location, set to CodeLocation.None to hide CodeText. Default value: Depends on BarcodeType. CodeLocation.Below for 1D Barcodes. CodeLocation.None for 2D Barcodes. | [optional]
**foregroundColor** | **String**| Specify the displaying bars and content Color. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: Black. | [optional] [default to &#39;Black&#39;]
**backgroundColor** | **String**| Background color of the barcode image. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: White. | [optional] [default to &#39;White&#39;]
**units** | [**GraphicsUnit**](.md)| Common Units for all measuring in query. Default units: pixel. | [optional]
**resolution** | **double**| Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. Decimal separator is dot. | [optional]
**imageHeight** | **double**| Height of the barcode image in given units. Default units: pixel. Decimal separator is dot. | [optional]
**imageWidth** | **double**| Width of the barcode image in given units. Default units: pixel. Decimal separator is dot. | [optional]
**rotationAngle** | **int**| BarCode image rotation angle, measured in degree, e.g. RotationAngle &#x3D; 0 or RotationAngle &#x3D; 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0. | [optional]
**resolution** | **double**| Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. Decimal separator is dot. | [optional]
**imageHeight** | **double**| Height of the barcode image in given units. Default units: pixel. Decimal separator is dot. | [optional]
**imageWidth** | **double**| Width of the barcode image in given units. Default units: pixel. Decimal separator is dot. | [optional]
**rotationAngle** | **int**| BarCode image rotation angle, measured in degree, e.g. RotationAngle &#x3D; 0 or RotationAngle &#x3D; 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0. | [optional]

### Return type

Expand Down Expand Up @@ -89,13 +89,13 @@ Name | Type | Description | Notes
**dataType** | [**EncodeDataType**](EncodeDataType.md)| | [optional]
**imageFormat** | [**BarcodeImageFormat**](BarcodeImageFormat.md)| | [optional]
**textLocation** | [**CodeLocation**](CodeLocation.md)| | [optional]
**foregroundColor** | **String**| Specify the displaying bars and content Color. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: Black. | [optional] [default to &#39;Black&#39;]
**backgroundColor** | **String**| Background color of the barcode image. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: White. | [optional] [default to &#39;White&#39;]
**foregroundColor** | **String**| Specify the displaying bars and content Color. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: Black. | [optional] [default to &#39;Black&#39;]
**backgroundColor** | **String**| Background color of the barcode image. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: White. | [optional] [default to &#39;White&#39;]
**units** | [**GraphicsUnit**](GraphicsUnit.md)| | [optional]
**resolution** | **double**| Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. Decimal separator is dot. | [optional]
**imageHeight** | **double**| Height of the barcode image in given units. Default units: pixel. Decimal separator is dot. | [optional]
**imageWidth** | **double**| Width of the barcode image in given units. Default units: pixel. Decimal separator is dot. | [optional]
**rotationAngle** | **int**| BarCode image rotation angle, measured in degree, e.g. RotationAngle &#x3D; 0 or RotationAngle &#x3D; 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0. | [optional]
**resolution** | **double**| Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. Decimal separator is dot. | [optional]
**imageHeight** | **double**| Height of the barcode image in given units. Default units: pixel. Decimal separator is dot. | [optional]
**imageWidth** | **double**| Width of the barcode image in given units. Default units: pixel. Decimal separator is dot. | [optional]
**rotationAngle** | **int**| BarCode image rotation angle, measured in degree, e.g. RotationAngle &#x3D; 0 or RotationAngle &#x3D; 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0. | [optional]

### Return type

Expand Down
12 changes: 6 additions & 6 deletions doc/models/BarcodeImageParams.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ Name | Type | Description | Notes
---- | ---- | ----------- | -----
**imageFormat** | [**BarcodeImageFormat**](BarcodeImageFormat.md) | | [optional]
**textLocation** | [**CodeLocation**](CodeLocation.md) | | [optional]
**foregroundColor** | **String** | Specify the displaying bars and content Color. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: Black. | [optional] [default to &#39;Black&#39;]
**backgroundColor** | **String** | Background color of the barcode image. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: White. | [optional] [default to &#39;White&#39;]
**foregroundColor** | **String** | Specify the displaying bars and content Color. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: Black. | [optional] [default to &#39;Black&#39;]
**backgroundColor** | **String** | Background color of the barcode image. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: White. | [optional] [default to &#39;White&#39;]
**units** | [**GraphicsUnit**](GraphicsUnit.md) | | [optional]
**resolution** | **double** | Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. Decimal separator is dot. | [optional]
**imageHeight** | **double** | Height of the barcode image in given units. Default units: pixel. Decimal separator is dot. | [optional]
**imageWidth** | **double** | Width of the barcode image in given units. Default units: pixel. Decimal separator is dot. | [optional]
**rotationAngle** | **int** | BarCode image rotation angle, measured in degree, e.g. RotationAngle &#x3D; 0 or RotationAngle &#x3D; 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0. | [optional]
**resolution** | **double** | Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. Decimal separator is dot. | [optional]
**imageHeight** | **double** | Height of the barcode image in given units. Default units: pixel. Decimal separator is dot. | [optional]
**imageWidth** | **double** | Width of the barcode image in given units. Default units: pixel. Decimal separator is dot. | [optional]
**rotationAngle** | **int** | BarCode image rotation angle, measured in degree, e.g. RotationAngle &#x3D; 0 or RotationAngle &#x3D; 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0. | [optional]

2 changes: 1 addition & 1 deletion example/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'dart:typed_data';
import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart';

Future<void> main() async {
const fileName = "qr.png";
final fileName = "test_data${Platform.pathSeparator}qr.png";

final client = ApiClient(Configuration(
clientId: "Client Id from https://dashboard.aspose.cloud/applications",
Expand Down
2 changes: 1 addition & 1 deletion lib/src/api_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import 'api_helper.dart';
import 'auth/authentication.dart';

/// Current SDK Version
const SDK_VERSION = "4.25.4";
const SDK_VERSION = "4.25.5";

/// ApiClient is responsible for making HTTP requests to the API.
class ApiClient {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/configuration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Configuration {
}

/// Load configuration from environment variables
static fromEnv({String prefix = ""}) {
static Configuration fromEnv({String prefix = ""}) {
final accessToken = Platform.environment["${prefix}ACCESS_TOKEN"];
return Configuration(
accessToken: accessToken,
Expand Down
12 changes: 6 additions & 6 deletions lib/src/model/barcode_image_params.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,31 @@ class BarcodeImageParams {
//enum textLocationEnum { Below, Above, None, };
CodeLocation? textLocation;

/// Specify the displaying bars and content Color. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: Black.
/// Specify the displaying bars and content Color. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: Black.

String? foregroundColor;

/// Background color of the barcode image. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: White.
/// Background color of the barcode image. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: White.

String? backgroundColor;

/// units
//enum unitsEnum { Pixel, Point, Inch, Millimeter, };
GraphicsUnit? units;

/// Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. Decimal separator is dot.
/// Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. Decimal separator is dot.

double? resolution;

/// Height of the barcode image in given units. Default units: pixel. Decimal separator is dot.
/// Height of the barcode image in given units. Default units: pixel. Decimal separator is dot.

double? imageHeight;

/// Width of the barcode image in given units. Default units: pixel. Decimal separator is dot.
/// Width of the barcode image in given units. Default units: pixel. Decimal separator is dot.

double? imageWidth;

/// BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0.
/// BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0.

int? rotationAngle;

Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: aspose_barcode_cloud
description: This SDK allows you to work with Aspose.BarCode for Cloud REST APIs in your Dart or Flutter applications quickly and easily
version: 4.25.4
version: 4.25.5
homepage: https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dart

platforms:
Expand All @@ -17,5 +17,5 @@ dependencies:
http: '>=0.13.0 <2.0.0'

dev_dependencies:
lints: ^5.1.1
lints: ^6.0.0
test: ^1.25.1
2 changes: 1 addition & 1 deletion snippets/generate/appearance/generate_body.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Future<void> main() async {
final generateApi = GenerateApi(apiClient);

final file = File(
"${Directory.current.path}${Platform.pathSeparator}Code39.jpeg",
"${Directory.current.path}${Platform.pathSeparator}test_data${Platform.pathSeparator}Code39.jpeg",
);

final imageParams = BarcodeImageParams()
Expand Down
3 changes: 2 additions & 1 deletion snippets/generate/appearance/generate_get.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ Future<void> main() async {
final apiClient = ApiClient(configuration);
final generateApi = GenerateApi(apiClient);

final fileName = '${Directory.current.path}${Platform.pathSeparator}qr.png';
final fileName =
'${Directory.current.path}${Platform.pathSeparator}test_data${Platform.pathSeparator}qr.png';

final Uint8List response = await generateApi.generate(
EncodeBarcodeType.QR, "Aspose.BarCode.Cloud",
Expand Down
2 changes: 1 addition & 1 deletion snippets/generate/appearance/generate_multipart.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Future<void> main() async {
final generateApi = GenerateApi(apiClient);

final file = File(
"${Directory.current.path}${Platform.pathSeparator}Pdf417.svg",
"${Directory.current.path}${Platform.pathSeparator}test_data${Platform.pathSeparator}Pdf417.svg",
);

final Uint8List barcodeStream = await generateApi.generateMultipart(
Expand Down
2 changes: 1 addition & 1 deletion snippets/generate/save/generate_body.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Configuration makeConfiguration() {

Future<void> main() async {
final fileName =
"${Directory.current.path}${Platform.pathSeparator}Pdf417.png";
"${Directory.current.path}${Platform.pathSeparator}test_data${Platform.pathSeparator}Pdf417.png";

final configuration = makeConfiguration();
final apiClient = ApiClient(configuration);
Expand Down
2 changes: 1 addition & 1 deletion snippets/generate/save/generate_get.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Future<void> main() async {
final generateApi = GenerateApi(apiClient);

final fileName =
"${Directory.current.path}${Platform.pathSeparator}Code128.jpeg";
"${Directory.current.path}${Platform.pathSeparator}test_data${Platform.pathSeparator}Code128.jpeg";

final Uint8List response = await generateApi.generate(
EncodeBarcodeType.Code128, "Aspose.BarCode.Cloud");
Expand Down
2 changes: 1 addition & 1 deletion snippets/generate/save/generate_multipart.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Configuration makeConfiguration() {

Future<void> main() async {
final fileName =
"${Directory.current.path}${Platform.pathSeparator}Pdf417.png";
"${Directory.current.path}${Platform.pathSeparator}test_data${Platform.pathSeparator}Pdf417.png";
final configuration = makeConfiguration();
final apiClient = ApiClient(configuration);
final generateApi = GenerateApi(apiClient);
Expand Down
2 changes: 1 addition & 1 deletion snippets/generate/set_colorscheme/generate_body.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Future<void> main() async {
final generateApi = GenerateApi(apiClient);

final file = File(
"${Directory.current.path}${Platform.pathSeparator}Pdf417.png",
"${Directory.current.path}${Platform.pathSeparator}test_data${Platform.pathSeparator}Pdf417.png",
);

final imageParams = BarcodeImageParams();
Expand Down
3 changes: 2 additions & 1 deletion snippets/generate/set_colorscheme/generate_get.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ Future<void> main() async {
final apiClient = ApiClient(configuration);
final generateApi = GenerateApi(apiClient);

final fileName = "${Directory.current.path}${Platform.pathSeparator}qr.png";
final fileName =
"${Directory.current.path}${Platform.pathSeparator}test_data${Platform.pathSeparator}qr.png";

final Uint8List response = await generateApi.generate(
EncodeBarcodeType.QR,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Future<void> main() async {
final generateApi = GenerateApi(apiClient);

final fileName =
'${Directory.current.path}${Platform.pathSeparator}Code39.png';
'${Directory.current.path}${Platform.pathSeparator}test_data${Platform.pathSeparator}Code39.png';

final Uint8List response = await generateApi.generateMultipart(
EncodeBarcodeType.Code39, "Aspose",
Expand Down
2 changes: 1 addition & 1 deletion snippets/generate/set_size/generate_body.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Future<void> main() async {
final generateApi = GenerateApi(apiClient);

final file = File(
"${Directory.current.path}${Platform.pathSeparator}Pdf417.png",
"${Directory.current.path}${Platform.pathSeparator}test_data${Platform.pathSeparator}Pdf417.png",
);

final generateParams = GenerateParams(
Expand Down
3 changes: 2 additions & 1 deletion snippets/generate/set_size/generate_get.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ Future<void> main() async {
final apiClient = ApiClient(configuration);
final generateApi = GenerateApi(apiClient);

final fileName = '${Directory.current.path}${Platform.pathSeparator}qr.png';
final fileName =
'${Directory.current.path}${Platform.pathSeparator}test_data${Platform.pathSeparator}qr.png';

final Uint8List response = await generateApi.generate(
EncodeBarcodeType.QR,
Expand Down
2 changes: 1 addition & 1 deletion snippets/generate/set_size/generate_multipart.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Future<void> main() async {
final generateApi = GenerateApi(apiClient);

final fileName =
'${Directory.current.path}${Platform.pathSeparator}aztec.png';
'${Directory.current.path}${Platform.pathSeparator}test_data${Platform.pathSeparator}aztec.png';

final Uint8List response = await generateApi.generateMultipart(
EncodeBarcodeType.Aztec, "Aspose.BarCode.Cloud",
Expand Down
2 changes: 1 addition & 1 deletion snippets/generate/set_text/generate_body.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Configuration makeConfiguration() {

Future<void> main() async {
final fileName =
"${Directory.current.path}${Platform.pathSeparator}Pdf417.png";
"${Directory.current.path}${Platform.pathSeparator}test_data${Platform.pathSeparator}Pdf417.png";

final configuration = makeConfiguration();
final apiClient = ApiClient(configuration);
Expand Down
Loading