Is Skie considered stable and production-ready? I'...
# touchlab-tools
f
Is Skie considered stable and production-ready? I'm asking because the versions still start with 0 as the major version. Also, because our iOS team has concerns about whether Skie exports a suitable Swift codebase that can be used for our production apps. Thanks in advance.
f
yes it is
You should just take care about a skie version need to be compatible with the kotlin version you’re using. So, currently, It takes few weeks to support latest version of Kotlin.
our iOS team has concerns about whether Skie exports a suitable Swift
That is the goal We’re welcome to hear feedback from your iOS team what “suitable Swift” means to them and where SKIE falls short of their wants and needs
j
Where should we submit feedback on “suitable Swift”? One issue I’ve noticed is that code documentation doesn’t carry over, thought I won’t rule out I’m doing something wrong.
d
I couldn't find the docs for this flag during a cursory search, but we have this in our library's build.gradle.kts to enable doc comment exporting to the Objective-C framework header file:
Copy code
kotlin {
    targets.withType<org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget> {
        // KDoc export needs to be enabled for both published artifacts and this module's compiled source
        binaries.all {
            freeCompilerArgs += "-Xexport-kdoc"
        }

        compilations.all {
            compileTaskProvider.configure {
                compilerOptions.freeCompilerArgs.add("-Xexport-kdoc")
            }
        }
    }
}
f
Copy code
-Xexport-kdoc
it should already be enabled
💡 1
but, I think, generated code by skie doesn’t generate documentation
j
My Objective-C code is documented it just the Swift code that’s not… I imagine the documentation for Coroutines wouldn’t be identical to Swift’s async functions but it’s better than nothing.
f
The swift code is from skie, the documentation is not generated
I’m not sure if swift-export will support documentation when it will be ready.
t
SKIE repo is set up such that feature/enhancement requests should have a Discussion topic started and bugs in existing functionality should have an Issue reported. Regarding kdocs, this might be relevant to upvote and reply to https://github.com/touchlab/SKIE/discussions/46
👍🏿 1
f
The main question our iOS team is still asking is why versioning starts at 0.x.x and SKIE is described as stable and production-ready, even though the website states "SKIE follows semantic versioning." According to semantic versioning, "Major version zero (0.y.z) is for initial development. Anything MAY change at any time. The public API SHOULD NOT be considered stable."? thanks in advance 🙂
f
@Tadeas Kriz ?
t
“The public API SHOULD NOT be considered stable.” sums it up pretty well. While SKIE is stable for production use and has been proven to work in projects small and large, it's still dependent on Kotlin releases. I made the incorrect decision early on to use SemVer, which locked us to either upgrading major version on API changes, or stay on
0.x
. When you look at Kotlin versioning, they don't follow semver and can change the API in their major releases which don't increment the first number. If all of this still makes your iOS team uneasy, you may remind them that version numbers are made up and the points don't matter (an old TV show reference). On a more serious note, as I mentioned we merely kept the 0.x for flexibility in case Kotlin compiler introduces changes that would require us to change the API. That hasn't happened yet as far as I remember and the versioning remained as more of a “ain’t broke don't fix it”. Since we have some very large projects using SKIE, we wouldn't break anything intentionally and would probably follow a proper depreciation cycle if possible. I hope this makes your iOS team less afraid of using SKIE. Feel free to reach out for more information if needed 😊
❤️ 9