@devicecloud.dev/dcd 4.3.0 → 4.3.2

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.
@@ -57,7 +57,7 @@ export default class Cloud extends Command {
57
57
  'show-crosshairs': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
58
58
  'maestro-chrome-onboarding': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
59
59
  'android-no-snapshot': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
60
- 'enable-animations': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
60
+ 'disable-animations': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
61
61
  'app-binary-id': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
62
62
  'app-file': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
63
63
  'ignore-sha-check': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
@@ -164,6 +164,15 @@ class Cloud extends core_1.Command {
164
164
  debug,
165
165
  logger: this.log.bind(this),
166
166
  });
167
+ const DEPRECATED_MAESTRO_VERSIONS = ['1.39.2', '1.39.7'];
168
+ if (DEPRECATED_MAESTRO_VERSIONS.includes(resolvedMaestroVersion)) {
169
+ this.log(`\n${styling_1.dividers.light}\n` +
170
+ `${styling_1.colors.warning('⚠')} ${styling_1.colors.bold('Deprecation Warning')}\n` +
171
+ styling_1.colors.dim(`Maestro version ${resolvedMaestroVersion} is deprecated and will be removed soon. `) +
172
+ styling_1.colors.dim(`Please upgrade to a newer version. See: `) +
173
+ styling_1.colors.info('https://docs.devicecloud.dev/reference/maestro-versions') + `\n` +
174
+ `${styling_1.dividers.light}\n`);
175
+ }
167
176
  if (retry && retry > 2) {
168
177
  this.log(styling_1.colors.warning('⚠') + ' ' + styling_1.colors.dim("Retries are now free of charge but limited to 2. If your test is still failing after 2 retries, please ask for help on Discord."));
169
178
  flags.retry = 2;
@@ -404,7 +413,7 @@ class Cloud extends core_1.Command {
404
413
  runnerType,
405
414
  showCrosshairs: flags['show-crosshairs'],
406
415
  maestroChromeOnboarding: flags['maestro-chrome-onboarding'],
407
- enableAnimations: flags['enable-animations'],
416
+ disableAnimations: flags['disable-animations'],
408
417
  });
409
418
  if (debug) {
410
419
  this.log(`[DEBUG] Submitting flow upload request to ${apiUrl}/uploads/flow`);
@@ -12,5 +12,5 @@ export declare const deviceFlags: {
12
12
  'show-crosshairs': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
13
13
  'maestro-chrome-onboarding': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
14
14
  'android-no-snapshot': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
15
- 'enable-animations': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
15
+ 'disable-animations': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
16
16
  };
@@ -47,8 +47,8 @@ exports.deviceFlags = {
47
47
  default: false,
48
48
  description: '[Android only] Force cold boot instead of using snapshot boot. This is automatically enabled for API 35+ but can be used to force cold boot on older API levels.',
49
49
  }),
50
- 'enable-animations': core_1.Flags.boolean({
50
+ 'disable-animations': core_1.Flags.boolean({
51
51
  default: false,
52
- description: '[Android only] Keep device animations enabled during test execution. By default, animations are disabled to reduce CPU load and improve test reliability.',
52
+ description: '[Android only] Disable device animations during test execution. This reduces CPU load and may improve test reliability on resource-constrained runners.',
53
53
  }),
54
54
  };
@@ -44,7 +44,7 @@ export declare const flags: {
44
44
  'show-crosshairs': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
45
45
  'maestro-chrome-onboarding': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
46
46
  'android-no-snapshot': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
47
- 'enable-animations': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
47
+ 'disable-animations': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
48
48
  'app-binary-id': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
49
49
  'app-file': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
50
50
  'ignore-sha-check': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
@@ -9,7 +9,7 @@ export interface TestSubmissionConfig {
9
9
  continueOnFailure?: boolean;
10
10
  debug?: boolean;
11
11
  deviceLocale?: string;
12
- enableAnimations?: boolean;
12
+ disableAnimations?: boolean;
13
13
  env?: string[];
14
14
  executionPlan: IExecutionPlan;
15
15
  flowFile: string;
@@ -17,7 +17,7 @@ class TestSubmissionService {
17
17
  * @returns FormData ready to be submitted to the API
18
18
  */
19
19
  async buildTestFormData(config) {
20
- const { appBinaryId, flowFile, executionPlan, commonRoot, cliVersion, env = [], metadata = [], googlePlay = false, androidApiLevel, androidDevice, androidNoSnapshot, iOSVersion, iOSDevice, name, runnerType, maestroVersion, deviceLocale, orientation, mitmHost, mitmPath, retry, continueOnFailure = true, report, showCrosshairs, maestroChromeOnboarding, raw, enableAnimations, debug = false, logger, } = config;
20
+ const { appBinaryId, flowFile, executionPlan, commonRoot, cliVersion, env = [], metadata = [], googlePlay = false, androidApiLevel, androidDevice, androidNoSnapshot, iOSVersion, iOSDevice, name, runnerType, maestroVersion, deviceLocale, orientation, mitmHost, mitmPath, retry, continueOnFailure = true, report, showCrosshairs, maestroChromeOnboarding, raw, disableAnimations, debug = false, logger, } = config;
21
21
  const { allExcludeTags, allIncludeTags, flowMetadata, flowOverrides, flowsToRun: testFileNames, referencedFiles, sequence, workspaceConfig, } = executionPlan;
22
22
  const { flows: sequentialFlows = [] } = sequence ?? {};
23
23
  const testFormData = new FormData();
@@ -83,7 +83,7 @@ class TestSubmissionService {
83
83
  report,
84
84
  showCrosshairs,
85
85
  maestroChromeOnboarding,
86
- enableAnimations,
86
+ disableAnimations,
87
87
  version: cliVersion,
88
88
  };
89
89
  testFormData.set('config', JSON.stringify(configPayload));
@@ -181,9 +181,9 @@
181
181
  "allowNo": false,
182
182
  "type": "boolean"
183
183
  },
184
- "enable-animations": {
185
- "description": "[Android only] Keep device animations enabled during test execution. By default, animations are disabled to reduce CPU load and improve test reliability.",
186
- "name": "enable-animations",
184
+ "disable-animations": {
185
+ "description": "[Android only] Disable device animations during test execution. This reduces CPU load and may improve test reliability on resource-constrained runners.",
186
+ "name": "disable-animations",
187
187
  "allowNo": false,
188
188
  "type": "boolean"
189
189
  },
@@ -680,5 +680,5 @@
680
680
  ]
681
681
  }
682
682
  },
683
- "version": "4.3.0"
683
+ "version": "4.3.2"
684
684
  }
package/package.json CHANGED
@@ -67,7 +67,7 @@
67
67
  "type": "git",
68
68
  "url": "https://devicecloud.dev"
69
69
  },
70
- "version": "4.3.0",
70
+ "version": "4.3.2",
71
71
  "bugs": {
72
72
  "url": "https://discord.gg/gm3mJwcNw8"
73
73
  },