Hi, I kinda worked around the SiriKit intent code ...
# kotlin-native
p
Hi, I kinda worked around the SiriKit intent code generation by making a custom intentdefinition file, and then running:
Copy code
# I made a Swift 5.0 file
xcrun intentbuilderc generate -input $PWD/intents.intentdefinition -output $PWD -classPrefix "" -language Swift -swiftVersion 5.0
# I made Objective-C headers and implementations just in case
xcrun intentbuilderc generate -input $PWD/intents.intentdefinition -output $PWD/Intents -classPrefix "" -language Objective-C
now I would like to use the generated code in a kotlin MPP library. Is there a way? I got stuck with the
cinterops
configuration. TL;DR: how can I configure a
ios
targets to use objective-c code or Swift (with
@objc
) annotations in gradle?