In the latest DEV version of the Compose Multiplat...
# compose
k
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
๐Ÿ‘ 8
๐ŸŽ‰ 10
๐Ÿ‘๐Ÿป 1
๐Ÿ‘๐Ÿผ 1
๐Ÿ‘๐Ÿฝ 1
j
Sweet, does it support multi Gradle modules and fonts now? :) Couldnt find in sample app.
r
This looks amazing. Does it support localized strings yet
k
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
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
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
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
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
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
This Amper thing I am reading about seems exciting
โž• 1
183 Views