hmole
08/13/2018, 2:31 PMcommon-module1
jar in another common-module2
? So far i'm getting NoClassDefFound in my 'common-module2-jvm', but IDE doesn't highlight imports as red and allows to navigate to them(common-module1
).ankushg
08/13/2018, 9:32 PMincludeBuild
, and then the IDE complains with stuff like Wrong nth argument type. Found: 'Foo', required: 'Foo'
(where the method using Foo
is in my common code, but Foo
is defined in my JVM code via `expect`/`actual`)hmole
08/15/2018, 7:48 AMgregopet
08/17/2018, 12:06 PMclient.call {
url("<https://192.168.2.233:4040/jokes/random>")
method = HttpMethod.Get
}
and it never completes - I should probably wait until it's out of alpha, right? 🙂hmole
08/20/2018, 3:24 PMkpgalligan
08/20/2018, 6:36 PMankushg
08/23/2018, 5:45 PMincludeBuild
), is there a simple way to ignore all the ios/native/js platform modules? I only care about common/jvm/android ones, and there's a ton of irrelevant stuff taking up sidebar space in this project now 😞
Also, is it normal that includeBuild
doesn't maintain the nesting of modules? I had the platform modules nested under the common ones in my KMPP, and now they've all been flattened 😞kpgalligan
08/27/2018, 7:57 PMhmole
08/29/2018, 10:18 AMcompileDebugIos_x64KotlinNative
task that is referenced in this gradle script https://github.com/JetBrains/kotlin-mpp-example/blob/master/greeting/ios/build.gradle.
I'm not familiar with how ios build system works, do I need to open it from Xcode on Mac?ankushg
08/29/2018, 6:34 PMactual
definitions saying that there's no corresponding `expect`ed declarationjuliocbcotta
08/30/2018, 6:22 AMLocale
class ?tulio
08/31/2018, 8:55 AMjar
for android and a framework
for iOS. Is there a way to do that currently with kotlin multiplatform/native? (the sample projects are all very coupled)russhwolf
09/04/2018, 2:46 AMr4zzz4k
09/05/2018, 2:03 PMorg.jetbrains.kotlin.multiplatform
and stumbling upon the following issue. Quoting sample repo:
A project dependency on another MPP project has the same semantics and is also resolved in a variant-aware way:
```dependencies { implementation project(':my-mpp-lib') }
So I have `settings.gradle` mentioning
include(":a")
include(":b")
Then in `a/build.gradle`:
plugins {
id("org.jetbrains.kotlin.multiplatform")
}
kotlin {
targets {
fromPreset(presets.linuxX64, 'native')
}
...
}
and in `b/build.gradle`:
plugins {
id("org.jetbrains.kotlin.multiplatform")
}
kotlin {
targets {
fromPreset(presets.linuxX64, 'native')
}
sourceSets {
commonMain {
dependencies {
...
implementation project(':a')
}
}
}
}
When I try to run `./gradlew :b:compileKotlinNative`, I get the following error:
exception: java.lang.IllegalStateException: Could not find "a" in [$PROJ_DIR, $PROJ_DIR/a/build/classes/kotlin/native/main, $HOME/.konan/klib, $HOME/.konan/kotlin-native-linux-0.8.2/klib/common, $HOME/.konan/kotlin-native-linux-0.8.2/klib/platform/linux_x64].
```
Looking into $PROJ_DIR/a/build/classes/kotlin/native/main
I see a file named a-native.klib
.
So the question is, how can I make this work? Do I have to somehow override suffix of klib
or dependency, or is it a bug and the plugin should do this itself?olonho
09/05/2018, 5:09 PMnapperley
09/07/2018, 3:18 AMhmole
09/08/2018, 9:15 AMfilterIsInstance
declared in common module works on interface type in js and/or native code?yousuf.haque
09/10/2018, 12:21 AMNikky
09/11/2018, 4:24 PMspierce7
09/12/2018, 3:31 PMkpgalligan
09/12/2018, 10:26 PMr4zzz4k
09/14/2018, 12:56 PMorg.jetbrains.kotlin.multiplatform
support some way of globally passing -Xuse-experimental=kotlin.Experimental
to compiler?amorenew
09/17/2018, 5:24 AMr4zzz4k
09/17/2018, 11:41 AM*Test
source sets have some specific kind of dependency on *Main
, not simple dependsOn
?
I'm trying to add testFixtures
source set as follows:
commonMain { ... }
commonTestFixtures { dependsOn commonMain }
commonTest { dependsOn commonTestFixtures }
nativeMain { ... }
nativeTestFixtures { dependsOn nativeMain }
nativeTest { dependsOn nativeTestFixtures }
I'm getting internal compiler errors, and after commenting out types mentioned in them just for the sake of moving forward on build process, I got the following from linker:
llvm-lto: error: Linking globals named 'ktype:org.sample.InterfaceName': symbol multiply defined!
Apart from the error itself compiler reports source file names, where I clearly see duplications -- but I'm not sure if they are from common / platform modules or duplicated platform module.
I guess I'm doing this wrong, but I'm not sure how to redo it properly -- testFixtures
definitely needs access to main
as it is based on some types from there, and the sole purpose of it is to provide utilities for test
source set.spierce7
09/17/2018, 2:53 PMThe Feature "multi platform projects" is experimental and should be enabled explicitly
. How do I enable multi platform projects explicitly in the gradle file? The IDE is of no use here.jw
09/18/2018, 3:13 PMgvoltr
09/19/2018, 9:31 AMkpgalligan
09/19/2018, 2:34 PMjw
09/20/2018, 2:44 AMproject()
dependency from an old platform module to a new multiplatform and select which variant I want it to resolve? this will allow me to incrementally migrate rather than doing everything at once.kpgalligan
09/20/2018, 4:57 PM