forceios 10.2.0 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/shared/constants.js +3 -3
- package/shared/createHelper.js +11 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "forceios",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "Utilities for creating mobile apps based on the Salesforce Mobile SDK for iOS",
|
|
5
5
|
"keywords": [ "mobilesdk", "ios", "salesforce", "mobile", "sdk" ],
|
|
6
6
|
"homepage": "https://github.com/forcedotcom/SalesforceMobileSDK-iOS",
|
package/shared/constants.js
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
var path = require('path'),
|
|
29
29
|
shelljs = require('shelljs');
|
|
30
30
|
|
|
31
|
-
var VERSION= '
|
|
31
|
+
var VERSION= '11.0.0';
|
|
32
32
|
|
|
33
33
|
module.exports = {
|
|
34
34
|
version: VERSION,
|
|
@@ -61,10 +61,10 @@ module.exports = {
|
|
|
61
61
|
cordova: {
|
|
62
62
|
checkCmd: 'cordova -v',
|
|
63
63
|
// pluginRepoUri: 'https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin#dev', // dev
|
|
64
|
-
minVersion: '
|
|
64
|
+
minVersion: '12.0.0',
|
|
65
65
|
pluginRepoUri: 'salesforce-mobilesdk-cordova-plugin@v' + VERSION, // GA
|
|
66
66
|
platformVersion: {
|
|
67
|
-
ios: '6.
|
|
67
|
+
ios: '6.3.0',
|
|
68
68
|
android: '11.0.0'
|
|
69
69
|
}
|
|
70
70
|
},
|
package/shared/createHelper.js
CHANGED
|
@@ -109,7 +109,7 @@ function createHybridApp(config) {
|
|
|
109
109
|
// Run cordova prepare
|
|
110
110
|
utils.runProcessThrowError('cordova prepare', config.projectDir);
|
|
111
111
|
|
|
112
|
-
if (config.platform
|
|
112
|
+
if (config.platform.split(',').indexOf('ios') != -1) {
|
|
113
113
|
if (utils.getToolVersion('xcodebuild -version') < 14000000) {
|
|
114
114
|
// Use legacy build for xcode 13 and older
|
|
115
115
|
useLegacyBuild(config, path.join('platforms', 'ios'));
|
|
@@ -173,9 +173,18 @@ function fixPods(config, iosSubDir) {
|
|
|
173
173
|
" end\n" +
|
|
174
174
|
" end\n" +
|
|
175
175
|
" end\n" +
|
|
176
|
+
"end" +
|
|
177
|
+
"\n" +
|
|
178
|
+
"post_install do |installer|\n" +
|
|
179
|
+
" installer.pods_project.targets.each do |target|\n" +
|
|
180
|
+
" if target.deployment_target.to_i < 9\n" +
|
|
181
|
+
" target.build_configurations.each do |config|\n" +
|
|
182
|
+
" config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'\n" +
|
|
183
|
+
" end\n" +
|
|
184
|
+
" end\n" +
|
|
185
|
+
" end\n" +
|
|
176
186
|
"end"
|
|
177
187
|
|
|
178
|
-
|
|
179
188
|
utils.logInfo('Updating Podfile for project ' + config.appname);
|
|
180
189
|
fs.writeFileSync(podfilePath, originalPodfileContent.replace("use_frameworks!","") + preInstallCode);
|
|
181
190
|
utils.runProcessThrowError('pod update', iosDir);
|