Skip to content

Releases: JetBrains/compose-multiplatform

1.6.10-beta02

24 Apr 14:05
afe548b
Compare
Choose a tag to compare
1.6.10-beta02 Pre-release
Pre-release

Changes since 1.6.10-beta01

Known issues

Features

Lifecycle

Resources

Navigation

  • Support parsing navigation arguments (#1277, #1289)

Fixes

Multiple Platforms

iOS

Desktop

Web

Navigation

Dependencies

1.6.10-dev1599

23 Apr 21:48
afe548b
Compare
Choose a tag to compare
1.6.10-dev1599 Pre-release
Pre-release
[resources] Add functions to retrieve bytes from drawable or font res…

…ources. (#4651)

Implemented two new experimental functions:
```kotlin
/**
 * Retrieves the byte array of the drawable resource.
 *
 * @param environment The resource environment, which can be obtained from [rememberResourceEnvironment] or [getSystemResourceEnvironment].
 * @param resource The drawable resource.
 * @return The byte array representing the drawable resource.
 */
@ExperimentalResourceApi
suspend fun getDrawableResourceBytes(
    environment: ResourceEnvironment,
    resource: DrawableResource
): ByteArray {...}

/**
 * Retrieves the byte array of the font resource.
 *
 * @param environment The resource environment, which can be obtained from [rememberResourceEnvironment] or [getSystemResourceEnvironment].
 * @param resource The font resource.
 * @return The byte array representing the font resource.
 */
@ExperimentalResourceApi
suspend fun getFontResourceBytes(
    environment: ResourceEnvironment,
    resource: FontResource
): ByteArray {...}
```

fixes https://github.com/JetBrains/compose-multiplatform/issues/4360

1.6.10-dev1596

23 Apr 06:01
41a6d3d
Compare
Choose a tag to compare
1.6.10-dev1596 Pre-release
Pre-release
Update compose compiler version to 1.5.10.2 (#4652)

version bump & test added for reified generic in composable functions

Fixes #3147

1.6.10-dev1593

19 Apr 17:01
41a6d3d
Compare
Choose a tag to compare
1.6.10-dev1593 Pre-release
Pre-release
Update compose compiler version to 1.5.10.2 (#4652)

version bump & test added for reified generic in composable functions

Fixes #3147

1.6.10-dev1590

18 Apr 15:09
2d225f3
Compare
Choose a tag to compare
1.6.10-dev1590 Pre-release
Pre-release
Delete the experimental mark from the stable resources library API (#…

…4623)

And remove internal testing methods

1.6.10-dev1584

16 Apr 14:33
331aec0
Compare
Choose a tag to compare
1.6.10-dev1584 Pre-release
Pre-release
Hot fix integration with cocoapods (#4628)

Get the cocoapods extension from the kotlin instead project object and
configure task dependency lazy

1.6.10-beta01

17 Apr 13:54
331aec0
Compare
Choose a tag to compare
1.6.10-beta01 Pre-release
Pre-release

Changes since 1.6.2

Highlights

Known issues

  • ⚠️ Crash at startup on pre-iOS 17 devices due to loading UITextLoupeSession
  • lifecycle-runtime breaks Compose UI compatibility with Java 11 on desktop, it requires Java 17 or above now.
  • inline fun <reified VM> viewModel(...) is not available from common due to compiler bug. Please use fun <VM> viewModel(KClass, ...) overload instead
  • Compose Multiplatform doesn't provide default ViewModelStoreOwner yet. For using ViewModels outside of NavHost you need to provide custom store owner via LocalViewModelStoreOwner

Features

Multiple Platforms

iOS

Desktop

Web

Resources

Gradle Plugin

Fixes

Multiple Platforms

iOS

Desktop

Web

Resources

  • [Fix resource accessors compilation when there are huge number of resource...
Read more

1.6.10-dev1583

16 Apr 07:06
f0c1094
Compare
Choose a tag to compare
1.6.10-dev1583 Pre-release
Pre-release
v1.6.10-dev1583

[resources] Support SVG drawables for non android platforms (#4605)

1.6.10-dev1580

12 Apr 14:08
994f0c6
Compare
Choose a tag to compare
1.6.10-dev1580 Pre-release
Pre-release
Option to pack jars as uber JAR, support Proguard for uber JAR (#4136)

## Proposed changes
1. Added support to join JARs to the uber JAR with ProGuard, disabled by
default:
```
compose.desktop {
    application {
        buildTypes.release.proguard {
            joinOutputJars.set(true)
        }
    }
}
```
2. All 'release' tasks now really depend on ProGuard, as stated in
[tutorial](https://github.com/JetBrains/compose-multiplatform/tree/master/tutorials/Native_distributions_and_local_execution#minification--obfuscation).

## Testing
- A new auto test

- Manual:
1. Test on Windows/macOs/Linux
2. Test the new Gradle parameter `joinOutputJars`:
```
compose.desktop {
    application {
        buildTypes.release.proguard {
            joinOutputJars.set(true)
        }
    }
}
```
`false` (by default) should generate multiple jars (except for
`package*UberJarForCurrentOS`)
`true` should generate a single jar in a result distribution
3. Test debug tasks:
```
run
runDistributable
createDistributable
packageUberJarForCurrentOS
```
4. Test release tasks:
```
runRelease
runReleaseDistributable
createReleaseDistributable
packageReleaseUberJarForCurrentOS
```
The jars should be reduced in size (because Proguard is enabled in the
release mode)

This should be test by QA.

## Issues fixed
Fixes https://github.com/JetBrains/compose-multiplatform/issues/4129

---------

Co-authored-by: Igor Demin <igordmn@users.noreply.github.com>

1.6.10-dev1578

11 Apr 15:55
Compare
Choose a tag to compare
1.6.10-dev1578 Pre-release
Pre-release
v1.6.10-dev1578

Compose 1.6.2