Skip to content

Commit 8e93ad7

Browse files
ivankamkinIvan Kamkin
andauthored
Release 24.10 (#112)
* Templates and config updated * Java template fixed All submodules swithced to main --------- Co-authored-by: Ivan Kamkin <234-Ivan.Kamkin@users.noreply.git.saltov.dynabic.com>
1 parent 1d4007f commit 8e93ad7

File tree

20 files changed

+204
-182
lines changed

20 files changed

+204
-182
lines changed

codegen/Templates/java/ApiClient.mustache

Lines changed: 167 additions & 146 deletions
Large diffs are not rendered by default.

codegen/Templates/java/api.mustache

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public class {{classname}} {
7373
@Deprecated
7474
{{/isDeprecated}}
7575
@SuppressWarnings("removal")
76-
protected com.squareup.okhttp.Call {{operationId}}Call({{operationIdCamelCase}}Request request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
76+
protected okhttp3.Call {{operationId}}Call({{operationIdCamelCase}}Request request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
7777
Object {{localVariablePrefix}}postBody = {{#bodyParam}}request.{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}};
7878

7979
// create path and map variables
@@ -112,10 +112,10 @@ public class {{classname}} {
112112
{{localVariablePrefix}}headerParams.put("Content-Type", {{localVariablePrefix}}contentType);
113113

114114
if(progressListener != null) {
115-
{{localVariablePrefix}}apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
115+
{{localVariablePrefix}}apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() {
116116
@Override
117-
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
118-
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
117+
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException {
118+
okhttp3.Response originalResponse = chain.proceed(chain.request());
119119
return originalResponse.newBuilder()
120120
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
121121
.build();
@@ -129,7 +129,7 @@ public class {{classname}} {
129129
{{#isDeprecated}}
130130
@Deprecated
131131
{{/isDeprecated}}
132-
private com.squareup.okhttp.Call {{operationId}}ValidateBeforeCall({{operationIdCamelCase}}Request request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
132+
private okhttp3.Call {{operationId}}ValidateBeforeCall({{operationIdCamelCase}}Request request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
133133
{{^performBeanValidation}}
134134
{{#allParams}}{{#required}}
135135
// verify the required parameter 'request.{{paramName}}' is set
@@ -140,7 +140,7 @@ public class {{classname}} {
140140
}
141141
{{/required}}{{/allParams}}
142142

143-
com.squareup.okhttp.Call {{localVariablePrefix}}call = {{operationId}}Call(request, progressListener, progressRequestListener);
143+
okhttp3.Call {{localVariablePrefix}}call = {{operationId}}Call(request, progressListener, progressRequestListener);
144144
return {{localVariablePrefix}}call;
145145

146146
{{/performBeanValidation}}
@@ -155,7 +155,7 @@ public class {{classname}} {
155155
parameterValues);
156156

157157
if (violations.size() == 0) {
158-
com.squareup.okhttp.Call {{localVariablePrefix}}call = {{operationId}}Call(request, progressListener, progressRequestListener);
158+
okhttp3.Call {{localVariablePrefix}}call = {{operationId}}Call(request, progressListener, progressRequestListener);
159159
return {{localVariablePrefix}}call;
160160

161161
} else {
@@ -212,7 +212,7 @@ public class {{classname}} {
212212
@Deprecated
213213
{{/isDeprecated}}
214214
public ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> {{operationId}}WithHttpInfo({{operationIdCamelCase}}Request request) throws ApiException {
215-
com.squareup.okhttp.Call {{localVariablePrefix}}call = {{operationId}}ValidateBeforeCall(request, null, null);
215+
okhttp3.Call {{localVariablePrefix}}call = {{operationId}}ValidateBeforeCall(request, null, null);
216216
{{#returnType}}Type {{localVariablePrefix}}returnType = new TypeToken<{{{returnType}}}>(){}.getType();
217217
return {{localVariablePrefix}}apiClient.execute({{localVariablePrefix}}call, {{localVariablePrefix}}returnType);{{/returnType}}{{^returnType}}return {{localVariablePrefix}}apiClient.execute({{localVariablePrefix}}call);{{/returnType}}
218218
}
@@ -235,7 +235,7 @@ public class {{classname}} {
235235
{{#isDeprecated}}
236236
@Deprecated
237237
{{/isDeprecated}}
238-
public com.squareup.okhttp.Call {{operationId}}Async({{operationIdCamelCase}}Request request, final ApiCallback<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> callback) throws ApiException {
238+
public okhttp3.Call {{operationId}}Async({{operationIdCamelCase}}Request request, final ApiCallback<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> callback) throws ApiException {
239239
240240
ProgressResponseBody.ProgressListener progressListener = null;
241241
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -256,7 +256,7 @@ public class {{classname}} {
256256
};
257257
}
258258

259-
com.squareup.okhttp.Call {{localVariablePrefix}}call = {{operationId}}ValidateBeforeCall(request, progressListener, progressRequestListener);
259+
okhttp3.Call {{localVariablePrefix}}call = {{operationId}}ValidateBeforeCall(request, progressListener, progressRequestListener);
260260
{{#returnType}}Type {{localVariablePrefix}}returnType = new TypeToken<{{{returnType}}}>(){}.getType();
261261
{{localVariablePrefix}}apiClient.executeAsync({{localVariablePrefix}}call, {{localVariablePrefix}}returnType, callback);{{/returnType}}{{^returnType}}{{localVariablePrefix}}apiClient.executeAsync({{localVariablePrefix}}call, callback);{{/returnType}}
262262
return {{localVariablePrefix}}call;

codegen/Templates/java/libraries/okhttp-gson/ProgressRequestBody.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
package {{invokerPackage}};
44

5-
import com.squareup.okhttp.MediaType;
6-
import com.squareup.okhttp.RequestBody;
5+
import okhttp3.MediaType;
6+
import okhttp3.RequestBody;
77

88
import java.io.IOException;
99

codegen/Templates/java/libraries/okhttp-gson/ProgressResponseBody.mustache

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ package {{invokerPackage}};
44

55
import java.io.IOException;
66

7-
import com.squareup.okhttp.MediaType;
8-
import com.squareup.okhttp.ResponseBody;
7+
import okhttp3.MediaType;
8+
import okhttp3.ResponseBody;
99

1010
import okio.Buffer;
1111
import okio.BufferedSource;
@@ -40,12 +40,12 @@ public class ProgressResponseBody extends ResponseBody {
4040
}
4141

4242
@Override
43-
public long contentLength() throws IOException {
43+
public long contentLength() {
4444
return responseBody.contentLength();
4545
}
4646

4747
@Override
48-
public BufferedSource source() throws IOException {
48+
public BufferedSource source() {
4949
if (bufferedSource == null) {
5050
bufferedSource = Okio.buffer(source(responseBody.source()));
5151
}

codegen/Templates/java/pom.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@
160160
<version>${swagger-core-version}</version>
161161
</dependency>
162162
<dependency>
163-
<groupId>com.squareup.okhttp</groupId>
163+
<groupId>com.squareup.okhttp3</groupId>
164164
<artifactId>okhttp</artifactId>
165165
<version>${okhttp-version}</version>
166166
</dependency>
167167
<dependency>
168-
<groupId>com.squareup.okhttp</groupId>
168+
<groupId>com.squareup.okhttp3</groupId>
169169
<artifactId>logging-interceptor</artifactId>
170170
<version>${okhttp-version}</version>
171171
</dependency>
@@ -247,7 +247,7 @@
247247
{{! Check version compatibility with gson-fire }}
248248
<gson-version>2.11.0</gson-version>
249249
<swagger-core-version>1.6.14</swagger-core-version>
250-
<okhttp-version>2.7.5</okhttp-version>
250+
<okhttp-version>4.12.0</okhttp-version>
251251
{{#joda}}
252252
<jodatime-version>2.9.9</jodatime-version>
253253
{{/joda}}

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": "24.9.0",
7+
"artifactVersion": "24.10.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
@@ -3,6 +3,6 @@
33
"browserClient": false,
44
"pubDescription": "This SDK allows you to work with Aspose.BarCode for Cloud REST APIs in your Dart or Flutter applications quickly and easily",
55
"pubName": "aspose_barcode_cloud",
6-
"pubVersion": "1.24.9",
6+
"pubVersion": "1.24.10",
77
"useEnumExtension": true
88
}

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": "1.2409.0"
3+
"packageVersion": "1.2410.0"
44
}

codegen/config-java.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"artifactDescription": "Aspose.BarCode Cloud SDK for Java",
44
"artifactId": "aspose-barcode-cloud",
55
"artifactUrl": "https://www.aspose.cloud",
6-
"artifactVersion": "24.9.0",
6+
"artifactVersion": "24.10.0",
77
"developerEmail": "denis.averin@aspose.com",
88
"developerName": "Denis Averin",
99
"developerOrganization": "Aspose",

codegen/config-php.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"artifactVersion": "24.9.0",
2+
"artifactVersion": "24.10.0",
33
"invokerPackage": "Aspose\\BarCode"
44
}

0 commit comments

Comments
 (0)