Thread
#multiplatform
    a

    Alfred Lopez

    1 year ago
    Can java.io be used in multiplatform or is there an equivalent kotlin package that I need to use? Or is there a "multiplatform" properties file loader that anybody knows about? Thanks!
    aleksey.tomin

    aleksey.tomin

    1 year ago
    No java.io What class do you want to use?
    m

    Marc Knaup

    1 year ago
    kotlinx-serialization
    has experimental
    properties
    support:https://github.com/Kotlin/kotlinx.serialization/tree/master/formats#properties
    a

    Alfred Lopez

    1 year ago
    I'm BufferedReader / File / FileReader / Reader
    m

    Marc Knaup

    1 year ago
    As for loading files, there’s no multiplatform way afaik.
    a

    Alfred Lopez

    1 year ago
    ic
    Mayank

    Mayank

    1 year ago
    I think Korio may work for your use casehttps://korlibs.soywiz.com/korio/
    a

    Alfred Lopez

    1 year ago
    I looked into the whole korlibs but there's no documentation. Apparently, I need to read the source code to grok how to use it.
    But I'll look at it again. Thanks!
    Mayank

    Mayank

    1 year ago
    Agreed, documentation is lacking. You can join Slack/Discord channels mentioned on the site, the community might be able to help.
    aleksey.tomin

    aleksey.tomin

    1 year ago
    https://korlibs.soywiz.com/korio/
    Http server? Even in native? Looks like the great library.
    Oleg Yukhnevich

    Oleg Yukhnevich

    1 year ago
    a

    Alfred Lopez

    1 year ago
    Correct me if I'm wrong, but Okio is not for JavaScript
    My project currently targets JVM and JS
    Unless there's an update that I didn't see
    m

    Marc Knaup

    1 year ago
    Also JS browser? How would you use a
    FileReader
    or alike in a browser for example? 🤔 What do you want to achieve?
    a

    Alfred Lopez

    1 year ago
    NodeJS
    No browser support
    Oleg Yukhnevich

    Oleg Yukhnevich

    1 year ago
    Okio-files dont have js support, yes, may be in future, you can ask there 😃 It has buffers support on js
    a

    Alfred Lopez

    1 year ago
    I wrote the entire library already, but putting it in a multiplatform project, it blew up (obviously 🙂 ). So now I'm scrambling to "multiplatform-irize" it
    KMM is like the Devil: You accept the promise, but you have to pay a high price to achieve it! 🙂
    korlibs is for kotlin 1.3. I'm using 1.4.20. @Mayank have you used this lib in 1.4+?
    t

    Tijl

    1 year ago
    pretty sure korio is 1.4 even if not all korlibs are
    Mayank

    Mayank

    1 year ago
    yes, Korlibs use 1.4.20 for version 2.0 and above.
    a

    Alfred Lopez

    1 year ago
    Also, any chance that it will be in jcenter? Our company has an artifactory server which I MUST use.
    (I know I may be asking the wrong person. 🙂 )
    Mayank

    Mayank

    1 year ago