-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5e256f
commit 786ab7e
Showing
1 changed file
with
47 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
title: Kotlin 技术月报 | 2025 年 1 月 | ||
date: 2025-01-30 | ||
tags: [技术月报] | ||
--- | ||
|
||
为了帮助社区的小伙伴们更好地了解 Kotlin 相关的最新动态,我们决定使用月报的形式,整理展示最近一个月的 Kotlin 技术动态。 | ||
|
||
月报的主要内容包括:整理展示最近一个月的最新技术动态,精选博客,精选视频以及社区活动等方面的信息。 | ||
|
||
## 最新动态 | ||
### Kotlin 2.1.20-Beta1 已发布 | ||
[What's new in Kotlin 2.1.20-Beta1](https://kotlinlang.org/docs/whatsnew-eap.html) | ||
|
||
- IDE 支持:支持 2.1.20-Beta1 的 Kotlin 插件捆绑在最新的 IntelliJ IDEA 和 Android Studio 中,无需在 IDE 中更新插件,只需在构建脚本中更改 Kotlin 版本为 2.1.20-Beta1。 | ||
- Kotlin K2 编译器新特性:从 Kotlin 2.1.20-Beta1 开始,K2 实现的 kapt 编译器插件对所有项目默认启用。自 Kotlin 1.9.20 推出新的 kapt 插件实现以来,团队不断改进其内部实现,使其行为与 K1 kapt 相似并显著提高性能,遇到问题可暂时恢复到以前的插件实现并向问题跟踪器报告。 | ||
- Gradle 支持情况:Kotlin 2.1.20-Beta1 与最新稳定版 Gradle 8.11 兼容并支持其功能,Gradle 8.7 至 8.11 版本均受支持,但使用 Kotlin 多平台 Gradle 插件时在 JVM 目标中调用 withJava () 函数可能会出现弃用警告,团队计划尽快修复。 | ||
|
||
此外 Kotlin 2.1.10-RC2 也已于近期发布,详情信息可见:[https://github.com/JetBrains/kotlin/releases](https://github.com/JetBrains/kotlin/releases) | ||
|
||
### [新版本 IDE 的启动速度变快了?原来是在背后做了这些!| 技术解析](https://mp.weixin.qq.com/s/GUcWyTW3De5oC0Txy4_gkg) | ||
打开项目时也许是开发者需要等待的最常见场景。IntelliJ IDEA 需要加载和同步项目、执行索引编制以及完成许多其他小任务才能启用所有实用功能。 | ||
|
||
本文介绍了在新版本 IntelliJ IDEA 中为提高性能而采取的措施,包括通过技术改进优化 IDE 性能,分阶段同步索引编制等方式优化用户性能。通过以上优化,大约 30% 的用户认为 IntelliJ IDEA 2024.2 让他们能够更快开始编码。 | ||
|
||
![](https://raw.gitmirror.com/RicardoJiang/resource/refs/heads/main/2025/january/p3.webp) | ||
|
||
## 精选博客 | ||
### [Kotlin Multiplatform 2024 年总结,Kotlin 崛起的一年](https://mp.weixin.qq.com/s/C6iXWvcOySPYVAE9QaFxYg) | ||
2024 年是 KMP 崛起的一年,这篇文章回顾了 2024 年 Kotlin Multiplatform(KMP)的发展。 | ||
|
||
- 社区支持:2024 年 Google I/O 官宣支持 KMP 项目,由 JetBrains 主导开发,Google Workspace 投资支持。 | ||
- 库支持拓展:2024 年众多 Jetpack 库新增 Kotlin 多平台支持,涵盖网络、数据处理等领域。 | ||
- 版本更新:年初 Kotlin/Wasm 发布 Alpha 版,Compose Multiplatform 同步支持;Compose Multiplatform 1.6.10 及后续版本有 iOS、Web、编译器等更新;Kotlin 2.0 引入 K2 编译器,IntelliJ IDEA 2024.3 的 K2 模式进入稳定阶段。 | ||
- 工具革新:KMP 未来将用基于 JetBrains Fleet 定制的独立 IDE,klibs.io 平台发布,用于搜索 KMP 库。 | ||
- 鸿蒙适配:2024 年 Kotlin 中文开发者大会讨论 KMP 适配鸿蒙,官方研究相关方案,有 Kotlin/JS 和 Kotlin/Native 两种适配思路待确定。 | ||
- 未来展望:2025 年 JetBrains 将强化 KMP 生态,涉及升级 iOS 版本、支持 Kotlin 转 Swift 及发布独立 IDE 等。 | ||
|
||
![](https://raw.gitmirror.com/RicardoJiang/resource/refs/heads/main/2025/january/p4.webp) | ||
## 社区活动 | ||
### Kotlin 中文开发者大会视频回放 | ||
Kotlin 中文开发者大会视频回放已发布,欢迎点击以下链接观看: | ||
|
||
- [腾讯视频使用 KMP Compose 适配鸿蒙的实践](https://www.bilibili.com/video/BV1ntcJeJEBb/) | ||
- [BiliBili 的鸿蒙之路:从 Kotlin/JS 到 Kotlin/Native 的进化之路](https://www.bilibili.com/video/BV1ntcJeJEsF/) | ||
- [快手团队的 KMP 鸿蒙落地实践](https://www.bilibili.com/video/BV1ntcJeJEYd/) | ||
- [NTCompose:一个基于 KMP 及 Compose 范式和原生渲染的多平台开发框架](https://www.bilibili.com/video/BV1JtcJeJEoQ/) |