zsperske
06/09/2020, 12:17 AMzalewski.se
06/09/2020, 6:35 AMA
, the changes aren’t reflected directly in another module B
that consumes it. Also when I try to navigate from B
to A
it takes me to the .jar
file of this module. Has anyone had similar problems?Theo
06/09/2020, 11:16 AMbsimmons
06/09/2020, 12:07 PMpardom
06/09/2020, 1:44 PMtargets {
presets
.filterIsInstance<AbstractKotlinNativeTargetPreset<*>>()
.filter { it in supportedTargets }
.forEach { preset ->
targetFromPreset(preset, preset.name) {
compilations["main"].source(sourceSets["nativeMain"])
compilations["test"].source(sourceSets["nativeTest"])
}
}
}
Alexander Larsson
06/09/2020, 2:36 PMallTests
task runs tests only on iOS (specifically a task called iosSimTest
). If you write Android specific tests they run on android successfully by running the task called testDebugUnitTest
. I cannot figure out how to run the common test cases on Android. Am I supposed to run them on JVM and it is not possible to run on Android? I currently do not have a JVM target set up since it is an iOS/Android project only.akapanina
06/09/2020, 3:26 PMpardom
06/09/2020, 5:53 PMA
-> B
-> C
Changing an interface in C
isn’t reflected in A
or B
as in a JVM project. Some combination of reimporting, invalidating, etc will get it working again, but I haven’t narrowed down the correct workflow. Has someone experienced and/or solved this?Mananpoddarm
06/10/2020, 8:16 AMElka
06/10/2020, 11:00 AM:library
• A Kotlin MP module targeting iOS and Android. :core
.
• The Android module :library
is dependent on :core
. In build.gradle (library)
, I added api project(":core")
to the dependencies.
Repository2 is composed
• Android App :app
• Common Kotlin MP module targeting iOS and Android :common
• The :app
is dependent on :library
. In build.gradle (app)
I added implementation linkto:Library
• The :common
module is dependent only on :core
. In build.gradle (common)
I added api linkto:core
.
The build works fine but I am getting this IDE error:
"Cannot access class X, Check your module classpath for missing or conflicting dependencies". X is a class in :core
Any idea on how to solve this as the IDE errors are very annoying...
Kotlin 1.3.72Mananpoddarm
06/10/2020, 3:38 PMBrandon Saunders
06/10/2020, 4:27 PMedenman
06/11/2020, 1:49 AMUnresolved reference: MutableStateFlow
compile error in my kmp module. Anybody else seen this? The IDE resolves it no problemKurt Renzo Acosta
06/11/2020, 10:11 AMcombine
on flows with K/N? My code works on Android but on iOS it doesn't run the combine
block. Any help would be greatly appreciated!Nick
06/11/2020, 12:46 PMBrandon Saunders
06/11/2020, 7:42 PMAlexander Larsson
06/12/2020, 8:19 AMjanvladimirmostert
06/13/2020, 7:14 AMplugins {
val kotlinVersion = "1.4-M2"
kotlin("multiplatform") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
}
val serializationVersion = "0.20.0"
val commonMain by getting {
dependencies {
implementation(kotlin("stdlib-common"))
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:$serializationVersion")
}
}
...
val jsMain by getting {
dependencies {
implementation(kotlin("stdlib-js"))
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:$serializationVersion")
}
}
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonConfiguration
fun main() {
val json = Json(JsonConfiguration.Stable)
val jstring = json.toJson(Test.serializer(), Test(blah = 3))
println(jstring.toString())
...
Rohit Singh
06/13/2020, 7:44 AM<http://dispatchers.io|dispatchers.io>
in iosMain. 🙏andylamax
06/13/2020, 2:34 PMVenkat , Bangalore , India
06/14/2020, 3:26 PMDavide Giuseppe Farella
06/14/2020, 5:25 PMfun `hello world`()
I have to set @JsName
manuallyAndrew
06/14/2020, 7:15 PMSlackbot
06/14/2020, 7:41 PMGarouDan
06/14/2020, 8:49 PMSystem.getenv()
jvm method but that works for js
and native
as well?Justin
06/15/2020, 2:48 AMAndrew
06/15/2020, 5:41 AMaleksey.tomin
06/15/2020, 7:34 AMval kotlinVersion = "1.4-M2"
val ktorVersion = "1.3.2-1.4-M2"
sourceSets {
commonMain {
dependencies {
implementation(kotlin("stdlib-common"))
implementation("io.ktor:ktor-client-core:${ktorVersion}")
}. }. }
I have error e: Could not find "io.ktor:ktor-io-cinterop-bits" in [/Users/atomin/Documents/iq/xpoint-sdk, /Users/atomin/.konan/klib, /Users/atomin/.konan/kotlin-native-prebuilt-macos-1.4-M2/klib/common, /Users/atomin/.konan/kotlin-native-prebuilt-macos-1.4-M2/klib/platform/macos_x64].
I try to add
val macosMain by getting {
dependencies {
implementation("io.ktor:ktor-client-core:${ktorVersion}")
}
}
but nothing was changed.
I try to fix something like https://github.com/ktorio/ktor/issues/943
macosX64("macos") {
binaries.all {
linkerOpts = mutableListOf("-L/usr/local/opt/curl/lib", "-I/usr/local/opt/curl/include/curl", "-lcurl")
}
}
but error still active.
$ ls /usr/local/opt/curl/lib
libcurl.4.dylib libcurl.a libcurl.dylib pkgconfig
$ ls /usr/local/opt/curl/include/curl
curl.h curlver.h easy.h mprintf.h multi.h stdcheaders.h system.h typecheck-gcc.h urlapi.h
Alexander Larsson
06/16/2020, 8:27 AMSiggi Gunnarss
06/16/2020, 9:42 AM