:wave: I have an issue and was hoping to get some ...
# touchlab-tools
z
👋 I have an issue and was hoping to get some help, if it's a configuration issue or not. With SKIE enabled, it seems the generated Swift interface is different than without, particularly with suspend functions + optional return type. I have the following Kotlin code:
Copy code
interface Foo {
	suspend fun getStringAsync(): String?
}
If I would like to implement the interface in Swift side, my code will have to be:
Copy code
class FooImpl: Foo {
	func __getStringAsync() async throws -> String {}
}
Notice the return type is
String
, rather than
String?
as I would expect. I have the following gradle configuration:
Copy code
skie {
    features {
        coroutinesInterop = true
    }
}
---------- If however, I disable SKIE, it will look correct on the Swift side:
Copy code
class FooImpl: Foo {
	func __getStringAsync() async throws -> String? {}
}
Am I missing something, or is this intended behavior?
j
Are you on the latest version 0.6.1? There was a bug fix for this in that version https://skie.touchlab.co/changelog/0.6.1
z
@Jon Bailey Thanks for the suggestions. Yes, 0.6.1 fixed it.