-
-
Notifications
You must be signed in to change notification settings - Fork 197
Fix xcode9 provision, provide --quiet by default, enable -allowProvisioningUpdates #3070
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
3ab47d6
35cfe6b
88f8629
459e8fd
646477e
5742dcd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -447,7 +447,7 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject | |
await adb.executeShellCommand(["rm", "-rf", deviceRootPath]); | ||
} | ||
|
||
public checkForChanges(changesInfo: IProjectChangesInfo, options: IProjectChangesOptions, projectData: IProjectData): void { | ||
public async checkForChanges(changesInfo: IProjectChangesInfo, options: IProjectChangesOptions, projectData: IProjectData): Promise<void> { | ||
// Nothing android specific to check yet. | ||
} | ||
|
||
|
@@ -517,12 +517,18 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject | |
if (this.$androidToolsInfo.getToolsInfo().androidHomeEnvVar) { | ||
const gradlew = this.$hostInfo.isWindows ? "gradlew.bat" : "./gradlew"; | ||
|
||
const localArgs = [...gradleArgs]; | ||
if (this.$logger.getLevel() === "INFO") { | ||
localArgs.push("--quiet"); | ||
this.$logger.info(`${gradlew} ${localArgs.join(" ")}`); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do we want to print the command that we execute in the info level? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Otherwise nothing is printed. I wanted to print something that indicates that a native build had started. I am ok to go for just "Xcode build..." and "Gradle build...", should I change these? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I prefer using const action = () => this.spawn(gradlew, localArgs, childProcessOpts, spawnFromEventOptions);
this.$logger.printInfoMessageOnSameLine("Gradle build...");
await this.$progressIndicator.showProgressIndicator(action(), 2000); There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doesn't this throw garbage progress indicator symbols around if the xcodebuild or gradle build actually output stuff? I've seen rogue npm progress bars printed at random. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This actually sounds reasonable I'll give it a try. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok we've agreed to use "Gradle build..." and "Xcode build...". |
||
} | ||
|
||
childProcessOpts = childProcessOpts || {}; | ||
childProcessOpts.cwd = childProcessOpts.cwd || projectRoot; | ||
childProcessOpts.stdio = childProcessOpts.stdio || "inherit"; | ||
|
||
return await this.spawn(gradlew, | ||
gradleArgs, | ||
localArgs, | ||
childProcessOpts, | ||
spawnFromEventOptions); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use
$loggingLevels.info
here instead of a stringThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's keep it this way,
$loggingLevels
has a different purpose. I'll handle the logging levels in a separate PR and will change this code with a constant in it.