Skip to content

Commit

Permalink
Merge pull request #1644 from flexn-io/fix/android_target
Browse files Browse the repository at this point in the history
fix target picking for android when only one sim is present
  • Loading branch information
Marius456 authored Aug 7, 2024
2 parents f0decff + f7cb1f2 commit e0fbff4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/sdk-android/src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,6 @@ export const getAndroidDeviceToRunOn = async () => {
if (activeDeviceInfoArr.length === 1 && inactiveDeviceInfoArr.length === 0 && !target) {
chosenTarget = activeDeviceInfoArr[0].value;
logInfo(`Found only one active target: ${chalk().magenta(chosenTarget)}. Will use it.`);
} else if (activeDeviceInfoArr.length === 0 && inactiveDeviceInfoArr.length === 1 && !target) {
//If we have no active devices and only one AVD available let's just launch it.
chosenTarget = inactiveDeviceInfoArr[0].value;
logInfo(`Found only one target to launch: ${chalk().magenta(chosenTarget)}. Will use it.`);
} else {
const response = await inquirerPrompt({
name: 'chosenTarget',
Expand Down Expand Up @@ -378,7 +374,6 @@ export const configureProject = async () => {

// console.log({ templateAndroid: c });


// PLUGINS
parsePlugins((plugin, pluginPlat, key) => {
injectPluginGradleSync(plugin, pluginPlat, key);
Expand Down

0 comments on commit e0fbff4

Please sign in to comment.