This is an automated email from the ASF dual-hosted git repository. chaokunyang pushed a commit to branch fix-kotlin-blog-compatibility in repository https://gitbox.apache.org/repos/asf/fory-site.git
commit 811e3f4a7ba3cf715e4d075571a0ec8406960493 Author: chaokunyang <[email protected]> AuthorDate: Tue Sep 8 11:40:59 2026 +0800 Remove Kotlin build compiler version from JSON blog --- blog/2026-09-07-fory_kotlin_json.md | 2 +- .../zh-CN/docusaurus-plugin-content-blog/2026-09-07-fory_kotlin_json.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blog/2026-09-07-fory_kotlin_json.md b/blog/2026-09-07-fory_kotlin_json.md index 2f09c6aa158..682e4e0847a 100644 --- a/blog/2026-09-07-fory_kotlin_json.md +++ b/blog/2026-09-07-fory_kotlin_json.md @@ -227,7 +227,7 @@ The measurements describe the selected models and configuration on one machine. ## JVM, Android, and GraalVM {#jvm-and-deployment-support} -This module targets Kotlin/JVM and does not require `kotlin-reflect`. The runtime is built with Kotlin 2.3.20; model compatibility follows the supported versions of Kotlin's metadata reader. The [installation guide](/docs/json/kotlin#installation) covers compatibility, and the [runtime guide](/docs/json/getting-started) includes the recommended `java.lang.invoke` opening on JDK 25 and later. +This module targets Kotlin/JVM and does not require `kotlin-reflect`. The [installation guide](/docs/json/kotlin#installation) covers compatibility, and the [runtime guide](/docs/json/getting-started) includes the recommended `java.lang.invoke` opening on JDK 25 and later. Android API 26 and later uses interpreted JSON mapping. With R8 or ProGuard enabled, add `fory-json-kotlin-ksp` and annotate required source models with `JsonType` to preserve mapping information. GraalVM Native Image uses the `ForyJsonProvider` workflow to install the Kotlin module and select reachable models for code generation. The [platform guide](/docs/json/kotlin#graalvm-and-android) covers both setups. Kotlin/Native, Kotlin/JS, and Kotlin/Wasm are outside this module's scope. diff --git a/i18n/zh-CN/docusaurus-plugin-content-blog/2026-09-07-fory_kotlin_json.md b/i18n/zh-CN/docusaurus-plugin-content-blog/2026-09-07-fory_kotlin_json.md index 7a1c8dd52d3..80fc84632a3 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-blog/2026-09-07-fory_kotlin_json.md +++ b/i18n/zh-CN/docusaurus-plugin-content-blog/2026-09-07-fory_kotlin_json.md @@ -227,7 +227,7 @@ MediaContent 展示了映射一个通过构造函数创建的小模型并处理 ## JVM、Android 与 GraalVM {#jvm-and-deployment-support} -该模块面向 Kotlin/JVM,无需依赖 `kotlin-reflect`。运行时使用 Kotlin 2.3.20 构建,模型兼容性由 Kotlin 元数据读取器支持的版本决定。[安装指南](/docs/json/kotlin#installation)介绍了兼容性,[运行时指南](/docs/json/getting-started)则涵盖 JDK 25 及更高版本上建议开放的 `java.lang.invoke` 包。 +该模块面向 Kotlin/JVM,无需依赖 `kotlin-reflect`。[安装指南](/docs/json/kotlin#installation)介绍了兼容性,[运行时指南](/docs/json/getting-started)则涵盖 JDK 25 及更高版本上建议开放的 `java.lang.invoke` 包。 Android API 26 及更高版本使用解释执行的 JSON 映射。启用 R8 或 ProGuard 时,应添加 `fory-json-kotlin-ksp`,并为所需的源码模型标注 `JsonType`,以保留映射信息。GraalVM Native Image 通过 `ForyJsonProvider` 安装 Kotlin 模块,并选择可达模型进行代码生成。[平台指南](/docs/json/kotlin#graalvm-and-android)提供了这两种环境的配置方式。Kotlin/Native、Kotlin/JS 和 Kotlin/Wasm 不在此模块的支持范围内。 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
