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:
|
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 |
|
The filename of the module includes 3 numbers in the format x.y.z x.y.z - indicates the version number of the module
|
Step 2 - Import the Core and Infinity Modules into your mobile application project
To import the modules for Android Studio v[]:
-
Open your Android project.
-
Select the project root folder or any module root folder in the project, right click and select Open Module Settings option.
-
The ProjectStructure settings pop-up is presented.
-
Select the Modules option under Project Settings menu. Click the '+' icon in the top-left corner to import the core module.
-
A New Module pop-up is presented with a list of Module Types on the left of the pop-up.
-
Select Android from the list of Module Types.
-
Select Import .JAR/.AAR Package from the list of Module Types and click Next.
-
Browse to the location of the required extracted Module file with .aar extension
-
Click Finish > OK.
Adding a Module as a dependency for Android
-
In your mobile application project, select the main module and click the Dependencies tab.
-
Click the + sign at the bottom to add a Module dependency to your application.
-
Select the Module that you just imported and click OK.
To import the modules for iOS Xcode v11:
-
Open Xcode.
-
Navigate to the Project Navigator.
-
Select Target.
-
Select the General Tab.
-
Navigate to Frameworks > Libraries > Embedded Content section.
-
Add new framework by selecting + icon and then click Add Other > Add Files.
-
Select the required file with .framework extension from your local system and click OK.