Trey
11/09/2023, 4:07 PM@kotlin.commonizer.ObjCCallable public open expect fun application(application: platform.UIKit.UIApplication, didFinishLaunchingWithOptions: kotlin.collections.Map<kotlin.Any?, *>?): kotlin.Boolean { /* compiled code */ }
@kotlin.commonizer.ObjCCallable public open expect fun application(application: platform.UIKit.UIApplication, willFinishLaunchingWithOptions: kotlin.collections.Map<kotlin.Any?, *>?): kotlin.Boolean { /* compiled code */ }
Darron Schall
11/10/2023, 8:57 PMConflicting overloads: public open fun application(application: UIApplication, willFinishLaunchingWithOptions: Map<Any?, *>?): Boolean defined in AppDelegate, public open fun application(application: UIApplication, didFinishLaunchingWithOptions: Map<Any?, *>?): Boolean defined in AppDelegateCan't try to differentiate with
@ObjCName
either, due to:
@ObjCName is not applicable on overridesAs a workaround I think you'll want to create your AppDelegate in Swift and call into your shared library code from the Swift methods.
ribesg
11/15/2023, 2:23 PMTrey
11/15/2023, 2:24 PMDarron Schall
11/15/2023, 2:25 PM@Suppress("CONFLICTING_OVERLOADS", "PARAMETER_NAME_CHANGED_ON_OVERRIDE")
ribesg
11/15/2023, 2:25 PM@Suppress("PARAMETER_NAME_CHANGED_ON_OVERRIDE")
UITableViewDelegateProtocol
, I think it covers all the "this is possible in Swift/ObjC but not in Kotlin" issues you can sometimes have
@file:Suppress(
"CONFLICTING_OVERLOADS",
"PARAMETER_NAME_CHANGED_ON_OVERRIDE",
"RETURN_TYPE_MISMATCH_ON_OVERRIDE"
)
Trey
11/15/2023, 2:41 PM