Michal Klimczak
12/01/2021, 8:53 AMFileSystem.SYSTEM which is only available on `jvm` . It's like everything is there when you have FileHandle or Sink, but the first step is vague. Any hints?mbonnin
12/01/2021, 9:04 AMFileSystem.SYSTEM is also available for nativembonnin
12/01/2021, 9:04 AMNodeJsFileSystem in a separate artifactmbonnin
12/01/2021, 9:05 AMexpect /`actual`mbonnin
12/01/2021, 9:05 AMMichal Klimczak
12/01/2021, 9:21 AMiosMain source set I only have FileSystem.SYSTEM_TEMPORARY_DIRECTORY under FileSystem.Companion. iosMain.dependsOn(commonMain) and commonMain has implementation("com.squareup.okio:okio:3.0.0")Michal Klimczak
12/01/2021, 9:22 AMMichal Klimczak
12/01/2021, 9:23 AMmbonnin
12/01/2021, 9:32 AMMichal Klimczak
12/01/2021, 9:42 AMiosMain source set and it shows up red, but then when I navigate to the FileSystem class the SYSTEM is there.Michal Klimczak
12/01/2021, 10:01 AMnativeMain sourceset is resolved properly by build system, but my iosMain source set doesn't see it in Android Studio (regardles of if I add the dependency to iosMain or commonMain).
val iosMain by creating {
dependsOn(commonMain)
iosArm64Main.dependsOn(this)
iosX64Main.dependsOn(this)
...
dependencies {
implementation("com.squareup.okio:okio:3.0.0")
...
}
}
and
kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.native.enableDependencyPropagation=falseSebastian Sellmair [JB]
12/01/2021, 1:19 PMMichal Klimczak
12/01/2021, 1:21 PMMichal Klimczak
12/01/2021, 1:34 PMnativeMain source sets but it doesn't helpSebastian Sellmair [JB]
12/01/2021, 1:45 PMMichal Klimczak
12/01/2021, 1:56 PMSYSTEM is not present in commonMain, nor it's an `expect/actual` static field. It's just something that is declared in the actual companion object FileSystem both in jvmMain and nativeMain. So why does my AS pick up the jvm variable and doesn't do it for native? I guess it has something to do with the fact that androidMain is already provided and I obtain the source set by getting , whereas iosMain is by creating?Sebastian Sellmair [JB]
12/01/2021, 5:30 PMSebastian Sellmair [JB]
12/01/2021, 5:31 PMMichal Klimczak
12/01/2021, 7:21 PM