detox 20.0.2 → 20.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/Detox-android/com/wix/detox/{20.0.2/detox-20.0.2-javadoc.jar → 20.0.3/detox-20.0.3-javadoc.jar} +0 -0
- package/Detox-android/com/wix/detox/20.0.3/detox-20.0.3-javadoc.jar.md5 +1 -0
- package/Detox-android/com/wix/detox/20.0.3/detox-20.0.3-javadoc.jar.sha1 +1 -0
- package/Detox-android/com/wix/detox/20.0.3/detox-20.0.3-javadoc.jar.sha256 +1 -0
- package/Detox-android/com/wix/detox/20.0.3/detox-20.0.3-javadoc.jar.sha512 +1 -0
- package/Detox-android/com/wix/detox/{20.0.2/detox-20.0.2-sources.jar → 20.0.3/detox-20.0.3-sources.jar} +0 -0
- package/Detox-android/com/wix/detox/20.0.3/detox-20.0.3-sources.jar.md5 +1 -0
- package/Detox-android/com/wix/detox/20.0.3/detox-20.0.3-sources.jar.sha1 +1 -0
- package/Detox-android/com/wix/detox/20.0.3/detox-20.0.3-sources.jar.sha256 +1 -0
- package/Detox-android/com/wix/detox/20.0.3/detox-20.0.3-sources.jar.sha512 +1 -0
- package/Detox-android/com/wix/detox/{20.0.2/detox-20.0.2.aar → 20.0.3/detox-20.0.3.aar} +0 -0
- package/Detox-android/com/wix/detox/{20.0.2/detox-20.0.2.aar.md5 → 20.0.3/detox-20.0.3.aar.md5} +0 -0
- package/Detox-android/com/wix/detox/{20.0.2/detox-20.0.2.aar.sha1 → 20.0.3/detox-20.0.3.aar.sha1} +0 -0
- package/Detox-android/com/wix/detox/{20.0.2/detox-20.0.2.aar.sha256 → 20.0.3/detox-20.0.3.aar.sha256} +0 -0
- package/Detox-android/com/wix/detox/{20.0.2/detox-20.0.2.aar.sha512 → 20.0.3/detox-20.0.3.aar.sha512} +0 -0
- package/Detox-android/com/wix/detox/{20.0.2/detox-20.0.2.pom → 20.0.3/detox-20.0.3.pom} +1 -1
- package/Detox-android/com/wix/detox/20.0.3/detox-20.0.3.pom.md5 +1 -0
- package/Detox-android/com/wix/detox/20.0.3/detox-20.0.3.pom.sha1 +1 -0
- package/Detox-android/com/wix/detox/20.0.3/detox-20.0.3.pom.sha256 +1 -0
- package/Detox-android/com/wix/detox/20.0.3/detox-20.0.3.pom.sha512 +1 -0
- package/Detox-android/com/wix/detox/maven-metadata.xml +4 -4
- package/Detox-android/com/wix/detox/maven-metadata.xml.md5 +1 -1
- package/Detox-android/com/wix/detox/maven-metadata.xml.sha1 +1 -1
- package/Detox-android/com/wix/detox/maven-metadata.xml.sha256 +1 -1
- package/Detox-android/com/wix/detox/maven-metadata.xml.sha512 +1 -1
- package/Detox-ios-src.tbz +0 -0
- package/Detox-ios.tbz +0 -0
- package/package.json +2 -3
- package/src/devices/allocation/drivers/android/emulator/EmulatorLauncher.js +3 -3
- package/src/devices/allocation/drivers/android/emulator/launchEmulatorProcess.js +3 -16
- package/src/devices/common/drivers/android/exec/ADB.js +4 -0
- package/Detox-android/com/wix/detox/20.0.2/detox-20.0.2-javadoc.jar.md5 +0 -1
- package/Detox-android/com/wix/detox/20.0.2/detox-20.0.2-javadoc.jar.sha1 +0 -1
- package/Detox-android/com/wix/detox/20.0.2/detox-20.0.2-javadoc.jar.sha256 +0 -1
- package/Detox-android/com/wix/detox/20.0.2/detox-20.0.2-javadoc.jar.sha512 +0 -1
- package/Detox-android/com/wix/detox/20.0.2/detox-20.0.2-sources.jar.md5 +0 -1
- package/Detox-android/com/wix/detox/20.0.2/detox-20.0.2-sources.jar.sha1 +0 -1
- package/Detox-android/com/wix/detox/20.0.2/detox-20.0.2-sources.jar.sha256 +0 -1
- package/Detox-android/com/wix/detox/20.0.2/detox-20.0.2-sources.jar.sha512 +0 -1
- package/Detox-android/com/wix/detox/20.0.2/detox-20.0.2.pom.md5 +0 -1
- package/Detox-android/com/wix/detox/20.0.2/detox-20.0.2.pom.sha1 +0 -1
- package/Detox-android/com/wix/detox/20.0.2/detox-20.0.2.pom.sha256 +0 -1
- package/Detox-android/com/wix/detox/20.0.2/detox-20.0.2.pom.sha512 +0 -1
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
c1b642ed846d5ebfab778aa87a189481
|
@@ -0,0 +1 @@
|
|
1
|
+
45e78b295ac3869d0b68ece52fe5462e538a413b
|
@@ -0,0 +1 @@
|
|
1
|
+
07164ea51283402328e47c477b18aa30ccf8f101b76de9991e5f161a0ba61dde
|
@@ -0,0 +1 @@
|
|
1
|
+
41a448ab91e4eda22f07f479148a42e50b8664516ed3213e56449d6b28da1c963c5e016bf9e08c25ffabdad3674d16f5437a72addc6ca80b8226facb36543a9a
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
ed60b87c9f8bc3bdc94788decf099033
|
@@ -0,0 +1 @@
|
|
1
|
+
8e40901e28b5c56fd6ac64b1583c870cfbd6bba9
|
@@ -0,0 +1 @@
|
|
1
|
+
af9a74d0a80d9340fc497802df87e29ee1f7c4bdf88a0ec54e1c3057d847a7e8
|
@@ -0,0 +1 @@
|
|
1
|
+
5645c6081d56348c237154c64e1756b70bcf179003d2bc9e0682a13af0e33153e91963466dd8ad0e8163b195103bbb31e0ba08a120b83492c3859c1b2aa8a7c8
|
File without changes
|
package/Detox-android/com/wix/detox/{20.0.2/detox-20.0.2.aar.md5 → 20.0.3/detox-20.0.3.aar.md5}
RENAMED
File without changes
|
package/Detox-android/com/wix/detox/{20.0.2/detox-20.0.2.aar.sha1 → 20.0.3/detox-20.0.3.aar.sha1}
RENAMED
File without changes
|
File without changes
|
File without changes
|
@@ -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.0.
|
6
|
+
<version>20.0.3</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
|
+
8d74bb184e7bc06d199aee417314f38b
|
@@ -0,0 +1 @@
|
|
1
|
+
09f0e4135bf6aab06b64e51cab2fccb791c2dc76
|
@@ -0,0 +1 @@
|
|
1
|
+
5a82633e4dff0ddae20b42a0f68d2329647aa7b6c785722b80c82091369961e9
|
@@ -0,0 +1 @@
|
|
1
|
+
645da9532ebe3f772f350ee35869d353cd59473ca386319b2562abccd240c6354b9d21c88f59fd290fba80443385a9769d015d276a00b92fdad9ee0790be6b39
|
@@ -3,11 +3,11 @@
|
|
3
3
|
<groupId>com.wix</groupId>
|
4
4
|
<artifactId>detox</artifactId>
|
5
5
|
<versioning>
|
6
|
-
<latest>20.0.
|
7
|
-
<release>20.0.
|
6
|
+
<latest>20.0.3</latest>
|
7
|
+
<release>20.0.3</release>
|
8
8
|
<versions>
|
9
|
-
<version>20.0.
|
9
|
+
<version>20.0.3</version>
|
10
10
|
</versions>
|
11
|
-
<lastUpdated>
|
11
|
+
<lastUpdated>20221116125419</lastUpdated>
|
12
12
|
</versioning>
|
13
13
|
</metadata>
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
e87c2cd86a09f2dd8c8836201d37fd35
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
c2904f781d852586b0f3b91741db1ed3556a4900
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
43903f42c07702eb3aba353ddb08036938bbce3b3caab23cb055f2f5216c4b3f
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
f6f917b1e02cdb3e4988161b80f69f15be2de115b783ec969df1ff0798a5bd87fa2146edb92d2d7537d3b17362dae1afcf6c43de4bfb0b3df729e634e97c2f29
|
package/Detox-ios-src.tbz
CHANGED
Binary file
|
package/Detox-ios.tbz
CHANGED
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.0.
|
4
|
+
"version": "20.0.3",
|
5
5
|
"bin": {
|
6
6
|
"detox": "local-cli/cli.js"
|
7
7
|
},
|
@@ -81,7 +81,6 @@
|
|
81
81
|
"signal-exit": "^3.0.3",
|
82
82
|
"stream-json": "^1.7.4",
|
83
83
|
"strip-ansi": "^6.0.1",
|
84
|
-
"tail": "^2.0.0",
|
85
84
|
"telnet-client": "1.2.8",
|
86
85
|
"tempfile": "^2.0.0",
|
87
86
|
"trace-event-lib": "^1.3.1",
|
@@ -189,5 +188,5 @@
|
|
189
188
|
}
|
190
189
|
}
|
191
190
|
},
|
192
|
-
"gitHead": "
|
191
|
+
"gitHead": "f1deb8295fe06bf9e8f45116f85d21fdb37b7b47"
|
193
192
|
}
|
@@ -36,7 +36,7 @@ class EmulatorLauncher extends DeviceLauncher {
|
|
36
36
|
retries: 2,
|
37
37
|
interval: 100,
|
38
38
|
conditionFn: isUnknownEmulatorError,
|
39
|
-
}, () => this._launchEmulator(avdName, launchCommand));
|
39
|
+
}, () => this._launchEmulator(avdName, launchCommand, adbName));
|
40
40
|
}
|
41
41
|
await this._awaitEmulatorBoot(adbName);
|
42
42
|
await this._notifyBootEvent(adbName, avdName, !isRunning);
|
@@ -60,8 +60,8 @@ class EmulatorLauncher extends DeviceLauncher {
|
|
60
60
|
await this._notifyShutdownCompleted(adbName);
|
61
61
|
}
|
62
62
|
|
63
|
-
_launchEmulator(emulatorName, launchCommand) {
|
64
|
-
return launchEmulatorProcess(emulatorName, this._emulatorExec, launchCommand);
|
63
|
+
_launchEmulator(emulatorName, launchCommand, adbName) {
|
64
|
+
return launchEmulatorProcess(emulatorName, this._emulatorExec, launchCommand, this._adb, adbName);
|
65
65
|
}
|
66
66
|
|
67
67
|
async _awaitEmulatorBoot(adbName) {
|
@@ -1,29 +1,15 @@
|
|
1
1
|
const fs = require('fs');
|
2
2
|
|
3
3
|
const _ = require('lodash');
|
4
|
-
const { Tail } = require('tail');
|
5
4
|
|
6
5
|
const unitLogger = require('../../../../../utils/logger').child({ cat: 'device' });
|
7
6
|
|
8
|
-
function launchEmulatorProcess(emulatorName, emulatorExec, emulatorLaunchCommand) {
|
7
|
+
function launchEmulatorProcess(emulatorName, emulatorExec, emulatorLaunchCommand, adb, adbName) {
|
9
8
|
let childProcessOutput;
|
10
|
-
|
11
9
|
const portName = emulatorLaunchCommand.port ? `-${emulatorLaunchCommand.port}` : '';
|
12
10
|
const tempLog = `./${emulatorName}${portName}.log`;
|
13
11
|
const stdout = fs.openSync(tempLog, 'a');
|
14
12
|
const stderr = fs.openSync(tempLog, 'a');
|
15
|
-
const tailOptions = {
|
16
|
-
useWatchFile: true,
|
17
|
-
fsWatchOptions: {
|
18
|
-
interval: 1500,
|
19
|
-
},
|
20
|
-
};
|
21
|
-
const tail = new Tail(tempLog, tailOptions)
|
22
|
-
.on('line', (line) => {
|
23
|
-
if (line.includes('Adb connected, start proxing data')) {
|
24
|
-
childProcessPromise._cpResolve();
|
25
|
-
}
|
26
|
-
});
|
27
13
|
|
28
14
|
function detach() {
|
29
15
|
if (childProcessOutput) {
|
@@ -32,7 +18,6 @@ function launchEmulatorProcess(emulatorName, emulatorExec, emulatorLaunchCommand
|
|
32
18
|
|
33
19
|
childProcessOutput = fs.readFileSync(tempLog, 'utf8');
|
34
20
|
|
35
|
-
tail.unwatch();
|
36
21
|
fs.closeSync(stdout);
|
37
22
|
fs.closeSync(stderr);
|
38
23
|
fs.unlink(tempLog, _.noop);
|
@@ -46,6 +31,8 @@ function launchEmulatorProcess(emulatorName, emulatorExec, emulatorLaunchCommand
|
|
46
31
|
|
47
32
|
log = log.child({ child_pid: childProcessPromise.childProcess.pid });
|
48
33
|
|
34
|
+
adb.waitForDevice(adbName).then(() => childProcessPromise._cpResolve());
|
35
|
+
|
49
36
|
return childProcessPromise.then(() => true).catch((err) => {
|
50
37
|
detach();
|
51
38
|
|
@@ -189,6 +189,10 @@ class ADB {
|
|
189
189
|
}
|
190
190
|
}
|
191
191
|
|
192
|
+
async waitForDevice(deviceId) {
|
193
|
+
return await this.adbCmd(deviceId, 'wait-for-device');
|
194
|
+
}
|
195
|
+
|
192
196
|
async apiLevel(deviceId) {
|
193
197
|
if (this._cachedApiLevels.has(deviceId)) {
|
194
198
|
return this._cachedApiLevels.get(deviceId);
|
@@ -1 +0,0 @@
|
|
1
|
-
514cd58d623830ff11b1b7b32035b2f5
|
@@ -1 +0,0 @@
|
|
1
|
-
9cd358d37b6a4abeaf910f3cba214f0e9e0e5550
|
@@ -1 +0,0 @@
|
|
1
|
-
d26c25b365a5848bcab24a07c1dcd5cb4e55e221b641642cca3007889187af5e
|
@@ -1 +0,0 @@
|
|
1
|
-
5759ed953a4d0854ef67219e01102a2ec30da9a685cf997c1e9aaa0e138a3160d7acf68bac3c61ed93169b96122e9631413415ac3ef0a23099b07f4f0ad7e877
|
@@ -1 +0,0 @@
|
|
1
|
-
3d3ff582ffc1e63d8439b6c1c870d072
|
@@ -1 +0,0 @@
|
|
1
|
-
a6b2b9706eefba7a98ee96bfd74c9e6c0953c560
|
@@ -1 +0,0 @@
|
|
1
|
-
f226e31a8f73581be7a622873f1648ad7ff3689fb69c6803b162891d6432a222
|
@@ -1 +0,0 @@
|
|
1
|
-
3f161dca3fbcb2dc70b4994ea2e0889b7c259688188d8831fa05f54b9d1a4ec5ac1cd9e05296e1d6928a3cb95afc3871006855b6081593c0be96469bf46ff9eb
|
@@ -1 +0,0 @@
|
|
1
|
-
4f7a1a7399a5af7b35c036d2fc0718cb
|
@@ -1 +0,0 @@
|
|
1
|
-
dac8c057b62ac30f745c079966af8414dcb091f3
|
@@ -1 +0,0 @@
|
|
1
|
-
b5fd933f8d07b16518b57ba0eb8e1b81408705c6a14300c98b2b6db643dc7a07
|
@@ -1 +0,0 @@
|
|
1
|
-
6396385afa4de70131d6db2911f0044aab4f739cb1e8b7b212473ff8ddcd356e928a489dbca9cd978b190f7d5134466afc1a58d2fd6a85664e0979fe13f80b86
|