StartAndroid
10.2K subscribers
382 photos
11 videos
5 files
1.83K links
Канал об Android (Андроид) разработке

Сайт - http://startandroid.ru

Чат - https://t.me/startandroidchat

Контакты - https://startandroid.ru/ru/about/cntct5.html

Реклама - https://startandroid.ru/ru/about/reklama.html

РКН - https://shorturl.at/p7iUr
Download Telegram
Заезжаем в Kotlin Multiplatform. Но какой ценой?

О чем поговорим в статье:

Пройдем путь от идеи Kotlin Multiplatform до её реализации в цифрах.

Обсудим, сколько стоило внедрить Kotlin Multiplatform в продукты и к чему это привело.

Проведём ретроспективу: стоило ли это делать вообще и стоит ли инвестировать в эту технологию дальше. А также разберём, сколько это будет стоить в перспективе.


#android #kotlin #multiplatform #kmp

https://habr.com/ru/articles/887574/
4😨2👍1
Несколько дней назад релизнулся Kotlin 2.1.20

Список изменений:

- K2 compiler updates: New default kapt compiler plugin.
- Kotlin Multiplatform: A new DSL to replace Gradle’s Application plugin in multiplatform projects.
- Kotlin/Native: Inlining optimization to improve runtime performance.
- Kotlin/Wasm: Custom formatters are now enabled by default in development builds.
- Gradle support: Support for adding custom publication variants in multiplatform and JVM projects.
- Standard library: Introduction of common atomic types, improved UUID support, and a new time-tracking functionality.
- Compose compiler: Now includes source information by default across all platforms.

#kotlin #release

https://blog.jetbrains.com/kotlin/2025/03/kotlin-2-1-20-released-2/
👍4
Context parameters релизнуты в Beta статусе в Kotlin 2.2.0

Миграция на них с текущих context receivers крайне рекомендуется, т.к. context receivers будут в дальнейшем удалены

#kotlin #contextreceivers #contextparameters

https://blog.jetbrains.com/kotlin/2025/04/update-on-context-parameters/
👍7🥱5😱1
Автор призывает быть внимательнее при использовании массивов в Data классах из-за их реализации equals()

#kotlin #dataclass #array

https://proandroiddev.com/avoid-using-array-in-the-data-class-constructor-in-kotlin-ebc308e46a95
👍5👌5🥴31
Последние новости из мира Kotlin

- Kotlin 2.2 and language evolution
- K2 compiler: Now the default in IntelliJ IDEA 2025.1
- New language features on the way
- Kotlin build tool innovation – Amper
- Growth of the Kotlin Foundation and reopening of the Grants Program
- Introducing Koog: A framework for building AI agents in Kotlin (now open source)
- Kotlin Multiplatform: New KMP plugin in IntelliJ IDEA + Android Studio and Compose Multiplatform Updates
- Compose Multiplatform for iOS is Stable
- Kotlin/Wasm and Compose for web progress
- Kotlin for server side: Growing adoption and Spring partnership
- Backend ecosystem: Ktor 3 and revamped Exposed
- Official Kotlin LSP in development

#kotlin #kmp #amper #multiplatform

https://blog.jetbrains.com/kotlin/2025/05/kotlinconf-2025-language-features-ai-powered-development-and-kotlin-multiplatform/
👍6💩41👎1
Несколько дней назад вышел Kotlin 2.2.0

What's new

Language: new language features in preview, including context parameters. Several previously experimental features are now Stable, such as guard conditions, non-local break and continue, and multi-dollar interpolation.

Kotlin compiler: unified management of compiler warnings.

Kotlin/JVM: changes to default method generation for interface functions.

Kotlin/Native: LLVM 19 and new features for tracking and adjusting memory consumption.

Kotlin/Wasm: separated Wasm target and the ability to configure Binaryen per project.

Kotlin/JS: fix for the copy() method generated for @JsPlainObject interfaces.

Gradle: binary compatibility validation in the Kotlin Gradle plugin.

Standard library: stable Base64 and HexFormat APIs.

Documentation: our documentation survey is open, and notable improvements have been made to the Kotlin documentation.

#kotlin #release

https://kotlinlang.org/docs/whatsnew22.html
9
Видео о проблеме забытых значений. Когда функция вызывается, но результат не используется. Самый распространенный пример - list.sorted().

#kotlin

https://www.youtube.com/watch?v=OyEfB6Q4Y0s
4👍2
Rich Errors в Kotlin 2.4: шаг вперёд или шаг в сторону?

Вместо того чтобы выбрасывать исключения, теперь функции могут возвращать возможные ошибки как часть своей сигнатуры:

fun fetchUser(): User | NetworkError

Такой подход делает потенциальные сбои явными, упрощает тестирование и избавляет от try-catch для предсказуемых ошибок. Новинка уже доступна в Kotlin 2.4 и, по мнению авторов, особенно полезна в бизнес-логике.


#kotlin #exception #error

https://habr.com/ru/companies/spring_aio/articles/931148/
🤔11👍10👎6🖕1