Skip to content

Commit

Permalink
chore(actions): android emulator to start with clear cache and data (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
NikaHsn authored Aug 6, 2024
1 parent 88ac695 commit ff0e634
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 34 deletions.

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

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

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions .github/composite_actions/launch_ios_simulator/dist/index.mjs

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

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

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions .github/composite_actions/log_cw_metric/dist/index.mjs

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

2 changes: 1 addition & 1 deletion .github/composite_actions/log_cw_metric/dist/main.cjs

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

2 changes: 1 addition & 1 deletion .github/composite_actions/log_cw_metric/dist/main.cjs.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions .github/composite_actions/setup_chromedriver/dist/index.mjs

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

2 changes: 1 addition & 1 deletion .github/composite_actions/setup_chromedriver/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.

3 changes: 2 additions & 1 deletion actions/lib/src/android/avd_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ final class AvdManager {
Future<void> _createEmulator() => core.withGroup('Create emulator', () async {
final targetImage = 'system-images;android-$apiLevel;$target;$abi';
await _avdmanager(
['create', 'avd', '-n', name, '-k', targetImage],
['--clear-cache', 'create', 'avd', '-n', name, '-k', targetImage],
stdinCmd: 'echo n',
);
});
Expand All @@ -83,6 +83,7 @@ final class AvdManager {
'-restart-when-stalled',
'-accel', 'on', // Fail if HW accel is unavailable
'-no-snapshot',
'-wipe-data',
'-verbose',
];
final emulator = await processManager.start(
Expand Down

0 comments on commit ff0e634

Please sign in to comment.