Adding Oracle CX Modules to Mobile Application projects

This topic explains how to add Oracle CX Modules to mobile application projects.

In this topic:

Contents of Downloaded Module Files

Download the modules from here. The modules are available as zipped files. Extract the zip file onto your developer machine. The extracted contents of the zipped file include the below files.

File File Type Description
README.md md

This file consists of the following sections:

  • About - Details about the core module

  • Contact - Details of support team

  • Website - Link to the downloads page of the module

  • License - Link to Licensing and Copyright information

CHANGELOG.md md Contains the a detailed change log of the library.
INSTALL.md md Contains the installation instructions for the module.
RELEASE.md md Contains the details of the latest changes included in the module.
module-name-x.y.z.extension
  • .aar (Android)

  • .framework: (iOS)

The filename of the module includes 3 numbers in the format x.y.z x.y.z - indicates the version number of the module

  • x: major version

  • y: minor version

  • z: patch number

 

 

Step 2 - Import the Core and Infinity Modules into your mobile application project

To import the modules for Android Studio v[]:

  1. Open your Android project.

  2. Select the project root folder or any module root folder in the project, right click and select Open Module Settings option.

  3. The ProjectStructure settings pop-up is presented.

  4. Select the Modules option under Project Settings menu. Click the '+' icon in the top-left corner to import the core module.

  5. A New Module pop-up is presented with a list of Module Types on the left of the pop-up.

  6. Select Android from the list of Module Types.

  7. Select Import .JAR/.AAR Package from the list of Module Types and click Next.

  8. Browse to the location of the required extracted Module file with .aar extension

  9. Click Finish > OK.

Adding a Module as a dependency for Android
  1. In your mobile application project, select the main module and click the Dependencies tab.

  2. Click the + sign at the bottom to add a Module dependency to your application.

  3. Select the Module that you just imported and click OK.

To import the modules for iOS Xcode v11:

  1. Open Xcode.

  2. Navigate to the Project Navigator.

  3. Select Target.

  4. Select the General Tab.

  5. Navigate to Frameworks > Libraries > Embedded Content section.

  6. Add new framework by selecting + icon and then click Add Other > Add Files.

  7. Select the required file with .framework extension from your local system and click OK.