This repository contains JavaScript artifacts that are shared between the different Salesforce Mobile SDK repositories. For more information, please check out the Salesforce Mobile SDK for Android, or the Salesforce Mobile SDK for iOS.
Contains all the SalesforceMobileSDK JavaScript libraries.
cordova.force.js
Contains all the Cordova plugins for the SalesforceMobileSDK (oauth / smartstore / sdkinfo). Includes this library after cordova.js in your HTML application.
forcetk.mobilesdk.js
Library to do REST API calls from JavaScript.
smartsync.js
Contains the new SDK 2.0 SmartSync data library. This library depends on forcetk.mobilesdk.js and cordova.force.js. It also requires jquery, underscore and backbone.
Contains all the external libraries used in sample apps or required by some of the libraries above:
backbone
Contains backbone and underscore.
jquery
Contains jquery and jquery mobile. Required by SmartSync library and used in some of the sample apps.
qunit
Contains qunit. A unit test library for JavaScript.
Contains all the SalesforceMobileSDK JavaScript sample applications.
smartsync
Contains sample applications demonstrating the use of the new SDK 2.0 SmartSync library:
- UserAndGroupSearch.html: simplest sample app with a single search/list screen that allows searching for users or collaboration groups
- UserSearch.html: another sample app that allows searching for users and has a basic user detail screen to the search/list screen
- AccountEditor.html: most advanced sample app that allows searching for accounts, editing their details, creating new accounts or deleting existing accounts. It also works offline and detects conflicts when records have changed on the server.
contactexplorer
HTML/CSS/JavaScript used by ContactExplorer application.
smartstoreexplorer
HTML/CSS/JavaScript used by SmartStore Explorer application.
vfconnector
Contains bootconfig.json for VF Connector application.
Contains all the tests for the SalesforceMobileSDK JavaScript libraries.
test.html
HTML page to run the tests outside the container.
MockCordova.js, MockSDKInfo.js, MockSmartStore.js
Libraries used to mock the container when running tests directly in a browser.
SFTestSuite.js, SFAbstractSmartStoreTestSuite.js
Super class of test suites.
SFSmartStoreTestSuite.js, SFLSmartStoreLoadTestSuite.js
Test suites for SmartStore.
SFSmartSyncTestSuite.js
Test suite for the new SDK 2.0 SmartSync library.