Compose Compiler
Latest Update | Current Stable Release | Next Release Candidate | Beta Release | Alpha Release |
---|---|---|---|---|
April 7, 2021 | - | - | 1.0.0-beta04 | - |
Structure
Compose is combination of 6 Maven Group Ids within androidx
. Each Group
contains a targeted subset of functionality, each with it's own set of release
notes.
This table explains the groups and links to each set of release notes.
Group | Description |
---|---|
compose.animation | Build animations in their Jetpack Compose applications to enrich the user experience. |
compose.compiler | Transform @Composable functions and enable optimizations with a Kotlin compiler plugin. |
compose.foundation | Write Jetpack Compose applications with ready to use building blocks and extend foundation to build your own design system pieces. |
compose.material | Build Jetpack Compose UIs with ready to use Material Design Components. This is the higher level entry point of Compose, designed to provide components that match those described at www.material.io. |
compose.runtime | Fundamental building blocks of Compose's programming model and state management, and core runtime for the Compose Compiler Plugin to target. |
compose.ui | Fundamental components of compose UI needed to interact with the device, including layout, drawing, and input. |
Declaring dependencies
To add a dependency on Compose, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.
Add the dependencies for the artifacts you need in the build.gradle
file for
your app or module:
dependencies { implementation "androidx.compose.compiler:compiler:1.0.0-beta04" } android { buildFeatures { compose true } composeOptions { kotlinCompilerVersion "1.4.32" kotlinCompilerExtensionVersion "1.0.0-beta04" } } tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach { kotlinOptions { jvmTarget = "1.8" } }
For more information about dependencies, see Add build dependencies.
Feedback
Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.
See the Issue Tracker documentation for more information.
Version 1.0.0
Version 1.0.0-beta04
April 7, 2021
androidx.compose.compiler:compiler:1.0.0-beta04
is released. Version 1.0.0-beta04 contains these commits.
Version 1.0.0-beta03
March 24, 2021
androidx.compose.compiler:compiler:1.0.0-beta03
is released. Version 1.0.0-beta03 contains these commits.
Version 1.0.0-beta02
March 10, 2021
androidx.compose.compiler:compiler:1.0.0-beta02
is released. Version 1.0.0-beta02 contains these commits.
Version 1.0.0-beta01
February 24, 2021
androidx.compose.compiler:compiler:1.0.0-beta01
is released. Version 1.0.0-beta01 contains these commits.
This is the first release of Compose 1.0.0 Beta.
Version 1.0.0-alpha12
February 10, 2021
androidx.compose.compiler:compiler:1.0.0-alpha12
is released. Version 1.0.0-alpha12 contains these commits.
Version 1.0.0-alpha11
January 28, 2021
androidx.compose.compiler:compiler:1.0.0-alpha11
is released. Version 1.0.0-alpha11 contains these commits.
Version 1.0.0-alpha10
January 13, 2021
androidx.compose.compiler:compiler:1.0.0-alpha10
is released. Version 1.0.0-alpha10 contains these commits.
Version 1.0.0-alpha09
December 16, 2020
androidx.compose.compiler:compiler:1.0.0-alpha09
is released. Version 1.0.0-alpha09 contains these commits.
Version 1.0.0-alpha08
December 2, 2020
androidx.compose.compiler:compiler:1.0.0-alpha08
is released. Version 1.0.0-alpha08 contains these commits.
Version 1.0.0-alpha07
November 11, 2020
androidx.compose.compiler:compiler:1.0.0-alpha07
is released. Version 1.0.0-alpha07 contains these commits.
New Features
- Stability Inference & Propagation. The Compose Compiler Plugin will analyze types it compiles to infer whether or not it is eligible for certain optimizations by the runtime. This inferred result is then synthesized as metadata onto the class to be utilized by the compiler in other modules. Furthermore, the runtime result of these inferences is passed along in metadata passed to composable calls during composition. This necessitated a different metadata protocol for composable functions, which means that composable functions compiled with the alpha07 compiler will not be binary compatible with composable functions compiled with any earlier compiler version. (aosp/1431988)
Version 1.0.0-alpha06
October 28, 2020
androidx.compose.compiler:compiler:1.0.0-alpha06
is released. Version 1.0.0-alpha06 contains these commits.
Version 1.0.0-alpha05
October 14, 2020
androidx.compose.compiler:compiler:1.0.0-alpha05
is released. Version 1.0.0-alpha05 contains these commits.
Version 1.0.0-alpha04
October 1, 2020
androidx.compose.compiler:compiler:1.0.0-alpha04
is released. Version 1.0.0-alpha04 contains these commits.
androidx.compose:compose-compiler
has been refactored to androidx.compose.compiler:compiler
.
This is the first release in the new group.