Installing the Sample Apps
In GitHub, sample apps live in the Mobile SDK repository for the target platform. For hybrid samples, you have the option of using the Cordova command line with source code from the SalesforceMobileSDK-Shared repository.
For Android:
- Clone or refresh the SalesforceMobileSDK-Android GitHub repo (https://github.com/forcedotcom/SalesforceMobileSDK-Android).
- In the repo root folder, run the install script:
- Windows:
cscript install.vbs - Mac OS X:
./install.sh
- Windows:
- In Android Studio, import the folder that contains your local
SalesforceMobileSDK-Androidclone. - Look for sample apps in the
hybrid/HybridSampleAppsandnative/NativeSampleAppsproject folders.
On Windows, be sure to run Android Studio as administrator.
For iOS:
- Clone or refresh the SalesforceMobileSDK-iOS GitHub repo (https://github.com/forcedotcom/SalesforceMobileSDK-iOS).
- Run
./install.shin the repository root folder. - In Xcode, open the
SalesforceMobileSDK-iOS/SalesforceMobileSDK.xcworkspacefile. - Look for the sample apps in the
NativeSamplesandHybridSamplesworkspace folders.
To build hybrid sample apps using the Cordova command line, see Build Hybrid Sample Apps.