diff --git a/Compass.xcodeproj/project.pbxproj b/Compass.xcodeproj/project.pbxproj new file mode 100644 index 0000000..fe3219b --- /dev/null +++ b/Compass.xcodeproj/project.pbxproj @@ -0,0 +1,403 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + D5DC59641C200D55003BD79B /* Compass.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D5DC59591C200D55003BD79B /* Compass.framework */; }; + D5DC597B1C200DF1003BD79B /* TestCompass.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5DC59751C200DEC003BD79B /* TestCompass.swift */; }; + D5DC597E1C200EC7003BD79B /* Compass.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5DC597D1C200EC7003BD79B /* Compass.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + D5DC59651C200D55003BD79B /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D5DC59501C200D55003BD79B /* Project object */; + proxyType = 1; + remoteGlobalIDString = D5DC59581C200D55003BD79B; + remoteInfo = Compass; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + D5DC59591C200D55003BD79B /* Compass.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Compass.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + D5DC59631C200D55003BD79B /* Compass-iOS-Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Compass-iOS-Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + D5DC59741C200DEC003BD79B /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + D5DC59751C200DEC003BD79B /* TestCompass.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TestCompass.swift; sourceTree = ""; }; + D5DC59771C200DEC003BD79B /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + D5DC597D1C200EC7003BD79B /* Compass.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Compass.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + D5DC59551C200D55003BD79B /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D5DC59601C200D55003BD79B /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + D5DC59641C200D55003BD79B /* Compass.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + D5DC594F1C200D55003BD79B = { + isa = PBXGroup; + children = ( + D5DC597C1C200EC7003BD79B /* Source */, + D5DC59731C200DEC003BD79B /* Tests */, + D5DC59761C200DEC003BD79B /* SupportFiles */, + D5DC595A1C200D55003BD79B /* Products */, + ); + sourceTree = ""; + }; + D5DC595A1C200D55003BD79B /* Products */ = { + isa = PBXGroup; + children = ( + D5DC59591C200D55003BD79B /* Compass.framework */, + D5DC59631C200D55003BD79B /* Compass-iOS-Tests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + D5DC59731C200DEC003BD79B /* Tests */ = { + isa = PBXGroup; + children = ( + D5DC59741C200DEC003BD79B /* Info.plist */, + D5DC59751C200DEC003BD79B /* TestCompass.swift */, + ); + path = Tests; + sourceTree = ""; + }; + D5DC59761C200DEC003BD79B /* SupportFiles */ = { + isa = PBXGroup; + children = ( + D5DC59771C200DEC003BD79B /* Info.plist */, + ); + path = SupportFiles; + sourceTree = ""; + }; + D5DC597C1C200EC7003BD79B /* Source */ = { + isa = PBXGroup; + children = ( + D5DC597D1C200EC7003BD79B /* Compass.swift */, + ); + path = Source; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + D5DC59561C200D55003BD79B /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + D5DC59581C200D55003BD79B /* Compass-iOS */ = { + isa = PBXNativeTarget; + buildConfigurationList = D5DC596D1C200D55003BD79B /* Build configuration list for PBXNativeTarget "Compass-iOS" */; + buildPhases = ( + D5DC59541C200D55003BD79B /* Sources */, + D5DC59551C200D55003BD79B /* Frameworks */, + D5DC59561C200D55003BD79B /* Headers */, + D5DC59571C200D55003BD79B /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "Compass-iOS"; + productName = Compass; + productReference = D5DC59591C200D55003BD79B /* Compass.framework */; + productType = "com.apple.product-type.framework"; + }; + D5DC59621C200D55003BD79B /* Compass-iOS-Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = D5DC59701C200D55003BD79B /* Build configuration list for PBXNativeTarget "Compass-iOS-Tests" */; + buildPhases = ( + D5DC595F1C200D55003BD79B /* Sources */, + D5DC59601C200D55003BD79B /* Frameworks */, + D5DC59611C200D55003BD79B /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + D5DC59661C200D55003BD79B /* PBXTargetDependency */, + ); + name = "Compass-iOS-Tests"; + productName = CompassTests; + productReference = D5DC59631C200D55003BD79B /* Compass-iOS-Tests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + D5DC59501C200D55003BD79B /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0720; + LastUpgradeCheck = 0720; + ORGANIZATIONNAME = "Hyper Interaktiv AS"; + TargetAttributes = { + D5DC59581C200D55003BD79B = { + CreatedOnToolsVersion = 7.2; + }; + D5DC59621C200D55003BD79B = { + CreatedOnToolsVersion = 7.2; + }; + }; + }; + buildConfigurationList = D5DC59531C200D55003BD79B /* Build configuration list for PBXProject "Compass" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = D5DC594F1C200D55003BD79B; + productRefGroup = D5DC595A1C200D55003BD79B /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + D5DC59581C200D55003BD79B /* Compass-iOS */, + D5DC59621C200D55003BD79B /* Compass-iOS-Tests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + D5DC59571C200D55003BD79B /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D5DC59611C200D55003BD79B /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + D5DC59541C200D55003BD79B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + D5DC597E1C200EC7003BD79B /* Compass.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D5DC595F1C200D55003BD79B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + D5DC597B1C200DF1003BD79B /* TestCompass.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + D5DC59661C200D55003BD79B /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = D5DC59581C200D55003BD79B /* Compass-iOS */; + targetProxy = D5DC59651C200D55003BD79B /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + D5DC596B1C200D55003BD79B /* 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; + }; + D5DC596C1C200D55003BD79B /* 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; + }; + D5DC596E1C200D55003BD79B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "$(SRCROOT)/SupportFiles/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = no.hyper.Compass; + PRODUCT_NAME = Compass; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + D5DC596F1C200D55003BD79B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "$(SRCROOT)/SupportFiles/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = no.hyper.Compass; + PRODUCT_NAME = Compass; + SKIP_INSTALL = YES; + }; + name = Release; + }; + D5DC59711C200D55003BD79B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = "$(SRCROOT)/Tests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = no.hyper.CompassTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + D5DC59721C200D55003BD79B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = "$(SRCROOT)/Tests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = no.hyper.CompassTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + D5DC59531C200D55003BD79B /* Build configuration list for PBXProject "Compass" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + D5DC596B1C200D55003BD79B /* Debug */, + D5DC596C1C200D55003BD79B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + D5DC596D1C200D55003BD79B /* Build configuration list for PBXNativeTarget "Compass-iOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + D5DC596E1C200D55003BD79B /* Debug */, + D5DC596F1C200D55003BD79B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + D5DC59701C200D55003BD79B /* Build configuration list for PBXNativeTarget "Compass-iOS-Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + D5DC59711C200D55003BD79B /* Debug */, + D5DC59721C200D55003BD79B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = D5DC59501C200D55003BD79B /* Project object */; +} diff --git a/Pod/Pod.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Compass.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 71% rename from Pod/Pod.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to Compass.xcodeproj/project.xcworkspace/contents.xcworkspacedata index f63ae21..1a1ffd3 100644 --- a/Pod/Pod.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ b/Compass.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -2,6 +2,6 @@ + location = "self:Compass.xcodeproj"> diff --git a/Pod/Pod.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme b/Compass.xcodeproj/xcshareddata/xcschemes/Compass-iOS.xcscheme similarity index 55% rename from Pod/Pod.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme rename to Compass.xcodeproj/xcshareddata/xcschemes/Compass-iOS.xcscheme index 55fcf52..bfd512f 100644 --- a/Pod/Pod.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme +++ b/Compass.xcodeproj/xcshareddata/xcschemes/Compass-iOS.xcscheme @@ -1,6 +1,6 @@ + + + + + buildForAnalyzing = "NO"> + BlueprintIdentifier = "D5DC59621C200D55003BD79B" + BuildableName = "Compass-iOS-Tests.xctest" + BlueprintName = "Compass-iOS-Tests" + ReferencedContainer = "container:Compass.xcodeproj"> + shouldUseLaunchSchemeArgsEnv = "YES"> + BlueprintIdentifier = "D5DC59621C200D55003BD79B" + BuildableName = "Compass-iOS-Tests.xctest" + BlueprintName = "Compass-iOS-Tests" + ReferencedContainer = "container:Compass.xcodeproj"> + BlueprintIdentifier = "D5DC59581C200D55003BD79B" + BuildableName = "Compass.framework" + BlueprintName = "Compass-iOS" + ReferencedContainer = "container:Compass.xcodeproj"> + + + BlueprintIdentifier = "D5DC59581C200D55003BD79B" + BuildableName = "Compass.framework" + BlueprintName = "Compass-iOS" + ReferencedContainer = "container:Compass.xcodeproj"> + BlueprintIdentifier = "D5DC59581C200D55003BD79B" + BuildableName = "Compass.framework" + BlueprintName = "Compass-iOS" + ReferencedContainer = "container:Compass.xcodeproj"> diff --git a/Pod/Pod.xcodeproj/project.pbxproj b/Pod/Pod.xcodeproj/project.pbxproj deleted file mode 100644 index 5e75782..0000000 --- a/Pod/Pod.xcodeproj/project.pbxproj +++ /dev/null @@ -1,306 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - BD6929341BC528C60063E97E /* TestCompass.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD6929331BC528C60063E97E /* TestCompass.swift */; }; - BD93420C1BC4FCF200F25395 /* Compass.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD93420B1BC4FCF200F25395 /* Compass.swift */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 146D72AC1AB782920058798C /* Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - 146D72B11AB782920058798C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 14C136511AB784B200B7B07A /* .travis.yml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = .travis.yml; path = ../.travis.yml; sourceTree = ""; }; - 14C136521AB784B200B7B07A /* CONTRIBUTING.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; name = CONTRIBUTING.md; path = ../CONTRIBUTING.md; sourceTree = ""; }; - 14C136541AB784B200B7B07A /* LICENSE.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; name = LICENSE.md; path = ../LICENSE.md; sourceTree = ""; }; - 14C136551AB784B200B7B07A /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; - BD6929331BC528C60063E97E /* TestCompass.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TestCompass.swift; sourceTree = ""; }; - BD93420B1BC4FCF200F25395 /* Compass.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Compass.swift; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 146D72A91AB782920058798C /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 146D728A1AB782920058798C = { - isa = PBXGroup; - children = ( - 14C1365B1AB784BC00B7B07A /* Source */, - 14C136501AB7849300B7B07A /* Metadata */, - 146D72AF1AB782920058798C /* Tests */, - 146D72941AB782920058798C /* Products */, - ); - indentWidth = 2; - sourceTree = ""; - tabWidth = 2; - }; - 146D72941AB782920058798C /* Products */ = { - isa = PBXGroup; - children = ( - 146D72AC1AB782920058798C /* Tests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - 146D72AF1AB782920058798C /* Tests */ = { - isa = PBXGroup; - children = ( - 146D72B01AB782920058798C /* Supporting Files */, - BD6929331BC528C60063E97E /* TestCompass.swift */, - ); - path = Tests; - sourceTree = ""; - }; - 146D72B01AB782920058798C /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 146D72B11AB782920058798C /* Info.plist */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - 14C136501AB7849300B7B07A /* Metadata */ = { - isa = PBXGroup; - children = ( - 14C136511AB784B200B7B07A /* .travis.yml */, - 14C136521AB784B200B7B07A /* CONTRIBUTING.md */, - 14C136541AB784B200B7B07A /* LICENSE.md */, - 14C136551AB784B200B7B07A /* README.md */, - ); - name = Metadata; - sourceTree = ""; - }; - 14C1365B1AB784BC00B7B07A /* Source */ = { - isa = PBXGroup; - children = ( - BD93420B1BC4FCF200F25395 /* Compass.swift */, - ); - name = Source; - path = ../Source; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 146D72AB1AB782920058798C /* Tests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 146D72B91AB782920058798C /* Build configuration list for PBXNativeTarget "Tests" */; - buildPhases = ( - 146D72A81AB782920058798C /* Sources */, - 146D72A91AB782920058798C /* Frameworks */, - 146D72AA1AB782920058798C /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Tests; - productName = PodTests; - productReference = 146D72AC1AB782920058798C /* Tests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 146D728B1AB782920058798C /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0700; - LastUpgradeCheck = 0620; - ORGANIZATIONNAME = Example; - TargetAttributes = { - 146D72AB1AB782920058798C = { - CreatedOnToolsVersion = 6.2; - }; - }; - }; - buildConfigurationList = 146D728E1AB782920058798C /* Build configuration list for PBXProject "Pod" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 146D728A1AB782920058798C; - productRefGroup = 146D72941AB782920058798C /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 146D72AB1AB782920058798C /* Tests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 146D72AA1AB782920058798C /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 146D72A81AB782920058798C /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - BD6929341BC528C60063E97E /* TestCompass.swift in Sources */, - BD93420C1BC4FCF200F25395 /* Compass.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin XCBuildConfiguration section */ - 146D72B41AB782920058798C /* 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; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - 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 = 8.0; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - }; - name = Debug; - }; - 146D72B51AB782920058798C /* 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; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - 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 = 8.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 146D72BA1AB782920058798C /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - ); - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - INFOPLIST_FILE = Tests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_INSTALL_OBJC_HEADER = NO; - SWIFT_OBJC_BRIDGING_HEADER = ""; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 146D72BB1AB782920058798C /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - ); - INFOPLIST_FILE = Tests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_INSTALL_OBJC_HEADER = NO; - SWIFT_OBJC_BRIDGING_HEADER = ""; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 146D728E1AB782920058798C /* Build configuration list for PBXProject "Pod" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 146D72B41AB782920058798C /* Debug */, - 146D72B51AB782920058798C /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 146D72B91AB782920058798C /* Build configuration list for PBXNativeTarget "Tests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 146D72BA1AB782920058798C /* Debug */, - 146D72BB1AB782920058798C /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 146D728B1AB782920058798C /* Project object */; -} diff --git a/Pod/Podfile b/Pod/Podfile deleted file mode 100644 index 648ccb1..0000000 --- a/Pod/Podfile +++ /dev/null @@ -1,7 +0,0 @@ -platform :ios, '8.0' -use_frameworks! - -# When using more than one target in your project -# link_with 'Demo', 'Tests' - -# pod 'Sample' diff --git a/README.md b/README.md index 81fb0fa..82c458b 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,30 @@ ![Compass logo](https://raw.githubusercontent.com/hyperoslo/Compass/master/Images/logo_v1.png) [![Version](https://img.shields.io/cocoapods/v/Compass.svg?style=flat)](http://cocoadocs.org/docsets/Compass) +[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![License](https://img.shields.io/cocoapods/l/Compass.svg?style=flat)](http://cocoadocs.org/docsets/Compass) [![Platform](https://img.shields.io/cocoapods/p/Compass.svg?style=flat)](http://cocoadocs.org/docsets/Compass) Compass helps you setup a central navigation system for your application. This has many benefits, one of them being that controllers can now be -decoupled, meaning that the list that presents the detail no longer knows -about what its presenting. Controllers become agnostic and views stay +decoupled, meaning that the list that presents the detail no longer knows +about what its presenting. Controllers become agnostic and views stay stupid. The user experience stays the same but the logic and separation of -concerns become clearer. The outcome is that your application will become -more modular by default. Anything could potentially be presented from +concerns become clearer. The outcome is that your application will become +more modular by default. Anything could potentially be presented from anywhere, but remember, with great power comes great responsibility. ## Setup #### Step 1 First you need to register a URL scheme for your application - + #### Step 2 Now you need to configure Compass to use that URL scheme, a good place to do this is in your `AppDelegate` ```swift -func application(application: UIApplication, +func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { Compass.scheme = "compass" return true @@ -32,7 +33,7 @@ func application(application: UIApplication, #### Step 3 Configure your application routes ```swift -func application(application: UIApplication, +func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { Compass.scheme = "compass" Compass.routes = ["profile:{username}", "login:{username}", "logout"] @@ -42,18 +43,18 @@ func application(application: UIApplication, #### Step 4 Set up your application to respond to the URLs, this can be done in the `AppDelegate` but its up to you to find a more suitable place for it depending on the size of your implementation. ```swift -func application(app: UIApplication, - openURL url: NSURL, +func application(app: UIApplication, + openURL url: NSURL, options: [String : AnyObject]) -> Bool { return Compass.parse(url) { route, arguments in switch route { case "profile:{username}": let profileController = profileController(title: arguments["{username}"]) - self.navigationController?.pushViewController(profileController, + self.navigationController?.pushViewController(profileController, animated: true) case "login:{username}": let loginController = LoginController(title: arguments["{username}"]) - self.navigationController?.pushViewController(loginController, + self.navigationController?.pushViewController(loginController, animated: true) case "logout": logout() diff --git a/SupportFiles/Info.plist b/SupportFiles/Info.plist new file mode 100644 index 0000000..d3de8ee --- /dev/null +++ b/SupportFiles/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + NSPrincipalClass + + + diff --git a/Pod/Tests/Info.plist b/Tests/Info.plist similarity index 91% rename from Pod/Tests/Info.plist rename to Tests/Info.plist index 15204bd..ba72822 100644 --- a/Pod/Tests/Info.plist +++ b/Tests/Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier - com.example.$(PRODUCT_NAME:rfc1034identifier) + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName diff --git a/Pod/Tests/TestCompass.swift b/Tests/TestCompass.swift similarity index 99% rename from Pod/Tests/TestCompass.swift rename to Tests/TestCompass.swift index f864746..3f63f22 100644 --- a/Pod/Tests/TestCompass.swift +++ b/Tests/TestCompass.swift @@ -1,5 +1,6 @@ import UIKit import XCTest +import Compass class TestCompass: XCTestCase {