[swift5][client] create comment to warn about android api version (#11830)

This commit is contained in:
Bruno Coelho
2022-03-08 16:03:02 +00:00
committed by GitHub
parent 0e4eb50af2
commit 00ef435018
15 changed files with 15 additions and 0 deletions

View File

@@ -129,6 +129,7 @@ open class ApiClient(val baseUrl: String) {
}
if (T::class.java == File::class.java) {
// return tempfile
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
val f = java.nio.file.Files.createTempFile("tmp.org.openapitools.client", null).toFile()
f.deleteOnExit()
val out = BufferedWriter(FileWriter(f))