airbnb / lottie-android

Render After Effects animations natively on Android and iOS, Web, and React Native
http://airbnb.io/lottie/
Apache License 2.0
34.92k stars 5.4k forks source link

Migrating Compose-BOM library to alpha version. #2471

Closed alp-well closed 5 months ago

alp-well commented 5 months ago

Lottie is supported and developed on nights and weekends. Issues from Lottie sponsors will be prioritized.

If you don't use this template, your issue will be closed. Delete this text once completed.

Is your feature request related to a problem? Please describe. You are currently using the official compose-bom version. This version allows the implementation of some unwanted libraries. For example, the material2 library should be migrated to material3. Even though you are not using material 2 in the lottie compose library, due to compose-bom, we see the material library in the dependency tree. This means we have to implement an extra library while using lottie compose. Current dependency tree:

+--- com.airbnb.android:lottie-compose:6.3.0 | +--- androidx.compose:compose-bom:{require 2023.08.00; reject _} -> 2023.08.00 | | +--- androidx.compose.foundation:foundation:1.5.0 -> 1.6.0-rc01 (c) | | +--- androidx.compose.foundation:foundation-android:1.5.0 -> 1.6.0-rc01 (c) | | +--- androidx.compose.material:material:1.5.0 -> 1.6.0-rc01 (c)

Describe the solution you'd like If you use compose alpha edition (current version : 2024.02.00-alpha02) problem will fixed. Compose bom library chrisbanes

Describe alternatives you've considered The only alternative solution I can think of for this is not to import the unused dependencies using exclude function in gradle for compose-bom library. However, this solution seems a bit hacky.

Additional context No additional context. Thanks for developing this awesome library.