jw
08/23/2022, 2:08 PMeygraber
08/23/2022, 2:31 PMjw
08/23/2022, 2:34 PMeygraber
08/23/2022, 2:35 PMIgor Demin
08/23/2022, 2:35 PMjw
08/23/2022, 2:40 PMWe are also experimenting with approach, when we don’t build our compiler at all, and just use compiler published by Google.Yes, please! I would love to switch back to that as well. I advocated for them to ship a non-relocated copy back when native needed it but they never did. Now that we only need a relocated version as long as you all are still upstreaming native and JS fixes I would greatly prefer to stick to theirs.
Didier Villevalois
08/23/2022, 9:13 PMkotlinVersion=1.7.10
serializationVersion=1.4.0
coroutinesVersion=1.6.4
ktorVersion=2.1.0
composeCompilerVersion=1.3.0
composeVersion=1.2.0-alpha01-dev755
`settings.gradle.kts`:
pluginManagement {
// ...
plugins {
kotlin("multiplatform") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
id("org.jetbrains.compose") version composeVersion
}
}
Root `build.gradle.kts`:
// ...
plugins {
kotlin("multiplatform") apply false
kotlin("plugin.serialization") apply false
id("org.jetbrains.compose") apply false
}
allprojects {
configurations.all {
resolutionStrategy.dependencySubstitution {
substitute(module("org.jetbrains.compose.compiler:compiler")).apply {
using(module("androidx.compose.compiler:compiler:$composeCompilerVersion"))
}
}
}
}
Child module with Compose's `build.gradle.kts`:
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
}
// Usual kotlin {} and compose {} configuration
// ...
Platform: Gradle 7.5.1 / OpenJDK 17.0.4 / Fedora 36 (Gnome+Wayland+Pipewire) / GNU/Linux 5.18.18-200.fc36.x86_64jw
08/23/2022, 9:17 PMDidier Villevalois
08/23/2022, 9:19 PM