TrainerSnow / oneui-compose

Enables Jetpack Compose developers the ability to incorporate Samsung's OneUI design-system into their applications, to match the visuals of prebuilt Samsung apps.
Apache License 2.0
28 stars 3 forks source link

androidx.compose.foundation:foundation needs to be included in apps #25

Closed TrainerSnow closed 5 months ago

TrainerSnow commented 1 year ago

An app that uses the lib has to include the androidx.compose.foundation:foundation library, with the same version as the lib uses. If it's not included, you get a runtime error on startup:

java.lang.NoSuchMethodError: No interface method getCurrentCompositionLocalMap()Landroidx/compose/runtime/CompositionLocalMap; 
in class Landroidx/compose/runtime/Composer; or its super classes (declaration of 'androidx.compose.runtime.Composer' 
appears in /data/app/~~srmKWT9Y3vJL-xWBuk8YlA==/com.snow.diary-aHFF3D3ffiKJeW9noidtWQ==/base.apk)

at org.oneui.compose.widgets.box.RoundedCornerBoxKt.RoundedCornerBox-aA_HZ9I(RoundedCornerBox.kt:134)

As mentioned, a workaround is adding the dependency to the foundation lib.

TrainerSnow commented 5 months ago

fixed by 0.6.0