Uh oh!
There was an error while loading. Please reload this page.
refactor(cli-platform-apple): move installing and launching app logic to separate function - #2234
Conversation
0a265a5 to
b4043bdCompare| buildOutput: string, | ||
| scheme: string, | ||
| target: string | undefined, | ||
| buildSettings: any, |
There was a problem hiding this comment.
Shouldn't this be of type BuildSettings from here
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| type Options = { | ||
| buildOutput: any; |
There was a problem hiding this comment.
Let's add some basic type. According to data flow this can be undefined and I'm not sure if it's handled properly
Uh oh!
There was an error while loading. Please reload this page.
c7efeca to
140c015Compare| if (!buildSettings) { | ||
| throw new CLIError('Failed to get build settings for your project'); | ||
| } |
There was a problem hiding this comment.
That's also not the most informative error ever, soon in a separate PR I'll fix all errors in this place :)
| buildOutput: string, | ||
| scheme: string, | ||
| target: string | undefined, | ||
| buildSettings: any, |
There was a problem hiding this comment.
Shouldn't this be of type BuildSettings from here
140c015 to
99331ccCompare99331cc to
31e7718Compare
Summary:
Moves installing and launching app logic to separate function, so that adding additional logic for another platforms will be fairly easy.
Test Plan:
Works same as before.
Checklist