iOS version and Swift framework in Generated Native Interface

42 views
Skip to first unread message

P5music

unread,
Sep 27, 2020, 12:46:58 PM9/27/20
to CodenameOne Discussions
I am planning to add some features to my CodenameOne app that are available only through the Native Interface.
I would put a zipped Swift framework in the native folder as explained in this discussion
then the Swift code is called from Obj-C code as usual for the Generated Native Interface, being eventually consumed by Java code.
My Swift code is from a iOS 14 SwiftUI app. The framework could be modified not to exploit the newest methods traces because the functionality is not new, just I used new methods' signatures.
I wonder, in the broader sense, if the CodenameOne app too would be limited to iOS 14 without changing the methods or signatures.
I think so, but I do not even know what iOS versions would be targeted by my CodenameOne app in its present form.
Thanks in advance

Shai Almog

unread,
Sep 28, 2020, 1:36:43 AM9/28/20
to CodenameOne Discussions
You can use the ios.deployment_target build hint to target the build for iOS 14 or newer.
Reply all
Reply to author
Forward
0 new messages