Posted on

Kotlin Explorer

Kotlin Explorer — это настольный инструмент для быстрого изучения дизассемблированного кода на Kotlin.

Он позволяет быстро и удобно дизассемблировать Kotlin-код в:

  • байткод Java,
  • байткод Android DEX,
  • ассемблер Android OAT (AOT-компиляция).

Как использовать

После запуска Kotlin Explorer введите корректный Kotlin-код в левую панель, затем нажмите Build > Build & Disassemble или используйте Cmd-Shift-D (macOS) / Ctrl-Shift-D (Linux и Windows).

По умолчанию:

  • средняя панель покажет DEX-байткод Android,
  • правая панель — нативный ассемблер, полученный в результате предварительной компиляции (AOT).
    Видимость панелей настраивается через меню View.

Возможности

  • Build > Optimize with R8 — включает оптимизации R8. Может повлиять на отображение номеров строк исходного кода в байткоде и DEX.
  • View > Sync Lines — синхронизация текущей строки между исходным кодом, байткодом и DEX. Для корректной работы может потребоваться отключение R8.
  • View > Presentation Mode — увеличивает размер шрифта для презентаций.
  • Build > Build on Startup — автоматическая компиляция при запуске приложения.
  • Build > Run — компиляция и локальный запуск Kotlin-кода. Результаты отображаются в логах.
  • Нажатие на команду перехода (jump instruction) показывает стрелку к целевой инструкции.
  • Отображается количество инструкций и ветвлений на метод.
  • Клик по инструкции или регистру подсвечивает все их вхождения.
  • Встроенная документация по aarch64 (ARM 64-bit). Включается через View > Show Logs & Documentation.

https://github.com/romainguy/kotlin-explorer

Posted on

AI Assistant Comes to Kotlin Developers in Android Studio

Kotlin developers can now enhance their workflows in Android Studio with the new JetBrains AI Assistant plugin, which is now available in Beta.

This plugin offers AI-powered coding assistance, including code suggestions, AI-driven explanations, refactorings, commit message generation, and more – all within Android Studio. Backed by large language models (LLMs) from both JetBrains and third parties, it helps you write better code, faster.

Posted on

Introducing klibs.io: A New Way to Discover Kotlin Multiplatform Libraries

Kotlin Multiplatform is growing rapidly, with its ecosystem expanding and the number of libraries increasing by 35% in 2024 alone. However, with more libraries available than ever, finding the right one for your use case and target platforms can still be a challenge. Whether you’re looking for a solution to handle permissions on iOS and Android or searching for a Compose Multiplatform calendar component that supports both mobile and web, the challenge isn’t just finding one library – it’s having all of the options clearly presented so you can compare and choose the best fit. Today, we’re excited to introduce klibs.io – our new service designed to make finding Kotlin Multiplatform libraries faster and easier.

Posted on

Kotlin 2.1.0 Released

[https://blog.jetbrains.com/kotlin/2024/11/kotlin-2-1-0-released/]

https://t.me/arvidroid/552

What’s new:

New language features in preview: Guard conditions in when with a subject, non-local break and continue, and multi-dollar string interpolation.

K2 compiler updates: More flexibility around compiler checks and improvements to the kapt implementation.

Kotlin Multiplatform: Stable Gradle DSL for compiler options and many other improvements.

Kotlin/Native: Improved support for iosArm64 and other updates.

Kotlin/Wasm: Multiple updates, including support for incremental compilation.

Gradle support: Improved compatibility with newer versions of Gradle and the Android Gradle plugin, along with updates to the Kotlin Gradle plugin API.