detox 20.31.0 → 20.32.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/Detox-android/com/wix/detox/{20.30.0/detox-20.30.0-sources.jar → 20.32.0/detox-20.32.0-sources.jar} +0 -0
  2. package/Detox-android/com/wix/detox/20.32.0/detox-20.32.0-sources.jar.md5 +1 -0
  3. package/Detox-android/com/wix/detox/20.32.0/detox-20.32.0-sources.jar.sha1 +1 -0
  4. package/Detox-android/com/wix/detox/20.32.0/detox-20.32.0-sources.jar.sha256 +1 -0
  5. package/Detox-android/com/wix/detox/20.32.0/detox-20.32.0-sources.jar.sha512 +1 -0
  6. package/Detox-android/com/wix/detox/{20.30.0/detox-20.30.0.pom → 20.32.0/detox-20.32.0.pom} +1 -1
  7. package/Detox-android/com/wix/detox/20.32.0/detox-20.32.0.pom.md5 +1 -0
  8. package/Detox-android/com/wix/detox/20.32.0/detox-20.32.0.pom.sha1 +1 -0
  9. package/Detox-android/com/wix/detox/20.32.0/detox-20.32.0.pom.sha256 +1 -0
  10. package/Detox-android/com/wix/detox/20.32.0/detox-20.32.0.pom.sha512 +1 -0
  11. package/Detox-android/com/wix/detox/maven-metadata.xml +4 -4
  12. package/Detox-android/com/wix/detox/maven-metadata.xml.md5 +1 -1
  13. package/Detox-android/com/wix/detox/maven-metadata.xml.sha1 +1 -1
  14. package/Detox-android/com/wix/detox/maven-metadata.xml.sha256 +1 -1
  15. package/Detox-android/com/wix/detox/maven-metadata.xml.sha512 +1 -1
  16. package/Detox-ios-framework.tbz +0 -0
  17. package/Detox-ios-src.tbz +0 -0
  18. package/Detox-ios-xcuitest.tbz +0 -0
  19. package/package.json +2 -2
  20. package/src/devices/allocation/drivers/android/genycloud/exec/GenyCloudExec.js +14 -8
  21. package/src/devices/validation/android/GenycloudEnvValidator.js +20 -3
  22. package/Detox-android/com/wix/detox/20.30.0/detox-20.30.0-sources.jar.md5 +0 -1
  23. package/Detox-android/com/wix/detox/20.30.0/detox-20.30.0-sources.jar.sha1 +0 -1
  24. package/Detox-android/com/wix/detox/20.30.0/detox-20.30.0-sources.jar.sha256 +0 -1
  25. package/Detox-android/com/wix/detox/20.30.0/detox-20.30.0-sources.jar.sha512 +0 -1
  26. package/Detox-android/com/wix/detox/20.30.0/detox-20.30.0.pom.md5 +0 -1
  27. package/Detox-android/com/wix/detox/20.30.0/detox-20.30.0.pom.sha1 +0 -1
  28. package/Detox-android/com/wix/detox/20.30.0/detox-20.30.0.pom.sha256 +0 -1
  29. package/Detox-android/com/wix/detox/20.30.0/detox-20.30.0.pom.sha512 +0 -1
  30. /package/Detox-android/com/wix/detox/{20.30.0/detox-20.30.0.aar → 20.32.0/detox-20.32.0.aar} +0 -0
  31. /package/Detox-android/com/wix/detox/{20.30.0/detox-20.30.0.aar.md5 → 20.32.0/detox-20.32.0.aar.md5} +0 -0
  32. /package/Detox-android/com/wix/detox/{20.30.0/detox-20.30.0.aar.sha1 → 20.32.0/detox-20.32.0.aar.sha1} +0 -0
  33. /package/Detox-android/com/wix/detox/{20.30.0/detox-20.30.0.aar.sha256 → 20.32.0/detox-20.32.0.aar.sha256} +0 -0
  34. /package/Detox-android/com/wix/detox/{20.30.0/detox-20.30.0.aar.sha512 → 20.32.0/detox-20.32.0.aar.sha512} +0 -0
@@ -0,0 +1 @@
1
+ eee5ef30145285d5cb57b7a09afb8304
@@ -0,0 +1 @@
1
+ f454322216a38a2a565504eeeee3097cdf210dd0
@@ -0,0 +1 @@
1
+ bde47b3d7df6f70cc9812e1232aa5781a4dbfbd923ca52c6097ab9ea880eb207
@@ -0,0 +1 @@
1
+ 175ce023c440c5903a33af31f0ce39e603c6c930fa05ddf5a38f070cd99b29fc6ee2e82b816bc60507c7c4729e9c0b1d8d1247ecc4b6b75455e0924d397dfe37
@@ -3,7 +3,7 @@
3
3
  <modelVersion>4.0.0</modelVersion>
4
4
  <groupId>com.wix</groupId>
5
5
  <artifactId>detox</artifactId>
6
- <version>20.30.0</version>
6
+ <version>20.32.0</version>
7
7
  <packaging>aar</packaging>
8
8
  <name>Detox</name>
9
9
  <description>Gray box end-to-end testing and automation library for mobile apps</description>
@@ -0,0 +1 @@
1
+ 8a89efbe63dd0bb5e8263bd728b2a6ce
@@ -0,0 +1 @@
1
+ 73079f2074231a904b98113f686c7b7f8df79ad7
@@ -0,0 +1 @@
1
+ 4c76f2991c6d5bb6fd4a883542bac697c8e3e49d1816e59f36b5b3678c6ae6ab
@@ -0,0 +1 @@
1
+ b856a9916b7e864eeb2226d29b56c5bea595545c7cb82e8c33619357fdfbf9a942201f1ecd70b57fb5499c5b59d38a1e4fc13bee6a84eaf2b75e2b630faeb6f7
@@ -3,11 +3,11 @@
3
3
  <groupId>com.wix</groupId>
4
4
  <artifactId>detox</artifactId>
5
5
  <versioning>
6
- <latest>20.30.0</latest>
7
- <release>20.30.0</release>
6
+ <latest>20.32.0</latest>
7
+ <release>20.32.0</release>
8
8
  <versions>
9
- <version>20.30.0</version>
9
+ <version>20.32.0</version>
10
10
  </versions>
11
- <lastUpdated>20241226125215</lastUpdated>
11
+ <lastUpdated>20250106191456</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- ad324f05689fe3b7b826d7d867e84f37
1
+ a21a21f5f33f0521ea5b27a6b7c9a53d
@@ -1 +1 @@
1
- 70d396df4a41cca1caf0c5ba0e61dab492278a3e
1
+ 3c0a9c339f4d397ac37a6779311c1c121ab01863
@@ -1 +1 @@
1
- 6351eb801890ff4733ba3c301fd62b8a296193a1bfd2397dbadc61c9c80796a9
1
+ fa21aff43ff2f349f95760a2467987cef206152f4277db7d005193124667457b
@@ -1 +1 @@
1
- 6c94d87a91120ce7745700afc1d1f6c53a4abfe8b9ee10111448dffed21bb204c15ff991e07b6fe63fbd4fed4d4d7030593c490f15cb223c97adb37bc8c5e306
1
+ 91de105f632722548240b0ce79abfa9758dfb44827badc8828bdb09404f917038e5e2157757003141f2d676cf641b9734f063ea0f950e01842d491d3eb8f04fc
Binary file
package/Detox-ios-src.tbz CHANGED
Binary file
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "detox",
3
3
  "description": "E2E tests and automation for mobile",
4
- "version": "20.31.0",
4
+ "version": "20.32.0",
5
5
  "bin": {
6
6
  "detox": "local-cli/cli.js"
7
7
  },
@@ -119,5 +119,5 @@
119
119
  "browserslist": [
120
120
  "node 14"
121
121
  ],
122
- "gitHead": "89a3f0efbac69cd37db886a53f712d51db8f857d"
122
+ "gitHead": "32bc3aabb05f843e8307043e9e5c85f4b47accef"
123
123
  }
@@ -3,7 +3,7 @@ const exec = require('../../../../../../utils/childProcess').execWithRetriesAndL
3
3
 
4
4
  class GenyCloudExec {
5
5
  constructor(binaryPath) {
6
- this.binaryExec = `"${binaryPath}" --format compactjson`;
6
+ this.binaryExec = binaryPath;
7
7
  process.env.GMSAAS_USER_AGENT_EXTRA_DATA = process.env.GMSAAS_USER_AGENT_EXTRA_DATA || 'detox';
8
8
  }
9
9
 
@@ -11,6 +11,10 @@ class GenyCloudExec {
11
11
  return this._exec('--version');
12
12
  }
13
13
 
14
+ doctor() {
15
+ return this._exec('doctor', { retries: 0 }, 'text');
16
+ }
17
+
14
18
  getRecipe(name) {
15
19
  return this._exec(`recipes list --name "${name}"`);
16
20
  }
@@ -38,23 +42,25 @@ class GenyCloudExec {
38
42
  return this._exec(`instances stop ${instanceUUID}`, options);
39
43
  }
40
44
 
41
- async _exec(args, options) {
45
+ async _exec(args, options, format = 'compactjson') {
42
46
  try {
43
- const rawResult = await this.__exec(args, options);
44
- return JSON.parse(rawResult);
47
+ const rawResult = await this.__exec(args, options, format);
48
+ return (
49
+ format === 'compactjson' ? JSON.parse(rawResult) : rawResult
50
+ );
45
51
  } catch (error) {
46
52
  throw new Error(error.stderr);
47
53
  }
48
54
  }
49
55
 
50
- async __exec(args, _options) {
51
- const options = {
52
- ..._options,
56
+ async __exec(args, options, format) {
57
+ const _options = {
58
+ ...options,
53
59
  statusLogs: {
54
60
  retrying: true,
55
61
  },
56
62
  };
57
- return (await exec(`${this.binaryExec} ${args}`, options )).stdout;
63
+ return (await exec(`"${this.binaryExec}" --format ${format} ${args}`, _options )).stdout;
58
64
  }
59
65
  }
60
66
 
@@ -6,6 +6,7 @@ const environment = require('../../../utils/environment');
6
6
  const EnvironmentValidatorBase = require('../EnvironmentValidatorBase');
7
7
 
8
8
  const MIN_GMSAAS_VERSION = '1.6.0';
9
+ const MIN_GMSAAS_VERSION_WITH_DOCTOR = '1.11.0';
9
10
 
10
11
  class GenycloudEnvValidator extends EnvironmentValidatorBase {
11
12
  /**
@@ -18,11 +19,13 @@ class GenycloudEnvValidator extends EnvironmentValidatorBase {
18
19
  }
19
20
 
20
21
  async validate() {
21
- await this._validateGmsaasVersion();
22
+ const { version } = await this._exec.getVersion();
23
+
24
+ await this._validateGmsaasVersion(version);
25
+ await this._validateGmsaasDoctorCheck(version);
22
26
  }
23
27
 
24
- async _validateGmsaasVersion() {
25
- const { version } = await this._exec.getVersion();
28
+ async _validateGmsaasVersion(version) {
26
29
  if (semver.lt(version, MIN_GMSAAS_VERSION)) {
27
30
  throw new DetoxRuntimeError({
28
31
  message: `Your Genymotion-Cloud executable (found in ${environment.getGmsaasPath()}) is too old! (version ${version})`,
@@ -30,6 +33,20 @@ class GenycloudEnvValidator extends EnvironmentValidatorBase {
30
33
  });
31
34
  }
32
35
  }
36
+
37
+ async _validateGmsaasDoctorCheck(version) {
38
+ if (semver.lt(version, MIN_GMSAAS_VERSION_WITH_DOCTOR)) {
39
+ return;
40
+ }
41
+
42
+ try {
43
+ await this._exec.doctor();
44
+ } catch (e) {
45
+ throw new DetoxRuntimeError({
46
+ message: e.message,
47
+ });
48
+ }
49
+ }
33
50
  }
34
51
 
35
52
  module.exports = GenycloudEnvValidator;
@@ -1 +0,0 @@
1
- 3874ff4a56e24600a473d514e4e29e40
@@ -1 +0,0 @@
1
- 629c66f412e7b606503f31713eabd46fa55b618b
@@ -1 +0,0 @@
1
- ca7005ce7e3de6a7fcd96d421742587ed196a0343d90e031501318d3fc3bf54a
@@ -1 +0,0 @@
1
- 033a223e6731b20be6db87a17bfcd4be7ff0833cc8686b66f63aa6ba74f2d05c4735715074fcc9834efe265f282823830102b7a5f808dca7865bd9956ec4b782
@@ -1 +0,0 @@
1
- 3c6dcd60dee4e0fc2d0224627831750b
@@ -1 +0,0 @@
1
- de3d4cc5a268e3535f7dc4d9e11fd6bf5f91729c
@@ -1 +0,0 @@
1
- 463591b08b156e20021aa77adc93813045a82d3925156dc7f08e1aa092a5e3eb
@@ -1 +0,0 @@
1
- ae13b47252859419d791e1f85f44b8abf97d2817a5ad5a7f7cba39172bd8f816b1fbff2a5b72da47875447d8a268c6dd56a9ffcdb04b4c6b98a4cab8485b8865