Kotlin
A concise multiplatform language developed by JetBrains
Kotlin Multiplatform のツールを備えた Fleet へようこそ
Kotlin Multiplatform(KMP)はネイティブプログラミングのメリットを維持しながら複数のプラットフォーム間でコードを共有できる、JetBrains が開発したオープンソーステクノロジーです。 対応プラットフォームには iOS、Android、デスクトップ、ウェブなどがあります。
本日(11月 7日)、Fleet における Kotlin Multiplatform サポートのプレビューがリリースされました。これにより、Fleet における既存の広範な Kotlin サポートが強化され、マルチプラットフォームアプリケーションの開発が簡単になります。 iOS と macOS をターゲットにしている場合は、Xcode が必要となりますのでご注意ください。
では、一部の機能を見てみましょう。
単純明快
マルチプラットフォームプロジェクトを開くと、Fleet がプロジェクトビルドファイルの宣言に従って Android や iOS プラットフォーム用の実行構成を自動的に作成します。 この構成は Android Virtual Device または iOS Simulator でアプリケーションを実行するために使用できます。

多言語対応プログラミング
Fleet は多言語対応の IDE であるため、マルチプラットフォームプロジェクトでネイティブコードを扱う際に別のエディターに切り替えたり、ユーザビリティを犠牲にしたりする必要はありません。 Swift コードを編集する際には Kotlin や Java と同様の豊富な機能を期待できるほか、Xcode プロジェクトもフルサポートされます。

コードナビゲーション
Fleet は Swift と Kotlin のクロス言語ナビゲーションをサポートしています。 たとえば、Kotlin 関数に対して Show Usages(使用箇所の表示)アクションを使用する場合、Swift コードからのすべての呼び出しが結果に表示されます。 一致する結果が 1 件のみの場合は、それに対応するファイルが表示されます。
リファクタリング
Fleet でのリファクタリングもクロス言語対応です。 以下の例では、MainViewController 型に対して Rename(名前の変更)リファクタリングを使用すると、そのリファクタリングが Kotlin と Swift の両方のモジュールに適用されます。
デバッグ
Fleet でのデバッグもクロス言語対応です。 Swift コードにブレークポイントを設定し、その状況で値とコールスタックを表示したり、Kotlin 呼び出しをステップインしたりできます。必要に応じて処理を続行することも可能です。
単一の IDE
すでに気付いた方や経験した方もいらっしゃるかもしれませんが、Kotlin Multiplatform アプリケーションを作成する場合は複数の IDE を組み合わせて使用する必要があることもしばしばです。 モバイルをターゲットにする場合は今でも Android Studio と Xcode が必要です。 ただし、Fleet に関してはツールを切り替えずにアプリケーションを開発できる単体 IDE の提供を目標としています(Apple デバイスをターゲットにする場合は Xcode が必要となりますが、通常の作業には不要となる見込みです)。
価格モデル
プレビュー期間中は Kotlin Multiplatform ツールを含め、Fleet は無料のままとなります。 ツールのリリース後の価格モデルは Fleet 本体のモデルに連動する見込みです。 リリース日が近づいたら詳細をお知らせします。
IntelliJ IDEA と IntelliJ プラットフォームに対する JetBrains の約束
Fleet は Swift とすべての Kotlin サポートに IntelliJ のコード処理エンジンを使用しているため、今後も IntelliJ IDEA と IntelliJ プラットフォーム(したがって Android Studio も含む)での Kotlin のサポートを提供し続ける予定です。 また、IntelliJ IDEA で Kotlin を使用する開発者数が増え続けているため、このプラットフォームでのイノベーションとサポートが続くのは確実です。
とはいえ、IntelliJ IDEA のターゲットオーディエンスは今後も主に JVM をターゲットにしているサーバーサイド開発者となるでしょう。 IntelliJ IDEA と Android Studio で Kotlin Multiplatform プロジェクトを開いてナビゲーションとビルドを行うことは可能になりますが、プラットフォーム固有の実行構成や Compose Multiplatform 機能、マルチプラットフォーム開発を容易にするその他多くの機能は Fleet のみでサポートされるようになります。
開始手順
Kotlin Multiplatform の開発に着手し、JetBrains が手がけてきたすべての素晴らしい機能を試すには、JetBrains Toolbox App から Fleet の最新バージョンをインストールしてください。 Kotlin Multiplatform プロジェクトを作成するためのまったく新しいオンラインウェブウィザードも用意されています。
はじめてのアプリケーションを作成する手順を段階的に説明した Kotlin Multiplatform 開発用 Fleet チュートリアルをぜひご覧ください。 KMP サンプルアプリケーションもいくつか用意しましたので、そちらもご覧ください。
フィードバックをお寄せください
Fleet に Kotlin Multiplatform ツールが搭載されてから日がまだ浅く、皆さんからのフィードバックを心待ちにしています。 適切に機能しているものや機能していないもの、不足しているもの、絶対に不可欠なものがあればお聞かせください。 このブログ記事にコメントを残していただくことも、課題トラッカーをご利用いただくこともできます。 また、ツールに関することも含め、Kotlin Multiplatform についてのあらゆるフィードバックは Kotlin Slack の #fleet チャンネルにお寄せいただくことも可能です。
ご協力いただきありがとうございます!
オリジナル(英語)ブログ投稿記事の作者:
Subscribe to Kotlin Blog updates
Discover more
Kotlin Multiplatform 도구가 포함된 Fleet을 만나보세요
Kotlin Multiplatform(KMP)은 JetBrains에서 구축한 오픈 소스 기술로, 이를 이용하면 네이티브 프로그래밍의 이점을 유지하면서 여러 플랫폼 간에 코드를 공유할 수 있습니다. 지원되는 플랫폼에는 iOS, Android, 데스크톱, 웹 등이 포함됩니다.
오늘, Fleet의 Kotlin Multiplatform 지원 테스트 버전이 출시되었습니다. 이에 따라 Fleet에서 이미 제공되던 광범위한 Kotlin 지원이 더욱 확대되어, 멀티플랫폼 애플리케이션 개발을 간소화합니다. 단, iOS 및 macOS를 대상으로 하는 경우 Xcode가 필요합니다.
몇 가지 기능을 살펴보겠습니다.
간편성
멀티플랫폼 프로젝트를 열면 Fleet이 프로젝트 빌드 파일에 선언된 대로 Android 및/또는 iOS 플랫폼에 대한 실행 구성을 자동으로 생성합니다. 이를 사용하여 Android Virtual Device 또는 iOS 시뮬레이터에서 애플리케이션을 실행할 수 있습니다.

다중 언어 프로그래밍
Fleet은 다중 언어 IDE이므로 멀티플랫폼 프로젝트에서 네이티브 코드로 작업할 때 다른 에디터로 전환하거나 불편을 겪을 필요가 없습니다. Swift 코드를 편집할 때 Kotlin 및 Java에서 기대할 수 있는 풍부한 기능을 사용할 수 있는 것은 물론, Xcode 프로젝트도 완벽하게 지원됩니다.

코드 탐색
Fleet은 Swift와 Kotlin 사이에서 언어 간 탐색을 지원합니다. 예를 들어, Kotlin 함수에서 Show Usages(사용 위치 표시) 액션을 사용하면 Swift 코드의 모든 호출이 결과에 표시됩니다. 일치하는 항목이 하나만 있으면 관련 파일이 표시됩니다.
리팩터링
Fleet의 리팩터링도 교차 언어가 지원됩니다. 아래 예에서 MainViewController 타입에 Rename(이름 변경) 리팩터링을 사용하면 리팩터링이 Kotlin과 Swift 모듈 모두에 적용됩니다.
디버그
Fleet의 디버그도 교차 언어가 지원됩니다. Swift 코드에서 중단점을 설정하고, 해당 환경의 값과 호출 스택을 보고, Kotlin 호출을 스텝인투한 후 필요에 따라 계속 진행할 수 있습니다.
단일 IDE
알고 계시거나 경험하셨겠지만 Kotlin Multiplatform 애플리케이션을 만들려면 여러 IDE를 조합하여 사용해야 하는 경우가 종종 있습니다. 모바일을 대상으로 하는 경우에도 Android Studio 및 Xcode가 필요하므로 마찬가지입니다. Fleet의 목표는 도구를 전환할 필요 없이 애플리케이션을 개발할 수 있는 단일 IDE를 제공하는 것입니다(Apple 기기를 대상으로 하는 경우 여전히 Xcode를 설치해야 하지만 일상적 작업에는 필요하지 않음).
가격 모델
테스트 버전 기간 동안 Kotlin Multiplatform 도구가 포함된 Fleet은 무료입니다. 도구가 정식 출시되면 가격 모델이 Fleet 자체의 가격 모델에 따를 것으로 예상됩니다. 출시일이 가까워지면 더 많은 정보를 제공해 드리겠습니다.
IntelliJ IDEA 및 IntelliJ 플랫폼에 대한 JetBrains의 약속
Fleet은 Swift 및 모든 Kotlin 지원을 위해 IntelliJ 코드 처리 엔진을 사용하므로 IntelliJ IDEA 및 IntelliJ 플랫폼(따라서 Android Studio도 포함)에서도 Kotlin을 계속 지원할 예정입니다. 또한 IntelliJ IDEA에서 Kotlin을 사용하는 개발자 층이 계속 늘어나고 있으므로 이 플랫폼의 혁신과 지원은 확실히 계속될 것입니다.
덧붙여, IntelliJ IDEA의 타깃 사용자는 주로 JVM을 대상으로 하는 서버 측 개발자로 유지될 것입니다. IntelliJ IDEA 및 Android Studio에서 Kotlin Multiplatform 프로젝트를 열고 탐색하고 빌드할 수 있지만 플랫폼별 실행 구성, Compose Multiplatform 기능, 그리고 멀티플랫폼 개발에 도움이 되는 기타 다양한 기능은 Fleet에서만 지원됩니다.
시작 방법
Kotlin Multiplatform 개발을 시작하고 JetBrains가 만든 멋진 기능들을 모두 사용해 보려면 JetBrains Toolbox App을 통해 최신 버전의 Fleet을 설치하세요. 또한 Kotlin Multiplatform 프로젝트를 생성하기 위한 새로운 온라인 웹 마법사도 준비되어 있습니다.
첫 애플리케이션 개발을 단계별로 안내하는 Kotlin Multiplatform 개발용 Fleet 튜토리얼을 확인하세요. 또한 JetBrains가 준비한 KMP 샘플 애플리케이션도 살펴볼 수 있습니다.
의견을 남겨주세요
Fleet의 Kotlin Multiplatform 도구는 아직 초기 단계이므로 여러분의 피드백이 필요합니다. 효과적인 점, 그렇지 않은 점, 없어서 아쉬운 점, 꼭 있어야 하는 점이 무엇인지 알려주세요. 이 블로그 게시물에 댓글을 남기거나 이슈 트래커를 사용하세요. Kotlin Slack의 #fleet 채널에서도 도구를 포함하여 Kotlin Multiplatform에 대한 피드백을 공유할 수 있습니다.
감사합니다!
게시물 원문 작성자
Subscribe to Kotlin Blog updates
Discover more
欢迎使用带有 Kotlin Multiplatform Tooling 的 Fleet
Kotlin Multiplatform (KMP) 是 JetBrains 构建的开源技术,允许跨多个平台共享代码,同时保留了原生编程的优势。 支持的平台包括 iOS、Android、桌面、Web 等。
今天,我们在 Fleet 中推出 Kotlin Multiplatform 支持预览版,这将简化多平台应用程序开发,进一步丰富 Fleet 中广泛的 Kotlin 支持。 请注意,如果您的目标是 iOS 和 macOS,则需要 Xcode。
我们来看看其中部分功能。
简洁
打开多平台项目时,Fleet 将自动为 Android 和/或 iOS 平台创建运行配置,如项目构建文件中所声明。 您可以使用它们在 Android 虚拟设备或 iOS 模拟器上执行应用程序。

多语言编程
Fleet 是多语言 IDE,因此,在多平台项目中使用原生代码时,无需切换到不同的编辑器或牺牲实用性。 编辑 Swift 代码时,您将获得与 Kotlin 和 Java 相同的丰富功能,以及对 Xcode 项目的完整支持。

代码导航
Fleet 支持 Swift 与 Kotlin 之间的跨语言导航。 例如,在 Kotlin 函数上使用 Show Usages(显示用法)操作时,Swift 代码中的任何调用都会在结果中显示。 如果存在单个匹配项,则显示关联文件。
重构
Fleet 中的重构也是跨语言的。 在下面的示例中,如果我们在 MainViewController 类型上使用 Rename(重命名)重构,那么重构将同时应用于 Kotlin 和 Swift 模块。
调试
Fleet 中的调试也是跨语言的。 您可以在 Swift 代码中设置断点,查看该环境中的值和调用堆栈,步入 Kotlin 调用,然后根据需要继续。
单一 IDE
如您所知,创建 Kotlin Multiplatform 应用程序通常需要组合使用多个 IDE。 以移动端为目标时,情况相同,因为需要 Android Studio 和 Xcode。 不过,我们在 Fleet 上的目标是提供一个单一 IDE,让您可以在其中开发应用程序而无需切换工具(以 Apple 设备为目标时仍需安装 Xcode,日常工作则不需要)。
定价模型
预览期间,Fleet(包括 Kotlin Multiplatform Tooling)将保持免费。 发布 Kotlin Multiplatform Tooling 时,我们预计定价模型将与 Fleet 本身的定价模型保持一致。 我们将在接近发布日期时提供更多信息。
我们对 IntelliJ IDEA 和 IntelliJ 平台的承诺
Fleet 使用适用于 Swift 的 IntelliJ 代码处理引擎和我们所有的 Kotlin 支持,因此,我们将继续在 IntelliJ IDEA 和 IntelliJ 平台(因此也包括 Android Studio)上提供对 Kotlin 的支持。 此外,在 IntelliJ IDEA 中使用 Kotlin 的开发者数量不断增加,我们向您保证,我们将继续推动对此平台的创新和支持。
话虽如此,IntelliJ IDEA 的目标受众仍将主要是以 JVM 为目标的服务器端开发者。 虽然可以在 IntelliJ IDEA 和 Android Studio 中打开、导航和构建 Kotlin Multiplatform 项目,但其他功能(例如针对特定平台的运行配置、Compose Multiplatform 功能以及其他促进多平台开发的功能)将仅在 Fleet 中受支持。
如何开始
要开始 Kotlin Multiplatform 开发并尝试我们的炫酷功能,您可以通过 JetBrains Toolbox App 安装最新版本的 Fleet。 我们还有一个全新的在线 Web 向导,用于创建 Kotlin Multiplatform 项目。
请务必查看适用于 Kotlin Multiplatform 开发的 Fleet 教程,获取创建您的第一个应用程序的分步指南。 您还可以查看我们准备的一些 KMP 示例应用程序。
我们需要您的反馈
Fleet 中的 Kotlin Multiplatform Tooling 还处于非常早期的阶段,我们希望听到您的反馈。 让我们知道什么有效、什么无效、缺少什么,以及您不能没有什么。 请在这篇博文下留言或使用我们的问题跟踪器。 您还可以在 Kotlin Slack 的 #fleet 频道上分享您对 Kotlin Multiplatform(包括 Kotlin Multiplatform Tooling)的任何反馈。
谢谢!
本博文英文原作者:
Subscribe to Kotlin Blog updates
Discover more
Welcome Fleet with Kotlin Multiplatform Tooling
Kotlin Multiplatform (KMP) is an open-source technology built by JetBrains that allows you to share code across multiple platforms while retaining the benefits of native programming. Supported platforms include iOS, Android, desktop, web, and others.
Today, we’re launching a preview for Kotlin Multiplatform support in Fleet, which simplifies the development of multiplatform applications, adding to the already extensive Kotlin support in Fleet. Please note that if you’re targeting iOS and macOS, you will need Xcode.
Let’s take a look at some of the features.
Simplicity
When you open a multiplatform project, Fleet will automatically create Run Configurations for the Android and/or iOS platforms, as declared in the project build file. You can use these to execute your application on an Android Virtual Device or the iOS Simulator.

Polyglot Programming
Because Fleet is a polyglot IDE, you don’t have to switch to a different editor or compromise usability when working with the native code in your multiplatform project. When editing Swift code, you have the same rich functionality you would expect in Kotlin and Java, as well as full support for Xcode projects.

Code navigation
Fleet supports cross-language navigation between Swift and Kotlin. For example, when you use the Show Usages action on a Kotlin function, any invocations from Swift code will feature in the results. If there is a single match, then the associated file is displayed.

Refactoring
Refactoring in Fleet is also cross-language. In the example below, if we use Rename Refactoring on the MainViewController type, then the refactoring will apply across both Kotlin and Swift modules.

Debugging
Debugging in Fleet is also cross-language. You can set a breakpoint in Swift code, view values and the call stack in that environment, step into a Kotlin call, and then continue as required.

A single IDE
As you may be aware or have experienced, creating Kotlin Multiplatform applications has oftentimes involved needing to use multiple IDEs in combination. This is still the case when targeting mobile, as Android Studio and Xcode are required. However, our goal with Fleet is to provide a single IDE where you can develop applications without needing to switch tools (Xcode will still be required to be installed when targeting Apple devices, but will not be necessary for daily work).
Pricing model
During the Preview period, Fleet, including the Kotlin Multiplatform Tooling, will remain free. Once we release the tooling, we anticipate the pricing model will be in line with that of Fleet itself. We’ll provide more information closer to the release date.
Our commitment to IntelliJ IDEA and the IntelliJ Platform
Fleet uses the IntelliJ code-processing engine for Swift and all of our Kotlin support, and consequently, we will continue to provide support for Kotlin in IntelliJ IDEA and on the IntelliJ Platform (thus also Android Studio). In addition, we have an ever-increasing base of developers using Kotlin in IntelliJ IDEA, and we want to assure you that innovation and support will continue on this platform.
Having said that, the target audience for IntelliJ IDEA will primarily remain that of server-side developers targeting the JVM. While it will be possible to open, navigate, and build Kotlin Multiplatform projects in IntelliJ IDEA and Android Studio, other features such as platform-specific run configurations, Compose Multiplatform features, and many other things that facilitate multiplatform development will be supported in Fleet only.
How to get started
To get started with Kotlin Multiplatform development and try out all of the cool features we have been working on, you can install the latest version of Fleet via the JetBrains Toolbox App. We also have a brand new online Web Wizard for creating Kotlin Multiplatform projects.
Make sure you check out the Fleet for Kotlin Multiplatform Development tutorial for a step-by-step guide on creating your first application. You can also take a look at some of the KMP sample applications we’ve prepared.
We need your feedback
It’s still very early days for Kotlin Multiplatform Tooling in Fleet, and we would love to hear your feedback. Let us know what works, what doesn’t, what is missing, and what you just can’t do without. Leave us a comment on this blog post or use our issue tracker. You can also share any feedback you have on Kotlin Multiplatform, including the tooling, on the #fleet channel on the Kotlin Slack.
Thank you!