This file contains hidden or 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
Clean builds | |
xcodebuild -project ext/CCUtils/CCUtils.xcodeproj -scheme CCUtils clean&& time xcodebuild -project ext/CCUtils/CCUtils.xcodeproj -scheme CCUtils build | |
real 0m17.229s | |
user 0m38.904s | |
sys 0m18.557s | |
real 0m10.724s | |
user 0m33.358s |
This file contains hidden or 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 bridges logging commands from the current module to our logging | |
// library. You can call any DDLog… function from any Swift file in this module | |
// without having to import CocoaLumberjackSwift manually. | |
// | |
// This file should be copied into or included in any module where we want to | |
// provide this functionality. | |
// | |
// The overhead of this indirection should be zero because the compiler | |
// should inline all calls. (We could annotate the functions with | |
// `@inline(__always)` to enfore inlining, but that attribute is not officially |
This file contains hidden or 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
/// Debug helper for date parsing | |
/// add via decoder.dateDecodingStrategy = .custom(customDateFormatter) | |
func customDateFormatter(_ decoder: Decoder) throws -> Date { | |
let dateString = try decoder.singleValueContainer().decode(String.self) | |
let formatter = DateFormatter() | |
formatter.dateFormat = "YYYY-MM-DD'T'HH:mm:ss.SSSZ" | |
let date = formatter.date(from: dateString) | |
print("Asked to parse date: \(dateString) and got: \(date?.description ?? "-")") | |
return date ?? Date() | |
} |
This file contains hidden or 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
#!/usr/bin/env python | |
import os | |
import requests | |
import json | |
print "Slack it up v.1.3" | |
slack_hook = "HOOK" | |
xcode_server_url = "xcbot://your.server.name" |
This file contains hidden or 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
#!/bin/bash | |
##### | |
# Meant to be used as an Archive Post-Action script run from within Xcode | |
# | |
# basically there are 2 modes: Interactive and Automated Jenkins Mode. | |
# Interactive is the one that's used when you're doing the Archive. Once | |
# the Archive is done, HockeyApp pops up and asks what to do with the | |
# Archive. | |
# In Jenkins Mode, there's some more stuff to do. See below for details. |