-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from interstateone/34-improve-logging
Refactor to test and improve logging
- Loading branch information
Showing
12 changed files
with
724 additions
and
355 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import Path | ||
|
||
/// Migrates any application support files from Xcodes < v0.4 if application support files from >= v0.4 don't exist | ||
public func migrateApplicationSupportFiles() { | ||
if Current.files.fileExistsAtPath(Path.oldXcodesApplicationSupport.string) { | ||
if Current.files.fileExistsAtPath(Path.xcodesApplicationSupport.string) { | ||
Current.logging.log("Removing old support files...") | ||
try? Current.files.removeItem(Path.oldXcodesApplicationSupport.url) | ||
Current.logging.log("Done") | ||
} | ||
else { | ||
Current.logging.log("Migrating old support files...") | ||
try? Current.files.moveItem(Path.oldXcodesApplicationSupport.url, Path.xcodesApplicationSupport.url) | ||
Current.logging.log("Done") | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.