@@ -235,7 +235,7 @@ public void setUseRxJava2(boolean useRxJava2) {
235
235
}
236
236
this .useRxJava2 = useRxJava2 ;
237
237
}
238
-
238
+
239
239
public void setUseRxJava3 (boolean useRxJava3 ) {
240
240
if (useRxJava3 ) {
241
241
this .useRxJava = false ;
@@ -379,7 +379,7 @@ public void processOpts() {
379
379
if (ProcessUtils .hasHttpBearerMethods (openAPI )) {
380
380
supportingFiles .add (new SupportingFile ("auth/HttpBearerAuth.kt.mustache" , authFolder , "HttpBearerAuth.kt" ));
381
381
}
382
-
382
+
383
383
if (ProcessUtils .hasHttpBasicMethods (openAPI )) {
384
384
supportingFiles .add (new SupportingFile ("auth/HttpBasicAuth.kt.mustache" , authFolder , "HttpBasicAuth.kt" ));
385
385
}
@@ -476,6 +476,22 @@ private void addSupportingSerializerAdapters(final String infrastructureFolder)
476
476
//supportingFiles.add(new SupportingFile("jvm-common/infrastructure/DateAdapter.kt.mustache", infrastructureFolder, "DateAdapter.kt"));
477
477
break ;
478
478
479
+ case kotlinx_serialization :
480
+ supportingFiles .add (new SupportingFile ("jvm-common/infrastructure/AtomicBooleanAdapter.kt.mustache" , infrastructureFolder , "AtomicBooleanAdapter.kt" ));
481
+ supportingFiles .add (new SupportingFile ("jvm-common/infrastructure/AtomicIntegerAdapter.kt.mustache" , infrastructureFolder , "AtomicIntegerAdapter.kt" ));
482
+ supportingFiles .add (new SupportingFile ("jvm-common/infrastructure/AtomicLongAdapter.kt.mustache" , infrastructureFolder , "AtomicLongAdapter.kt" ));
483
+ supportingFiles .add (new SupportingFile ("jvm-common/infrastructure/URIAdapter.kt.mustache" , infrastructureFolder , "URIAdapter.kt" ));
484
+ supportingFiles .add (new SupportingFile ("jvm-common/infrastructure/URLAdapter.kt.mustache" , infrastructureFolder , "URLAdapter.kt" ));
485
+ supportingFiles .add (new SupportingFile ("jvm-common/infrastructure/BigIntegerAdapter.kt.mustache" , infrastructureFolder , "BigIntegerAdapter.kt" ));
486
+ supportingFiles .add (new SupportingFile ("jvm-common/infrastructure/BigDecimalAdapter.kt.mustache" , infrastructureFolder , "BigDecimalAdapter.kt" ));
487
+ supportingFiles .add (new SupportingFile ("jvm-common/infrastructure/DateAdapter.kt.mustache" , infrastructureFolder , "DateAdapter.kt" ));
488
+ supportingFiles .add (new SupportingFile ("jvm-common/infrastructure/LocalDateAdapter.kt.mustache" , infrastructureFolder , "LocalDateAdapter.kt" ));
489
+ supportingFiles .add (new SupportingFile ("jvm-common/infrastructure/LocalDateTimeAdapter.kt.mustache" , infrastructureFolder , "LocalDateTimeAdapter.kt" ));
490
+ supportingFiles .add (new SupportingFile ("jvm-common/infrastructure/OffsetDateTimeAdapter.kt.mustache" , infrastructureFolder , "OffsetDateTimeAdapter.kt" ));
491
+ supportingFiles .add (new SupportingFile ("jvm-common/infrastructure/UUIDAdapter.kt.mustache" , infrastructureFolder , "UUIDAdapter.kt" ));
492
+ supportingFiles .add (new SupportingFile ("jvm-common/infrastructure/StringBuilderAdapter.kt.mustache" , infrastructureFolder , "StringBuilderAdapter.kt" ));
493
+ supportingFiles .add (new SupportingFile ("jvm-common/infrastructure/proguard-rules.pro.mustache" , "" , "proguard-rules.pro" ));
494
+ break ;
479
495
}
480
496
}
481
497
@@ -551,12 +567,6 @@ private void processMultiplatformLibrary(final String infrastructureFolder) {
551
567
supportingFiles .add (new SupportingFile ("iosTest/Coroutine.kt.mustache" , "src/iosTest/kotlin/util" , "Coroutine.kt" ));
552
568
supportingFiles .add (new SupportingFile ("jsTest/Coroutine.kt.mustache" , "src/jsTest/kotlin/util" , "Coroutine.kt" ));
553
569
supportingFiles .add (new SupportingFile ("jvmTest/Coroutine.kt.mustache" , "src/jvmTest/kotlin/util" , "Coroutine.kt" ));
554
-
555
- // gradle wrapper supporting files
556
- supportingFiles .add (new SupportingFile ("gradlew.mustache" , "" , "gradlew" ));
557
- supportingFiles .add (new SupportingFile ("gradlew.bat.mustache" , "" , "gradlew.bat" ));
558
- supportingFiles .add (new SupportingFile ("gradle-wrapper.properties.mustache" , "gradle.wrapper" .replace ("." , File .separator ), "gradle-wrapper.properties" ));
559
- supportingFiles .add (new SupportingFile ("gradle-wrapper.jar" , "gradle.wrapper" .replace ("." , File .separator ), "gradle-wrapper.jar" ));
560
570
}
561
571
562
572
@@ -571,6 +581,12 @@ private void commonSupportingFiles() {
571
581
supportingFiles .add (new SupportingFile ("README.mustache" , "" , "README.md" ));
572
582
supportingFiles .add (new SupportingFile ("build.gradle.mustache" , "" , "build.gradle" ));
573
583
supportingFiles .add (new SupportingFile ("settings.gradle.mustache" , "" , "settings.gradle" ));
584
+
585
+ // gradle wrapper supporting files
586
+ supportingFiles .add (new SupportingFile ("gradlew.mustache" , "" , "gradlew" ));
587
+ supportingFiles .add (new SupportingFile ("gradlew.bat.mustache" , "" , "gradlew.bat" ));
588
+ supportingFiles .add (new SupportingFile ("gradle-wrapper.properties.mustache" , "gradle.wrapper" .replace ("." , File .separator ), "gradle-wrapper.properties" ));
589
+ supportingFiles .add (new SupportingFile ("gradle-wrapper.jar" , "gradle.wrapper" .replace ("." , File .separator ), "gradle-wrapper.jar" ));
574
590
}
575
591
576
592
@ Override
0 commit comments