• Diego

    Diego

    3 years ago
    Hello guys. I’m working on a multiplaform project, iOS and JVM (I’m not targeting Android directly). Depending on the build type (debug or release) I want to configure the logging level (i.e. to print only errors in release). Since there is no a
    BuildConfig
    class avaialble, how can I know from
    commonMain
    the build type?
    Diego
    louiscad
    2 replies
    Copy to Clipboard
  • o

    o.semen

    3 years ago
    is it possible to have frontend and android in the same multiplatform project? currently I’ve created mobile (Android/iOS) multiplatform project and when I added
    id 'org.jetbrains.kotlin.frontend' version '0.0.44'
    I received an error
    Cannot add task ':app:bundle' as a task with that name already exists.
    this task is created by
    com.android.application
    o
    1 replies
    Copy to Clipboard
  • d

    darych

    3 years ago
    Hi guys! Could someone suggest some good Github repository with multiplatform application (Android, iOs) to look at as an example? I know about kotlinconf-app but it looks like it was created before expect/actual feature was released. I'm new to mobile development, usually I create backend apps.
    d
    olonho
    +2
    6 replies
    Copy to Clipboard
  • t

    thana

    3 years ago
    how do dependencies work in a MPP-world? consider a MPP with targets JVM and JS with a
    commonMain
    dependency on lets call it
    A
    . What does
    A
    have to provide in order to be usable as a dependency? Does
    A
    have ro provide a
    .class
    as well as a
    .js
    artifact? Does kotlin kompile As kotlin code into the target's format?
    t
    b
    2 replies
    Copy to Clipboard
  • t

    thana

    3 years ago
    i'd love to you use
    jtsgen
    , a project written in java that allows to generate typscript typings from java- and kotlin classes. the problem: it uses
    kapt
    to generate them which drives it more or less impossible. i'd need to use it as
    common
    -dependency to use the annotations which isn't possible and OTOH using kapt seems to be impossible in MPP, too. But there is a glimmer of hope left: in fact we would need this dependency only at compiletime and there is nothing left at runtime. Can anyone imagine a way to use it?
    t
    orangy
    7 replies
    Copy to Clipboard
  • k

    kkovach

    3 years ago
    I just started messing around with multiplatform and have a little example compiling. I wrote a couple common tests and one is failing. I cannot figure out how to get more info (stdout/stderr) or some kind of logging for my tests. I've spent a bunch of time looking for an example or docs and haven't found anything yet. Any help would be greatly appreciated. Thanks!
    k
    t
    4 replies
    Copy to Clipboard
  • Ashley Figueira

    Ashley Figueira

    3 years ago
    I cant seem to get the dependencies for iOSMain working. Can anyone help? Using gradle 4.10.1 and kotlin 1.3.20-eap-100 as in the kotlin example layed out by jetbrains.
    Ashley Figueira
    russhwolf
    +1
    8 replies
    Copy to Clipboard
  • a

    Alexander

    3 years ago
    How can I use
    ktor-http
    dependency in a multiplatform project? I added
    io.ktor:ktor-http
    dependency inside the
    commonMain
    . As
    ktor-http
    is a multiplatform library itself I expected this should be enough. But for
    jvm
    I should also add
    io.ktor:ktor-http-cio
    and for
    js
    it only works if there is
    io.ktor:ktor-client-js
    dependency. Why is single common dependency not enough?
    a
    2 replies
    Copy to Clipboard
  • kgonyon

    kgonyon

    3 years ago
    Is there a way to grab a
    KClass
    of an object defined in Kotlin from Swift? I have a function defined in Kotlin that has an argument
    type: KClass
    and I need a way to call that function from Swift, but not sure how to pass in the type.
    kgonyon
    s
    7 replies
    Copy to Clipboard
  • s

    Slackbot

    3 years ago
    This message was deleted.
    s
    1 replies
    Copy to Clipboard