mirror of
https://github.com/fankes/moshi.git
synced 2025-10-18 23:49:21 +08:00
Update formatters to latest
Ensure renovate can bump them by specifying full coordinates in toml.
This commit is contained in:
@@ -10,12 +10,15 @@ plugins {
|
||||
}
|
||||
|
||||
enum class TestMode {
|
||||
REFLECT, KAPT, KSP
|
||||
REFLECT,
|
||||
KAPT,
|
||||
KSP,
|
||||
}
|
||||
|
||||
val testMode = findProperty("kotlinTestMode")?.toString()
|
||||
?.let(TestMode::valueOf)
|
||||
?: REFLECT
|
||||
val testMode =
|
||||
findProperty("kotlinTestMode")?.toString()
|
||||
?.let(TestMode::valueOf)
|
||||
?: REFLECT
|
||||
|
||||
when (testMode) {
|
||||
REFLECT -> {
|
||||
|
@@ -10,12 +10,15 @@ plugins {
|
||||
}
|
||||
|
||||
enum class TestMode {
|
||||
REFLECT, KAPT, KSP
|
||||
REFLECT,
|
||||
KAPT,
|
||||
KSP,
|
||||
}
|
||||
|
||||
val testMode = findProperty("kotlinTestMode")?.toString()
|
||||
?.let(TestMode::valueOf)
|
||||
?: KSP
|
||||
val testMode =
|
||||
findProperty("kotlinTestMode")?.toString()
|
||||
?.let(TestMode::valueOf)
|
||||
?: KSP
|
||||
|
||||
when (testMode) {
|
||||
REFLECT -> {
|
||||
|
@@ -1189,6 +1189,7 @@ class GeneratedAdaptersTest {
|
||||
}
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
@Suppress("ktlint:standard:property-naming")
|
||||
class MutableUppercasePropertyName {
|
||||
var AAA: Int = -1
|
||||
var BBB: Int = -1
|
||||
|
@@ -21,6 +21,7 @@ import com.squareup.moshi.JsonWriter
|
||||
import com.squareup.moshi.kotlin.codegen.GeneratedAdaptersTest.CustomGeneratedClass
|
||||
|
||||
// This also tests custom generated types with no moshi constructor
|
||||
@Suppress("ktlint:standard:class-naming")
|
||||
class GeneratedAdaptersTest_CustomGeneratedClassJsonAdapter : JsonAdapter<CustomGeneratedClass>() {
|
||||
override fun fromJson(reader: JsonReader): CustomGeneratedClass? {
|
||||
TODO()
|
||||
|
@@ -569,7 +569,8 @@ class KotlinJsonAdapterTest {
|
||||
data class UsingEnum(val e: KotlinEnum)
|
||||
|
||||
enum class KotlinEnum {
|
||||
A, B
|
||||
A,
|
||||
B,
|
||||
}
|
||||
|
||||
@Test fun interfacesNotSupported() {
|
||||
|
Reference in New Issue
Block a user