11const ChildProcess = require ( 'node:child_process' ) ;
22const { iosDevice } = require ( './ios-devices' ) ;
33
4- const CI_ADB_NAME = 'e2e_emulator' ;
4+ const RNS_CI_AVD_NAME = 'e2e_emulator' ;
55
66const isRunningCI = process . env . CI != null ;
77
@@ -12,8 +12,8 @@ const apkBulidArchitecture = isRunningCI ? 'x86_64' : 'arm64-v8a';
1212const testButlerApkPath = isRunningCI ? [ '../Example/e2e/apps/test-butler-app-2.2.1.apk' ] : undefined ;
1313
1414function detectLocalAndroidEmulator ( ) {
15- // "DETOX_AVD_NAME " can be set for local developement
16- const detoxAvdName = process . env . DETOX_AVD_NAME ?? null ;
15+ // "RNS_DETOX_AVD_NAME " can be set for local developement
16+ const detoxAvdName = process . env . RNS_DETOX_AVD_NAME ?? null ;
1717 if ( detoxAvdName !== null ) {
1818 return detoxAvdName
1919 }
@@ -44,7 +44,7 @@ function detectLocalAndroidEmulator() {
4444}
4545
4646function detectAndroidEmulatorName ( ) {
47- return isRunningCI ? CI_ADB_NAME : detectLocalAndroidEmulator ( ) ; // ??
47+ return isRunningCI ? RNS_CI_AVD_NAME : detectLocalAndroidEmulator ( ) ; // ??
4848}
4949
5050/**
@@ -99,7 +99,7 @@ function commonDetoxConfigFactory(applicationName) {
9999 attached : {
100100 type : 'android.attached' ,
101101 device : {
102- adbName : CI_ADB_NAME ,
102+ avdName : RNS_CI_AVD_NAME ,
103103 } ,
104104 utilBinaryPaths : testButlerApkPath ,
105105 } ,
0 commit comments