Skip to content

Commit

Permalink
feat(emulator-manager): try to set emulator's heap size another way
Browse files Browse the repository at this point in the history
  • Loading branch information
paulolieuthier committed Feb 2, 2023
1 parent f19b7dc commit 91b49bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/emulator-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ function launchEmulator(apiLevel, target, arch, profile, cores, ramSize, heapSiz
yield exec.exec(`sh -c \\"printf 'hw.ramSize=${ramSize}\n' >> ${process.env.ANDROID_AVD_HOME}/"${avdName}".avd"/config.ini`);
}
if (heapSize) {
yield exec.exec(`sh -c \\"printf 'vm.heapSize=${heapSize}\n' >> ${process.env.ANDROID_AVD_HOME}/"${avdName}".avd"/config.ini`);
yield exec.exec(`sh -c \\"printf 'hw.heapSize=${heapSize}\n' >> ${process.env.ANDROID_AVD_HOME}/"${avdName}".avd"/config.ini`);
}
if (enableHardwareKeyboard) {
Expand Down
1 change: 1 addition & 0 deletions src/emulator-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export async function launchEmulator(
}

if (heapSize) {
await exec.exec(`sh -c \\"printf 'vm.heapSize=${heapSize}\n' >> ${process.env.ANDROID_AVD_HOME}/"${avdName}".avd"/config.ini`);
await exec.exec(`sh -c \\"printf 'hw.heapSize=${heapSize}\n' >> ${process.env.ANDROID_AVD_HOME}/"${avdName}".avd"/config.ini`);
}

Expand Down

0 comments on commit 91b49bf

Please sign in to comment.