icerockdev / moko-kswift

Swift-friendly api generator for Kotlin/Native frameworks

Home Page:https://moko.icerock.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Interfaces's extensions not generated

Merseyside opened this issue · comments

Extensions not generated for interfaces and interface's implementations.
https://github.com/Merseyside/mersey-kmp-time/blob/master/time/src/commonMain/kotlin/com/merseyside/merseyLib/time/ext/ZonedTimeUnitExt.kt (generates as expected in extensions swift block because ZonedTimeUnit doesn't extend any interface)
https://github.com/Merseyside/mersey-kmp-time/blob/master/time/src/commonMain/kotlin/com/merseyside/merseyLib/time/ext/TimeUnitExt.kt (generates separately with class name of kotlin file contains extensions)

Example of usage: https://github.com/Merseyside/mersey-kmp-time/blob/master/ios-app-swiftui/ios-app-swiftui/TimeTest.swift

Same for sealed classes.