Compose-Multiplatform-KmpViewModel-Unsplash-Sample
Compose-Multiplatform-KmpViewModel-Unsplash-Sample copied to clipboard
Update dependency org.jetbrains.compose to v1.6.10
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| org.jetbrains.compose | 1.5.12 -> 1.6.10 |
Release Notes
JetBrains/compose-jb (org.jetbrains.compose)
v1.6.10
Changes since 1.6.10-rc02
Fixes
iOS
Dependencies
-
Gradle Plugin
org.jetbrains.compose, version1.6.10-rc03. Based on Jetpack Compose libraries: -
Lifecycle libraries
org.jetbrains.androidx.lifecycle:lifecycle-*:2.8.0-rc03. Based on Jetpack Lifecycle 2.8.0 -
Navigation libraries
org.jetbrains.androidx.navigation:navigation-*:2.7.0-alpha06. Based on Jetpack Navigation 2.7.7
v1.6.2
Changes since 1.6.1
Features
Common
Fixes
iOS, Desktop, Web
- Propagate composition locals to layers in the (re)composition phase
- Add transactions to
FocusOwnerImpltakeFocusandreleaseFocusto prevent crash when a window is re-shown - Fix crash and allow selection in
SelectionContainerto start when drag starts below the bounds of the visible text
iOS
Dependencies
This version of Compose Multiplatform is based on the next Jetpack Compose libraries:
v1.6.1
Changes since 1.6.10-rc01
Known issues
- iOS compilation might fail on some projects with
org.jetbrains.kotlin.backend.konan.llvm.NativeCodeGeneratorException: Exception during generating code for following declaration: private fun $init_global()
Features
Web
Fixes
iOS
Resources
- To disable the Compose Resources publication and the multimodule support in cases of problems add
org.jetbrains.compose.resources.multimodule.disable=trueto the rootgradle.properties - (prerelease fix) Fix resources with cocoapods integration
- (prerelease fix) Fix AGP lint tasks dependency issues
Dependencies
-
Gradle Plugin
org.jetbrains.compose, version1.6.10-rc01. Based on Jetpack Compose libraries: -
Lifecycle libraries
org.jetbrains.androidx.lifecycle:lifecycle-*:2.8.0-rc02. Based on Jetpack Lifecycle 2.8.0-rc01 -
Navigation libraries
org.jetbrains.androidx.navigation:navigation-*:2.7.0-alpha05. Based on Jetpack Navigation 2.7.7
v1.6.0
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
- Resource library improvements (an example project)
- Experimental support is available for tests in common code
- Support Kotlin 2.0.0-Beta4
iOS, Desktop, Web
- Support
LineHeightStyle.Trim - Add a way to use fonts installed on the system
- Add support for text decoration line styles via PlatformTextStyle
iOS
- Native-like caret behaviour by long/single taps in textfields(1, 2)
- Basic accessibility support
Popups/Dialogs can now be displayed outside aViewControllerover native components- Allow selecting
TextinSelectionContainerby double and triple tap
Web
- Compose for Web (Wasm) artifacts are available in Maven Central Warning: Kotlin 1.9.21 has an issue with web target. Use Kotlin 1.9.22.
Desktop
- Proper clipping of
SwingPanelinterop (under an experimental flag, see the link) Popups/Dialogs can now be displayed outside the main window or panel and over native components (under an experimental flag, see the link)
Breaking changes
Common
- Resource library (
compose.components.resources) changes- resources from
*Main\resourcesshould be moved to*Main\composeResources\drawable,commonMain\composeResources\fontor*Main\composeResources\filesdepending on the resource type painterResource("resource.xml")should be replaced bypainterResource(Res.drawable.resource)
- resources from
google()maven repository is now required. Add this tobuild.gradle.kts: repositories { ... google() } If the project doesn't have it, there will be an errorCould not find androidx.annotation:annotation:...orCould not find org.jetbrains.compose.collection-internal:collection.- Text with
lineHeightset is trimmed by default - Text with
fontSizeset withoutlineHeightinsideMaterialThemehas different line height
iOS/Desktop/Web
- Deprecate
public ComposeScenein favour of@InternalComposeUiApi MultiLayerComposeScene - Hide deprecated DropdownMenu overloads
iOS
- Separate platform views for
Popups/Dialogs that are enabled by default, unable to draw anything out of their own bounds (for example, a shadow of the topmost container). It will be fixed in a future version, but if you're relying on this behavior, you can switch back to the old behavior by setting theplatformLayersparameter tofalse:ComposeUIViewController(configure = { platformLayers = false }) { // ... }
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
- Adjust overscroll effect params to match iOS animations
- Add ability to change opacity for compose view
- Introduce
@Composable fun UIKitViewController - Remove iOS experimental flag in gradle.properties
Desktop
- Support select till the end of the file / till the start of the file keyboard actions on Windows
- Add LinuxArm64 target to Compose runtime
- Add dedicated feature flags class for desktop
Web
HTML library
Gradle Plugin
Fixes
iOS/Desktop/Web
- Fix "DropdownMenu performs onDismissRequest twice"
- Use a large rectangle for the picture bounds in RenderNodeLayer.drawLayer to prevent clipping
- Fix closing scene during scroll animation
- Fix "Using
painterResource(:DrawableResource)outside desktop Window can produceUnsatisfiedLinkError" - Fix "Rect::makeLTRB expected l <= r" crashes
- Fix "
TextLayoutResult#getLineForVerticalPositionreturns wrong value + slow performance" - Run all effects before sending synthetic events
Fontconstructor with lazy data loading- Optimise
TextLayoutResult#getLineForOffset - Fix "SwingPanel/UIKitView doesn't apply Modifier.offset if it's after Modifier.size"
- DatePicker. Fix empty row
- DatePicker. Fix selection of the current day
- Fix
LayoutCoordinates.localToWindowcoordinates conversion for non-full Compose components
iOS
- Fixed unexpected fling animation over scrolling content
- Fix UIKitView z-order
- Fix missing case for loading
SystemFonton iOS - Fix selection container crash
- Fix
WindowInfo.containerSizewithoutplatformLayersflag - Disable encoding on separate thread for iOS
- Synchronise IME insets with iOS keyboard
Desktop
- Protect against
MouseInfo.getPointerInfo()returning null inWindowDraggableArea - Support Rtl in
SplitPane - Fix a native crash on
makeGL - Add Arial and Consolas as backup fonts on Linux and mention font name when one fails to load
- Fix blurry app icon in the system application switcher
- Insert a new line on
NumPadEnter - Don't restart the drag gesture when the
onDrag(matcher=changes - Fix "Resizing window on desktop sometimes triggers onClick handlers of Composables"
- Fix "
ComposePaneldoesn't calculate its preferredSize correctly when it's called before doLayout" - Fix input methods on JBR, disable input methods when we lose focus
- Fix "BasicTextField could not input any Chinese character when using JBR"
- Take into account
enabledinscrollablefor mouse input - Fix NPE for getComponentAfter/Before in ComposePanel
- Transparency support for D3D (previously it supported via fallback on OpenGL)
Web
- Add a
SystemThemeObserverimplementation for wasmJs - Fix keyboard events with meta key on wasm/js targets
- Added WASM to
components.uiToolingPreviewlibrary - Fix "The cursor is invisible in compose web"
- Use an alternative implementation of
Image.toBitmap
Gradle Plugin
Dependencies
This version of Compose Multiplatform is based on the next Jetpack Compose libraries:
See the announce of Jetpack Compose 1.6. Notes:
Changes to default font paddingaffects only Android target.Added support for selection by mouse, including text.concerns only Android. Other targets supported it before 1.6.- Some of the features are not ported yet (they will be ported in the next versions):
- BasicTextField2
- Support for nonlinear font scaling
- Multipaltform Drag and drop. It works only for Android right now. For desktop there is the old API
Modifier.onExternalDrag - MultiParagraph.fillBoundingBoxes
See the announce of Material 1.2.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.