with one click
with one click
Comprehensive guide for integrating Salesforce Mobile SDK into iOS Swift applications. Covers creating new apps, adding SDK authentication, SmartStore (encrypted database), MobileSync (cloud sync), and biometric authentication.
End-to-end test harness for the consolidated SDK consumer skills. Creates 10 apps (5 iOS, 5 Android) in parallel, one per scenario within the ios-mobile-sdk and android-mobile-sdk skills, builds each, and reports results.
Comprehensive guide for integrating Salesforce Mobile SDK into Android Kotlin applications. Covers creating new apps, adding SDK authentication, SmartStore (encrypted database), MobileSync (cloud sync), and biometric authentication.
Remove a template from the Templates repository
Update the minimum iOS deployment target across all iOS and React Native templates
| name | test-template |
| description | Test templates with test_template.sh script |
| type | skill |
This skill documents testing templates in the Templates repository using the test_template.sh script.
After modifying templates (adding, removing, or updating), you need to verify that:
install.js runs successfully./test_template.sh --template iOSNativeSwiftTemplate
./test_template.sh --template ReactNativeTemplate --platform ios
./test_template.sh
When testing template changes alongside SDK changes, you can override SDK dependencies:
./test_template.sh \
--msdk-ios-org wmathurin \
--msdk-ios-branch feature/new-api \
--template iOSNativeSwiftTemplate --platform ios
This modifies package.json sdkDependencies to use:
{
"SalesforceMobileSDK-iOS": "https://github.com/wmathurin/SalesforceMobileSDK-iOS.git#feature/new-api"
}
./test_template.sh \
--msdk-android-org wmathurin \
--msdk-android-branch feature/new-api \
--template AndroidNativeKotlinTemplate --platform android
./test_template.sh \
--msdk-ios-branch my-feature \
--msdk-android-branch my-feature \
--rn-force-branch my-feature \
--template ReactNativeTemplate
This overrides:
SalesforceMobileSDK-iOS dependencySalesforceMobileSDK-Android dependencyreact-native-force npm dependencyā Tested:
install.js executionmobile_sdk/ directory)ā NOT Tested:
| Template Type | Test Support |
|---|---|
| Native (iOS) | ā Full support |
| Native (Android) | ā Full support |
| React Native | ā Full support (iOS and Android) |
| Hybrid | ā Not supported |
Test that remaining templates still work:
./test_template.sh
Test the specific modified template:
./test_template.sh --template <TemplateName>
When coordinating template changes with SDK changes:
./test_template.sh \
--msdk-ios-branch my-feature \
--msdk-android-branch my-feature \
--template ReactNativeTemplate
# Test each iOS template manually
for template in iOSNativeSwiftTemplate iOSNativeSwiftPackageManagerTemplate iOSIDPTemplate; do
./test_template.sh \
--msdk-ios-branch my-feature \
--template $template --platform ios
done
Success:
Failure:
install.js errorsThis skill is used by:
cd SalesforceMobileSDK-Templates
# After removing a template, test remaining iOS templates
./test_template.sh --template iOSNativeSwiftTemplate --platform ios
./test_template.sh --template iOSIDPTemplate --platform ios
./test_template.sh --template iOSNativeLoginTemplate --platform ios
# Or test all templates
./test_template.sh
cd SalesforceMobileSDK-Templates
# Testing modified template with custom iOS SDK
./test_template.sh \
--msdk-ios-org wmathurin \
--msdk-ios-branch fix/template-issue \
--template iOSNativeSwiftTemplate --platform ios
test_output/ directory with generated projectsTESTING.md for comprehensive testing documentation.github/workflows/pr.yaml for CI test configurationtest-templates.md for cross-repo testing coordination