ubuntudroid
09/18/2023, 9:55 AMbuild/skie/*
but only found general SKIE stuff in there (except for SkieTypeAliases.swift
which contains alias for many of my shared module classes) - nothing specific to my project. 🤔Filip Dolník
09/18/2023, 10:46 AMSkieTypeAliases.swift
contains at least one alias that points to a sealed class or an enum? (Skie generates typealias for every class it processes.)
If there is none then create some dummy enum in the shared module with at least one case and try that again. For example: enum class Foo { a, b, c }
ubuntudroid
09/18/2023, 1:03 PMSkieTypeAliases
.ubuntudroid
09/18/2023, 1:03 PMubuntudroid
09/18/2023, 1:06 PM// enable SKIE in our own module
group("our.base.package") {
EnumInterop.Enabled(true)
SealedInterop.Enabled(true)
FlowInterop.Enabled(true)
SuspendInterop.Enabled(true)
DefaultArgumentInterop.Enabled(false)
}
// ...but not dependencies
group {
EnumInterop.Enabled(false)
SealedInterop.Enabled(false)
FlowInterop.Enabled(false)
SuspendInterop.Enabled(false)
DefaultArgumentInterop.Enabled(false)
}
However, it looks like our own package name isn’t properly picked up and that’s why SKIE falls back to the second group configuration. As the group parameter’s name is targetFqNamePrefix
I assumed that you don’t need to pass the full package where all the enums reside, but only the base package and there would be an implicit .**
inserted at the end (as it’s just a prefix).ubuntudroid
09/18/2023, 1:07 PMEnumInterop.Enabled(true)
in the general configuration it generates swift code for enums properly.ubuntudroid
09/18/2023, 1:07 PMFilip Dolník
09/18/2023, 1:09 PMFilip Dolník
09/18/2023, 1:11 PMubuntudroid
09/18/2023, 1:13 PMubuntudroid
09/18/2023, 1:18 PMubuntudroid
09/18/2023, 1:18 PMFilip Dolník
09/18/2023, 1:20 PMubuntudroid
09/18/2023, 1:37 PMFilip Dolník
09/18/2023, 1:41 PM