Using Native Library

4 posts, 0 answers
  1. John
    John avatar
    2 posts
    Member since:
    Oct 2013

    Posted 06 Oct 2013 Link to this post

    I have  IOS  and Android native libraries. I am supposed to use those libraries .Is there any standard mechanism to utilize those libraries in cross platform mobile app. kindly advise. Thank you.

  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 07 Oct 2013 Link to this post

    Hello John,

    Adding custom functionality to an Icenium application is accomplished by using custom Cordova plugins (see Working with Custom Plugins). Be aware that native libraries are not the same thing as far as Java API and Android API are concerned. To add reference to a framework, you can use the source-file tags inside the plugin.xml file:
    Copy Code
    ....
    <source-file src="src/<platform>/frameworks/SDK.a" framework="true" />
    <source-file src="<path>/Framework.jar"/>
    ....
      </platform>
    </plugin>

    See plugin.xml Manifest Format for more information.

    Regards,
    Steve
    Telerik
    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  3. John
    John avatar
    2 posts
    Member since:
    Oct 2013

    Posted 07 Oct 2013 Link to this post

    Thanks Steve for your kind response. Sorry, Still i'm not able to get the exact idea. I could not find any resource explaining clearly how to create custom plugin from Android(.jar) and IOS(.a) libraries and add  that custom plugin to a project. Additionally , How to extract available methods from those libraries through custom plugin. Kindly advise. Thanks in advance.
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 07 Oct 2013 Link to this post

    Hello John,

    You can refer to a plugin that is already plugman compatible and references external libraries, so you can use it as a base e.g.: https://github.com/phonegap-build/FacebookConnect/blob/master/plugin.xml

    Regards,
    Steve
    Telerik
    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
Back to Top