Crash when using ProgressIndicator with `accompanist-permissions` 0.34.0
lukaszkalnik opened this issue · 1 comments
lukaszkalnik commented
Describe the bug
There is a crash in CircularProgressIndicator from material3:1.1.2
, apparently caused by changes to animations-core:1.6.0
.
animations-core:1.6.0
is pulled into a project as a transitive dependency of accompanist-permissions:0.34.0
, even though our project uses animations-core:1.5.4
through compose-bom:2023.10.01
.
To Reproduce
Steps to reproduce the behavior:
- Create project with dependencies
implementation(platform("androidx.compose:compose-bom:2023.10.01"))
implementation("androidx.compose.material3:material3")
implementation("com.google.accompanist:accompanist-permissions:0.34.0")
- Use
CircularProgressIndicator
orLinearProgressIndicator
without theprogress
argument (i.e. indefinite). - The app will crash, because
accompanist
pulled in the buggedanimations-core:1.6.0
transitive dependency.
Apparently the bug can be worked around by upgrading the material3
dependency to 1.2.0-alpha10
, which accomodates the changes from animations-core:1.6.0
correctly.
bentrengrove commented
This is a crash in Compose 1.6/BOM 2024.01.00. There is another release of Compose coming to address it.