Conversation
…ddingModifierNode
compose/ui/ui/src/skikoMain/kotlin/androidx/compose/ui/node/RootNodeOwner.skiko.kt
Outdated
Show resolved
Hide resolved
…otNodeOwner.skiko.kt Co-authored-by: Andrei Salavei <[email protected]>
...ui/ui/src/uikitInstrumentedTest/kotlin/androidx/compose/ui/layout/WindowInsetsPaddingTest.kt
Show resolved
Hide resolved
ASalavei
left a comment
There was a problem hiding this comment.
Please update release note - the PR not only fixes things, but also adds support for the new API
…d to compose scene
...se/ui/ui/src/uikitInstrumentedTest/kotlin/androidx/compose/ui/keyboard/KeyboardInsetsTest.kt
Show resolved
Hide resolved
MatkovIvan
left a comment
There was a problem hiding this comment.
API/features for 1.10 is already frozen. Blocking until creating a release branch
...se/ui/ui/src/uikitInstrumentedTest/kotlin/androidx/compose/ui/keyboard/KeyboardInsetsTest.kt
Outdated
Show resolved
Hide resolved
compose/ui/ui/src/skikoMain/kotlin/androidx/compose/ui/node/RootNodeOwner.skiko.kt
Outdated
Show resolved
Hide resolved
...ation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/WindowInsetsPadding.kt
Show resolved
Hide resolved
.../src/skikoMain/kotlin/androidx/compose/ui/platform/PlatformWindowInsetsProviderNode.skiko.kt
Outdated
Show resolved
Hide resolved
...ation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/WindowInsetsPadding.kt
Outdated
Show resolved
Hide resolved
| runTestContext: CoroutineContext = EmptyCoroutineContext, | ||
| testTimeout: Duration = Duration.INFINITE, | ||
| semanticsOwnerListener: PlatformContext.SemanticsOwnerListener? = null, | ||
| windowInsets: PlatformWindowInsets? = null, |
There was a problem hiding this comment.
I'm not sure that it's the right way to expose it to public (under annotation but anyway) testing API.
In general, I'd keep this out of scope for now. Our own tests have a number of examples of how to provide PlatformContext inside tests
There was a problem hiding this comment.
It should only be as part of the internal API since the constructor is marked as internal API and also it can only be provided to the runInternalSkikoComposeUiTest which is marked internal. I followed similar approach as with the semanticsOwnerListener above, which can also be provided only in terms of the internal API.
There was a problem hiding this comment.
Well, adding it here indeed doesn't mean that we'll need to support compatiblity forever.
But I still think that the existing pattern (an arg above) is not the right way to expose it.
We might change it in the future, so I won't block PR because of it
compose/ui/ui/src/skikoMain/kotlin/androidx/compose/ui/node/RootNodeOwner.skiko.kt
Outdated
Show resolved
Hide resolved
compose/ui/ui/src/skikoMain/kotlin/androidx/compose/ui/node/RootNodeOwner.skiko.kt
Outdated
Show resolved
Hide resolved
compose/ui/ui/src/skikoMain/kotlin/androidx/compose/ui/node/RootNodeOwner.skiko.kt
Outdated
Show resolved
Hide resolved
compose/ui/ui/src/skikoMain/kotlin/androidx/compose/ui/platform/PlatformWindowInsets.skiko.kt
Outdated
Show resolved
Hide resolved
compose/ui/ui/src/skikoMain/kotlin/androidx/compose/ui/platform/PlatformWindowInsets.skiko.kt
Outdated
Show resolved
Hide resolved
compose/ui/ui/src/skikoMain/kotlin/androidx/compose/ui/window/Dialog.skiko.kt
Show resolved
Hide resolved
|
Please update the API dump to make CI green. The diff should have only stable_prop things, not real API changes |
Migrates window insets padding modifiers from composed API to
InsetsPaddingModifierNode. ProvidesPlatformWindowInsetsthrough the root node modifier to child nodes required for creating window insets padding modifiers.Fixes CMP-8953 Migrate non-Android Insets Padding Modifiers away from "Composed" API to "Modifier.Node"
Fixes CMP-8998 Migrate insets modifiers to
InsetsPaddingModifierElementFixes CMP-9201 ModalBottomSheet padding interaction on iOS in CMP 1.10.0-alpha03
Testing
Adds test of recomposition behavior to
WindowInsetsPaddingTestsTested by existing tests
Release Notes
Fixes - iOS
ModalBottomSheetFeatures - Multiple Platforms
composedAPI toInsetsPaddingModifierNode