Skip to content

Commit 5a6fcd3

Browse files
authored
[kotlin][client] Deprecate jvm-volley support (#22521)
* deprecate kotlin jvm volley support * delete files
1 parent 3b232f6 commit 5a6fcd3

File tree

113 files changed

+2
-7878
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+2
-7878
lines changed

.github/workflows/samples-kotlin-client.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
# needs Android configured
3030
#- samples/client/petstore/kotlin-json-request-string
3131
- samples/client/petstore/kotlin-jvm-okhttp4-coroutines
32-
- samples/client/petstore/kotlin-jvm-volley
3332
- samples/client/petstore/kotlin-moshi-codegen
3433
- samples/client/petstore/kotlin-multiplatform
3534
- samples/client/petstore/kotlin-multiplatform-kotlinx-datetime
@@ -47,10 +46,8 @@ jobs:
4746
- samples/client/petstore/kotlin-array-integer-enum
4847
- samples/client/petstore/kotlin-default-values-jvm-okhttp4
4948
- samples/client/petstore/kotlin-default-values-jvm-retrofit2
50-
- samples/client/petstore/kotlin-default-values-jvm-volley
5149
- samples/client/petstore/kotlin-default-values-multiplatform
5250
- samples/client/petstore/kotlin-array-simple-string-jvm-okhttp4
53-
- samples/client/petstore/kotlin-array-simple-string-jvm-volley
5451
- samples/client/petstore/kotlin-array-simple-string-multiplatform
5552
- samples/client/petstore/kotlin-bigdecimal-default-multiplatform
5653
- samples/client/petstore/kotlin-bigdecimal-default-okhttp4

bin/configs/kotlin-array-simple-string-jvm-volley.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

bin/configs/kotlin-default-values-jvm-volley.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

bin/configs/kotlin-jvm-volley.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/generators/kotlin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
3131
|generateRoomModels|Generate Android Room database models in addition to API models (JVM Volley library only)| |false|
3232
|groupId|Generated artifact package's organization (i.e. maven groupId).| |org.openapitools|
3333
|idea|Add IntelliJ Idea plugin and mark Kotlin main and test folders as source folders.| |false|
34-
|library|Library template (sub-template) to use|<dl><dt>**jvm-ktor**</dt><dd>Platform: Java Virtual Machine. HTTP client: Ktor 1.6.7. JSON processing: Gson, Jackson (default).</dd><dt>**jvm-okhttp4**</dt><dd>[DEFAULT] Platform: Java Virtual Machine. HTTP client: OkHttp 4.2.0 (Android 5.0+ and Java 8+). JSON processing: Moshi 1.8.0.</dd><dt>**jvm-spring-webclient**</dt><dd>Platform: Java Virtual Machine. HTTP: Spring 5 (or 6 with useSpringBoot3 enabled) WebClient. JSON processing: Jackson.</dd><dt>**jvm-spring-restclient**</dt><dd>Platform: Java Virtual Machine. HTTP: Spring 6 RestClient. JSON processing: Jackson.</dd><dt>**jvm-retrofit2**</dt><dd>Platform: Java Virtual Machine. HTTP client: Retrofit 2.6.2.</dd><dt>**multiplatform**</dt><dd>Platform: Kotlin multiplatform. HTTP client: Ktor 1.6.7. JSON processing: Kotlinx Serialization: 1.2.1.</dd><dt>**jvm-volley**</dt><dd>Platform: JVM for Android. HTTP client: Volley 1.2.1. JSON processing: gson 2.8.9</dd><dt>**jvm-vertx**</dt><dd>Platform: Java Virtual Machine. HTTP client: Vert.x Web Client. JSON processing: Moshi, Gson or Jackson.</dd></dl>|jvm-okhttp4|
34+
|library|Library template (sub-template) to use|<dl><dt>**jvm-ktor**</dt><dd>Platform: Java Virtual Machine. HTTP client: Ktor 1.6.7. JSON processing: Gson, Jackson (default).</dd><dt>**jvm-okhttp4**</dt><dd>[DEFAULT] Platform: Java Virtual Machine. HTTP client: OkHttp 4.2.0 (Android 5.0+ and Java 8+). JSON processing: Moshi 1.8.0.</dd><dt>**jvm-spring-webclient**</dt><dd>Platform: Java Virtual Machine. HTTP: Spring 5 (or 6 with useSpringBoot3 enabled) WebClient. JSON processing: Jackson.</dd><dt>**jvm-spring-restclient**</dt><dd>Platform: Java Virtual Machine. HTTP: Spring 6 RestClient. JSON processing: Jackson.</dd><dt>**jvm-retrofit2**</dt><dd>Platform: Java Virtual Machine. HTTP client: Retrofit 2.6.2.</dd><dt>**multiplatform**</dt><dd>Platform: Kotlin multiplatform. HTTP client: Ktor 1.6.7. JSON processing: Kotlinx Serialization: 1.2.1.</dd><dt>**jvm-volley**</dt><dd>Platform: JVM for Android. HTTP client: Volley 1.2.1. JSON processing: gson 2.8.9 (Deprecated)</dd><dt>**jvm-vertx**</dt><dd>Platform: Java Virtual Machine. HTTP client: Vert.x Web Client. JSON processing: Moshi, Gson or Jackson.</dd></dl>|jvm-okhttp4|
3535
|mapFileBinaryToByteArray|Map File and Binary to ByteArray (default: false)| |false|
3636
|modelMutable|Create mutable models| |false|
3737
|moshiCodeGen|Whether to enable codegen with the Moshi library. Refer to the [official Moshi doc](https://github.com/square/moshi#codegen) for more info.| |false|

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public KotlinClientCodegen() {
248248
supportedLibraries.put(JVM_SPRING_RESTCLIENT, "Platform: Java Virtual Machine. HTTP: Spring 6 RestClient. JSON processing: Jackson.");
249249
supportedLibraries.put(JVM_RETROFIT2, "Platform: Java Virtual Machine. HTTP client: Retrofit 2.6.2.");
250250
supportedLibraries.put(MULTIPLATFORM, "Platform: Kotlin multiplatform. HTTP client: Ktor 1.6.7. JSON processing: Kotlinx Serialization: 1.2.1.");
251-
supportedLibraries.put(JVM_VOLLEY, "Platform: JVM for Android. HTTP client: Volley 1.2.1. JSON processing: gson 2.8.9");
251+
supportedLibraries.put(JVM_VOLLEY, "Platform: JVM for Android. HTTP client: Volley 1.2.1. JSON processing: gson 2.8.9 (Deprecated)");
252252
supportedLibraries.put(JVM_VERTX, "Platform: Java Virtual Machine. HTTP client: Vert.x Web Client. JSON processing: Moshi, Gson or Jackson.");
253253

254254
CliOption libraryOption = new CliOption(CodegenConstants.LIBRARY, "Library template (sub-template) to use");

samples/client/petstore/kotlin-array-simple-string-jvm-volley/.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

samples/client/petstore/kotlin-array-simple-string-jvm-volley/.openapi-generator/FILES

Lines changed: 0 additions & 20 deletions
This file was deleted.

samples/client/petstore/kotlin-array-simple-string-jvm-volley/.openapi-generator/VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

samples/client/petstore/kotlin-array-simple-string-jvm-volley/README.md

Lines changed: 0 additions & 190 deletions
This file was deleted.

0 commit comments

Comments
 (0)