Skip to content

Commit

Permalink
chore(): added additional Android Emulator logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tyllark committed Feb 8, 2025
1 parent 1412e5e commit 5753516
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
12 changes: 8 additions & 4 deletions .github/composite_actions/launch_android_emulator/dist/main.cjs

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

Large diffs are not rendered by default.

18 changes: 14 additions & 4 deletions actions/lib/src/android/avd_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,17 @@ final class AvdManager {
Future<void> _createEmulator() => core.withGroup('Create emulator', () async {
final targetImage = 'system-images;android-$apiLevel;$target;$abi';
final createRes = await _avdmanager(
['--clear-cache', 'create', 'avd', '-n', name, '-k', targetImage],
[
'--clear-cache',
'create',
'avd',
'-n',
name,
'-k',
targetImage,
'-p',
androidAvdHome,
],
stdinCmd: 'echo n',
);
if (createRes.exitCode != 0) {
Expand Down Expand Up @@ -155,9 +165,9 @@ final class AvdManager {
onRetry: (e) async {
core.info(e.toString());

// await ShellScript(
// '''ls $androidAvdHome''',
// ).run();
await ShellScript(
'''ls /home/runner/.config/.android/avd''',
).run();

await _avdmanager(
['list'],
Expand Down

0 comments on commit 5753516

Please sign in to comment.