This is a migrated thread and some comments may be shown as answers.

Using Native Library

3 Answers 66 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John
Top achievements
Rank 1
John asked on 06 Oct 2013, 07:03 AM
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.

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 07 Oct 2013, 08:28 AM
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.
0
John
Top achievements
Rank 1
answered on 07 Oct 2013, 10:11 AM
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.
0
Steve
Telerik team
answered on 07 Oct 2013, 10:38 AM
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.
Tags
General Discussion
Asked by
John
Top achievements
Rank 1
Answers by
Steve
Telerik team
John
Top achievements
Rank 1
Share this question
or