Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Livesync iOS simulator restart fixes #462

Merged
merged 4 commits into from
Sep 17, 2015
Merged

Livesync iOS simulator restart fixes #462

merged 4 commits into from
Sep 17, 2015

Conversation

hdeshev
Copy link
Contributor

@hdeshev hdeshev commented Sep 16, 2015

  1. We are now batching files and restarting just once.
  2. No longer failing to restart the app after killing it since it hasn't already died by the time we try to start it.

I also pulled the batching/timeout code to a SyncBatch class, so we can share it with the android batch sync operation. Tested and working on an android emulator as well.

@justcodebuilduser
Copy link

❤️

@justcodebuilduser
Copy link

❤️

filePath: string,
notRunningiOSSimulatorAction: () => IFuture<void>,
iOSSimulatorRelativeToProjectBasePathAction:(projectFile: string) => string): void {
if (this.batch == null || !this.batch.syncPending) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider the shorter !this.batch

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@justcodebuilduser
Copy link

❤️

@teobugslayer
Copy link
Contributor

👍

No longer restarting after every file copy operation and batching file
syncs instead.
The `killall` operation wasn't always killing the process by the time we
attempted the `xcrun` action. Now we wait for half a second before
starting the app.
@hdeshev hdeshev force-pushed the livesync-ios-restart branch from 83f4705 to ee89f94 Compare September 17, 2015 15:15
@justcodebuilduser
Copy link

❤️

hdeshev added a commit that referenced this pull request Sep 17, 2015
Livesync iOS simulator restart fixes
@hdeshev hdeshev merged commit 90c4944 into master Sep 17, 2015
@teobugslayer teobugslayer deleted the livesync-ios-restart branch November 18, 2015 15:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants