Salesforce

Integrating Third-Party Libraries in Mobile Applications (Magic xpa 2.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Integrating Third-Party Libraries in Mobile Applications (Magic xpa 2.x)

You can integrate third-party libraries in your mobile device application.

The integration of the libraries should be done when you compile your application.

Refer to the Using Native OS Code in Mobile Applications topic for further information on how to write native code in your application in order to call the libraries.

Android

There are two types of libraries that can be added to your application:

  1. Generic Java libraries

    Simply put the library in your application's libs folder (for example, at RIAModules\Android\Source\libs)

  2. Android Java libraries

    Android libraries must be re-built as part of your application.

    The MgxpaRC library is an example of an Android library that exists in your Android application.

    If you need to add your third-party Android library to the application, you can put the library in a subfolder under your application's folder (for example, at RIAModules\Android\Source\mylib) and add a reference to it in the build.xml file, which is located at RIAModules\Android\Source. For example: <property name="android.library.reference.2" value="mylibraryapp" />

    If your library requires additional permissions, you will need to define them in the AndroidManifest.xml file, which is located at RIAModules\Android\Source.

iOS

You should add the library to your project using Xcode.

Reference
Attachment 
Attachment