is this the right way to declare the hidden method?
@kotlinx.cinterop.ObjCMethod(“”, “”)
external fun NSURLRequest.Companion.setAllowsAnyHTTPSCertificate(allow: Boolean, host: NSString):kotlin.Unit
s
svyatoslav.scherbina
10/08/2019, 7:32 AM
Please don’t use
@ObjCMethod
and/or
external
, it is not intended to be used in source code.
If I understand you correctly, adding
cinterop
configuration with
.def
file containing Objective-C category declaration should help.
s
Steve Young
10/08/2019, 10:06 PM
How to make cinterop convert objc code? Is there a sample project?