ynsok
01/04/2024, 2:05 PM> Task :shared:linkDebugFrameworkIosX64 FAILED
, to working this out I have two option or change object into class or use @SuspendInterop.Disabled
on suspend function refreshFailed
. Is Is bug or I am doing something wrong ?
object TokenRefreshErrorHandler {
var dispatch: (suspend (action: Action) -> Unit)? = null
suspend fun refreshFailed(ex: SessionExpiredError) = withContext(Dispatchers.Main) {
dispatch?.invoke(SessionAction.SessionExpired(ex))
}
}
Filip Dolník
01/04/2024, 2:06 PMFilip Dolník
01/04/2024, 2:09 PMynsok
01/04/2024, 2:12 PMid("co.touchlab.skie") _version_ "0.6.1"
Filip Dolník
01/04/2024, 2:14 PMFilip Dolník
01/04/2024, 2:18 PMkotlin {
targets.withType<KotlinNativeTarget> {
binaries {
framework {
isStatic = true
baseName = "Shared2"
freeCompilerArgs = freeCompilerArgs + listOf("-Xbinary=bundleId=Shared2")
}
}
}
}
Filip Dolník
01/04/2024, 2:32 PMshared
collides with the static property generated by Kotlin compiler for each object. Unfortunately, there is no easy way we can solve that on our end - SKIE requires to have a framework name that is not used for any other public declarations that can create collisions. (I think the best we can do is to document this and throw a warning / error so that the issue is easier to spot).Filip Dolník
01/04/2024, 2:33 PMFilip Dolník
01/04/2024, 2:34 PMShared
would be enough to solve this issue)