icerockdev / moko-resources

Resources access for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev/
Apache License 2.0
1.08k stars 120 forks source link

Change args type of ResourceFormattedStringDesc from List<Any> to List<String> to be able to implement Parcelable and also implement Parcelable on StringDesc #523

Open Pschsch opened 1 year ago

Pschsch commented 1 year ago

We have cases where we need to pass StringDesc as argument to Android's Fragments. Without Parcelable implementation it's not possible. It seems to me, than we can just use additional toString() call on arguments passing to ResourceFormattedStringDesc. But it can break existing users cases who uses numbers to format strings

Alex009 commented 1 year ago

hi! StringDesc is interface, so you can create own ResourceFormattedStringDesc implementation of StringDesc that will be Parcelable.