Skip to content

Commit 5753516

Browse files
committed
chore(): added additional Android Emulator logging
1 parent 1412e5e commit 5753516

File tree

3 files changed

+24
-10
lines changed

3 files changed

+24
-10
lines changed

.github/composite_actions/launch_android_emulator/dist/main.cjs

Lines changed: 8 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/composite_actions/launch_android_emulator/dist/main.cjs.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

actions/lib/src/android/avd_manager.dart

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,17 @@ final class AvdManager {
6767
Future<void> _createEmulator() => core.withGroup('Create emulator', () async {
6868
final targetImage = 'system-images;android-$apiLevel;$target;$abi';
6969
final createRes = await _avdmanager(
70-
['--clear-cache', 'create', 'avd', '-n', name, '-k', targetImage],
70+
[
71+
'--clear-cache',
72+
'create',
73+
'avd',
74+
'-n',
75+
name,
76+
'-k',
77+
targetImage,
78+
'-p',
79+
androidAvdHome,
80+
],
7181
stdinCmd: 'echo n',
7282
);
7383
if (createRes.exitCode != 0) {
@@ -155,9 +165,9 @@ final class AvdManager {
155165
onRetry: (e) async {
156166
core.info(e.toString());
157167

158-
// await ShellScript(
159-
// '''ls $androidAvdHome''',
160-
// ).run();
168+
await ShellScript(
169+
'''ls /home/runner/.config/.android/avd''',
170+
).run();
161171

162172
await _avdmanager(
163173
['list'],

0 commit comments

Comments
 (0)