Skip to content

asif13/SalesforceMobileSDK-iOS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Salesforce.com Mobile SDK for iOS

This repository has been forked from offical salesforce sdk.

Key features added:

  • Log in Without getting redirect to salesforce page in a web view
    • update username, password while calling launch function
    • set oauthScopes to [api,web]
    • update remoteAccessConsumerKey, oAuthRedirectURI and clientSecret in app config. You can find these values in connected app in salesforce
  • Parses json response from salesforce to corresponding swift class.
    • SFRestAPIPromisesPresets is the extension where we define
      • enum for salesforce objects
      • predfined fields for salesforce object
      • class used to decode JSON responses
  • SSL Pining which encrypts all the communication between salesforce and iOS SDK
    • update sslpiningcertificate name in appConfig to enable ssl pinning.
  • Use CMObjectType and CMCondition to build queries.
  • Use queryMore to fetch more than 2000 records.

Getting Started

  • If you'd like to work with the source code of the SDK itself, you've come to the right place! You can browse sample app source code and debug down through the layers to get a feel for how everything works under the covers.
  • If you're just eager to start developing your own new application, the quickest way is to use cocoapod.
 	pod 'SalesforceAnalytics',:git => 'https://git.assembla.com/pwc-digital-services-libraries.salesforceiossdk.git'
	pod 'SalesforceSDKCore',:git =>  'https://git.assembla.com/pwc-digital-services-libraries.salesforceiossdk.git'
	pod 'SmartStore',:git =>  'https://git.assembla.com/pwc-digital-services-libraries.salesforceiossdk.git'
	pod 'SmartSync',:git =>  'https://git.assembla.com/pwc-digital-services-libraries.salesforceiossdk.git'
	pod 'SalesforceSwiftSDK',:git =>  'https://git.assembla.com/pwc-digital-services-libraries.salesforceiossdk.git'
	pod 'PromiseKit', :git => 'https://github.com/mxcl/PromiseKit', :tag => '5.0.3'

Setting up the repo

First, clone the repo:

  • Open the Terminal App
  • cd to the parent directory where the repo directory will live
  • git clone https://git.assembla.com/pwc-digital-services-libraries.salesforceiossdk.git

After cloning the repo:

  • cd SalesforceMobileSDK-iOS
  • ./install.sh

This script pulls the submodule dependencies from GitHub, to finalize setup of the workspace. You can then work with the Mobile SDK by opening SalesforceMobileSDK.xcworkspace from Xcode.

See build.md for information on generating binary distributions and app templates.

The Salesforce Mobile SDK for iOS requires iOS 10.0 or greater. The install.sh script checks for this, and aborts if the configured SDK version is incorrect. Building from the command line has been tested using ant 1.8. Older versions might work, but we recommend using the latest version of ant.

Documentation

Packages

No packages published

Languages

  • Objective-C 91.9%
  • Swift 5.6%
  • Ruby 1.0%
  • Python 0.6%
  • Shell 0.4%
  • JavaScript 0.4%
  • C 0.1%