Skip to content
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

Release 24.2 #33

Merged
merged 6 commits into from
Feb 29, 2024
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/check-badges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Check badges in README.md
run: ./scripts/check-badges.bash "README.md"
2 changes: 1 addition & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1

- name: Install dependencies
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 1.24.2
* Improve code quality
* Use lints/recommended.yaml instead of lints/core.yaml

## 1.24.1

* "types" param for multiple barcode types to read added.
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ init:
dart pub get

.PHONY: lint
lint:
lint: init
dart analyze lib example

.PHONY: test
Expand All @@ -19,7 +19,7 @@ format:
dart format .

.PHONY: fix
fix:
fix: init
dart fix --apply

.PHONY: after-gen
Expand All @@ -37,7 +37,7 @@ cover:
# dart pub global activate coverage

# Run Dart tests and output them at directory `./coverage`:
dart pub global run coverage:test_with_coverage
dart run coverage:test_with_coverage

# Generate HTML from LCOV report:
# Install lcov with `brew install lcov` or `apt-get install lcov`
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: 3.0
- SDK version: 1.24.1
- SDK version: 1.24.2

This SDK allows you to work with Aspose.BarCode for Cloud REST APIs in your Dart or Flutter applications quickly and easily

Expand All @@ -23,7 +23,7 @@ To use these SDKs, you will need Client Id and Client Secret which can be looked

## Prerequisites

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

## Requirements

Expand All @@ -34,7 +34,7 @@ Add this dependency to your *pubspec.yaml*:

```yaml
dependencies:
aspose_barcode_cloud: 1.24.1
aspose_barcode_cloud: 1.24.2
```

## Sample usage
Expand Down
5 changes: 2 additions & 3 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
include: package:lints/core.yaml
# More strict
# include: package:lints/recommended.yaml
# More strict than package:lints/core.yaml
include: package:lints/recommended.yaml
6 changes: 3 additions & 3 deletions example/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Future<void> main() async {

// Save generated image to file
File(fileName).writeAsBytesSync(generated);
print("Generated image saved to " + fileName);
print("Generated image saved to '$fileName'");

// Recognize generated image
final formFile = MultipartFile.fromBytes("image", generated.toList(),
Expand All @@ -33,8 +33,8 @@ Future<void> main() async {
);

if (recognized.barcodes != null && recognized.barcodes!.isNotEmpty) {
print("Recognized Type: " + recognized.barcodes![0].type!);
print("Recognized Value: " + recognized.barcodes![0].barcodeValue!);
print("Recognized Type: ${recognized.barcodes![0].type!}");
print("Recognized Value: ${recognized.barcodes![0].barcodeValue!}");
} else {
print("No barcode found");
}
Expand Down
18 changes: 9 additions & 9 deletions lib/src/api/barcode_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import '../../aspose_barcode_cloud.dart';
import '../api_helper.dart';

class BarcodeApi {
BarcodeApi(this.apiClient) {}
BarcodeApi(this.apiClient);

final ApiClient apiClient;

Expand Down Expand Up @@ -49,7 +49,7 @@ class BarcodeApi {
bool? useAntiAlias,
String? format}) async {
// ignore: prefer_final_locals
Object? postBody = null;
Object? postBody;

// create path and map variables
final String requestPath =
Expand Down Expand Up @@ -257,12 +257,12 @@ class BarcodeApi {
String? storage,
String? folder}) async {
// ignore: prefer_final_locals
Object? postBody = null;
Object? postBody;

// create path and map variables
final String requestPath = "/barcode/{name}/recognize"
.replaceAll("{format}", "json")
.replaceAll("{" + "name" + "}", name);
.replaceAll("{name}", name);

// query params
final List<QueryParam> queryParams = [];
Expand Down Expand Up @@ -487,7 +487,7 @@ class BarcodeApi {
String? url,
MultipartFile? image}) async {
// ignore: prefer_final_locals
Object? postBody = null;
Object? postBody;

// create path and map variables
final String requestPath =
Expand Down Expand Up @@ -769,12 +769,12 @@ class BarcodeApi {
String? folder,
String? format}) async {
// ignore: prefer_final_locals
Object? postBody = null;
Object? postBody;

// create path and map variables
final String requestPath = "/barcode/{name}/generate"
.replaceAll("{format}", "json")
.replaceAll("{" + "name" + "}", name);
.replaceAll("{name}", name);

// query params
final List<QueryParam> queryParams = [];
Expand Down Expand Up @@ -961,7 +961,7 @@ class BarcodeApi {
// create path and map variables
final String requestPath = "/barcode/{name}/recognize"
.replaceAll("{format}", "json")
.replaceAll("{" + "name" + "}", name);
.replaceAll("{name}", name);

// query params
final List<QueryParam> queryParams = [];
Expand Down Expand Up @@ -1009,7 +1009,7 @@ class BarcodeApi {
// create path and map variables
final String requestPath = "/barcode/{name}/generateMultiple"
.replaceAll("{format}", "json")
.replaceAll("{" + "name" + "}", name);
.replaceAll("{name}", name);

// query params
final List<QueryParam> queryParams = [];
Expand Down
22 changes: 11 additions & 11 deletions lib/src/api/file_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import '../../aspose_barcode_cloud.dart';
import '../api_helper.dart';

class FileApi {
FileApi(this.apiClient) {}
FileApi(this.apiClient);

final ApiClient apiClient;

Expand All @@ -18,12 +18,12 @@ class FileApi {
String? destStorageName,
String? versionId}) async {
// ignore: prefer_final_locals
Object? postBody = null;
Object? postBody;

// create path and map variables
final String requestPath = "/barcode/storage/file/copy/{srcPath}"
.replaceAll("{format}", "json")
.replaceAll("{" + "srcPath" + "}", srcPath);
.replaceAll("{srcPath}", srcPath);

// query params
final List<QueryParam> queryParams = [];
Expand Down Expand Up @@ -66,12 +66,12 @@ class FileApi {
Future deleteFile(String path,
{String? storageName, String? versionId}) async {
// ignore: prefer_final_locals
Object? postBody = null;
Object? postBody;

// create path and map variables
final String requestPath = "/barcode/storage/file/{path}"
.replaceAll("{format}", "json")
.replaceAll("{" + "path" + "}", path);
.replaceAll("{path}", path);

// query params
final List<QueryParam> queryParams = [];
Expand Down Expand Up @@ -115,12 +115,12 @@ class FileApi {
Future<Uint8List> downloadFile(String path,
{String? storageName, String? versionId}) async {
// ignore: prefer_final_locals
Object? postBody = null;
Object? postBody;

// create path and map variables
final String requestPath = "/barcode/storage/file/{path}"
.replaceAll("{format}", "json")
.replaceAll("{" + "path" + "}", path);
.replaceAll("{path}", path);

// query params
final List<QueryParam> queryParams = [];
Expand Down Expand Up @@ -159,12 +159,12 @@ class FileApi {
String? destStorageName,
String? versionId}) async {
// ignore: prefer_final_locals
Object? postBody = null;
Object? postBody;

// create path and map variables
final String requestPath = "/barcode/storage/file/move/{srcPath}"
.replaceAll("{format}", "json")
.replaceAll("{" + "srcPath" + "}", srcPath);
.replaceAll("{srcPath}", srcPath);

// query params
final List<QueryParam> queryParams = [];
Expand Down Expand Up @@ -207,12 +207,12 @@ class FileApi {
Future<FilesUploadResult> uploadFile(String path, MultipartFile file,
{String? storageName}) async {
// ignore: prefer_final_locals
Object? postBody = null;
Object? postBody;

// create path and map variables
final String requestPath = "/barcode/storage/file/{path}"
.replaceAll("{format}", "json")
.replaceAll("{" + "path" + "}", path);
.replaceAll("{path}", path);

// query params
final List<QueryParam> queryParams = [];
Expand Down
22 changes: 11 additions & 11 deletions lib/src/api/folder_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import '../../aspose_barcode_cloud.dart';
import '../api_helper.dart';

class FolderApi {
FolderApi(this.apiClient) {}
FolderApi(this.apiClient);

final ApiClient apiClient;

Expand All @@ -12,12 +12,12 @@ class FolderApi {
Future copyFolder(String srcPath, String destPath,
{String? srcStorageName, String? destStorageName}) async {
// ignore: prefer_final_locals
Object? postBody = null;
Object? postBody;

// create path and map variables
final String requestPath = "/barcode/storage/folder/copy/{srcPath}"
.replaceAll("{format}", "json")
.replaceAll("{" + "srcPath" + "}", srcPath);
.replaceAll("{srcPath}", srcPath);

// query params
final List<QueryParam> queryParams = [];
Expand Down Expand Up @@ -55,12 +55,12 @@ class FolderApi {
///
Future createFolder(String path, {String? storageName}) async {
// ignore: prefer_final_locals
Object? postBody = null;
Object? postBody;

// create path and map variables
final String requestPath = "/barcode/storage/folder/{path}"
.replaceAll("{format}", "json")
.replaceAll("{" + "path" + "}", path);
.replaceAll("{path}", path);

// query params
final List<QueryParam> queryParams = [];
Expand Down Expand Up @@ -93,12 +93,12 @@ class FolderApi {
Future deleteFolder(String path,
{String? storageName, bool? recursive}) async {
// ignore: prefer_final_locals
Object? postBody = null;
Object? postBody;

// create path and map variables
final String requestPath = "/barcode/storage/folder/{path}"
.replaceAll("{format}", "json")
.replaceAll("{" + "path" + "}", path);
.replaceAll("{path}", path);

// query params
final List<QueryParam> queryParams = [];
Expand Down Expand Up @@ -141,12 +141,12 @@ class FolderApi {
///
Future<FilesList> getFilesList(String path, {String? storageName}) async {
// ignore: prefer_final_locals
Object? postBody = null;
Object? postBody;

// create path and map variables
final String requestPath = "/barcode/storage/folder/{path}"
.replaceAll("{format}", "json")
.replaceAll("{" + "path" + "}", path);
.replaceAll("{path}", path);

// query params
final List<QueryParam> queryParams = [];
Expand Down Expand Up @@ -179,12 +179,12 @@ class FolderApi {
Future moveFolder(String srcPath, String destPath,
{String? srcStorageName, String? destStorageName}) async {
// ignore: prefer_final_locals
Object? postBody = null;
Object? postBody;

// create path and map variables
final String requestPath = "/barcode/storage/folder/move/{srcPath}"
.replaceAll("{format}", "json")
.replaceAll("{" + "srcPath" + "}", srcPath);
.replaceAll("{srcPath}", srcPath);

// query params
final List<QueryParam> queryParams = [];
Expand Down
Loading