Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark stable classes and enable Compose Compiler reports #4775

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

Goooler
Copy link
Member

@Goooler Goooler commented Sep 6, 2024

Description

https://developer.android.com/develop/ui/compose/performance/stability/fix#configuration-file

Type of change

✅ General change (non-breaking change that doesn't fit the below categories like copyediting)
❌ Bug fix (non-breaking change which fixes an issue)
❌ New feature (non-breaking change which adds functionality)
❌ Breaking change (fix or feature that would cause existing functionality to not work as expected)

@yasanglass
Copy link
Member

@Goooler does this provide any benefit other than being able to drop a dependency and not having to use immutable list class? I have not used this method before and am wondering about possible side-effects.

@Goooler
Copy link
Member Author

Goooler commented Sep 10, 2024

Compose treats immutable collections as stable, now we can mark normal collections stable instead. This will also ensure Compose's smart skipping works efficiently and reduce our package size.

Originally posted by @Goooler in LawnchairLauncher/lawnicons#2280 (comment)

@Goooler Goooler merged commit 5c56691 into 14-dev Sep 12, 2024
5 checks passed
@Goooler Goooler deleted the g/remove-immutable-collections branch September 12, 2024 07:07
nulldrf pushed a commit to nulldrf/lawnchair that referenced this pull request Sep 19, 2024
…ncher#4775)

* Enable stabilityConfigurationFile and reportsDestination

https://developer.android.com/develop/ui/compose/performance/stability/fix#configuration-file

* Remove org.jetbrains.kotlinx:kotlinx-collections-immutable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants