You can create a swift framework in Xcode.  Then zip up the framework and
put it in the native/ios directory, e.g.
native/ios/MyFramework.framework.zip

I do this inside the WebRTC cn1lib I'm currently working on.  I needed to
add build hints so that Clang would work with the swift modules properly:
ios.pods.build.CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES=YES
ios.pods.build.CLANG_ENABLE_MODULES=YES

(See full properties file here
https://github.com/shannah/CN1WebRTC/blob/master/webrtc/codenameone_library_appended.properties
)

Steve

On Mon, Sep 21, 2020 at 1:59 AM 'P5music' via CodenameOne Discussions <
[email protected]> wrote:

> I would like to add the import/export functions to my Codename App.
> The way I need it, It can be done only with native code.
> I have that native code in Swift language from the XCode Swift-native
> version of my app.
> I would like to know if I can expose it  with the
> @objc or @objcMembers
> annotations for the Swift methods.
> I mean, of course the generated files have to be like it is explained in
> Codename documentation, but I also would put Swift files in the native
> folder that contain the real methods (the "officially" interfaced obj-C
> methods call the Swift ones)
> Does this make sense?
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/495f4544-9c31-4b59-8686-e2e57cee7e31n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/495f4544-9c31-4b59-8686-e2e57cee7e31n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKUi0Df778EhGiaYRvA1Mdo-bkdVXG9LyCeXhea8D4nRjg%40mail.gmail.com.

Reply via email to