Skip to content
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
6 changes: 3 additions & 3 deletions .github/workflows/check-codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name: Check pull request
# events but only for the main branch
on:
push:
branches: [main]
branches: [ v3 ]
pull_request:
branches: [main]
branches: [ v3 ]

jobs:
check-submodules:
Expand All @@ -19,7 +19,7 @@ jobs:

- name: Check all submodules up-to-date
run: |
git submodule update --recursive --remote
./scripts/switch-submodules-to-v3.bash
git diff --exit-code

check-swagger:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Aspose Pty Ltd
Copyright (c) 2025 Aspose Pty Ltd

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions codegen/Templates/android/build.mustache
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.3.2' apply false
id 'com.android.library' version '8.3.2' apply false
id 'org.jetbrains.kotlin.android' version '1.9.0' apply false
id 'com.android.application' version '8.7.3' apply false
id 'com.android.library' version '8.7.3' apply false
id 'org.jetbrains.kotlin.android' version '2.1.0' apply false
}
ext.kotlin_version = '1.9.0'
ext.kotlin_version = '2.1.0'
2 changes: 1 addition & 1 deletion codegen/Templates/android/licenseInfo.mustache
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* --------------------------------------------------------------------------------
* <copyright company="Aspose">
* Copyright (c) 2024 Aspose.BarCode for Cloud
* Copyright (c) 2025 Aspose.BarCode for Cloud
* </copyright>
* <summary>
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
2 changes: 1 addition & 1 deletion codegen/Templates/csharp/Project.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Aspose.Barcode for Cloud allows you to control all aspects of the image and barc
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<DebugType>embedded</DebugType>
<PackageTags>Barcode Scan Recognize Generate QR DataMatrix AustraliaPost VIN MSI Aztec ISBN OPC Postnet Aspose Aspose.BarCode Aspose.BarCode-Cloud EAN13 ISSN PZN SingaporePost UPCA UPCE Code11 Code128 Code32 DotCode EAN14 EAN8 GS1DataMatrix</PackageTags>
<Copyright>© Aspose Pty Ltd 2001-2024. All Rights Reserved.</Copyright>
<Copyright>© Aspose Pty Ltd 2001-2025. All Rights Reserved.</Copyright>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>Aspose.BarCode-Cloud</PackageId>
<Product>Aspose.BarCode Cloud SDK for .NET</Product>
Expand Down
2 changes: 1 addition & 1 deletion codegen/Templates/csharp/partial_header.mustache
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright company="Aspose" file="{{#classname}}{{classname}}{{/classname}}{{^classname}}Configuration{{/classname}}.cs">
// Copyright (c) 2024 Aspose.BarCode for Cloud
// Copyright (c) 2025 Aspose.BarCode for Cloud
// </copyright>
// <summary>
// Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
2 changes: 1 addition & 1 deletion codegen/Templates/csharp/requestModel.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{#operation}}
// --------------------------------------------------------------------------------------------------------------------
// <copyright company="Aspose" file="{{nickname}}Request.cs">
// Copyright (c) 2024 Aspose.BarCode for Cloud
// Copyright (c) 2025 Aspose.BarCode for Cloud
// </copyright>
// <summary>
// Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
2 changes: 1 addition & 1 deletion codegen/Templates/dart/pubspec.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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 codegen/Templates/go/partial_header.mustache
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* MIT License

* Copyright (c) 2024 Aspose Pty Ltd
* Copyright (c) 2025 Aspose Pty Ltd

* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
11 changes: 9 additions & 2 deletions codegen/Templates/java/ApiClient.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ public class ApiClient {
if (response.body() == null) {
throw new ApiException(response.message(), response.code());
}

ApiErrorResponse errorResponse;
try {
errorResponse = deserialize(response, ApiErrorResponse.class);
Expand All @@ -705,7 +705,10 @@ public class ApiClient {
response.message(), e, response.code(), response.headers().toMultimap());
}

throw new ApiException(response.message(), response.code(), errorResponse);
throw new ApiException(
response.message().isEmpty() ? String.valueOf(response.code()) : response.message(),
response.code(),
errorResponse);
}

/**
Expand Down Expand Up @@ -980,6 +983,10 @@ public class ApiClient {
.build();

Response response = httpClient.newCall(request).execute();
if (response.code() != 200) {
throw new ApiException(
"Error fetching token: " + response.message(), response.code());
}
GetAccessTokenResult result =
json.deserialize(response.body().string(), GetAccessTokenResult.class);
setAccessToken(result.access_token);
Expand Down
2 changes: 1 addition & 1 deletion codegen/Templates/java/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public class {{classname}} {
{{#operation}}
// --------------------------------------------------------------------------------------------------------------------
// <copyright company="Aspose" file="{{operationIdCamelCase}}Request.java">
// Copyright (c) 2024 Aspose.BarCode for Cloud
// Copyright (c) 2025 Aspose.BarCode for Cloud
// </copyright>
// <summary>
// Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
2 changes: 1 addition & 1 deletion codegen/Templates/java/licenseInfo.mustache
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright company="Aspose"{{#classname}} file="{{classname}}.java"{{/classname}}>
// Copyright (c) 2024 Aspose.BarCode for Cloud
// Copyright (c) 2025 Aspose.BarCode for Cloud
// </copyright>
// <summary>
// Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
6 changes: 3 additions & 3 deletions codegen/Templates/java/pom.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -245,14 +245,14 @@
<maven.compiler.target>${java.version}</maven.compiler.target>
<gson-fire-version>1.9.0</gson-fire-version>
{{! Check version compatibility with gson-fire }}
<gson-version>2.11.0</gson-version>
<swagger-core-version>1.6.14</swagger-core-version>
<gson-version>2.13.1</gson-version>
<swagger-core-version>1.6.16</swagger-core-version>
<okhttp-version>4.12.0</okhttp-version>
{{#joda}}
<jodatime-version>2.9.9</jodatime-version>
{{/joda}}
{{#threetenbp}}
<threetenbp-version>1.7.0</threetenbp-version>
<threetenbp-version>1.7.1</threetenbp-version>
{{/threetenbp}}
<maven-plugin-version>1.0.0</maven-plugin-version>
<junit-version>4.13.2</junit-version>
Expand Down
2 changes: 1 addition & 1 deletion codegen/Templates/nodejs/licenseInfo.mustache
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* MIT License

* Copyright (c) 2024 Aspose Pty Ltd
* Copyright (c) 2025 Aspose Pty Ltd

* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions codegen/Templates/nodejs/package.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@
"devDependencies": {
"@types/uuid": "^10.0.0",
"dts-cli": "^2.0.5",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-prettier": "^5.4.1",
"npm-check-updates": "^16.14.20",
"prettier": "^3.4.2",
"prettier": "^3.5.3",
"ts-jest": "^29.1.3",
"tslib": "^2.8.1",
"uuid": "^11.0.3"
"uuid": "^11.1.0"
},
"bugs": {
"url": "https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-node/issues"
Expand Down
2 changes: 1 addition & 1 deletion codegen/Templates/php/licenseInfo.mustache
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* --------------------------------------------------------------------------------------------------------------------
* <copyright company="Aspose" file="{{classname}}.php">
* Copyright (c) 2024 Aspose Pty Ltd
* Copyright (c) 2025 Aspose Pty Ltd
* </copyright>
* <summary>
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
2 changes: 1 addition & 1 deletion codegen/Templates/php/requestModel.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* --------------------------------------------------------------------------------------------------------------------
* <copyright company="Aspose" file="{{nickname}}Request.php">
* Copyright (c) 2024 Aspose Pty Ltd
* Copyright (c) 2025 Aspose Pty Ltd
* </copyright>
* --------------------------------------------------------------------------------------------------------------------
*/
Expand Down
2 changes: 1 addition & 1 deletion codegen/Templates/python/README.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This repository contains Aspose.BarCode Cloud SDK for Python source code. This S

Supported Python versions:

- Python 3.6+
- Python 3.8+

To use these SDKs, you will need Client Id and Client Secret which can be looked up at [Aspose Cloud Dashboard](https://dashboard.aspose.cloud/applications) (free registration in Aspose Cloud is required for this).

Expand Down
2 changes: 1 addition & 1 deletion codegen/Templates/python/partial_header.mustache
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""

Copyright (c) 2024 Aspose.BarCode for Cloud
Copyright (c) 2025 Aspose.BarCode for Cloud

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 0 additions & 2 deletions codegen/Templates/python/rest.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class RESTResponse(io.IOBase):


class RESTClientObject(object):

def __init__(self, configuration, pools_size=4, maxsize=None):
# urllib3.PoolManager will pass all kw parameters to connectionpool
# https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501
Expand Down Expand Up @@ -290,7 +289,6 @@ class RESTClientObject(object):


class ApiException(Exception):

def __init__(self, status=0, reason=None, http_resp=None):
# type: (int, str, RESTResponse) -> None
if http_resp:
Expand Down
2 changes: 0 additions & 2 deletions codegen/Templates/python/setup.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ setup(
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down
4 changes: 2 additions & 2 deletions codegen/Templates/python/tox.mustache
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; Use tox version 3.x
; Run particular env:
; python -m tox -e 3.6
; python -m tox -e 3.8
[tox]
envlist = 3.6, 3.12
envlist = 3.8, 3.13

[testenv]
passenv = TEST_CONFIGURATION_ACCESS_TOKEN
Expand Down
2 changes: 1 addition & 1 deletion codegen/config-android.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"androidSdkVersion": "33",
"apiPackage": "com.aspose.barcode.cloud.demo_app",
"artifactId": "Android Application for Barcode Processing in the Cloud via REST API",
"artifactVersion": "24.12.0",
"artifactVersion": "24.13.0",
"groupId": "com.aspose",
"invokerPackage": "com.aspose.barcode.cloud.demo_app",
"modelPackage": "com.aspose.barcode.cloud.demo_app.model"
Expand Down
2 changes: 1 addition & 1 deletion codegen/config-dart.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"browserClient": false,
"pubDescription": "This SDK allows you to work with Aspose.BarCode for Cloud REST APIs in your Dart or Flutter applications quickly and easily",
"pubName": "aspose_barcode_cloud",
"pubVersion": "1.24.12",
"pubVersion": "1.24.13",
"useEnumExtension": true
}
2 changes: 1 addition & 1 deletion codegen/config-go.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"packageName": "barcode",
"packageVersion": "1.2412.0"
"packageVersion": "1.2413.0"
}
2 changes: 1 addition & 1 deletion codegen/config-java.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"artifactDescription": "Aspose.BarCode Cloud SDK for Java",
"artifactId": "aspose-barcode-cloud",
"artifactUrl": "https://www.aspose.cloud",
"artifactVersion": "24.12.0",
"artifactVersion": "24.13.0",
"developerEmail": "[email protected]",
"developerName": "Denis Averin",
"developerOrganization": "Aspose",
Expand Down
2 changes: 1 addition & 1 deletion codegen/config-php.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"artifactVersion": "24.12.0",
"artifactVersion": "24.13.0",
"invokerPackage": "Aspose\\BarCode"
}
2 changes: 1 addition & 1 deletion codegen/config-python.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"packageName": "aspose_barcode_cloud",
"packageUrl": "https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-python",
"packageVersion": "24.12.0",
"packageVersion": "24.13.0",
"projectName": "aspose-barcode-cloud"
}
4 changes: 2 additions & 2 deletions codegen/config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"artifactVersion": "23.7.0",
"npmName": "aspose-barcode-cloud-node",
"npmVersion": "24.12.0",
"npmVersion": "24.13.0",
"packageName": "Aspose.BarCode.Cloud.Sdk",
"packageVersion": "24.12.0",
"packageVersion": "24.13.0",
"supportsES6": true,
"targetFramework": "netstandard2.0"
}
6 changes: 6 additions & 0 deletions scripts/grep-year-in-git.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -euo pipefail

year=$1

git ls-files --recurse-submodules | xargs grep -FHn "${year}"
13 changes: 5 additions & 8 deletions scripts/start-release.bash
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,18 @@ which make || (
exit 1
)

year=$(date +%y)
month=$(date +%-m)

major=${1:-$year}
minor=${2:-$month}
branch_name="release-${major}.${minor}"
major="24"
minor="13"
branch_name="release-v3-${major}.${minor}"

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
pushd "${SCRIPT_DIR}/.."

echo "Update Swagger specification..."
./scripts/update_swagger_spec.bash

echo "Switch to main all submodules for start new branch in the right place..."
./scripts/switch_all_submodules_to_main.bash
echo "Switch all submodules to v3 for start new branch in the right place..."
./scripts/switch-submodules-to-v3.bash

echo "Switching to ${branch_name}"
git switch --create "${branch_name}" || git switch "${branch_name}"
Expand Down
22 changes: 22 additions & 0 deletions scripts/switch-submodules-to-v3.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

set -euo pipefail

pushd "$(dirname "$0")/../submodules"

for d in */ ; do
pushd "$d"

branch="v3"
if [ "$d" = "dart/" ] || [ "$d" = "go/" ]; then
branch="v1"
elif [ "$d" = "android/" ]; then
# Do not update Android to legacy v3 versions
branch="main"
fi
(git fetch --prune && git switch "$branch" && git pull --ff-only) || true

popd >/dev/null
done

popd >/dev/null
15 changes: 0 additions & 15 deletions scripts/switch_all_submodules_to_main.bash

This file was deleted.

Loading