Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add workingDir
  • Loading branch information
Chris Yang committed Jan 28, 2021
commit b5a53289730d6ff8d80a7d475481deae91676ba9
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,14 @@ class BuildExamplesCommand extends PluginCommand {
if (argResults[kIpa]) {
print('\nBUILDING IPA for $packageName');
if (isIosPlugin(plugin, fileSystem)) {
io.ProcessResult result1 = await processRunner.runAndExitOnError(flutterCommand, ['clean']);
io.ProcessResult result1 = await processRunner.runAndExitOnError(flutterCommand, ['clean'], workingDir: example);
if (result1.exitCode != 0) {
print('flutter clean failed: ${result1.stderr}');
}
io.ProcessResult result2 = await processRunner.runAndExitOnError('git', ['clean', '-dfx']);
io.ProcessResult result2 = await processRunner.runAndExitOnError('git', ['clean', '-dfx'], workingDir: example);
if (result2.exitCode != 0) {
print('git clean failed: ${result1.stderr}');
}
if (result2.exitCode != 0) {
print('git clean failed: ${result1.stderr}');
}
Expand Down