Skip to content

Instantly share code, notes, and snippets.

View johnlui's full-sized avatar

吕文翰 johnlui

View GitHub Profile
@johnlui
johnlui / Aggregate Script
Last active June 21, 2016 06:13
Aggregate Script to build out framework for all devices and simulators
#!/bin/sh
UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal
# make sure the output directory exists
mkdir -p "${UNIVERSAL_OUTPUTFOLDER}"
# Step 1. Build Device and Simulator versions
xcodebuild -target "${PROJECT_NAME}" ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build
xcodebuild -target "${PROJECT_NAME}" -configuration ${CONFIGURATION} -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build
struct GithubAuthentication {
let id: Int32, token: String, hashedToken: String
}
public enum Constant {
public enum NotificationKey: String {
case GithubAccessTokenRequestSuccess, GithubAccessTokenRequestFailure
}
public enum AccessToken: String {
case GithubAccessTokenStorageKey
}