Jetpack Compose
Developer(s) | |
---|---|
Repository | |
Written in | Kotlin |
Operating system | Android |
Type | Library |
Website | developer |
Jetpack Compose is an open-source Kotlin-based declarative UI framework for Android developed by Google.[1] The first preview was announced in May 2019,[2] and the framework was made ready for production in July 2021.[1]
History
[edit]The first preview of Jetpack Compose was announced at the Google I/O conference in May 2019.[2] The developer preview was released in October 2019,[3] and the alpha release took place in August 2020.[4]
Compose entered its beta phase in February 2021, with its first production release taking place that August.[5]
Features
[edit]Jetpack Compose supports Android 5.0 and later.[6] It uses the Kotlin programming language, and provides a reactive programming model similar to other UI frameworks such as Vue.js and React Native.[2] Compose is designed to integrate seamlessly with existing Android apps and libraries, allowing developers to gradually migrate their apps to Compose.[5]
In Compose, a user interface is defined using functions that have been annotated with the @Composable
annotation, which are known as composable functions and define the screen's state.[1][7] The annotation is used by the Compose compiler to generate the UI boilerplate code.[7]
The 1.0 release introduced Compose Preview, which is built into Android Studio starting with Arctic Fox. It allows composables to be previewed using different configurations without deploying the app to a device.[8]
Usage
[edit]At the time of Jetpack Compose's 1.0 release, Google said, "There are already over 2,000 apps in the Play Store using Compose – in fact, the Play Store app itself uses Compose."[1] As of October 2022, 16% of the top 1000 apps on the Play Store included Compose. The apps included those from companies such as Airbnb, Lyft and Square.[9] In May 2024, this number had grown to 40%[10].
Google rewrote parts of Android's Settings app using Compose in Android 14.[11] Meta Platforms developed its Threads social media app in five months using Compose.[12][13]
Compose Multiplatform
[edit]Compose Multiplatform is a multi-platform UI framework developed by JetBrains and based on Jetpack Compose. It is a port of Jetpack Compose for Windows, macOS, Linux and the web. Version 1.0 alpha was released in August 2021.[1] iOS support was added in May 2023.[14]
References
[edit]- ^ a b c d e Anderson, Tim (August 6, 2021). "Does the world need another cross-platform framework? Tough, here's JetBrains with Compose Multiplatform". The Register. Archived from the original on March 7, 2024. Retrieved April 14, 2024.
- ^ a b c Lardinois, Frederic (May 7, 2019). "Google launches Jetpack Compose, an open-source, Kotlin-based UI development toolkit". TechCrunch. Archived from the original on February 27, 2024. Retrieved April 14, 2024.
- ^ Protalinski, Emil (October 23, 2019). "Google launches Jetpack Compose developer preview and Android Studio 4.0 Canary". VentureBeat. Archived from the original on December 3, 2022. Retrieved April 14, 2024.
- ^ Bradshaw, Kyle (August 26, 2020). "Jetpack Compose reaches Alpha ahead of full release next year". 9to5Google. Archived from the original on March 30, 2023. Retrieved April 14, 2024.
- ^ a b Bradshaw, Kyle (July 28, 2021). "Google launches Jetpack Compose 1.0, making Android UI design easier w/ Kotlin". 9to5Google. Archived from the original on April 6, 2023. Retrieved April 14, 2024.
- ^ "Set up your Android project | Jetpack Compose". Android Developers. Archived from the original on April 28, 2024. Retrieved April 14, 2024.
- ^ a b Sinicki, Adam (November 10, 2019). "An introduction to Jetpack Compose for quick Android UI designs". Android Authority. Archived from the original on December 1, 2023. Retrieved April 14, 2024.
- ^ Krill, Paul (July 30, 2021). "Jetpack Compose for Android turns GA". InfoWorld. Archived from the original on December 4, 2023. Retrieved April 14, 2024.
- ^ Nikolov, Lazar (April 19, 2023). "Build better Jetpack Compose apps with Sentry". InfoWorld. Archived from the original on December 7, 2023. Retrieved April 14, 2024.
- ^ Google for Developers (May 14, 2024). Developer Keynote (Google I/O '24). Retrieved December 24, 2024 – via YouTube.
{{cite AV media}}
:|last=
has generic name (help) - ^ Bradshaw, Kyle (February 14, 2023). "Google is gradually rewriting Android's Settings app with Jetpack Compose". 9to5Google. Archived from the original on April 20, 2023. Retrieved April 14, 2024.
- ^ Evjen, Yasmine; Muntenescu, Florina (October 27, 2023). "Meta built threads in only 5 months using Jetpack Compose". Android Developers Blog. Archived from the original on February 26, 2024. Retrieved May 15, 2024.
- ^ Li, Abner (March 4, 2024). "Google on how Meta sped up its Android 14 app updates". 9to5Google. Archived from the original on March 5, 2024. Retrieved May 15, 2024.
- ^ Krill, Paul (May 19, 2023). "JetBrains adds iOS support to cross-platform UI framework". InfoWorld. Archived from the original on February 13, 2024. Retrieved April 14, 2024.