Skip to content

Commit

Permalink
Merge pull request #5849 from cb1kenobi/timob-17201_3_3_X
Browse files Browse the repository at this point in the history
[TIMOB-17201] Ripped out all of the genymotion.enabled checks.
  • Loading branch information
skypanther committed Jun 26, 2014
2 parents 6e4661e + 5e54229 commit 36c1335
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 34 deletions.
48 changes: 22 additions & 26 deletions android/cli/lib/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,27 +132,25 @@ exports.render = function (logger, config, rpad, styleHeading, styleValue, style
logger.log(' ' + __('None').grey + '\n');
}

if (config.get('genymotion.enabled')) {
logger.log(styleHeading(__('Genymotion Emulators')));
if (data.emulators) {
var emus = data.emulators.filter(function (e) { return e.type == 'genymotion'; });
if (emus.length) {
logger.log(emus.map(function (emu) {
return ' ' + emu.name.cyan + '\n' +
' ' + rpad(' ' + __('SDK Version')) + ' = ' + styleValue(emu.target + (apiLevelMap[emu.target] ? ' (android-' + apiLevelMap[emu.target] + ')' : '')) + '\n' +
' ' + rpad(' ' + __('ABI')) + ' = ' + styleValue(emu.abi || __('unknown')) + '\n' +
' ' + rpad(' ' + __('Genymotion Version')) + ' = ' + styleValue(emu.genymotion || __('unknown')) + '\n' +
' ' + rpad(' ' + __('Display')) + ' = ' + styleValue(emu.display || __('unknown')) + '\n' +
' ' + rpad(' ' + __('DPI')) + ' = ' + styleValue(emu.dpi || __('unknown')) + '\n' +
' ' + rpad(' ' + __('OpenGL Acceleration')) + ' = ' + styleValue(emu.hardwareOpenGL ? __('yes') : __('no')) + '\n' +
' ' + rpad(' ' + __('Google APIs')) + ' = ' + styleValue(emu.googleApis === null ? __('unknown, emulator not running') : emu.googleApis ? __('yes') : __('no'));
}).join('\n') + '\n');
} else {
logger.log(' ' + __('None').grey + '\n');
}
logger.log(styleHeading(__('Genymotion Emulators')));
if (data.emulators) {
var emus = data.emulators.filter(function (e) { return e.type == 'genymotion'; });
if (emus.length) {
logger.log(emus.map(function (emu) {
return ' ' + emu.name.cyan + '\n' +
' ' + rpad(' ' + __('SDK Version')) + ' = ' + styleValue(emu.target + (apiLevelMap[emu.target] ? ' (android-' + apiLevelMap[emu.target] + ')' : '')) + '\n' +
' ' + rpad(' ' + __('ABI')) + ' = ' + styleValue(emu.abi || __('unknown')) + '\n' +
' ' + rpad(' ' + __('Genymotion Version')) + ' = ' + styleValue(emu.genymotion || __('unknown')) + '\n' +
' ' + rpad(' ' + __('Display')) + ' = ' + styleValue(emu.display || __('unknown')) + '\n' +
' ' + rpad(' ' + __('DPI')) + ' = ' + styleValue(emu.dpi || __('unknown')) + '\n' +
' ' + rpad(' ' + __('OpenGL Acceleration')) + ' = ' + styleValue(emu.hardwareOpenGL ? __('yes') : __('no')) + '\n' +
' ' + rpad(' ' + __('Google APIs')) + ' = ' + styleValue(emu.googleApis === null ? __('unknown, emulator not running') : emu.googleApis ? __('yes') : __('no'));
}).join('\n') + '\n');
} else {
logger.log(' ' + __('None').grey + '\n');
}
} else {
logger.log(' ' + __('None').grey + '\n');
}

logger.log(styleHeading(__('Connected Android Devices')));
Expand Down Expand Up @@ -182,14 +180,12 @@ exports.render = function (logger, config, rpad, styleHeading, styleValue, style
break;

case 'genymotion':
if (config.get('genymotion.enabled')) {
name = 'Genymotion Emulator: ' + device.emulator.name;
result.push(' ' + rpad(__('Genymotion Version')) + ' = ' + styleValue(device.emulator.genymotion || __('unknown')));
result.push(' ' + rpad(__('Display')) + ' = ' + styleValue(device.emulator.display || __('unknown')));
result.push(' ' + rpad(__('DPI')) + ' = ' + styleValue(device.emulator.dpi || __('unknown')));
result.push(' ' + rpad(__('OpenGL Acceleration')) + ' = ' + styleValue(device.emulator.hardwareOpenGL ? __('yes') : __('no')));
result.push(' ' + rpad(__('Google APIs')) + ' = ' + styleValue(device.emulator.googleApis ? __('yes') : __('no')));
}
name = 'Genymotion Emulator: ' + device.emulator.name;
result.push(' ' + rpad(__('Genymotion Version')) + ' = ' + styleValue(device.emulator.genymotion || __('unknown')));
result.push(' ' + rpad(__('Display')) + ' = ' + styleValue(device.emulator.display || __('unknown')));
result.push(' ' + rpad(__('DPI')) + ' = ' + styleValue(device.emulator.dpi || __('unknown')));
result.push(' ' + rpad(__('OpenGL Acceleration')) + ' = ' + styleValue(device.emulator.hardwareOpenGL ? __('yes') : __('no')));
result.push(' ' + rpad(__('Google APIs')) + ' = ' + styleValue(device.emulator.googleApis ? __('yes') : __('no')));
break;
}

Expand Down
10 changes: 2 additions & 8 deletions node_modules/titanium-sdk/lib/emulators/genymotion.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 36c1335

Please sign in to comment.