beigirad
beigirad

Reputation: 5724

Using different versions of Compose and ComposeCompiler

According to Compose to Kotlin Compatibility Map, ComposeCompiler must be compatible with Kotlin version.

Is there this compatibility relation between Compose and ComposeCompiler?

Which one should be newer?

I didn't find any document/reference to describe the relation.

Upvotes: 6

Views: 993

Answers (1)

chuckj
chuckj

Reputation: 29525

It is highly recommended that you use the plugin version matching the library you are using as that combination has received the most testing.

Also, the compose plugin must match the Kotlin compiler version it was intended for so it is recommended that you use the Kotlin compiler version the plugin was built for.

However the minimum current runtime version supported runtime is 1.0.0. This means you can use newer versions of the compiler with older versions of the library.

Beginning with 1.0.0, the Compose Compiler Plugin will feature detect the runtime and generate the code compatible with the runtime it is given. This allows new plugins to be used with older versions of the library. If a feature or optimization requires support from the library and it is not there, it is disabled.

Also, for binary compatibility, the runtime is required to support code generated from older version of the plugin. This allows older versions of the plugin to work with newer libraries.

Upvotes: 7

Related Questions