Skip to content

Add common logic for supporting UiMediaScope in Skiko platforms - #3339

Merged
Ivan Matkov (MatkovIvan) merged 9 commits into
JetBrains:jb-mainfrom
ApoloApps:uiMediaSupportInCommon
Sep 1, 2026
Merged

Add common logic for supporting UiMediaScope in Skiko platforms#3339
Ivan Matkov (MatkovIvan) merged 9 commits into
JetBrains:jb-mainfrom
ApoloApps:uiMediaSupportInCommon

Conversation

@ApoloApps

@ApoloApps Apolo (ApoloApps) commented Aug 25, 2026

Copy link
Copy Markdown

Smaller change to support UiMediaScope in skiko platforms

Fixes CMP-10481 (common part)

iOS PR: #3340
Desktop PR: #3341

Release Notes

Features - Multiple Platforms

  • Add support for mediaQuery calls which allows to modify Composables depending on device characteristics

@ApoloApps

Copy link
Copy Markdown
Author

Ivan Matkov (@MatkovIvan)

}
}

private object NoOpMediaEnvironment : UiMediaScope {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "No-Op" is the wrong name here because UiMediaScope doesn't do any "ops"; it only provides information.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renamed to EmptyMediaEnvironment

@ApoloApps

Copy link
Copy Markdown
Author

Alexander Maryanovsky (@m-sasha) if everything is fine with this pr, I would like to get it merged asap (when y'all have time obviously). The changes in this pr need to be rebased in other PRs to avoid confusion on those

@m-sasha

Copy link
Copy Markdown

It looks ok to me, but we should have another set of eyes to look first.

@ApoloApps

Copy link
Copy Markdown
Author

What a weird check error, only seems to happen in one and seems related to the android github actions?

The job is failing during Android Emulator setup

@MatkovIvan
Ivan Matkov (MatkovIvan) merged commit 91413f8 into JetBrains:jb-main Sep 1, 2026
19 checks passed
@MatkovIvan

Copy link
Copy Markdown

Thanks for the contribution ❤️

Igor Demin (igordmn) pushed a commit that referenced this pull request Sep 1, 2026
#3339's follow-up
[CMP-10709](https://youtrack.jetbrains.com/issue/CMP-10709) Support
`mediaQuery`, `derivedMediaQuery`

## Release Notes
N/A
@ApoloApps
Apolo (ApoloApps) deleted the uiMediaSupportInCommon branch September 1, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants