using native library for each platform

12 views
Skip to first unread message

yassine...@gmail.com

unread,
Apr 16, 2016, 2:17:45 PM4/16/16
to CodenameOne Discussions

hello,

is it possible to use a native library for each platform?

thanks in advance

Steve Hannah

unread,
Apr 16, 2016, 3:01:08 PM4/16/16
to codenameone...@googlegroups.com
Yes you can.  Check out the native interfaces section of the developer guide.
--
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 codenameone-discu...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/62ce7e85-68be-496e-bc2d-cb657cd15ac9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Steve Hannah
Software Developer
Codename One

Yassine el malyh

unread,
Apr 16, 2016, 3:04:07 PM4/16/16
to CodenameOne Discussions
where to put the full native libraries ?

You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/glh2dgUqVhM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.

Steve Hannah

unread,
Apr 16, 2016, 3:15:45 PM4/16/16
to codenameone...@googlegroups.com
Inside their respective native directories.  On android you can put aar files.  On iOS you can put .a, and .h files.

This tutorial shows an example with the fresh desk sdk.  http://www.codenameone.com/blog/integrating-3rd-party-native-sdks-part-1.html

Its android section uses the .andlib format which only works with the older ant builds.  For the newer gradle builds you would use .aar format for the native libs.  But if all it needs is jars then you can put jars directly in the native/android directory.

Steve

For more options, visit https://groups.google.com/d/optout.

Yassine el malyh

unread,
Apr 16, 2016, 3:30:55 PM4/16/16
to CodenameOne Discussions
thank you Steve  I will try to follow the instructions

Reply all
Reply to author
Forward
0 new messages