forked from JetBrains/kotlin-web-site
-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request JetBrains#3558 from JetBrains/add-compose-ios
update: added info about sharing UIs and more
- Loading branch information
Showing
23 changed files
with
175 additions
and
548 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
60 changes: 29 additions & 31 deletions
60
docs/images/multiplatform/kotlin-multiplatform-hierarchical-structure.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
@@ -1,26 +1,38 @@ | ||
[//]: # (title: Kotlin for Android) | ||
|
||
Android mobile development has been Kotlin-first since Google I/O in 2019. | ||
Android mobile development has been [Kotlin-first](https://developer.android.com/kotlin/first) since Google I/O in 2019. | ||
|
||
Over 50% of professional Android developers use Kotlin as their primary language, while only 30% use Java as their | ||
main language. 70% of developers whose primary language is Kotlin say that Kotlin makes them more productive. | ||
|
||
Using Kotlin for Android development, you can benefit from: | ||
|
||
* **Less code combined with greater readability**. Spend less time writing your code and working to understand the code of others. | ||
* **Mature language and environment**. Since its creation in 2011, Kotlin has developed continuously, not only as a language | ||
but as a whole ecosystem with robust tooling. Now it's seamlessly integrated in Android Studio and is actively used by many companies | ||
for developing Android applications. | ||
* **Kotlin support in Android Jetpack and other libraries**. [KTX extensions](https://developer.android.com/kotlin/ktx) add Kotlin language features, | ||
such as coroutines, extension functions, lambdas, and named parameters, to existing Android libraries. | ||
* **Interoperability with Java**. You can use Kotlin along with the Java programming language in your applications without needing to migrate all your code | ||
to Kotlin. | ||
* **Support for multiplatform development**. You can use Kotlin for developing not only Android but also [iOS](https://kotlinlang.org/lp/multiplatform/), backend, and web applications. | ||
Enjoy the benefits of sharing the common code among the platforms. | ||
* **Code safety**. Less code and better readability lead to fewer errors. The Kotlin compiler detects these remaining errors, making the code safe. | ||
* **Less code combined with greater readability**. Spend less time writing your code and working to understand the code | ||
of others. | ||
* **Fewer common errors**. Apps built with Kotlin are 20% less likely to crash based | ||
on [Google's internal data](https://medium.com/androiddevelopers/fewer-crashes-and-more-stability-with-kotlin-b606c6a6ac04). | ||
* **Kotlin support in Jetpack libraries**. [Jetpack Compose](https://developer.android.com/jetpack/compose) is Android's | ||
recommended modern toolkit for building native UI in Kotlin. | ||
[KTX extensions](https://developer.android.com/kotlin/ktx) add Kotlin language features, like coroutines, | ||
extension functions, lambdas, and named parameters to existing Android libraries. | ||
* **Support for multiplatform development**. Kotlin Multiplatform allows development for not only Android but | ||
also [iOS](https://kotlinlang.org/lp/multiplatform/), backend, and web applications. | ||
[Some Jetpack libraries](https://developer.android.com/kotlin/multiplatform) are already multiplatform. | ||
[Compose Multiplatform](https://www.jetbrains.com/lp/compose-multiplatform/), JetBrains' declarative UI framework | ||
based on Kotlin and Jetpack Compose, makes it possible to share UIs across platforms – iOS, Android, desktop, and web. | ||
* **Mature language and environment**. Since its creation in 2011, Kotlin has developed continuously, not only as a | ||
language but as a whole ecosystem with robust tooling. Now it's seamlessly integrated into [Android Studio](https://developer.android.com/studio) | ||
and is actively used by many companies for developing Android applications. | ||
* **Interoperability with Java**. You can use Kotlin along with the Java programming language in your applications | ||
without needing to migrate all your code to Kotlin. | ||
* **Easy learning**. Kotlin is very easy to learn, especially for Java developers. | ||
* **Big community**. Kotlin has great support and many contributions from the community, which is growing all over the world. | ||
According to Google, over 60% of the top 1000 apps on the Play Store use Kotlin. | ||
* **Big community**. Kotlin has great support and many contributions from the community, which is growing all over the | ||
world. Over 95% of the top thousand Android apps use Kotlin. | ||
|
||
Many startups and Fortune 500 companies have already developed Android applications using Kotlin – see the list at [the Google website for Kotlin developers](https://developer.android.com/kotlin). | ||
Many startups and Fortune 500 companies have already developed Android applications using Kotlin, see the list | ||
on [the Google website for Android developers](https://developer.android.com/kotlin/stories). | ||
|
||
If you want to start using Kotlin for Android development, read [Google's recommendation for getting started with Kotlin on Android](https://developer.android.com/kotlin/get-started). | ||
To start using Kotlin for: | ||
|
||
If you're new to Android and want to learn to create applications with Kotlin, check out [this Udacity course](https://www.udacity.com/course/developing-android-apps-with-kotlin--ud9012). | ||
* Android development, read [Google's documentation for developing Android apps with Kotlin](https://developer.android.com/kotlin/get-started). | ||
* Developing cross-platform mobile applications, see [Get started with Kotlin Multiplatform for Android and iOS](multiplatform-mobile-getting-started.md). |
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
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
Oops, something went wrong.