forceios 9.2.0 → 10.1.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forceios",
3
- "version": "9.2.0",
3
+ "version": "10.1.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",
@@ -28,7 +28,7 @@
28
28
  var path = require('path'),
29
29
  shelljs = require('shelljs');
30
30
 
31
- var VERSION= '9.2.0';
31
+ var VERSION= '10.1.0';
32
32
 
33
33
  module.exports = {
34
34
  version: VERSION,
@@ -40,7 +40,7 @@ module.exports = {
40
40
  },
41
41
  node: {
42
42
  checkCmd: 'node --version',
43
- minVersion: '6.9'
43
+ minVersion: '12.0'
44
44
  },
45
45
  npm: {
46
46
  checkCmd: 'npm -v',
@@ -61,11 +61,11 @@ module.exports = {
61
61
  cordova: {
62
62
  checkCmd: 'cordova -v',
63
63
  // pluginRepoUri: 'https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin#dev', // dev
64
- minVersion: '10.0.0',
64
+ minVersion: '11.0.0',
65
65
  pluginRepoUri: 'https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin#v' + VERSION, // GA
66
66
  platformVersion: {
67
67
  ios: '6.2.0',
68
- android: '10.1.0'
68
+ android: '10.1.1'
69
69
  }
70
70
  },
71
71
  sfdx: {
@@ -67,7 +67,7 @@ function createHybridApp(config) {
67
67
 
68
68
  // Create app with cordova
69
69
  utils.runProcessThrowError('cordova create "' + config.projectDir + '" ' + config.packagename + ' ' + config.appname);
70
- utils.runProcessThrowError('npm install shelljs@0.7.0', config.projectDir);
70
+ utils.runProcessThrowError('npm install shelljs@0.8.4', config.projectDir);
71
71
 
72
72
  for (var platform of config.platform.split(',')) {
73
73
  utils.runProcessThrowError('cordova platform add ' + platform + '@' + SDK.tools.cordova.platformVersion[platform], config.projectDir);
@@ -124,7 +124,32 @@
124
124
  }
125
125
  },
126
126
  {
127
- "syncName": "noBatchSyncUp",
127
+ "syncName": "briefcaseSyncDown",
128
+ "syncType": "syncDown",
129
+ "soupName": "does-not-matter",
130
+ "target": {
131
+ "infos": [
132
+ {
133
+ "sobjectType": "Account",
134
+ "fieldlist": ["Name", "Description"],
135
+ "soupName": "accounts"
136
+ },
137
+ {
138
+ "sobjectType": "Contact",
139
+ "fieldlist": ["FirstName"],
140
+ "idFieldName" : "IdX",
141
+ "modificationDateFieldName": "LastModifiedDateX",
142
+ "soupName": "contacts"
143
+ }
144
+ ],
145
+ "type" : "briefcase"
146
+ },
147
+ "options": {
148
+ "mergeMode": "OVERWRITE"
149
+ }
150
+ },
151
+ {
152
+ "syncName": "singleRecordSyncUp",
128
153
  "syncType": "syncUp",
129
154
  "soupName": "accounts",
130
155
  "target": {
@@ -142,6 +167,22 @@
142
167
  "syncName": "batchSyncUp",
143
168
  "syncType": "syncUp",
144
169
  "soupName": "accounts",
170
+ "target": {
171
+ "iOSImpl": "SFBatchSyncUpTarget",
172
+ "androidImpl": "com.salesforce.androidsdk.mobilesync.target.BatchSyncUpTarget",
173
+ "idFieldName": "IdX",
174
+ "modificationDateFieldName": "LastModifiedDateX",
175
+ "externalIdFieldName": "ExternalIdX"
176
+ },
177
+ "options": {
178
+ "fieldlist": ["Name", "Description"],
179
+ "mergeMode":"OVERWRITE"
180
+ }
181
+ },
182
+ {
183
+ "syncName": "collectionSyncUp",
184
+ "syncType": "syncUp",
185
+ "soupName": "accounts",
145
186
  "target": {
146
187
  "idFieldName": "IdX",
147
188
  "modificationDateFieldName": "LastModifiedDateX",
@@ -80,6 +80,22 @@
80
80
  },
81
81
  "required": ["sobjectType", "soupName", "sobjectTypePlural", "parentIdFieldName"]
82
82
  },
83
+ "briefcaseInfo": {
84
+ "type": "object",
85
+ "properties": {
86
+ "sobjectType": { "$ref": "#/definitions/sobjectType" },
87
+ "fieldlist": { "$ref": "#/definitions/fieldlist" },
88
+ "soupName": { "$ref": "#/definitions/soupName" },
89
+ "idFieldName": { "$ref": "#/definitions/fieldName" },
90
+ "modificationDateFieldName": { "$ref": "#/definitions/fieldName" }
91
+ },
92
+ "required": ["sobjectType", "fieldlist", "soupName"]
93
+ },
94
+ "briefcaseInfos": {
95
+ "type": "array",
96
+ "items": { "$ref": "#/definitions/briefcaseInfo" },
97
+ "minItems": 1
98
+ },
83
99
  "syncDownOptions": {
84
100
  "type": "object",
85
101
  "properties": {
@@ -176,6 +192,14 @@
176
192
  },
177
193
  "required": ["type", "parent", "parentFieldlist", "children", "childrenFieldlist", "relationshipType"]
178
194
  },
195
+ "briefcaseSyncDownTarget": {
196
+ "type": "object",
197
+ "properties": {
198
+ "type": { "const": "briefcase" },
199
+ "infos": { "$ref": "#/definitions/briefcaseInfos"}
200
+ },
201
+ "required": ["type", "infos"]
202
+ },
179
203
  "customSyncDownTarget": {
180
204
  "type": "object",
181
205
  "properties": {
@@ -196,10 +220,11 @@
196
220
  { "$ref": "#/definitions/layoutSyncDownTarget" },
197
221
  { "$ref": "#/definitions/metadataSyncDownTarget" },
198
222
  { "$ref": "#/definitions/parentChildrenSyncDownTarget" },
223
+ { "$ref": "#/definitions/briefcaseSyncDownTarget" },
199
224
  { "$ref": "#/definitions/customSyncDownTarget" }
200
225
  ]
201
226
  },
202
- "noBatchSyncUpTarget": {
227
+ "singleRecordSyncUpTarget": {
203
228
  "type": "object",
204
229
  "properties": {
205
230
  "iOSImpl" : { "const": "SFSyncUpTarget" },
@@ -211,6 +236,17 @@
211
236
  "required": ["iOSImpl", "androidImpl"]
212
237
  },
213
238
  "batchSyncUpTarget": {
239
+ "type": "object",
240
+ "properties": {
241
+ "iOSImpl" : { "const": "SFBatchSyncUpTarget" },
242
+ "androidImpl": { "const": "com.salesforce.androidsdk.mobilesync.target.BatchSyncUpTarget" },
243
+ "createFieldlist": { "$ref": "#/definitions/fieldlist" },
244
+ "updateFieldlist": { "$ref": "#/definitions/fieldlist" },
245
+ "externalIdFieldName": { "$ref": "#/definitions/fieldName" }
246
+ },
247
+ "required": ["iOSImpl", "androidImpl"]
248
+ },
249
+ "collectionSyncUpTarget": {
214
250
  "type": "object",
215
251
  "properties": {
216
252
  "createFieldlist": { "$ref": "#/definitions/fieldlist" },
@@ -249,9 +285,10 @@
249
285
  "syncUpTarget": {
250
286
  "anyOf": [
251
287
  { "$ref": "#/definitions/parentChildrenSyncUpTarget" },
252
- { "$ref": "#/definitions/noBatchSyncUpTarget" },
288
+ { "$ref": "#/definitions/singleRecordSyncUpTarget" },
289
+ { "$ref": "#/definitions/batchSyncUpTarget" },
253
290
  { "$ref": "#/definitions/customSyncUpTarget" },
254
- { "$ref": "#/definitions/batchSyncUpTarget" }
291
+ { "$ref": "#/definitions/collectionSyncUpTarget" }
255
292
  ]
256
293
  },
257
294
  "syncDown": {