Skip to content

Instantly share code, notes, and snippets.

View darjeelingsteve's full-sized avatar

Stephen Anthony darjeelingsteve

View GitHub Profile
@darjeelingsteve
darjeelingsteve / build-and-sign.sh
Last active May 7, 2024 16:50
Swift Package Binary Code-signing and Notarisation
# See https://darjeelingsteve.com/articles/Notarising-Swift-Package-Development-Tools-for-Distribution.html for a full description
printHelp() {
read -r -d '' HELP << EOM
Usage:
build-and-sign.sh <tool-name> <version-number>
EOM
>&2 echo "$HELP"
}
func application(application: UIApplication, continueUserActivity userActivity: NSUserActivity, restorationHandler: ([AnyObject]?) -> Void) -> Bool {
guard let userInfo = userActivity.userInfo, countyName = userInfo["CountyName"] as? String, selectedCounty = County.allCounties.filter({$0.name == countyName}).first else where userActivity.activityType == "com.darjeeling.counties.handoff.countydetails" {
return false
}
showCounty(selectedCounty)
return true
}