detox 20.12.2 → 20.14.0-smoke.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. package/Detox-android/com/wix/detox/{20.12.2/detox-20.12.2-javadoc.jar → 20.14.0-smoke.0/detox-20.14.0-smoke.0-javadoc.jar} +0 -0
  2. package/Detox-android/com/wix/detox/20.14.0-smoke.0/detox-20.14.0-smoke.0-javadoc.jar.md5 +1 -0
  3. package/Detox-android/com/wix/detox/20.14.0-smoke.0/detox-20.14.0-smoke.0-javadoc.jar.sha1 +1 -0
  4. package/Detox-android/com/wix/detox/20.14.0-smoke.0/detox-20.14.0-smoke.0-javadoc.jar.sha256 +1 -0
  5. package/Detox-android/com/wix/detox/20.14.0-smoke.0/detox-20.14.0-smoke.0-javadoc.jar.sha512 +1 -0
  6. package/Detox-android/com/wix/detox/{20.12.2/detox-20.12.2-sources.jar → 20.14.0-smoke.0/detox-20.14.0-smoke.0-sources.jar} +0 -0
  7. package/Detox-android/com/wix/detox/20.14.0-smoke.0/detox-20.14.0-smoke.0-sources.jar.md5 +1 -0
  8. package/Detox-android/com/wix/detox/20.14.0-smoke.0/detox-20.14.0-smoke.0-sources.jar.sha1 +1 -0
  9. package/Detox-android/com/wix/detox/20.14.0-smoke.0/detox-20.14.0-smoke.0-sources.jar.sha256 +1 -0
  10. package/Detox-android/com/wix/detox/20.14.0-smoke.0/detox-20.14.0-smoke.0-sources.jar.sha512 +1 -0
  11. package/Detox-android/com/wix/detox/20.14.0-smoke.0/detox-20.14.0-smoke.0.aar +0 -0
  12. package/Detox-android/com/wix/detox/20.14.0-smoke.0/detox-20.14.0-smoke.0.aar.md5 +1 -0
  13. package/Detox-android/com/wix/detox/20.14.0-smoke.0/detox-20.14.0-smoke.0.aar.sha1 +1 -0
  14. package/Detox-android/com/wix/detox/20.14.0-smoke.0/detox-20.14.0-smoke.0.aar.sha256 +1 -0
  15. package/Detox-android/com/wix/detox/20.14.0-smoke.0/detox-20.14.0-smoke.0.aar.sha512 +1 -0
  16. package/Detox-android/com/wix/detox/{20.12.2/detox-20.12.2.pom → 20.14.0-smoke.0/detox-20.14.0-smoke.0.pom} +1 -1
  17. package/Detox-android/com/wix/detox/20.14.0-smoke.0/detox-20.14.0-smoke.0.pom.md5 +1 -0
  18. package/Detox-android/com/wix/detox/20.14.0-smoke.0/detox-20.14.0-smoke.0.pom.sha1 +1 -0
  19. package/Detox-android/com/wix/detox/20.14.0-smoke.0/detox-20.14.0-smoke.0.pom.sha256 +1 -0
  20. package/Detox-android/com/wix/detox/20.14.0-smoke.0/detox-20.14.0-smoke.0.pom.sha512 +1 -0
  21. package/Detox-android/com/wix/detox/maven-metadata.xml +4 -4
  22. package/Detox-android/com/wix/detox/maven-metadata.xml.md5 +1 -1
  23. package/Detox-android/com/wix/detox/maven-metadata.xml.sha1 +1 -1
  24. package/Detox-android/com/wix/detox/maven-metadata.xml.sha256 +1 -1
  25. package/Detox-android/com/wix/detox/maven-metadata.xml.sha512 +1 -1
  26. package/Detox-ios-src.tbz +0 -0
  27. package/Detox-ios.tbz +0 -0
  28. package/android/detox/src/full/java/com/wix/detox/ActivityLaunchHelper.kt +76 -0
  29. package/android/detox/src/full/java/com/wix/detox/Detox.java +8 -64
  30. package/android/detox/src/full/java/com/wix/detox/DetoxMain.kt +58 -16
  31. package/android/detox/src/full/java/com/wix/detox/LaunchIntentsFactory.kt +1 -1
  32. package/android/detox/src/full/java/com/wix/detox/adapters/server/DetoxActionHandlers.kt +15 -4
  33. package/android/detox/src/full/java/com/wix/detox/adapters/server/DetoxServerInfo.kt +4 -2
  34. package/android/detox/src/full/java/com/wix/detox/reactnative/ReactMarkersLogger.kt +44 -0
  35. package/android/detox/src/full/java/com/wix/detox/reactnative/ReactNativeExtension.kt +28 -21
  36. package/android/detox/src/main/java/com/wix/detox/espresso/UiControllerSpy.kt +0 -3
  37. package/local-cli/reset-lock-file.js +5 -9
  38. package/package.json +5 -6
  39. package/runners/jest/testEnvironment/index.js +1 -1
  40. package/src/DetoxWorker.js +5 -11
  41. package/src/android/espressoapi/Detox.js +0 -11
  42. package/src/artifacts/providers/index.js +3 -3
  43. package/src/artifacts/screenshot/SimulatorScreenshotPlugin.js +0 -17
  44. package/src/configuration/composeLoggerConfig.js +1 -0
  45. package/src/devices/allocation/DeviceAllocator.js +66 -20
  46. package/src/devices/allocation/DeviceList.js +44 -0
  47. package/src/devices/allocation/DeviceRegistry.js +189 -0
  48. package/src/devices/allocation/drivers/AllocationDriverBase.d.ts +15 -0
  49. package/src/devices/{common/drivers/android/tools → allocation/drivers/android}/FreeDeviceFinder.js +11 -10
  50. package/src/devices/allocation/drivers/android/attached/AttachedAndroidAllocDriver.js +22 -17
  51. package/src/devices/allocation/drivers/android/emulator/EmulatorAllocDriver.js +97 -38
  52. package/src/devices/allocation/drivers/android/emulator/EmulatorLauncher.js +32 -45
  53. package/src/devices/allocation/drivers/android/emulator/FreeEmulatorFinder.js +1 -1
  54. package/src/devices/allocation/drivers/android/emulator/FreePortFinder.js +37 -0
  55. package/src/devices/allocation/drivers/android/emulator/launchEmulatorProcess.js +3 -3
  56. package/src/devices/allocation/drivers/android/genycloud/GenyAllocDriver.js +104 -32
  57. package/src/devices/allocation/drivers/android/genycloud/GenyInstanceLauncher.js +40 -31
  58. package/src/devices/allocation/drivers/android/genycloud/GenyRegistry.js +121 -0
  59. package/src/devices/allocation/drivers/android/genycloud/services/GenyInstanceLifecycleService.js +24 -0
  60. package/src/devices/{common → allocation}/drivers/android/genycloud/services/GenyRecipesService.js +1 -1
  61. package/src/devices/allocation/drivers/android/genycloud/services/dto/GenyInstance.js +83 -0
  62. package/src/devices/allocation/drivers/android/genycloud/services/dto/GenyRecipe.js +25 -0
  63. package/src/devices/allocation/drivers/ios/SimulatorAllocDriver.js +94 -51
  64. package/src/devices/allocation/drivers/ios/SimulatorLauncher.js +11 -7
  65. package/src/devices/allocation/drivers/ios/SimulatorQuery.js +24 -0
  66. package/src/devices/allocation/factories/android.js +29 -35
  67. package/src/devices/allocation/factories/ios.js +7 -5
  68. package/src/devices/common/drivers/DeviceCookie.d.ts +12 -0
  69. package/src/devices/common/drivers/android/cookies.d.ts +11 -0
  70. package/src/devices/common/drivers/android/emulator/exec/EmulatorExec.js +17 -5
  71. package/src/devices/common/drivers/android/exec/ADB.js +1 -0
  72. package/src/devices/common/drivers/ios/cookies.d.ts +9 -0
  73. package/src/devices/cookies/index.js +0 -6
  74. package/src/devices/runtime/drivers/android/genycloud/GenyCloudDriver.js +7 -6
  75. package/src/devices/runtime/factories/android.js +3 -11
  76. package/src/devices/runtime/factories/ios.js +3 -2
  77. package/src/{servicelocator → devices/servicelocator}/android/emulatorServiceLocator.js +1 -1
  78. package/src/devices/servicelocator/android/genycloudServiceLocator.js +17 -0
  79. package/src/devices/servicelocator/android/index.js +23 -0
  80. package/src/{validation → devices/validation}/EnvironmentValidatorBase.js +1 -0
  81. package/src/{validation → devices/validation}/android/GenycloudEnvValidator.js +2 -2
  82. package/src/{validation → devices/validation}/factories/index.js +1 -1
  83. package/src/{validation → devices/validation}/ios/IosSimulatorEnvValidator.js +2 -2
  84. package/src/environmentFactory.js +1 -11
  85. package/src/ipc/IPCClient.js +17 -1
  86. package/src/ipc/IPCServer.js +27 -1
  87. package/src/logger/DetoxLogger.js +2 -2
  88. package/src/realms/DetoxContext.js +6 -0
  89. package/src/realms/DetoxPrimaryContext.js +42 -42
  90. package/src/realms/DetoxSecondaryContext.js +19 -0
  91. package/src/realms/symbols.js +4 -0
  92. package/src/utils/PIDService.js +27 -0
  93. package/src/utils/environment.js +8 -15
  94. package/src/utils/errorUtils.js +2 -2
  95. package/tsconfig.json +5 -3
  96. package/Detox-android/com/wix/detox/20.12.2/detox-20.12.2-javadoc.jar.md5 +0 -1
  97. package/Detox-android/com/wix/detox/20.12.2/detox-20.12.2-javadoc.jar.sha1 +0 -1
  98. package/Detox-android/com/wix/detox/20.12.2/detox-20.12.2-javadoc.jar.sha256 +0 -1
  99. package/Detox-android/com/wix/detox/20.12.2/detox-20.12.2-javadoc.jar.sha512 +0 -1
  100. package/Detox-android/com/wix/detox/20.12.2/detox-20.12.2-sources.jar.md5 +0 -1
  101. package/Detox-android/com/wix/detox/20.12.2/detox-20.12.2-sources.jar.sha1 +0 -1
  102. package/Detox-android/com/wix/detox/20.12.2/detox-20.12.2-sources.jar.sha256 +0 -1
  103. package/Detox-android/com/wix/detox/20.12.2/detox-20.12.2-sources.jar.sha512 +0 -1
  104. package/Detox-android/com/wix/detox/20.12.2/detox-20.12.2.aar +0 -0
  105. package/Detox-android/com/wix/detox/20.12.2/detox-20.12.2.aar.md5 +0 -1
  106. package/Detox-android/com/wix/detox/20.12.2/detox-20.12.2.aar.sha1 +0 -1
  107. package/Detox-android/com/wix/detox/20.12.2/detox-20.12.2.aar.sha256 +0 -1
  108. package/Detox-android/com/wix/detox/20.12.2/detox-20.12.2.aar.sha512 +0 -1
  109. package/Detox-android/com/wix/detox/20.12.2/detox-20.12.2.pom.md5 +0 -1
  110. package/Detox-android/com/wix/detox/20.12.2/detox-20.12.2.pom.sha1 +0 -1
  111. package/Detox-android/com/wix/detox/20.12.2/detox-20.12.2.pom.sha256 +0 -1
  112. package/Detox-android/com/wix/detox/20.12.2/detox-20.12.2.pom.sha512 +0 -1
  113. package/src/devices/DeviceRegistry.js +0 -176
  114. package/src/devices/allocation/drivers/AllocationDriverBase.js +0 -30
  115. package/src/devices/allocation/drivers/android/attached/AttachedAndroidLauncher.js +0 -13
  116. package/src/devices/allocation/drivers/android/emulator/EmulatorAllocationHelper.js +0 -72
  117. package/src/devices/allocation/drivers/android/genycloud/GenyDeviceRegistryFactory.js +0 -16
  118. package/src/devices/allocation/drivers/android/genycloud/GenyInstanceAllocationHelper.js +0 -65
  119. package/src/devices/common/drivers/DeviceAllocationHelper.js +0 -20
  120. package/src/devices/common/drivers/DeviceLauncher.js +0 -19
  121. package/src/devices/common/drivers/android/genycloud/services/GenyInstanceLifecycleService.js +0 -25
  122. package/src/devices/common/drivers/android/genycloud/services/GenyInstanceLookupService.js +0 -38
  123. package/src/devices/common/drivers/android/genycloud/services/GenyInstanceNaming.js +0 -14
  124. package/src/devices/common/drivers/android/genycloud/services/dto/GenyInstance.js +0 -66
  125. package/src/devices/common/drivers/android/genycloud/services/dto/GenyRecipe.js +0 -13
  126. package/src/devices/cookies/AndroidDeviceCookie.js +0 -13
  127. package/src/devices/cookies/AndroidEmulatorCookie.js +0 -6
  128. package/src/devices/cookies/AttachedAndroidDeviceCookie.js +0 -12
  129. package/src/devices/cookies/DeviceCookie.js +0 -4
  130. package/src/devices/cookies/GenycloudEmulatorCookie.js +0 -20
  131. package/src/devices/cookies/IosCookie.js +0 -6
  132. package/src/devices/cookies/IosSimulatorCookie.js +0 -10
  133. package/src/devices/lifecycle/GenyGlobalLifecycleHandler.js +0 -71
  134. package/src/devices/lifecycle/factories/GenyGlobalLifecycleHandlerFactory.js +0 -18
  135. package/src/servicelocator/android/genycloudServiceLocator.js +0 -21
  136. package/src/servicelocator/android/index.js +0 -25
  137. package/src/servicelocator/ios.js +0 -7
  138. /package/src/devices/{common → allocation}/drivers/android/genycloud/exec/GenyCloudExec.js +0 -0
  139. /package/src/devices/{common → allocation}/drivers/android/genycloud/services/GenyAuthService.js +0 -0
@@ -1,66 +0,0 @@
1
- const Recipe = require('./GenyRecipe');
2
-
3
- const STATE_ONLINE = 'ONLINE';
4
- const STATE_CREATING = 'CREATING';
5
- const STATE_BOOTING = 'BOOTING';
6
- const STATE_STARTING = 'STARTING';
7
- const initStates = new Set([
8
- STATE_CREATING,
9
- STATE_BOOTING,
10
- STATE_STARTING,
11
- ]);
12
-
13
- class GenyInstance {
14
- constructor(rawInstance) {
15
- this.uuid = rawInstance.uuid;
16
- this.name = rawInstance.name;
17
-
18
- /**
19
- * According to Genymotion's API docs, state is an enum with these possible values (description is not official):
20
- * - "CREATING": Handling instance creation request
21
- * - "STARTING": Instance created but not yet available for usage
22
- * - "BOOTING": Instance created & started; Android OS is not booting
23
- * - "ONLINE": Instance is ready for action
24
- * - "RECYCLED": Instance has been automatically shut down due an idle timeout
25
- * - "STOPPING": Instance is being shut-down
26
- *
27
- * Additional states: "OFFLINE", "SAVING", "SAVED", "DELETING", "ERROR", "REVOKED", "EXPIRED".
28
- */
29
- this.state = rawInstance.state;
30
- this.adb = {
31
- name: rawInstance.adb_serial,
32
- port: rawInstance.adb_serial_port,
33
- };
34
- this.recipe = new Recipe(rawInstance.recipe);
35
- }
36
-
37
- isAdbConnected() {
38
- return this.adb.name !== '0.0.0.0';
39
- }
40
-
41
- isOnline() {
42
- return this.state === STATE_ONLINE;
43
- }
44
-
45
- isInitializing() {
46
- return initStates.has(this.state);
47
- }
48
-
49
- get recipeName() {
50
- return this.recipe.name;
51
- }
52
-
53
- get recipeUUID() {
54
- return this.recipe.uuid;
55
- }
56
-
57
- get adbName() {
58
- return this.adb.name;
59
- }
60
-
61
- toString() {
62
- return `GenyCloud:${this.name} (${this.uuid} ${this.adbName})`;
63
- }
64
- }
65
-
66
- module.exports = GenyInstance;
@@ -1,13 +0,0 @@
1
- class GenyRecipe {
2
- constructor(rawRecipe) {
3
- this.uuid = rawRecipe.uuid;
4
- this.name = rawRecipe.name || 'Anonymous GMSaaS Recipe';
5
- this._description = (rawRecipe.name ? `${this.name} (${this.uuid})` : `Recipe of ${this.uuid}`);
6
- }
7
-
8
- toString() {
9
- return this._description;
10
- }
11
- }
12
-
13
- module.exports = GenyRecipe;
@@ -1,13 +0,0 @@
1
- const DeviceCookie = require('./DeviceCookie');
2
-
3
- class AndroidDeviceCookie extends DeviceCookie {
4
- /**
5
- * @param adbName { String }
6
- */
7
- constructor(adbName) {
8
- super();
9
- this.adbName = adbName;
10
- }
11
- }
12
-
13
- module.exports = AndroidDeviceCookie;
@@ -1,6 +0,0 @@
1
- const AndroidDeviceCookie = require('./AndroidDeviceCookie');
2
-
3
- class AndroidEmulatorCookie extends AndroidDeviceCookie {
4
- }
5
-
6
- module.exports = AndroidEmulatorCookie;
@@ -1,12 +0,0 @@
1
- const AndroidDeviceCookie = require('./AndroidDeviceCookie');
2
-
3
- class AttachedAndroidDeviceCookie extends AndroidDeviceCookie {
4
- /**
5
- * @param adbName { String }
6
- */
7
- constructor(adbName) {
8
- super(adbName);
9
- }
10
- }
11
-
12
- module.exports = AttachedAndroidDeviceCookie;
@@ -1,4 +0,0 @@
1
- class DeviceCookie {
2
- }
3
-
4
- module.exports = DeviceCookie;
@@ -1,20 +0,0 @@
1
- // @ts-nocheck
2
- const AndroidDeviceCookie = require('./AndroidDeviceCookie');
3
-
4
- class GenycloudEmulatorCookie extends AndroidDeviceCookie {
5
- /**
6
- * @param instance { GenyInstance }
7
- */
8
- constructor(instance) {
9
- super();
10
- this.instance = instance;
11
- }
12
-
13
- get adbName() {
14
- return this.instance.adbName;
15
- }
16
-
17
- set adbName(value) {}
18
- }
19
-
20
- module.exports = GenycloudEmulatorCookie;
@@ -1,6 +0,0 @@
1
- const DeviceCookie = require('./DeviceCookie');
2
-
3
- class IosCookie extends DeviceCookie {
4
- }
5
-
6
- module.exports = IosCookie;
@@ -1,10 +0,0 @@
1
- const IosCookie = require('./IosCookie');
2
-
3
- class IosSimulatorCookie extends IosCookie {
4
- constructor(udid) {
5
- super();
6
- this.udid = udid;
7
- }
8
- }
9
-
10
- module.exports = IosSimulatorCookie;
@@ -1,71 +0,0 @@
1
- const logger = require('../../utils/logger').child({ cat: 'device' });
2
-
3
- const cleanupLogData = {
4
- event: 'GENYCLOUD_TEARDOWN',
5
- };
6
-
7
- class GenyGlobalLifecycleHandler {
8
- constructor({ deviceCleanupRegistry, instanceLifecycleService }) {
9
- /** @private */
10
- this._deviceCleanupRegistry = deviceCleanupRegistry;
11
- /** @private */
12
- this._instanceLifecycleService = instanceLifecycleService;
13
- }
14
-
15
- async globalInit() {}
16
-
17
- emergencyCleanup() {
18
- const { rawDevices } = this._deviceCleanupRegistry.readRegisteredDevicesUNSAFE();
19
- const instanceHandles = rawDevicesToInstanceHandles(rawDevices);
20
- if (instanceHandles.length) {
21
- reportGlobalCleanupSummary(instanceHandles);
22
- }
23
- }
24
-
25
- async globalCleanup() {
26
- const { rawDevices } = await this._deviceCleanupRegistry.readRegisteredDevices();
27
- const instanceHandles = rawDevicesToInstanceHandles(rawDevices);
28
- if (instanceHandles.length) {
29
- await doSafeCleanup(this._instanceLifecycleService, instanceHandles);
30
- }
31
- }
32
- }
33
-
34
- async function doSafeCleanup(instanceLifecycleService, instanceHandles) {
35
- logger.info(cleanupLogData, 'Initiating Genymotion SaaS instances teardown...');
36
-
37
- const deletionLeaks = [];
38
- const killPromises = instanceHandles.map((instanceHandle) =>
39
- instanceLifecycleService.deleteInstance(instanceHandle.uuid)
40
- .catch((error) => deletionLeaks.push({ ...instanceHandle, error })));
41
-
42
- await Promise.all(killPromises);
43
- reportGlobalCleanupSummary(deletionLeaks);
44
- }
45
-
46
- function reportGlobalCleanupSummary(deletionLeaks) {
47
- if (deletionLeaks.length) {
48
- logger.warn(cleanupLogData, 'WARNING! Detected a Genymotion SaaS instance leakage, for the following instances:');
49
-
50
- deletionLeaks.forEach(({ uuid, name, error }) => {
51
- logger.warn(cleanupLogData, [
52
- `Instance ${name} (${uuid})${error ? `: ${error}` : ''}`,
53
- ` Kill it by visiting https://cloud.geny.io/instance/${uuid}, or by running:`,
54
- ` gmsaas instances stop ${uuid}`,
55
- ].join('\n'));
56
- });
57
-
58
- logger.info(cleanupLogData, 'Instances teardown completed with warnings');
59
- } else {
60
- logger.info(cleanupLogData, 'Instances teardown completed successfully');
61
- }
62
- }
63
-
64
- function rawDevicesToInstanceHandles(rawDevices) {
65
- return rawDevices.map((rawDevice) => ({
66
- uuid: rawDevice.id,
67
- name: rawDevice.data.name,
68
- }));
69
- }
70
-
71
- module.exports = GenyGlobalLifecycleHandler;
@@ -1,18 +0,0 @@
1
- class GenyGlobalLifecycleHandlerFactory {
2
- /**
3
- * @returns { GenyGlobalLifecycleHandler }
4
- */
5
- createHandler() {
6
- const serviceLocator = require('../../../servicelocator/android');
7
- const deviceCleanupRegistry = serviceLocator.genycloud.cleanupDeviceRegistry;
8
- const exec = serviceLocator.genycloud.exec;
9
-
10
- const InstanceLifecycleService = require('../../common/drivers/android/genycloud/services/GenyInstanceLifecycleService');
11
- const instanceLifecycleService = new InstanceLifecycleService(exec, null);
12
-
13
- const GenyGlobalLifecycleHandler = require('../GenyGlobalLifecycleHandler');
14
- return new GenyGlobalLifecycleHandler({ deviceCleanupRegistry, instanceLifecycleService });
15
- }
16
- }
17
-
18
- module.exports = GenyGlobalLifecycleHandlerFactory;
@@ -1,21 +0,0 @@
1
- const GenyDeviceRegistryFactory = require('../../devices/allocation/drivers/android/genycloud/GenyDeviceRegistryFactory');
2
-
3
- class GenycloudServiceLocator {
4
- constructor() {
5
- this._exec = null;
6
- this.runtimeDeviceRegistry = GenyDeviceRegistryFactory.forRuntime();
7
- this.cleanupDeviceRegistry = GenyDeviceRegistryFactory.forGlobalShutdown();
8
- }
9
-
10
- // Note: important to keep lazy because of implicit validations that are sensitive (inside environment, in particular).
11
- get exec() {
12
- if (!this._exec) {
13
- const Exec = require('../../devices/common/drivers/android/genycloud/exec/GenyCloudExec');
14
- const environment = require('../../utils/environment');
15
- this._exec = new Exec(environment.getGmsaasPath());
16
- }
17
- return this._exec;
18
- }
19
- }
20
-
21
- module.exports = new GenycloudServiceLocator();
@@ -1,25 +0,0 @@
1
- const AndroidDevicePathBuilder = require('../../artifacts/utils/AndroidDevicePathBuilder');
2
- const DeviceRegistry = require('../../devices/DeviceRegistry');
3
- const AAPT = require('../../devices/common/drivers/android/exec/AAPT');
4
- const ADB = require('../../devices/common/drivers/android/exec/ADB');
5
- const ApkValidator = require('../../devices/common/drivers/android/tools/ApkValidator');
6
- const { TempFileTransfer } = require('../../devices/common/drivers/android/tools/TempFileTransfer');
7
-
8
- const AndroidServiceLocator = {
9
- get emulator() {
10
- return require('./emulatorServiceLocator');
11
- },
12
-
13
- get genycloud() {
14
- return require('./genycloudServiceLocator');
15
- },
16
- };
17
-
18
- AndroidServiceLocator.adb = new ADB();
19
- AndroidServiceLocator.aapt = new AAPT();
20
- AndroidServiceLocator.apkValidator = new ApkValidator(AndroidServiceLocator.aapt);
21
- AndroidServiceLocator.fileTransfer = new TempFileTransfer(AndroidServiceLocator.adb);
22
- AndroidServiceLocator.deviceRegistry = DeviceRegistry.forAndroid();
23
- AndroidServiceLocator.devicePathBuilder = new AndroidDevicePathBuilder();
24
-
25
- module.exports = AndroidServiceLocator;
@@ -1,7 +0,0 @@
1
- const DeviceRegistry = require('../devices/DeviceRegistry');
2
- const AppleSimUtils = require('../devices/common/drivers/ios/tools/AppleSimUtils');
3
-
4
- module.exports = {
5
- appleSimUtils: new AppleSimUtils(),
6
- deviceRegistry: DeviceRegistry.forIOS(),
7
- };