https://kotlinlang.org logo
#announcements
Title
# announcements
a

Antanas A.

07/01/2019, 8:44 AM
for jvm is ok, how about js and ios/native?
k

karelpeeters

07/01/2019, 8:46 AM
I'm not that familiar with them, maybe ask in the respective channels #javascript and #kotlin-native?
a

Antanas A.

07/01/2019, 8:48 AM
I've asked this in the past, but still no clear answer how to handle resources in multiplatform uniformly
g

gildor

07/01/2019, 8:48 AM
There is no ready to use solution
a

Antanas A.

07/01/2019, 8:48 AM
Is this string literal restriction is JVM specific?
k

karelpeeters

07/01/2019, 8:48 AM
Yes.
g

gildor

07/01/2019, 8:49 AM
I mean about resources
k

karelpeeters

07/01/2019, 8:49 AM
If you just want a workaround maybe you van split the string in parts and just
+
them together?
g

gildor

07/01/2019, 8:49 AM
How large this “UTF8 string too large”?
a

Antanas A.

07/01/2019, 8:50 AM
@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

Dico

07/01/2019, 9:02 AM
Perhaps it can be stored as raw bytes
2 Views