With Kotlin 2.1.0 new <Support for non-packed klib...
# moko
m
With Kotlin 2.1.0 new Support for non-packed klibs feature is introduced. Since I'm using lib which hasn't migrate to latest Kotlin version, I need to revert this behavior to old one. From docs, it seems that I only need do this:
Copy code
import org.jetbrains.kotlin.gradle.plugin.attributes.KlibPackaging

val resolvableConfiguration = configurations.resolvable("resolvable") {
    attributes.attribute(KlibPackaging.ATTRIBUTE, project.objects.named(KlibPackaging.PACKED))
}
But, if I run this my issue is still here. Exactly, problem is this. For reference, I'm working on KMP project. So, my questions are: • Is this code snippet only change I need to do or I need to apply
resolvableConfiguration
somewhere? • In which gradle file I need to do it (
project
or
module
level)?
a
hi. i don't know exactly how should be used sample from docs, but i think this code can't fix issue in moko-resources because it's not change root cause - file that will be readed by moko plugin still will be directory instead archive. so i think we should fix it internally. OR maybe kotlin have some gradle.properties flag to enable old behavior
👍 1
i will work on this bug at this weekend
❤️ 1