loke
02/03/2025, 2:01 PMexpect
function implemented differently on both of these platforms. It already has different implementations on JS and Linux).loke
02/03/2025, 2:05 PMScopedValue
and it's being used because it gives a 5% performance boost in the most performance critical part of the application, so using reflection here is not an option.tapchicoma
02/03/2025, 2:09 PMloke
02/03/2025, 2:12 PMloke
02/03/2025, 2:27 PMephemient
02/03/2025, 3:26 PMkotlin {
applyDefaultHierarchyTemplate {
common {
group("commonJvm") {
withJvm()
withAndroid()
}
}
}
}
but for this case specifically, isn't ScopedValue
still a preview feature? even if it's a performance win, I feel like it should perhaps be behind a feature check…loke
02/03/2025, 5:44 PMloke
02/03/2025, 5:45 PMloke
02/06/2025, 1:42 PMbuild.gradle
file. But I'm getting this error:
A problem occurred evaluating project ':array'.
> Could not find method common() for arguments [build_1i0wfhmjqf4vbrs7fnkm6eki1$_run_closure2$_closure5$_closure10@7da59b13] on extension 'kotlin' of type org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension.
loke
02/06/2025, 1:43 PMloke
02/06/2025, 1:43 PMtapchicoma
02/06/2025, 1:57 PMtapchicoma
02/06/2025, 1:57 PMgradle.kts
and you need to adopt it to groovy scriptloke
02/06/2025, 2:02 PMloke
02/06/2025, 2:03 PMtapchicoma
02/06/2025, 2:13 PMloke
02/06/2025, 2:13 PMapplyDefaultHierarchyTemplate { x ->
x.group("common") { y ->
y.group("commonJvm") { z ->
z.withJvm()
z.withAndroid()
}
}
}
loke
02/06/2025, 5:00 PMloke
02/06/2025, 5:01 PM