Hello @alex009! Is there any way to read a ByteArray from one of the generated resources?
I'm trying to implement Compottie, and it needs a ByteArray to load the animations that I have added to the assets folder.
Copy code
val composition by rememberLottieComposition {
LottieCompositionSpec.DotLottie(
archive = CoreRes.assets.armRaise_lottie.readBytes(), // readBytes() would be great <-----
animationId = animationId
)
}
a
alex009
06/25/2025, 9:46 AM
hi. please create expect/actual extension function for AssetResource. check readText extension to do simmilar logic for your case