Overview
This guide takes you through the SDK’s setup process. At the end of this guide, you’ll be able to run a default build of our mobile app.
Requirements
For Android
- The
mxmobile-android.tar.gz
file. - Develop on a Mac running macOS 11.3 or higher.
- Target Android devices running Lollipop (5.0) or higher.
For iOS
- The
mxmobile-ios.tar.gz
file. - Develop on a Mac running macOS 11.3 or higher.
- Use Xcode 13.1 or higher.
- Target iOS devices running 13 or higher.
- Target iPadOS devices running 13.1 or higher.
Setup
After downloading your tar
file from the Releases Page, run either:
tar -xvf mxmobile-ios.tar.gz
tar -xvf mxmobile-android.tar.gz
tar
will uncompress the file and create a folder in the same directory with the name mxmobile-ios
or mxmobile-android
.
Open your mxmobile-ios
or mxmobile-android
folder, then:
- Install Homebrew. Run
brew update
to make sure you have the most recent version. - Install imagemagick and cmake:
brew install imagemagick
brew install cmake
- Install RVM.
- Install ruby:
rvm install ruby-2.7.0
. - After installing and initializing RVM in your terminal emulator,
cd
intomxmobile-ios
ormxmobile-android
. If you haven’t already installed Ruby 2.7.0, you will see a message like “Required ruby-2.7.0 is not installed.” Runrvm install 2.7.0
to install Ruby 2.7.0. After you install Ruby, runcd .
to create the MXmobile RVM gemset. Verify that the gemset was created by runningrvm gemset list
. You should see output similar to the following:
Output
1
2
3
4
gemsets for ruby-2.7.0 (found in /Users/<you>/.rvm/gems/ruby-2.7.0)
(default)
global
=> mxmobile"
- Install python3:
brew install python3
. - Ensure pip is installed.
- Install conan:
pip3 install conan
. - Run
conan remote remove conancenter
. This removes the default remote that conan may have set up, which conflicts with the MX conan remote.
Now, contact MX to obtain an Artifactory email and password.
After you’ve received your Artifactory email and password, create a text file in the root of your mxmobile-android or mxmobile-ios directory called artifactory.txt
and add the artifactory credentials MX provided:
1
2
EMAIL=<artifactory_email_from_mx>
PASSWORD=<artifactory_password_from_mx>
If Building for Android
- Run
./setup armv8
(orarmv7
,x86_64
). - Run
./generate
. - Open Android Studio.
- Select File > Open….
- Open the
proj.android
folder. - Wait for gradle to finish syncing the project, then build.
If Building for iOS
- Run
./setup
. - Run
./generate
. - Open
proj.apple/mxmobile.xcodeproj
. - Run build MXmobile iOS scheme onto a test device or Simulator.
Configure
If you change any configuration files, you’ll need to run ./generate
before building again.
Report SDK Issue
If you encounter an issue following any of the instructions in the MXmobile SDK documentation, please fill out an issue on the SDK’s GitHub page.
Important Files
The MXmobile SDK provides many important files that you can edit to change your mobile app’s visuals and functionality.
For a complete list of important files, please visit the files overview in the reference.