Skip to content

Commit 2fa7b47

Browse files
authored
Release 23.11 (#86)
* Update Java templates * Update Python templates * Update Node package * Update version to 23.11.0 * Update templates * All SDKs were released
1 parent d070806 commit 2fa7b47

24 files changed

+86
-77
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ deprecated: openapi
2424

2525
# Making all SDKs
2626
.PHONY: sdk
27-
sdk: android dart dotnet go java node php python
27+
sdk:
28+
./scripts/generate-all.bash
2829

2930
.PHONY: android
3031
android:

codegen/Templates/csharp/README.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Aspose.BarCode Cloud SDK for .NET provides cross-platform bindings for:
2424

2525
- .NET 5 and higher
2626
- .NET Standard 2.0 and higher
27-
- .NET Core 2.1 and higher
27+
- .NET Core 3.1 and higher
2828
- .NET Framework 4.6.2 and higher
2929

3030
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).

codegen/Templates/csharp/TestProject.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net6.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

codegen/Templates/dart/pubspec.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ environment:
1616
dependencies:
1717
http: '>=0.13.0 <2.0.0'
1818
dev_dependencies:
19-
lints: ^2.1.1
19+
lints: ^3.0.0
2020
test: ^1.19.2

codegen/Templates/java/ApiClient.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ public class ApiClient {
834834
url.append("&");
835835
}
836836
String value = parameterToString(param.getValue());
837-
url.append(escapeString(param.getName())).append("=").append(escapeString(value));
837+
url.append(escapeString(param.getKey())).append("=").append(escapeString(value));
838838
}
839839
}
840840
}
@@ -851,7 +851,7 @@ public class ApiClient {
851851
}
852852
String value = parameterToString(param.getValue());
853853
// collection query parameter value already escaped as part of parameterToPairs
854-
url.append(escapeString(param.getName())).append("=").append(value);
854+
url.append(escapeString(param.getKey())).append("=").append(value);
855855
}
856856
}
857857
}

codegen/Templates/java/Pair.mustache

Lines changed: 5 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,12 @@
22

33
package {{invokerPackage}};
44

5-
/**
6-
* Name-value pair.
7-
*/
8-
public class Pair {
9-
private String name = "";
10-
private String value = "";
5+
import java.util.AbstractMap;
116

12-
public Pair(String name, String value) {
13-
setName(name);
14-
setValue(value);
15-
}
16-
17-
private void setName(String name) {
18-
if (isNullOrEmpty(name)) {
19-
return;
20-
}
21-
22-
this.name = name;
23-
}
24-
25-
private void setValue(String value) {
26-
if (isNullOrEmpty(value)) {
27-
return;
28-
}
29-
30-
this.value = value;
31-
}
32-
33-
public String getName() {
34-
return this.name;
35-
}
36-
37-
public String getValue() {
38-
return this.value;
39-
}
7+
/** Key-value pair. */
8+
public class Pair extends AbstractMap.SimpleImmutableEntry<String, String> {
409
41-
private static boolean isNullOrEmpty(String arg) {
42-
if (arg == null) {
43-
return true;
44-
}
45-
return arg.trim().isEmpty();
10+
public Pair(String key, String value) {
11+
super(key, value);
4612
}
4713
}

codegen/Templates/python/setup.mustache

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ VERSION = "{{packageVersion}}"
1717
# prerequisite: setuptools
1818
# http://pypi.python.org/pypi/setuptools
1919

20-
REQUIRES = ["certifi>=2017.4.17", "python-dateutil>=2.1", "six>=1.10", "urllib3 >= 1.21.1, <2.0"]
21-
2220
{{#asyncio}}
2321
REQUIRES.append("aiohttp")
2422
{{/asyncio}}
@@ -27,6 +25,9 @@ REQUIRES.append("tornado")
2725
{{/tornado}}
2826
here = os.path.abspath(os.path.dirname(__file__))
2927

28+
with open(os.path.join(here, "requirements.txt"), "rt") as f:
29+
REQUIRES = list(map(str.strip, f.readlines()))
30+
3031
with open(os.path.join(here, "README.md"), "rt") as f:
3132
long_description = f.read()
3233

@@ -53,6 +54,7 @@ setup(
5354
"Programming Language :: Python :: 3.9",
5455
"Programming Language :: Python :: 3.10",
5556
"Programming Language :: Python :: 3.11",
57+
"Programming Language :: Python :: 3.12",
5658
],
5759
keywords=[
5860
"Barcode-Scan",

codegen/config-android.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"androidSdkVersion": "33",
55
"apiPackage": "com.aspose.barcode.cloud.demo_app",
66
"artifactId": "Android Application for Barcode Processing in the Cloud via REST API",
7-
"artifactVersion": "23.10.0",
7+
"artifactVersion": "23.11.0",
88
"groupId": "com.aspose",
99
"invokerPackage": "com.aspose.barcode.cloud.demo_app",
1010
"modelPackage": "com.aspose.barcode.cloud.demo_app.model"

codegen/config-dart.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"browserClient": false,
33
"pubDescription": "This SDK allows you to work with Aspose.BarCode for Cloud REST APIs in your Dart or Flutter applications quickly and easily",
44
"pubName": "aspose_barcode_cloud",
5-
"pubVersion": "0.23.10",
5+
"pubVersion": "0.23.11",
66
"useEnumExtension": true
77
}

codegen/config-go.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"packageName": "barcode",
3-
"packageVersion": "0.2310.0"
3+
"packageVersion": "0.2311.0"
44
}

0 commit comments

Comments
 (0)