@devicecloud.dev/dcd 2.0.0-rc.3 → 2.0.1
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/dist/commands/cloud.js +19 -11
- package/dist/constants.js +2 -1
- package/oclif.manifest.json +5 -3
- package/package.json +5 -1
package/dist/commands/cloud.js
CHANGED
|
@@ -78,10 +78,11 @@ class Cloud extends core_1.Command {
|
|
|
78
78
|
if (!flowFile) {
|
|
79
79
|
throw new Error('You must provide a flow file');
|
|
80
80
|
}
|
|
81
|
-
if (iOSVersion) {
|
|
81
|
+
if (iOSVersion || iOSDevice) {
|
|
82
82
|
const iOSDeviceID = iOSDevice || 'iphone-14';
|
|
83
83
|
const supportediOSVersions = constants_1.iOSCompatibilityLookup[iOSDeviceID];
|
|
84
|
-
|
|
84
|
+
const version = iOSVersion || '17';
|
|
85
|
+
if (!supportediOSVersions.includes(version)) {
|
|
85
86
|
throw new Error(`${iOSDeviceID} only supports these iOS versions: ${supportediOSVersions.join(',')}`);
|
|
86
87
|
}
|
|
87
88
|
}
|
|
@@ -97,7 +98,7 @@ class Cloud extends core_1.Command {
|
|
|
97
98
|
}
|
|
98
99
|
catch (error) {
|
|
99
100
|
console.error(error);
|
|
100
|
-
// eslint-disable-next-line
|
|
101
|
+
// eslint-disable-next-line unicorn/no-process-exit
|
|
101
102
|
process.exit(2);
|
|
102
103
|
}
|
|
103
104
|
const { allExcludeTags, allIncludeTags, flowsToRun: testFileNames, referencedFiles, sequence, } = executionPlan;
|
|
@@ -108,7 +109,7 @@ class Cloud extends core_1.Command {
|
|
|
108
109
|
let commonRoot = path.parse(process.cwd()).root;
|
|
109
110
|
const folders = pathsShortestToLongest[0].split(path.sep);
|
|
110
111
|
for (const [index] of folders.entries()) {
|
|
111
|
-
const folderPath = folders.slice(0, index
|
|
112
|
+
const folderPath = folders.slice(0, index).join(path.sep);
|
|
112
113
|
const isRoot = pathsShortestToLongest.every((file) => file.startsWith(folderPath));
|
|
113
114
|
if (isRoot)
|
|
114
115
|
commonRoot = folderPath;
|
|
@@ -137,8 +138,9 @@ class Cloud extends core_1.Command {
|
|
|
137
138
|
Submitting new job
|
|
138
139
|
→ Flow(s): ${flowFile}
|
|
139
140
|
→ App: ${appBinaryId || finalAppFile}
|
|
140
|
-
${
|
|
141
|
-
`→ Additional app(s): ${additionalAppBinaryIds} ${additionalAppFiles}`
|
|
141
|
+
${additionalAppBinaryIds.length > 0 || additionalAppFiles.length > 0
|
|
142
|
+
? `→ Additional app(s): ${additionalAppBinaryIds} ${additionalAppFiles}`
|
|
143
|
+
: ''}
|
|
142
144
|
|
|
143
145
|
With options
|
|
144
146
|
→ ${flagLogs.join(`
|
|
@@ -185,18 +187,24 @@ class Cloud extends core_1.Command {
|
|
|
185
187
|
testFormData.set('sequentialFlows', JSON.stringify(sequentialFlows));
|
|
186
188
|
testFormData.set('env', JSON.stringify(envObject));
|
|
187
189
|
testFormData.set('googlePlay', googlePlay ? 'true' : 'false');
|
|
188
|
-
|
|
189
|
-
additionalAppBinaryIds: finalAdditionalBinaryIds,
|
|
190
|
+
const config = {
|
|
190
191
|
allExcludeTags,
|
|
191
192
|
allIncludeTags,
|
|
192
193
|
continueOnFailure,
|
|
193
194
|
deviceLocale,
|
|
194
195
|
maestroVersion,
|
|
195
196
|
orientation,
|
|
196
|
-
raw,
|
|
197
|
+
raw: JSON.stringify(raw),
|
|
197
198
|
uploadedBinaryIds,
|
|
198
199
|
version: this.config.version,
|
|
199
|
-
}
|
|
200
|
+
};
|
|
201
|
+
if (finalAdditionalBinaryIds?.length > 0) {
|
|
202
|
+
config.additionalAppBinaryIds = finalAdditionalBinaryIds;
|
|
203
|
+
}
|
|
204
|
+
if (uploadedBinaryIds?.length > 0) {
|
|
205
|
+
config.uploadedBinaryIds = uploadedBinaryIds;
|
|
206
|
+
}
|
|
207
|
+
testFormData.set('config', JSON.stringify(config));
|
|
200
208
|
if (androidApiLevel)
|
|
201
209
|
testFormData.set('androidApiLevel', androidApiLevel.toString());
|
|
202
210
|
if (androidDevice)
|
|
@@ -277,7 +285,7 @@ class Cloud extends core_1.Command {
|
|
|
277
285
|
}
|
|
278
286
|
}
|
|
279
287
|
if (updatedResults.some((result) => result.status === 'FAILED')) {
|
|
280
|
-
// eslint-disable-next-line
|
|
288
|
+
// eslint-disable-next-line unicorn/no-process-exit
|
|
281
289
|
process.exit(2);
|
|
282
290
|
}
|
|
283
291
|
sequentialPollFaillures = 0;
|
package/dist/constants.js
CHANGED
|
@@ -19,7 +19,7 @@ exports.flags = {
|
|
|
19
19
|
}),
|
|
20
20
|
'android-api-level': core_1.Flags.integer({
|
|
21
21
|
description: '[Android only] Android API level to run your flow against',
|
|
22
|
-
options: ['33', '34'],
|
|
22
|
+
options: ['33', '34', '35'],
|
|
23
23
|
}),
|
|
24
24
|
'android-device': core_1.Flags.string({
|
|
25
25
|
description: '[Android only] Android device to run your flow against',
|
|
@@ -139,6 +139,7 @@ exports.flags = {
|
|
|
139
139
|
'1.37.8',
|
|
140
140
|
'1.37.9',
|
|
141
141
|
'1.38.1',
|
|
142
|
+
'1.39.0',
|
|
142
143
|
],
|
|
143
144
|
}),
|
|
144
145
|
name: core_1.Flags.string({
|
package/oclif.manifest.json
CHANGED
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
"multiple": false,
|
|
43
43
|
"options": [
|
|
44
44
|
"33",
|
|
45
|
-
"34"
|
|
45
|
+
"34",
|
|
46
|
+
"35"
|
|
46
47
|
],
|
|
47
48
|
"type": "option"
|
|
48
49
|
},
|
|
@@ -243,7 +244,8 @@
|
|
|
243
244
|
"1.37.7",
|
|
244
245
|
"1.37.8",
|
|
245
246
|
"1.37.9",
|
|
246
|
-
"1.38.1"
|
|
247
|
+
"1.38.1",
|
|
248
|
+
"1.39.0"
|
|
247
249
|
],
|
|
248
250
|
"type": "option"
|
|
249
251
|
},
|
|
@@ -291,5 +293,5 @@
|
|
|
291
293
|
]
|
|
292
294
|
}
|
|
293
295
|
},
|
|
294
|
-
"version": "2.0.
|
|
296
|
+
"version": "2.0.1"
|
|
295
297
|
}
|
package/package.json
CHANGED
|
@@ -64,6 +64,10 @@
|
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
66
|
"private": false,
|
|
67
|
+
"repository": {
|
|
68
|
+
"type": "git",
|
|
69
|
+
"url": "https://devicecloud.dev"
|
|
70
|
+
},
|
|
67
71
|
"scripts": {
|
|
68
72
|
"dcd": "./bin/dev.js",
|
|
69
73
|
"prod": "./bin/run.js",
|
|
@@ -76,7 +80,7 @@
|
|
|
76
80
|
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
|
|
77
81
|
"version": "oclif readme && git add README.md"
|
|
78
82
|
},
|
|
79
|
-
"version": "2.0.
|
|
83
|
+
"version": "2.0.1",
|
|
80
84
|
"bugs": {
|
|
81
85
|
"url": "https://discord.gg/gm3mJwcNw8"
|
|
82
86
|
},
|