Update runtime dependency in kotlinx.serialization plugin tests to 1.4.1
This commit is contained in:
committed by
Space Team
parent
14544c0180
commit
a1894ed027
@@ -29,8 +29,8 @@ dependencies {
|
||||
testImplementation(project(":kotlinx-serialization-compiler-plugin.backend"))
|
||||
testImplementation(project(":kotlinx-serialization-compiler-plugin.cli"))
|
||||
|
||||
testImplementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.4.0-RC")
|
||||
testImplementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0-RC")
|
||||
testImplementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.4.1")
|
||||
testImplementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1")
|
||||
|
||||
testRuntimeOnly(intellijCore())
|
||||
testRuntimeOnly(commonDependency("org.jetbrains.kotlin:kotlin-reflect")) { isTransitive = false }
|
||||
|
||||
@@ -25,7 +25,7 @@ fun testSerializers(): String {
|
||||
if (!str1.contains("kotlinx.serialization.internal.EnumSerializer")) return str1
|
||||
|
||||
/**
|
||||
* Serialization 1.4.1+ have runtime factories to create EnumSerializer instead of synthetic $serializer, saving bytecode
|
||||
* Serialization 1.5.0+ have runtime factories to create EnumSerializer instead of synthetic $serializer, saving bytecode
|
||||
* and bringing consistency. After updating the version, uncomment this block.
|
||||
*/
|
||||
// val str2 = cs[1].toString()
|
||||
|
||||
@@ -7,6 +7,7 @@ import kotlinx.serialization.encoding.*
|
||||
|
||||
enum class SimpleEnum { A, B }
|
||||
|
||||
// Annotated enums do not require @Serializable if runtime has proper factory funciton (runtime ver. >= 1.5.0)
|
||||
<!EXPLICIT_SERIALIZABLE_IS_REQUIRED!>enum<!> class MarkedNameEnum { @SerialName("a") A, B}
|
||||
|
||||
@Serializable
|
||||
|
||||
@@ -25,8 +25,8 @@ fun testSerializers(): String {
|
||||
if (!str1.contains("kotlinx.serialization.internal.EnumSerializer")) return str1
|
||||
|
||||
/**
|
||||
* Serialization 1.4.1+ have runtime factories to create EnumSerializer instead of synthetic $serializer, saving bytecode
|
||||
* and bringing consistency. After updating the version, uncomment this block.
|
||||
* Serialization 1.5.0+ have runtime factories to create EnumSerializer instead of synthetic $serializer, saving bytecode
|
||||
* and bringing consistency.
|
||||
*/
|
||||
// val str2 = cs[1].toString()
|
||||
// if (!str2.contains("kotlinx.serialization.internal.EnumSerializer")) return str2
|
||||
|
||||
Reference in New Issue
Block a user