Skip to content

Commit

Permalink
Adds then code + unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
s4cha committed Feb 6, 2016
1 parent 49b1309 commit 3af88d0
Show file tree
Hide file tree
Showing 7 changed files with 690 additions and 0 deletions.
398 changes: 398 additions & 0 deletions then.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,398 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
99B5AC9B1C66831C005CDA28 /* then.h in Headers */ = {isa = PBXBuildFile; fileRef = 99B5AC9A1C66831C005CDA28 /* then.h */; settings = {ATTRIBUTES = (Public, ); }; };
99B5ACA21C66831C005CDA28 /* then.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 99B5AC971C66831C005CDA28 /* then.framework */; };
99B5ACA71C66831C005CDA28 /* thenTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99B5ACA61C66831C005CDA28 /* thenTests.swift */; };
99B5ACB21C668338005CDA28 /* Promise.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99B5ACB11C668338005CDA28 /* Promise.swift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
99B5ACA31C66831C005CDA28 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 99B5AC8E1C66831C005CDA28 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 99B5AC961C66831C005CDA28;
remoteInfo = then;
};
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
99B5AC971C66831C005CDA28 /* then.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = then.framework; sourceTree = BUILT_PRODUCTS_DIR; };
99B5AC9A1C66831C005CDA28 /* then.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = then.h; sourceTree = "<group>"; };
99B5AC9C1C66831C005CDA28 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
99B5ACA11C66831C005CDA28 /* thenTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = thenTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
99B5ACA61C66831C005CDA28 /* thenTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = thenTests.swift; sourceTree = "<group>"; };
99B5ACA81C66831C005CDA28 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
99B5ACB11C668338005CDA28 /* Promise.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Promise.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
99B5AC931C66831C005CDA28 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
99B5AC9E1C66831C005CDA28 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
99B5ACA21C66831C005CDA28 /* then.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
99B5AC8D1C66831C005CDA28 = {
isa = PBXGroup;
children = (
99B5AC991C66831C005CDA28 /* then */,
99B5ACA51C66831C005CDA28 /* thenTests */,
99B5AC981C66831C005CDA28 /* Products */,
);
sourceTree = "<group>";
};
99B5AC981C66831C005CDA28 /* Products */ = {
isa = PBXGroup;
children = (
99B5AC971C66831C005CDA28 /* then.framework */,
99B5ACA11C66831C005CDA28 /* thenTests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
99B5AC991C66831C005CDA28 /* then */ = {
isa = PBXGroup;
children = (
99B5AC9A1C66831C005CDA28 /* then.h */,
99B5ACB11C668338005CDA28 /* Promise.swift */,
99B5AC9C1C66831C005CDA28 /* Info.plist */,
);
path = then;
sourceTree = "<group>";
};
99B5ACA51C66831C005CDA28 /* thenTests */ = {
isa = PBXGroup;
children = (
99B5ACA61C66831C005CDA28 /* thenTests.swift */,
99B5ACA81C66831C005CDA28 /* Info.plist */,
);
path = thenTests;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
99B5AC941C66831C005CDA28 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
99B5AC9B1C66831C005CDA28 /* then.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */

/* Begin PBXNativeTarget section */
99B5AC961C66831C005CDA28 /* then */ = {
isa = PBXNativeTarget;
buildConfigurationList = 99B5ACAB1C66831C005CDA28 /* Build configuration list for PBXNativeTarget "then" */;
buildPhases = (
99B5AC921C66831C005CDA28 /* Sources */,
99B5AC931C66831C005CDA28 /* Frameworks */,
99B5AC941C66831C005CDA28 /* Headers */,
99B5AC951C66831C005CDA28 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = then;
productName = then;
productReference = 99B5AC971C66831C005CDA28 /* then.framework */;
productType = "com.apple.product-type.framework";
};
99B5ACA01C66831C005CDA28 /* thenTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 99B5ACAE1C66831C005CDA28 /* Build configuration list for PBXNativeTarget "thenTests" */;
buildPhases = (
99B5AC9D1C66831C005CDA28 /* Sources */,
99B5AC9E1C66831C005CDA28 /* Frameworks */,
99B5AC9F1C66831C005CDA28 /* Resources */,
);
buildRules = (
);
dependencies = (
99B5ACA41C66831C005CDA28 /* PBXTargetDependency */,
);
name = thenTests;
productName = thenTests;
productReference = 99B5ACA11C66831C005CDA28 /* thenTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
99B5AC8E1C66831C005CDA28 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0720;
LastUpgradeCheck = 0720;
ORGANIZATIONNAME = s4cha;
TargetAttributes = {
99B5AC961C66831C005CDA28 = {
CreatedOnToolsVersion = 7.2;
};
99B5ACA01C66831C005CDA28 = {
CreatedOnToolsVersion = 7.2;
};
};
};
buildConfigurationList = 99B5AC911C66831C005CDA28 /* Build configuration list for PBXProject "then" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = 99B5AC8D1C66831C005CDA28;
productRefGroup = 99B5AC981C66831C005CDA28 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
99B5AC961C66831C005CDA28 /* then */,
99B5ACA01C66831C005CDA28 /* thenTests */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
99B5AC951C66831C005CDA28 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
99B5AC9F1C66831C005CDA28 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
99B5AC921C66831C005CDA28 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
99B5ACB21C668338005CDA28 /* Promise.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
99B5AC9D1C66831C005CDA28 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
99B5ACA71C66831C005CDA28 /* thenTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
99B5ACA41C66831C005CDA28 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 99B5AC961C66831C005CDA28 /* then */;
targetProxy = 99B5ACA31C66831C005CDA28 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin XCBuildConfiguration section */
99B5ACA91C66831C005CDA28 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Debug;
};
99B5ACAA1C66831C005CDA28 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Release;
};
99B5ACAC1C66831C005CDA28 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = then/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.s4cha.then.then;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
99B5ACAD1C66831C005CDA28 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = then/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.s4cha.then.then;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
};
name = Release;
};
99B5ACAF1C66831C005CDA28 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
INFOPLIST_FILE = thenTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.s4cha.then.thenTests;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
99B5ACB01C66831C005CDA28 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
INFOPLIST_FILE = thenTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.s4cha.then.thenTests;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
99B5AC911C66831C005CDA28 /* Build configuration list for PBXProject "then" */ = {
isa = XCConfigurationList;
buildConfigurations = (
99B5ACA91C66831C005CDA28 /* Debug */,
99B5ACAA1C66831C005CDA28 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
99B5ACAB1C66831C005CDA28 /* Build configuration list for PBXNativeTarget "then" */ = {
isa = XCConfigurationList;
buildConfigurations = (
99B5ACAC1C66831C005CDA28 /* Debug */,
99B5ACAD1C66831C005CDA28 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
99B5ACAE1C66831C005CDA28 /* Build configuration list for PBXNativeTarget "thenTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
99B5ACAF1C66831C005CDA28 /* Debug */,
99B5ACB01C66831C005CDA28 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = 99B5AC8E1C66831C005CDA28 /* Project object */;
}
Loading

0 comments on commit 3af88d0

Please sign in to comment.