-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Serialization Configuration for Char and Upgrade Kotlin (#75)
* fix: Wrong serialization of strings containing commas (#68) * feat: The configuring of char serialization feat: Add char serialization using Unicode code points fix: Correct serialization for chars with special characters * fix: switch JS backend from BOTH to IR * feat: Upgrade Kotlin to 2.0.0 Also: Updated kotlinx.serialization to 1.7.0 for compatibility * refactor: use `contextualDecodingException` when failing to decode a char * refactor: renamed elements of CharSerialization * test: add test for char serialization
- Loading branch information
Showing
16 changed files
with
235 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
.idea/ | ||
.gradle/ | ||
.kotlin/ | ||
build/ | ||
.idea_modules/ | ||
hs_err_pid* | ||
*.hprof | ||
local.properties | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,41 @@ | ||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget | ||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | ||
|
||
plugins { | ||
java | ||
kotlin("jvm") | ||
kotlin("kapt") | ||
kotlin("plugin.serialization") | ||
id("me.champeau.gradle.jmh") | ||
id("me.champeau.jmh") | ||
} | ||
apply(plugin = "me.champeau.gradle.jmh") | ||
apply(plugin = "me.champeau.jmh") | ||
|
||
dependencies { | ||
api(kotlin("stdlib-jdk8")) | ||
api("org.openjdk.jmh:jmh-core:1.23") | ||
api("org.openjdk.jmh:jmh-generator-annprocess:1.21") | ||
api("org.openjdk.jmh:jmh-core:1.37") | ||
api("org.openjdk.jmh:jmh-generator-annprocess:1.37") | ||
api(project(":yamlkt")) | ||
api(kotlinx("serialization-core", Versions.serialization)) | ||
api(kotlinx("serialization-json", Versions.serialization)) | ||
kapt("org.openjdk.jmh:jmh-generator-annprocess:1.21") | ||
kapt("org.openjdk.jmh:jmh-generator-annprocess:1.37") | ||
api("com.charleskorn.kaml:kaml:0.17.0") | ||
api("org.yaml:snakeyaml:1.26") | ||
api("com.google.code.gson:gson:2.8.6") | ||
api("com.alibaba:fastjson:1.2.75") | ||
api("com.google.code.gson:gson:2.11.0") | ||
api("com.alibaba:fastjson:1.2.83") // Next major: 2.0.51 | ||
} | ||
|
||
|
||
group = "" | ||
|
||
jmh { | ||
include = listOf("DeserializingTest") | ||
includes.set(listOf("DeserializingTest")) | ||
} | ||
|
||
val compileKotlin: KotlinCompile by tasks | ||
compileKotlin.kotlinOptions { | ||
jvmTarget = "1.8" | ||
compileKotlin.compilerOptions { | ||
jvmTarget.set(JvmTarget.JVM_1_8) | ||
} | ||
val compileTestKotlin: KotlinCompile by tasks | ||
compileTestKotlin.kotlinOptions { | ||
jvmTarget = "1.8" | ||
compileTestKotlin.compilerOptions { | ||
jvmTarget.set(JvmTarget.JVM_1_8) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
# style guide | ||
kotlin.code.style=official | ||
kotlin.incremental.multiplatform=true | ||
kotlin.js.compiler=both | ||
kotlin.native.ignoreDisabledTargets=true | ||
systemProp.org.gradle.internal.publish.checksums.insecure=true | ||
org.gradle.vfs.watch=true | ||
|
||
kotlin.mpp.enableCompatibilityMetadataVariant=true | ||
kotlin.mpp.enableCInteropCommonization=true | ||
org.gradle.jvmargs=-Xmx2g "-XX:MaxMetaspaceSize=2g" | ||
kotlin.mpp.enableCInteropCommonization=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
config.client = config.client || {} | ||
config.client.mocha = config.client.mocha || {} | ||
config.client.mocha.timeout = '30s' | ||
config.browserNoActivityTimeout = 30000 | ||
config.browserDisconnectTimeout = 30000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.