[kotlin][client] Add new line at the end of all files (#16062)

* [kotlin][client] add new line at end of files

* [kotlin][client] add new line at end of files
This commit is contained in:
Bruno Coelho 2023-07-11 10:07:06 +01:00 committed by GitHub
parent ceb48d3af4
commit f31c2a4b17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
221 changed files with 221 additions and 221 deletions

View File

@ -20,4 +20,4 @@ package {{packageName}}.infrastructure
"multi" -> items.map(map)
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
}
}
}

View File

@ -15,4 +15,4 @@ package {{packageName}}.infrastructure
val query: MutableMap<String, List<String>> = mutableMapOf(),
val requiresAuthentication: Boolean,
val body: T? = null
)
)

View File

@ -5,4 +5,4 @@ package {{packageName}}.infrastructure
*/
{{#nonPublicApi}}internal {{/nonPublicApi}}enum class RequestMethod {
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
}
}

View File

@ -40,4 +40,4 @@ import java.math.BigInteger
return BigInteger(value)
}
}
{{/moshi}}
{{/moshi}}

View File

@ -47,4 +47,4 @@ import java.io.IOException
}
}
}
{{/gson}}
{{/gson}}

View File

@ -83,4 +83,4 @@ import org.threeten.bp.format.DateTimeFormatter
return LocalDate.parse(decoder.decodeString(), DateTimeFormatter.ISO_LOCAL_DATE)
}
}
{{/kotlinx_serialization}}
{{/kotlinx_serialization}}

View File

@ -83,4 +83,4 @@ import org.threeten.bp.format.DateTimeFormatter
return LocalDateTime.parse(decoder.decodeString(), DateTimeFormatter.ISO_LOCAL_DATE_TIME)
}
}
{{/kotlinx_serialization}}
{{/kotlinx_serialization}}

View File

@ -83,4 +83,4 @@ import org.threeten.bp.format.DateTimeFormatter
return OffsetDateTime.parse(decoder.decodeString(), DateTimeFormatter.ISO_OFFSET_DATE_TIME)
}
}
{{/kotlinx_serialization}}
{{/kotlinx_serialization}}

View File

@ -35,4 +35,4 @@ import java.net.URI
override val descriptor: SerialDescriptor = PrimitiveSerialDescriptor("URI", PrimitiveKind.STRING)
}
{{/kotlinx_serialization}}
{{/kotlinx_serialization}}

View File

@ -37,4 +37,4 @@ import java.util.UUID
return UUID.fromString(decoder.decodeString())
}
}
{{/kotlinx_serialization}}
{{/kotlinx_serialization}}

View File

@ -15,4 +15,4 @@ import java.lang.RuntimeException
{{#nonPublicApi}}internal {{/nonPublicApi}}companion object {
private const val serialVersionUID: Long = 456L
}
}
}

View File

@ -53,4 +53,4 @@ class CollectionFormats {
}
class SPACEParams : SSVParams()
}
}

View File

@ -32,4 +32,4 @@ inline fun <reified T> Response<*>.getErrorResponse(serializerBuilder: GsonBuild
}
return null
}
{{/gson}}
{{/gson}}

View File

@ -138,4 +138,4 @@ import {{packageName}}.infrastructure.*
{{/operation}}
}
{{/operations}}
{{/operations}}

View File

@ -52,4 +52,4 @@ open class ApiClient(protected val client: WebClient) {
private fun <I : Any> WebClient.RequestBodySpec.body(requestConfig: RequestConfig<I>) =
apply { if (requestConfig.body != null) bodyValue(requestConfig.body) }
}
}

View File

@ -229,4 +229,4 @@ import {{packageName}}.infrastructure.*
}
}
{{/operations}}
{{/operations}}

View File

@ -15,4 +15,4 @@ import java.lang.RuntimeException
{{#nonPublicApi}}internal {{/nonPublicApi}}companion object {
private const val serialVersionUID: Long = 456L
}
}
}

View File

@ -1,4 +1,4 @@
android.useAndroidX=true
{{#generateRoomModels}}
android.enableJetifier=true
{{/generateRoomModels}}
{{/generateRoomModels}}

View File

@ -53,4 +53,4 @@ class CollectionFormats {
}
class SPACEParams : SSVParams()
}
}

View File

@ -6,4 +6,4 @@ import {{roomModelPackage}}.*
// TODO ITransformForStorage
interface ITransformForStorage<T> {
fun toRoomModel(): T
}
}

View File

@ -116,4 +116,4 @@ class GsonRequest<T>(
)
}
}
}
}

View File

@ -61,4 +61,4 @@ interface IRequestFactory {
type: Type,
responseListener: Response.Listener<T>,
errorListener: Response.ErrorListener): Request<T>
}
}

View File

@ -7,4 +7,4 @@ class OAuth : Authentication {
val token: String = accessToken ?: return
headers["Authorization"] = "Bearer $token"
}
}
}

View File

@ -180,4 +180,4 @@ import {{packageName}}.auth.*
RequestMethod.POST -> HttpMethod.Post
RequestMethod.OPTIONS -> HttpMethod.Options
}
}
}

View File

@ -27,4 +27,4 @@ class Base64ByteArray(val value: ByteArray) {
override fun toString(): String {
return "Base64ByteArray(${hex(value)})"
}
}
}

View File

@ -27,4 +27,4 @@ class OctetByteArray(val value: ByteArray) {
override fun toString(): String {
return "OctetByteArray(${hex(value)})"
}
}
}

View File

@ -4,4 +4,4 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.promise
actual fun <T> runTest(block: suspend (scope : CoroutineScope) -> T): dynamic = GlobalScope.promise { block(this) }
actual fun <T> runTest(block: suspend (scope : CoroutineScope) -> T): dynamic = GlobalScope.promise { block(this) }

View File

@ -1 +1 @@
rootProject.name = "{{artifactId}}"
rootProject.name = "{{artifactId}}"

View File

@ -1,2 +1,2 @@
{{#multiplatform}}enableFeaturePreview('GRADLE_METADATA'){{/multiplatform}}
rootProject.name = '{{artifactId}}'
rootProject.name = '{{artifactId}}'

View File

@ -1,2 +1,2 @@
rootProject.name = 'kotlin-allOff-discriminator'
rootProject.name = 'kotlin-allOff-discriminator'

View File

@ -20,4 +20,4 @@ fun <T : Any?> toMultiValue(items: Iterable<T>, collectionFormat: String, map: (
"multi" -> items.map(map)
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
}
}
}

View File

@ -15,4 +15,4 @@ open class ServerException(message: kotlin.String? = null, val statusCode: Int =
companion object {
private const val serialVersionUID: Long = 456L
}
}
}

View File

@ -15,4 +15,4 @@ data class RequestConfig<T>(
val query: MutableMap<String, List<String>> = mutableMapOf(),
val requiresAuthentication: Boolean,
val body: T? = null
)
)

View File

@ -5,4 +5,4 @@ package org.openapitools.client.infrastructure
*/
enum class RequestMethod {
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
}
}

View File

@ -1,2 +1,2 @@
rootProject.name = 'kotlin-array-simple-string-jvm-okhttp3'
rootProject.name = 'kotlin-array-simple-string-jvm-okhttp3'

View File

@ -20,4 +20,4 @@ fun <T : Any?> toMultiValue(items: Iterable<T>, collectionFormat: String, map: (
"multi" -> items.map(map)
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
}
}
}

View File

@ -15,4 +15,4 @@ open class ServerException(message: kotlin.String? = null, val statusCode: Int =
companion object {
private const val serialVersionUID: Long = 456L
}
}
}

View File

@ -15,4 +15,4 @@ data class RequestConfig<T>(
val query: MutableMap<String, List<String>> = mutableMapOf(),
val requiresAuthentication: Boolean,
val body: T? = null
)
)

View File

@ -5,4 +5,4 @@ package org.openapitools.client.infrastructure
*/
enum class RequestMethod {
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
}
}

View File

@ -1,2 +1,2 @@
rootProject.name = 'kotlin-array-simple-string-jvm-okhttp4'
rootProject.name = 'kotlin-array-simple-string-jvm-okhttp4'

View File

@ -20,4 +20,4 @@ fun <T : Any?> toMultiValue(items: Iterable<T>, collectionFormat: String, map: (
"multi" -> items.map(map)
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
}
}
}

View File

@ -15,4 +15,4 @@ open class ServerException(message: kotlin.String? = null, val statusCode: Int =
companion object {
private const val serialVersionUID: Long = 456L
}
}
}

View File

@ -15,4 +15,4 @@ data class RequestConfig<T>(
val query: MutableMap<String, List<String>> = mutableMapOf(),
val requiresAuthentication: Boolean,
val body: T? = null
)
)

View File

@ -5,4 +5,4 @@ package org.openapitools.client.infrastructure
*/
enum class RequestMethod {
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
}
}

View File

@ -1,2 +1,2 @@
rootProject.name = 'kotlin-array-simple-string-jvm-volley'
rootProject.name = 'kotlin-array-simple-string-jvm-volley'

View File

@ -53,4 +53,4 @@ class CollectionFormats {
}
class SPACEParams : SSVParams()
}
}

View File

@ -61,4 +61,4 @@ interface IRequestFactory {
type: Type,
responseListener: Response.Listener<T>,
errorListener: Response.ErrorListener): Request<T>
}
}

View File

@ -1 +1 @@
rootProject.name = "kotlin-array-simple-string-multiplatform"
rootProject.name = "kotlin-array-simple-string-multiplatform"

View File

@ -4,4 +4,4 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.promise
actual fun <T> runTest(block: suspend (scope : CoroutineScope) -> T): dynamic = GlobalScope.promise { block(this) }
actual fun <T> runTest(block: suspend (scope : CoroutineScope) -> T): dynamic = GlobalScope.promise { block(this) }

View File

@ -7,4 +7,4 @@ class OAuth : Authentication {
val token: String = accessToken ?: return
headers["Authorization"] = "Bearer $token"
}
}
}

View File

@ -20,4 +20,4 @@ fun <T : Any?> toMultiValue(items: Iterable<T>, collectionFormat: String, map: (
"multi" -> items.map(map)
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
}
}
}

View File

@ -169,4 +169,4 @@ open class ApiClient(
RequestMethod.POST -> HttpMethod.Post
RequestMethod.OPTIONS -> HttpMethod.Options
}
}
}

View File

@ -27,4 +27,4 @@ class Base64ByteArray(val value: ByteArray) {
override fun toString(): String {
return "Base64ByteArray(${hex(value)})"
}
}
}

View File

@ -27,4 +27,4 @@ class OctetByteArray(val value: ByteArray) {
override fun toString(): String {
return "OctetByteArray(${hex(value)})"
}
}
}

View File

@ -15,4 +15,4 @@ data class RequestConfig<T>(
val query: MutableMap<String, List<String>> = mutableMapOf(),
val requiresAuthentication: Boolean,
val body: T? = null
)
)

View File

@ -5,4 +5,4 @@ package org.openapitools.client.infrastructure
*/
enum class RequestMethod {
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
}
}

View File

@ -1 +1 @@
rootProject.name = "kotlin-bigdecimal-default-multiplatform"
rootProject.name = "kotlin-bigdecimal-default-multiplatform"

View File

@ -4,4 +4,4 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.promise
actual fun <T> runTest(block: suspend (scope : CoroutineScope) -> T): dynamic = GlobalScope.promise { block(this) }
actual fun <T> runTest(block: suspend (scope : CoroutineScope) -> T): dynamic = GlobalScope.promise { block(this) }

View File

@ -7,4 +7,4 @@ class OAuth : Authentication {
val token: String = accessToken ?: return
headers["Authorization"] = "Bearer $token"
}
}
}

View File

@ -20,4 +20,4 @@ fun <T : Any?> toMultiValue(items: Iterable<T>, collectionFormat: String, map: (
"multi" -> items.map(map)
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
}
}
}

View File

@ -169,4 +169,4 @@ open class ApiClient(
RequestMethod.POST -> HttpMethod.Post
RequestMethod.OPTIONS -> HttpMethod.Options
}
}
}

View File

@ -27,4 +27,4 @@ class Base64ByteArray(val value: ByteArray) {
override fun toString(): String {
return "Base64ByteArray(${hex(value)})"
}
}
}

View File

@ -27,4 +27,4 @@ class OctetByteArray(val value: ByteArray) {
override fun toString(): String {
return "OctetByteArray(${hex(value)})"
}
}
}

View File

@ -15,4 +15,4 @@ data class RequestConfig<T>(
val query: MutableMap<String, List<String>> = mutableMapOf(),
val requiresAuthentication: Boolean,
val body: T? = null
)
)

View File

@ -5,4 +5,4 @@ package org.openapitools.client.infrastructure
*/
enum class RequestMethod {
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
}
}

View File

@ -1,2 +1,2 @@
rootProject.name = 'kotlin-bigdecimal-default-okhttp4'
rootProject.name = 'kotlin-bigdecimal-default-okhttp4'

View File

@ -20,4 +20,4 @@ fun <T : Any?> toMultiValue(items: Iterable<T>, collectionFormat: String, map: (
"multi" -> items.map(map)
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
}
}
}

View File

@ -15,4 +15,4 @@ open class ServerException(message: kotlin.String? = null, val statusCode: Int =
companion object {
private const val serialVersionUID: Long = 456L
}
}
}

View File

@ -15,4 +15,4 @@ data class RequestConfig<T>(
val query: MutableMap<String, List<String>> = mutableMapOf(),
val requiresAuthentication: Boolean,
val body: T? = null
)
)

View File

@ -5,4 +5,4 @@ package org.openapitools.client.infrastructure
*/
enum class RequestMethod {
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
}
}

View File

@ -1,2 +1,2 @@
rootProject.name = 'kotlin-default-values-jvm-okhttp3'
rootProject.name = 'kotlin-default-values-jvm-okhttp3'

View File

@ -20,4 +20,4 @@ fun <T : Any?> toMultiValue(items: Iterable<T>, collectionFormat: String, map: (
"multi" -> items.map(map)
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
}
}
}

View File

@ -15,4 +15,4 @@ open class ServerException(message: kotlin.String? = null, val statusCode: Int =
companion object {
private const val serialVersionUID: Long = 456L
}
}
}

View File

@ -15,4 +15,4 @@ data class RequestConfig<T>(
val query: MutableMap<String, List<String>> = mutableMapOf(),
val requiresAuthentication: Boolean,
val body: T? = null
)
)

View File

@ -5,4 +5,4 @@ package org.openapitools.client.infrastructure
*/
enum class RequestMethod {
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
}
}

View File

@ -1,2 +1,2 @@
rootProject.name = 'kotlin-default-values-jvm-okhttp4'
rootProject.name = 'kotlin-default-values-jvm-okhttp4'

View File

@ -20,4 +20,4 @@ fun <T : Any?> toMultiValue(items: Iterable<T>, collectionFormat: String, map: (
"multi" -> items.map(map)
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
}
}
}

View File

@ -15,4 +15,4 @@ open class ServerException(message: kotlin.String? = null, val statusCode: Int =
companion object {
private const val serialVersionUID: Long = 456L
}
}
}

View File

@ -15,4 +15,4 @@ data class RequestConfig<T>(
val query: MutableMap<String, List<String>> = mutableMapOf(),
val requiresAuthentication: Boolean,
val body: T? = null
)
)

View File

@ -5,4 +5,4 @@ package org.openapitools.client.infrastructure
*/
enum class RequestMethod {
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
}
}

View File

@ -1,2 +1,2 @@
rootProject.name = 'kotlin-default-values-jvm-retrofit2'
rootProject.name = 'kotlin-default-values-jvm-retrofit2'

View File

@ -53,4 +53,4 @@ class CollectionFormats {
}
class SPACEParams : SSVParams()
}
}

View File

@ -1,2 +1,2 @@
rootProject.name = 'kotlin-default-values-jvm-volley'
rootProject.name = 'kotlin-default-values-jvm-volley'

View File

@ -53,4 +53,4 @@ class CollectionFormats {
}
class SPACEParams : SSVParams()
}
}

View File

@ -20,4 +20,4 @@ import org.openapitools.client.models.room.*
// TODO ITransformForStorage
interface ITransformForStorage<T> {
fun toRoomModel(): T
}
}

View File

@ -61,4 +61,4 @@ interface IRequestFactory {
type: Type,
responseListener: Response.Listener<T>,
errorListener: Response.ErrorListener): Request<T>
}
}

View File

@ -1 +1 @@
rootProject.name = "kotlin-default-values-multiplatform"
rootProject.name = "kotlin-default-values-multiplatform"

View File

@ -4,4 +4,4 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.promise
actual fun <T> runTest(block: suspend (scope : CoroutineScope) -> T): dynamic = GlobalScope.promise { block(this) }
actual fun <T> runTest(block: suspend (scope : CoroutineScope) -> T): dynamic = GlobalScope.promise { block(this) }

View File

@ -7,4 +7,4 @@ class OAuth : Authentication {
val token: String = accessToken ?: return
headers["Authorization"] = "Bearer $token"
}
}
}

View File

@ -20,4 +20,4 @@ fun <T : Any?> toMultiValue(items: Iterable<T>, collectionFormat: String, map: (
"multi" -> items.map(map)
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
}
}
}

View File

@ -169,4 +169,4 @@ open class ApiClient(
RequestMethod.POST -> HttpMethod.Post
RequestMethod.OPTIONS -> HttpMethod.Options
}
}
}

View File

@ -27,4 +27,4 @@ class Base64ByteArray(val value: ByteArray) {
override fun toString(): String {
return "Base64ByteArray(${hex(value)})"
}
}
}

View File

@ -27,4 +27,4 @@ class OctetByteArray(val value: ByteArray) {
override fun toString(): String {
return "OctetByteArray(${hex(value)})"
}
}
}

View File

@ -15,4 +15,4 @@ data class RequestConfig<T>(
val query: MutableMap<String, List<String>> = mutableMapOf(),
val requiresAuthentication: Boolean,
val body: T? = null
)
)

View File

@ -5,4 +5,4 @@ package org.openapitools.client.infrastructure
*/
enum class RequestMethod {
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
}
}

View File

@ -1,2 +1,2 @@
rootProject.name = 'kotlin-enum-default-value'
rootProject.name = 'kotlin-enum-default-value'

View File

@ -20,4 +20,4 @@ fun <T : Any?> toMultiValue(items: Iterable<T>, collectionFormat: String, map: (
"multi" -> items.map(map)
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
}
}
}

View File

@ -15,4 +15,4 @@ open class ServerException(message: kotlin.String? = null, val statusCode: Int =
companion object {
private const val serialVersionUID: Long = 456L
}
}
}

Some files were not shown because too many files have changed in this diff Show More