yshrsmz
12/16/2019, 10:43 AMkotlin.mpp.enableGranularSourceSetsMetadata=true
, Some expect/actual definition does not resolve its type correctly in commonMain and android app module.
When I set kotlin.mpp.enableGranularSourceSetsMetadata=false
, androidMain does not resolve android classes
My app was working fine when I used 1.3.50.dambakk
12/16/2019, 1:51 PMgalex
12/16/2019, 2:19 PMandroid {
publishLibraryVariants("release", "debug")
}
Any build.gradle
example would be more than welcomed 🙂horothesun
12/16/2019, 3:58 PMetolstoy
12/16/2019, 4:47 PMKonstantin Petrukhnov
12/17/2019, 8:07 AMjdiaz
12/17/2019, 8:19 PMSam
12/18/2019, 2:34 AMjames
12/18/2019, 4:24 AMKurt Renzo Acosta
12/18/2019, 6:19 AMBaseFragment<T: ViewModel>
LoginViewModel
is in my common code through this
class LoginViewModel : BaseViewModel()
And BaseViewModel
just expects
expect open class BaseViewModel()
// Android
actual open class BaseViewModel actual constructor(): ViewModel()
// iOS
actual open class BaseViewModel actual constructor()
My code compiles normally, so I'm thinking this is just an IDE bug but I'm not sure. Maybe I did something wrong...Konstantin Petrukhnov
12/18/2019, 11:42 AMSam
12/18/2019, 5:05 PMkpgalligan
12/18/2019, 11:05 PMian.shaun.thomas
12/19/2019, 2:38 PMjs
plugin in the web module?
All I get is this:
Cannot add extension with name 'kotlinNodeJs', as there is an extension already registered with that name.Library module is using
kotlin("multiplatform")
plugin and JS web module is using kotlin("js")
. The error is triggered when trying to enable browser or nodejs as a target in the js module when browser or nodejs are enabled in the common mpp module. ie:
js {
browser {}
nodejs {}
}
I can't find examples of anyone using these together so I guess it's not possible right now?bod
12/19/2019, 4:53 PMKris Wong
12/19/2019, 6:53 PMmaven {
url = <http://java.net|java.net>.URI("<https://dl.bintray.com/suparnatural/kotlin-multiplatform>")
}
rattleshirt
12/20/2019, 9:36 AMnewSingleThreadContext("io")
?bod
12/20/2019, 3:07 PMPage<T>
a class instead of an interface, and it still doesn't work. Ideas?Cristián Arenas
12/20/2019, 3:44 PMDownload Sources
nor Choose Sources…
is working for us.
How can we achieve this?Kris Wong
12/20/2019, 5:07 PMChannel
https://github.com/kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-channel-01.kt, but Channel
is an interfaceCasey Brooks
12/20/2019, 6:57 PMrunBlocking
, so I tried to set up a polling solution with .launch { }
and usleep()
, but it doesn’t seem like the launched block ever executes.egorand
12/20/2019, 7:19 PMklib
, is there a way for the consumer to transform it into a framework
? Or does it have to be published as a framework
?Kris Wong
12/20/2019, 7:58 PMkpgalligan
12/20/2019, 10:06 PMDmitri Sh
12/21/2019, 3:12 AMbod
12/22/2019, 12:48 PMrunBlocking
working on iOS? 😛 (spoiler alert: in my case, it just freezes)kpgalligan
12/22/2019, 6:00 PMJoey
12/23/2019, 5:37 AMKurt Renzo Acosta
12/23/2019, 10:40 AMiOSTarget("ios") {
compilations {
val main by getting {
kotlinOptions.freeCompilerArgs = listOf("-Xobjc-generics")
}
}
binaries {
framework {
export(project(":shared-module-1"))
export(project(":shared-module-2"))
}
}
}
But I'm getting a Cannot create binary debugFramework: binary with such a name already exists
If I name it framework("MyFramework")
, it works but it doesn't build with cocoapods.nrobi
12/23/2019, 11:57 AMkotlinx-serialization
? I’m using 0.14.0
, and I’m gettin pretty randomly java.lang.NoClassDefFoundError:
, some time it works, some time it doesn’t 🤷