https://kotlinlang.org logo
#compose
Title
# compose
k

Konstantin Tskhovrebov

11/14/2023, 4:35 PM
In the latest DEV version of the Compose Multiplatform we reworked the resource library! It is still experimental and a work will continue but I will be appreciate to hear your feedback on it 🙂 1.6.0-dev1276 see the sample app: https://github.com/JetBrains/compose-multiplatform/tree/master/components/resources/demo
👍 6
🎉 9
👍🏻 1
👍🏼 1
👍🏽 1
j

Joel Denke

11/14/2023, 6:01 PM
Sweet, does it support multi Gradle modules and fonts now? :) Couldnt find in sample app.
r

Rafs

11/14/2023, 6:09 PM
This looks amazing. Does it support localized strings yet
k

Konstantin Tskhovrebov

11/15/2023, 9:38 AM
There is no the Mulimodule support because it should be supported on base level in the Kotlin gradle plugin first. Localization and some other qualifiers are in the progress
j

Joel Denke

11/15/2023, 9:50 AM
Right so cant mix strings.xml in Android vs NsLocaleString in iOS? As those not merged in multi module level. Had issues mostly with cocoapods here not really merge all resources across all modules. Solution was merge all into one shared module. I presume the real madness get into dpi qualifiers and animated vs Android drawables for vectors vs pdf in iOS 😁 That I havent bother try solve yet. Like programmatic shift San Francisco icons in iOS vs Android compose material vectors programmatic. If all programmatic for icons would work.
m

Michael Paus

11/15/2023, 11:46 AM
Looking at the
strings.xml
str_template
. How much formatting support is there in a multiplatform setup now? This looks like
String.format
, but that’s only available on the JVM.
k

Konstantin Tskhovrebov

11/15/2023, 1:41 PM
At the moment it is the simplest version of format:
%[index of argument]d
or
%[index of argument]s
. D os S doesn't matter. it will be pasted into the string via
.toString()
We think about a KMP string format but it is not an easy task. the same about plurals. maybe in the future
😢 1
a

andrew

11/16/2023, 8:05 PM
Still, these efforts are appreciated! This is awesome and will help bring the source sets even closer together from a dev experience standpoint. I will say though, multimodule support is something that is a pain point for me too, not to detract from any of this awesome progress.
1
j

Joel Denke

11/16/2023, 8:21 PM
https://blog.jetbrains.com/kotlin/2023/11/kotlin-multiplatform-development-roadmap-for-2024/ Seeing this roadmap I am very hopeful! I appreciate all this effort a lot. I mean sure I want more but also very happy about this direction.
a

andrew

11/16/2023, 8:24 PM
This Amper thing I am reading about seems exciting
1
4 Views