for jvm is ok, how about js and ios/native?
# announcements
a
for jvm is ok, how about js and ios/native?
k
I'm not that familiar with them, maybe ask in the respective channels #javascript and #kotlin-native?
a
I've asked this in the past, but still no clear answer how to handle resources in multiplatform uniformly
g
There is no ready to use solution
a
Is this string literal restriction is JVM specific?
k
Yes.
g
I mean about resources
k
If you just want a workaround maybe you van split the string in parts and just
+
them together?
g
How large this “UTF8 string too large”?
a
@gildor I've opened issue for resources https://github.com/Kotlin/kotlinx-io/issues/13
@karelpeeters I've just splitted into lines with """content"" + """content2""" + """content3""" but still got the same error, maybe kotlinc do some optimizations and joins into single line
work arrounded by listOf("""line1""", """line2""", ....) 😃
d
Perhaps it can be stored as raw bytes