Skip to content

Releases: JetBrains/compose-multiplatform

1.6.10-dev1514

14 Mar 16:02
8d17f4e
Compare
Choose a tag to compare
1.6.10-dev1514 Pre-release
Pre-release
Update CHANGELOG.md (1.6.1) (#4477)

Co-authored-by: Ivan Matkov <ivan.matkov@jetbrains.com>

1.6.1

14 Mar 11:13
Compare
Choose a tag to compare

1.6.10-dev1509

12 Mar 05:13
59e37e3
Compare
Choose a tag to compare
1.6.10-dev1509 Pre-release
Pre-release
Imageviewer. Fix compilation of Android target (#4467)

Fix regression after
https://github.com/JetBrains/compose-multiplatform/pull/4433

`./gradlew compileReleaseKotlinAndroid` in `imageviewer` fails with:
```
* What went wrong:
Execution failed for task ':shared:compileReleaseKotlinAndroid'.
> Inconsistent JVM-target compatibility detected for tasks 'compileReleaseJavaWithJavac' (1.8) and 'compileReleaseKotlinAndroid' (17).
```
(JAVA_HOME points to JDK 17)

1.6.10-dev1498

08 Mar 15:14
52c4bf3
Compare
Choose a tag to compare
1.6.10-dev1498 Pre-release
Pre-release
v1.6.10-dev1498

[example] Migrate the image viewer on the new compose resources (#4433)

1.6.10-dev1493

07 Mar 21:51
Compare
Choose a tag to compare
1.6.10-dev1493 Pre-release
Pre-release
v1.6.10-dev1493

Merge remote-tracking branch 'origin/release/1.6.1'

1.6.10-dev1457

29 Feb 16:05
e8e7afa
Compare
Choose a tag to compare
1.6.10-dev1457 Pre-release
Pre-release
v1.6.10-dev1457

Migrate all samples to the new resources library (#4386)

1.6.0-dev1440

21 Feb 22:46
990fbfd
Compare
Choose a tag to compare
1.6.0-dev1440 Pre-release
Pre-release
Update link to setup environment instructions (#4344)

Update links to new
[instructions](https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-multiplatform-setup.html)

It resolves issue:
 - https://github.com/JetBrains/compose-multiplatform/issues/4343

1.6.0

28 Feb 09:44
Compare
Choose a tag to compare

Changes since 1.5.12

Highlights

An overview of highlights for this release is also available in the Compose Multiplatform documentation: What's new in 1.6.0.

Common

iOS, Desktop, Web

iOS

Web

Desktop

Breaking changes

Common

  • Resource library (compose.components.resources) changes
    • resources from *Main\resources should be moved to *Main\composeResources\drawable, commonMain\composeResources\font or *Main\composeResources\files depending on the resource type
    • painterResource("resource.xml") should be replaced by painterResource(Res.drawable.resource)
  • google() maven repository is now required. Add this to build.gradle.kts:
    repositories {
        ...
        google()
    }
    
    If the project doesn't have it, there will be an error Could not find androidx.annotation:annotation:... or Could not find org.jetbrains.compose.collection-internal:collection.
  • Text with lineHeight set is trimmed by default
  • Text with fontSize set without lineHeight inside MaterialTheme has different line height

iOS/Desktop/Web

Desktop

Web (k/js)

  • Libraries which depend on earlier Compose Multiplatform version are not compatible with 1.6.0 anymore. This is because decoys generation was disabled. Projects which apply Compose Compiler plugin manually need to remove this argument: plugin:androidx.compose.compiler.plugins.kotlin:generateDecoys=true.

Features

Common

iOS

Desktop

Web

HTML library

Gradle Plugin

Fixes

iOS/Desktop/Web

iOS

Desktop

Read more

1.6.0-rc03

23 Feb 00:18
Compare
Choose a tag to compare

1.6.0-rc02

16 Feb 19:38
Compare
Choose a tag to compare
1.6.0-rc02 Pre-release
Pre-release

Changes since 1.6.0-rc01

Breaking changes

since 1.6.0-beta01

  • When the resource library is used, resources should be imported explicitly

To quickly change your code to a new state, replace this:

import <modulePackage>.generated.resources.Res

by this:

import <modulePackage>.generated.resources.*

and perform "Code - Optimize Imports" to apply the project code style. If code style doesn't allow wildcrads, import <modulePackage>.generated.resources.* will be replaced by explicit imports.

iOS/desktop/web

Fixes

Resource library

Fixes

Dependencies

This version of Compose Multiplatform is based on the next Jetpack Compose libraries: