detox 20.34.4-smoke.0 → 20.34.4

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.
Files changed (35) hide show
  1. package/Detox-android/com/wix/detox/{20.34.4-smoke.0/detox-20.34.4-smoke.0-sources.jar → 20.34.4/detox-20.34.4-sources.jar} +0 -0
  2. package/Detox-android/com/wix/detox/20.34.4/detox-20.34.4-sources.jar.md5 +1 -0
  3. package/Detox-android/com/wix/detox/20.34.4/detox-20.34.4-sources.jar.sha1 +1 -0
  4. package/Detox-android/com/wix/detox/20.34.4/detox-20.34.4-sources.jar.sha256 +1 -0
  5. package/Detox-android/com/wix/detox/20.34.4/detox-20.34.4-sources.jar.sha512 +1 -0
  6. package/Detox-android/com/wix/detox/{20.34.4-smoke.0/detox-20.34.4-smoke.0.pom → 20.34.4/detox-20.34.4.pom} +1 -1
  7. package/Detox-android/com/wix/detox/20.34.4/detox-20.34.4.pom.md5 +1 -0
  8. package/Detox-android/com/wix/detox/20.34.4/detox-20.34.4.pom.sha1 +1 -0
  9. package/Detox-android/com/wix/detox/20.34.4/detox-20.34.4.pom.sha256 +1 -0
  10. package/Detox-android/com/wix/detox/20.34.4/detox-20.34.4.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/common/drivers/android/exec/ADB.js +4 -13
  21. package/src/devices/runtime/drivers/android/genycloud/GenyCloudDriver.js +0 -6
  22. package/src/utils/childProcess/spawn.js +1 -2
  23. package/Detox-android/com/wix/detox/20.34.4-smoke.0/detox-20.34.4-smoke.0-sources.jar.md5 +0 -1
  24. package/Detox-android/com/wix/detox/20.34.4-smoke.0/detox-20.34.4-smoke.0-sources.jar.sha1 +0 -1
  25. package/Detox-android/com/wix/detox/20.34.4-smoke.0/detox-20.34.4-smoke.0-sources.jar.sha256 +0 -1
  26. package/Detox-android/com/wix/detox/20.34.4-smoke.0/detox-20.34.4-smoke.0-sources.jar.sha512 +0 -1
  27. package/Detox-android/com/wix/detox/20.34.4-smoke.0/detox-20.34.4-smoke.0.pom.md5 +0 -1
  28. package/Detox-android/com/wix/detox/20.34.4-smoke.0/detox-20.34.4-smoke.0.pom.sha1 +0 -1
  29. package/Detox-android/com/wix/detox/20.34.4-smoke.0/detox-20.34.4-smoke.0.pom.sha256 +0 -1
  30. package/Detox-android/com/wix/detox/20.34.4-smoke.0/detox-20.34.4-smoke.0.pom.sha512 +0 -1
  31. /package/Detox-android/com/wix/detox/{20.34.4-smoke.0/detox-20.34.4-smoke.0.aar → 20.34.4/detox-20.34.4.aar} +0 -0
  32. /package/Detox-android/com/wix/detox/{20.34.4-smoke.0/detox-20.34.4-smoke.0.aar.md5 → 20.34.4/detox-20.34.4.aar.md5} +0 -0
  33. /package/Detox-android/com/wix/detox/{20.34.4-smoke.0/detox-20.34.4-smoke.0.aar.sha1 → 20.34.4/detox-20.34.4.aar.sha1} +0 -0
  34. /package/Detox-android/com/wix/detox/{20.34.4-smoke.0/detox-20.34.4-smoke.0.aar.sha256 → 20.34.4/detox-20.34.4.aar.sha256} +0 -0
  35. /package/Detox-android/com/wix/detox/{20.34.4-smoke.0/detox-20.34.4-smoke.0.aar.sha512 → 20.34.4/detox-20.34.4.aar.sha512} +0 -0
@@ -0,0 +1 @@
1
+ 5f5196f635a4832725da896810590789
@@ -0,0 +1 @@
1
+ c62b14e7a401961458f13dd67b850ca25d69b077
@@ -0,0 +1 @@
1
+ 0cdc662aabf9d7ace8a67dfee962534e768b4dcf5a581e1ceab52574abf1db94
@@ -0,0 +1 @@
1
+ 934054ada43e380895eab4232738acbfd8811e21cb8d17d86a64d125ee72c77a614ebe64f0ab2a1fb0be2c2024f740d07d6bbe5d8314a7bf5dba9254b34b691d
@@ -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.34.4-smoke.0</version>
6
+ <version>20.34.4</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
+ 9bf85b779cbf0003d3d05d73be00bd75
@@ -0,0 +1 @@
1
+ c15e6faf08b4bfa7527827c75632779cf0cd5c39
@@ -0,0 +1 @@
1
+ 026e8bfe7dcf8aa652df44a12a390ba1bdc300b44d0533205e27ea2ed17f96cb
@@ -0,0 +1 @@
1
+ fe59aad8ba547a5ba93c59094b1126f70d670a2e236a06f708936791363b38fe7169fbe541b3bc2d6336d5c2799135b625fd42d68426a54f3cbd39c5134fb4fc
@@ -3,11 +3,11 @@
3
3
  <groupId>com.wix</groupId>
4
4
  <artifactId>detox</artifactId>
5
5
  <versioning>
6
- <latest>20.34.4-smoke.0</latest>
7
- <release>20.34.4-smoke.0</release>
6
+ <latest>20.34.4</latest>
7
+ <release>20.34.4</release>
8
8
  <versions>
9
- <version>20.34.4-smoke.0</version>
9
+ <version>20.34.4</version>
10
10
  </versions>
11
- <lastUpdated>20250227123225</lastUpdated>
11
+ <lastUpdated>20250228153149</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 8b6fb10a0f0cd9eb41786a18d8187268
1
+ 06c32f673954b1d53e564d3718cd4944
@@ -1 +1 @@
1
- 75de980403884a18e9437290e8e96b06d161e5ac
1
+ 422cf2392817b37bfbffbfcf9a6053133404bb08
@@ -1 +1 @@
1
- 7f8dc3e5481e52930efe49893b516f2e5b849af68d6621c3e143435f8ea08bd5
1
+ 396411db488a866223fb2a3008e903ad29270fc3899fb0bccb6502063a9824fd
@@ -1 +1 @@
1
- 5ee41f804eac082f19b3b3c5a75664aaba2dcfb51050e707658ea21277594fb98d2d299fc54dfb625c8029cb7cbdc5d64bab757c2ba8ba1986160104d07e41c7
1
+ 5247250ffabcf87485dca59afa70c250325b70763c968d7380b5d280cd4fac8115c7dc650ec0d3f6762317cd5fb298c2f2e22b1d0887798fa5363d9ab0a98e53
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.34.4-smoke.0",
4
+ "version": "20.34.4",
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": "6a50df137e92c64e1821ff502e420269f7c10592"
122
+ "gitHead": "ce6e754c352f1670a17ef7560e9e2c1ebb373a20"
123
123
  }
@@ -8,19 +8,11 @@ const { escape } = require('../../../../../utils/pipeCommands');
8
8
  const DeviceHandle = require('../tools/DeviceHandle');
9
9
  const EmulatorHandle = require('../tools/EmulatorHandle');
10
10
 
11
- const DEFAULT_EXEC_OPTIONS = {
12
- retries: 1,
13
- };
14
- const DEFAULT_INSTALL_OPTIONS = {
15
- timeout: 60000,
16
- retries: 3,
17
- };
11
+ const INSTALL_TIMEOUT = 45000;
18
12
 
19
13
  class ADB {
20
14
  constructor() {
21
15
  this._cachedApiLevels = new Map();
22
- this.defaultExecOptions = DEFAULT_EXEC_OPTIONS;
23
- this.installOptions = DEFAULT_INSTALL_OPTIONS;
24
16
  this.adbBin = getAdbPath();
25
17
  }
26
18
 
@@ -121,7 +113,7 @@ class ADB {
121
113
  const command = (apiLvl >= 23)
122
114
  ? `install -r -g -t ${apkPath}`
123
115
  : `install -rg ${apkPath}`;
124
- const result = await this.adbCmdSpawned(deviceId, command, this.installOptions);
116
+ const result = await this.adbCmdSpawned(deviceId, command, { timeout: INSTALL_TIMEOUT, retries: 3 });
125
117
 
126
118
  const [failure] = (result.stdout || '').match(/^Failure \[.*\]$/m) || [];
127
119
  if (failure) {
@@ -137,7 +129,7 @@ class ADB {
137
129
  const command = (apiLvl >= 23)
138
130
  ? `pm install -r -g -t ${path}`
139
131
  : `pm install -rg ${path}`;
140
- return this.shellSpawned(deviceId, command, this.installOptions);
132
+ return this.shellSpawned(deviceId, command, { timeout: INSTALL_TIMEOUT, retries: 3 });
141
133
  }
142
134
 
143
135
  async uninstall(deviceId, appId) {
@@ -361,7 +353,7 @@ class ADB {
361
353
  const serial = `${deviceId ? `-s ${deviceId}` : ''}`;
362
354
  const cmd = `"${this.adbBin}" ${serial} ${params}`;
363
355
  const _options = {
364
- ...this.defaultExecOptions,
356
+ retries: 1,
365
357
  ...options,
366
358
  };
367
359
  return execWithRetriesAndLogs(cmd, _options);
@@ -372,7 +364,6 @@ class ADB {
372
364
  const serial = deviceId ? ['-s', deviceId] : [];
373
365
  const _flags = [...serial, ...flags];
374
366
  const _spawnOptions = {
375
- ...this.defaultExecOptions,
376
367
  ...spawnOptions,
377
368
  capture: ['stdout'],
378
369
  };
@@ -19,12 +19,6 @@ class GenyCloudDriver extends AndroidDriver {
19
19
  constructor(deps, { adbName, name }) {
20
20
  super(deps, { adbName });
21
21
 
22
- // Make ADB more resilient to network latency and connection hiccups
23
- this.adb.defaultExecOptions = {
24
- retries: 5,
25
- interval: 3000,
26
- backoff: 'linear',
27
- };
28
22
  this._instanceName = name;
29
23
  }
30
24
 
@@ -26,12 +26,11 @@ async function spawnWithRetriesAndLogs(binary, flags, options = {}) {
26
26
  const {
27
27
  retries = 1,
28
28
  interval = 100,
29
- backoff = 'none',
30
29
  ...spawnOptions
31
30
  } = _options;
32
31
 
33
32
  let result;
34
- await retry({ retries, interval, backoff }, async (tryCount, lastError) => {
33
+ await retry({ retries, interval }, async (tryCount, lastError) => {
35
34
  _logSpawnRetrying(logger, tryCount, lastError);
36
35
  result = await _spawnAndLog(logger, binary, flags, command, spawnOptions, tryCount);
37
36
  });
@@ -1 +0,0 @@
1
- 54a7beb016b7cddb31c2f8d48aaa480b
@@ -1 +0,0 @@
1
- 8f4baf3dff400d3c5e66229aa0d9de6bfe9a1bcc
@@ -1 +0,0 @@
1
- 734c6416b6e6674259eb42aaa148f6c43e6d974a2f83b59ef16359cecd36ff22
@@ -1 +0,0 @@
1
- 29f8bd97e7ae78108f2a916710dbd91f49e6a1aa4b6605381d75ed02703a16244c5f5770df193a4ad2c654a401b7568b939f991beeaf6804d575c938250f0d4a
@@ -1 +0,0 @@
1
- 088afe97d812b527a3e75fe18a90ff01
@@ -1 +0,0 @@
1
- 7ba4a00d2334163138ce2a534e786e31a7d436a3
@@ -1 +0,0 @@
1
- d0dbaf10fff6b64e79f38425d19638ed540a79a7c3253dbcf564a3ee2884e7a8
@@ -1 +0,0 @@
1
- 5dca3011f0c443184a1ed151836eb29b7967035426cec1f750360ff5ce79eea4f71a7c9dfc750a65909bbf297b5cabe9bbc5cd39bbdde2619b35634fbc2d6000