diff options
author | Matthew Sotoudeh <matthewsot@outlook.com> | 2014-07-28 20:05:49 -0700 |
---|---|---|
committer | Matthew Sotoudeh <matthewsot@outlook.com> | 2014-07-28 20:05:49 -0700 |
commit | a1e620e215d0407f0ef544e852b72bc87d07087b (patch) | |
tree | edeaf8cff3a173c28005d682958a0e073e493480 | |
parent | 046988dca5a8dcc985c6721ab829c4c513e651d8 (diff) |
Separated System into it's own project
working on issue #2, this should make it so you can “import
DNSwift-System”
-rw-r--r-- | DNSwift.System/DNSwift.System.xcodeproj/project.pbxproj | 462 | ||||
-rw-r--r-- | DNSwift.System/DNSwift.System.xcodeproj/project.xcworkspace/contents.xcworkspacedata | 7 | ||||
-rw-r--r-- | DNSwift.System/DNSwift.System/Console.swift (renamed from DNSwift/DNSwift/System/Console.swift) | 0 | ||||
-rw-r--r-- | DNSwift.System/DNSwift.System/Info.plist | 26 | ||||
-rw-r--r-- | DNSwift.System/DNSwift.SystemTests/DNSwift_SystemTests.swift | 36 | ||||
-rw-r--r-- | DNSwift.System/DNSwift.SystemTests/Info.plist | 24 | ||||
-rw-r--r-- | DNSwift/DNSwift.xcodeproj/project.pbxproj | 4 | ||||
-rw-r--r-- | DNSwift/DNSwift/ArrayExtensions.swift | 9 | ||||
-rw-r--r-- | DNSwift/DNSwift/System/Collections/Generic/List.swift | 8 |
9 files changed, 560 insertions, 16 deletions
diff --git a/DNSwift.System/DNSwift.System.xcodeproj/project.pbxproj b/DNSwift.System/DNSwift.System.xcodeproj/project.pbxproj new file mode 100644 index 0000000..a5f31c5 --- /dev/null +++ b/DNSwift.System/DNSwift.System.xcodeproj/project.pbxproj @@ -0,0 +1,462 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + C90502C51987465E00F91F1A /* DNSwift.System.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C90502B91987465E00F91F1A /* DNSwift.System.framework */; }; + C90502CC1987465E00F91F1A /* DNSwift_SystemTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C90502CB1987465E00F91F1A /* DNSwift_SystemTests.swift */; }; + C90502DF198746A000F91F1A /* Console.swift in Sources */ = {isa = PBXBuildFile; fileRef = C90502DE198746A000F91F1A /* Console.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + C90502C61987465E00F91F1A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = C90502B01987465E00F91F1A /* Project object */; + proxyType = 1; + remoteGlobalIDString = C90502B81987465E00F91F1A; + remoteInfo = DNSwift.System; + }; + C90502DA1987468F00F91F1A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = C90502D51987468F00F91F1A /* DNSwift.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = C98EBA481986F0EF00DCC6C9; + remoteInfo = DNSwift; + }; + C90502DC1987468F00F91F1A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = C90502D51987468F00F91F1A /* DNSwift.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = C98EBA531986F0EF00DCC6C9; + remoteInfo = DNSwiftTests; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + C90502B91987465E00F91F1A /* DNSwift.System.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = DNSwift.System.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + C90502BD1987465E00F91F1A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; + C90502C41987465E00F91F1A /* DNSwift.SystemTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DNSwift.SystemTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + C90502CA1987465E00F91F1A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; + C90502CB1987465E00F91F1A /* DNSwift_SystemTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DNSwift_SystemTests.swift; sourceTree = "<group>"; }; + C90502D51987468F00F91F1A /* DNSwift.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = DNSwift.xcodeproj; path = ../DNSwift/DNSwift.xcodeproj; sourceTree = "<group>"; }; + C90502DE198746A000F91F1A /* Console.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Console.swift; sourceTree = "<group>"; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + C90502B51987465E00F91F1A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C90502C11987465E00F91F1A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + C90502C51987465E00F91F1A /* DNSwift.System.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + C90502AF1987465E00F91F1A = { + isa = PBXGroup; + children = ( + C90502D51987468F00F91F1A /* DNSwift.xcodeproj */, + C90502BB1987465E00F91F1A /* DNSwift.System */, + C90502C81987465E00F91F1A /* DNSwift.SystemTests */, + C90502BA1987465E00F91F1A /* Products */, + ); + sourceTree = "<group>"; + }; + C90502BA1987465E00F91F1A /* Products */ = { + isa = PBXGroup; + children = ( + C90502B91987465E00F91F1A /* DNSwift.System.framework */, + C90502C41987465E00F91F1A /* DNSwift.SystemTests.xctest */, + ); + name = Products; + sourceTree = "<group>"; + }; + C90502BB1987465E00F91F1A /* DNSwift.System */ = { + isa = PBXGroup; + children = ( + C90502BC1987465E00F91F1A /* Supporting Files */, + C90502DE198746A000F91F1A /* Console.swift */, + ); + path = DNSwift.System; + sourceTree = "<group>"; + }; + C90502BC1987465E00F91F1A /* Supporting Files */ = { + isa = PBXGroup; + children = ( + C90502BD1987465E00F91F1A /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = "<group>"; + }; + C90502C81987465E00F91F1A /* DNSwift.SystemTests */ = { + isa = PBXGroup; + children = ( + C90502CB1987465E00F91F1A /* DNSwift_SystemTests.swift */, + C90502C91987465E00F91F1A /* Supporting Files */, + ); + path = DNSwift.SystemTests; + sourceTree = "<group>"; + }; + C90502C91987465E00F91F1A /* Supporting Files */ = { + isa = PBXGroup; + children = ( + C90502CA1987465E00F91F1A /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = "<group>"; + }; + C90502D61987468F00F91F1A /* Products */ = { + isa = PBXGroup; + children = ( + C90502DB1987468F00F91F1A /* DNSwift.framework */, + C90502DD1987468F00F91F1A /* DNSwiftTests.xctest */, + ); + name = Products; + sourceTree = "<group>"; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + C90502B61987465E00F91F1A /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + C90502B81987465E00F91F1A /* DNSwift.System */ = { + isa = PBXNativeTarget; + buildConfigurationList = C90502CF1987465E00F91F1A /* Build configuration list for PBXNativeTarget "DNSwift.System" */; + buildPhases = ( + C90502B41987465E00F91F1A /* Sources */, + C90502B51987465E00F91F1A /* Frameworks */, + C90502B61987465E00F91F1A /* Headers */, + C90502B71987465E00F91F1A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = DNSwift.System; + productName = DNSwift.System; + productReference = C90502B91987465E00F91F1A /* DNSwift.System.framework */; + productType = "com.apple.product-type.framework"; + }; + C90502C31987465E00F91F1A /* DNSwift.SystemTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = C90502D21987465E00F91F1A /* Build configuration list for PBXNativeTarget "DNSwift.SystemTests" */; + buildPhases = ( + C90502C01987465E00F91F1A /* Sources */, + C90502C11987465E00F91F1A /* Frameworks */, + C90502C21987465E00F91F1A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + C90502C71987465E00F91F1A /* PBXTargetDependency */, + ); + name = DNSwift.SystemTests; + productName = DNSwift.SystemTests; + productReference = C90502C41987465E00F91F1A /* DNSwift.SystemTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + C90502B01987465E00F91F1A /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0600; + ORGANIZATIONNAME = "Matthew S"; + TargetAttributes = { + C90502B81987465E00F91F1A = { + CreatedOnToolsVersion = 6.0; + }; + C90502C31987465E00F91F1A = { + CreatedOnToolsVersion = 6.0; + TestTargetID = C90502B81987465E00F91F1A; + }; + }; + }; + buildConfigurationList = C90502B31987465E00F91F1A /* Build configuration list for PBXProject "DNSwift.System" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = C90502AF1987465E00F91F1A; + productRefGroup = C90502BA1987465E00F91F1A /* Products */; + projectDirPath = ""; + projectReferences = ( + { + ProductGroup = C90502D61987468F00F91F1A /* Products */; + ProjectRef = C90502D51987468F00F91F1A /* DNSwift.xcodeproj */; + }, + ); + projectRoot = ""; + targets = ( + C90502B81987465E00F91F1A /* DNSwift.System */, + C90502C31987465E00F91F1A /* DNSwift.SystemTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXReferenceProxy section */ + C90502DB1987468F00F91F1A /* DNSwift.framework */ = { + isa = PBXReferenceProxy; + fileType = wrapper.framework; + path = DNSwift.framework; + remoteRef = C90502DA1987468F00F91F1A /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + C90502DD1987468F00F91F1A /* DNSwiftTests.xctest */ = { + isa = PBXReferenceProxy; + fileType = wrapper.cfbundle; + path = DNSwiftTests.xctest; + remoteRef = C90502DC1987468F00F91F1A /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; +/* End PBXReferenceProxy section */ + +/* Begin PBXResourcesBuildPhase section */ + C90502B71987465E00F91F1A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C90502C21987465E00F91F1A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + C90502B41987465E00F91F1A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C90502DF198746A000F91F1A /* Console.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C90502C01987465E00F91F1A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C90502CC1987465E00F91F1A /* DNSwift_SystemTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + C90502C71987465E00F91F1A /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = C90502B81987465E00F91F1A /* DNSwift.System */; + targetProxy = C90502C61987465E00F91F1A /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + C90502CD1987465E00F91F1A /* 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; + 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; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + C90502CE1987465E00F91F1A /* 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 = YES; + CURRENT_PROJECT_VERSION = 1; + 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; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + C90502D01987465E00F91F1A /* 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 = DNSwift.System/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + C90502D11987465E00F91F1A /* 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 = DNSwift.System/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Release; + }; + C90502D31987465E00F91F1A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + ); + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = DNSwift.SystemTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + C90502D41987465E00F91F1A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + ); + INFOPLIST_FILE = DNSwift.SystemTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + C90502B31987465E00F91F1A /* Build configuration list for PBXProject "DNSwift.System" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C90502CD1987465E00F91F1A /* Debug */, + C90502CE1987465E00F91F1A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + C90502CF1987465E00F91F1A /* Build configuration list for PBXNativeTarget "DNSwift.System" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C90502D01987465E00F91F1A /* Debug */, + C90502D11987465E00F91F1A /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + C90502D21987465E00F91F1A /* Build configuration list for PBXNativeTarget "DNSwift.SystemTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C90502D31987465E00F91F1A /* Debug */, + C90502D41987465E00F91F1A /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = C90502B01987465E00F91F1A /* Project object */; +} diff --git a/DNSwift.System/DNSwift.System.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/DNSwift.System/DNSwift.System.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..f841620 --- /dev/null +++ b/DNSwift.System/DNSwift.System.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Workspace + version = "1.0"> + <FileRef + location = "self:DNSwift.System.xcodeproj"> + </FileRef> +</Workspace> diff --git a/DNSwift/DNSwift/System/Console.swift b/DNSwift.System/DNSwift.System/Console.swift index a261595..a261595 100644 --- a/DNSwift/DNSwift/System/Console.swift +++ b/DNSwift.System/DNSwift.System/Console.swift diff --git a/DNSwift.System/DNSwift.System/Info.plist b/DNSwift.System/DNSwift.System/Info.plist new file mode 100644 index 0000000..09c6970 --- /dev/null +++ b/DNSwift.System/DNSwift.System/Info.plist @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>CFBundleDevelopmentRegion</key> + <string>en</string> + <key>CFBundleExecutable</key> + <string>${EXECUTABLE_NAME}</string> + <key>CFBundleIdentifier</key> + <string>SwiftSharp.${PRODUCT_NAME:rfc1034identifier}</string> + <key>CFBundleInfoDictionaryVersion</key> + <string>6.0</string> + <key>CFBundleName</key> + <string>${PRODUCT_NAME}</string> + <key>CFBundlePackageType</key> + <string>FMWK</string> + <key>CFBundleShortVersionString</key> + <string>1.0</string> + <key>CFBundleSignature</key> + <string>????</string> + <key>CFBundleVersion</key> + <string>${CURRENT_PROJECT_VERSION}</string> + <key>NSPrincipalClass</key> + <string></string> +</dict> +</plist> diff --git a/DNSwift.System/DNSwift.SystemTests/DNSwift_SystemTests.swift b/DNSwift.System/DNSwift.SystemTests/DNSwift_SystemTests.swift new file mode 100644 index 0000000..e4256da --- /dev/null +++ b/DNSwift.System/DNSwift.SystemTests/DNSwift_SystemTests.swift @@ -0,0 +1,36 @@ +// +// DNSwift_SystemTests.swift +// DNSwift.SystemTests +// +// Created by Matthew S on 7/28/14. +// Copyright (c) 2014 Matthew S. All rights reserved. +// + +import UIKit +import XCTest + +class DNSwift_SystemTests: XCTestCase { + + override func setUp() { + super.setUp() + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + super.tearDown() + } + + func testExample() { + // This is an example of a functional test case. + XCTAssert(true, "Pass") + } + + func testPerformanceExample() { + // This is an example of a performance test case. + self.measureBlock() { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/DNSwift.System/DNSwift.SystemTests/Info.plist b/DNSwift.System/DNSwift.SystemTests/Info.plist new file mode 100644 index 0000000..6d1bb1f --- /dev/null +++ b/DNSwift.System/DNSwift.SystemTests/Info.plist @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>CFBundleDevelopmentRegion</key> + <string>en</string> + <key>CFBundleExecutable</key> + <string>${EXECUTABLE_NAME}</string> + <key>CFBundleIdentifier</key> + <string>SwiftSharp.${PRODUCT_NAME:rfc1034identifier}</string> + <key>CFBundleInfoDictionaryVersion</key> + <string>6.0</string> + <key>CFBundleName</key> + <string>${PRODUCT_NAME}</string> + <key>CFBundlePackageType</key> + <string>BNDL</string> + <key>CFBundleShortVersionString</key> + <string>1.0</string> + <key>CFBundleSignature</key> + <string>????</string> + <key>CFBundleVersion</key> + <string>1</string> +</dict> +</plist> diff --git a/DNSwift/DNSwift.xcodeproj/project.pbxproj b/DNSwift/DNSwift.xcodeproj/project.pbxproj index ddefbdd..d3eabe5 100644 --- a/DNSwift/DNSwift.xcodeproj/project.pbxproj +++ b/DNSwift/DNSwift.xcodeproj/project.pbxproj @@ -15,7 +15,6 @@ C98EBA6A1986FAA600DCC6C9 /* ArrayExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = C98EBA691986FAA600DCC6C9 /* ArrayExtensions.swift */; }; C98EBA6B1986FAA600DCC6C9 /* ArrayExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = C98EBA691986FAA600DCC6C9 /* ArrayExtensions.swift */; }; C98EBA6E1987150600DCC6C9 /* ArrayExtensionTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C98EBA6C1987150600DCC6C9 /* ArrayExtensionTests.swift */; }; - C9D515B119871CE000B48496 /* Console.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9D515B019871CE000B48496 /* Console.swift */; }; C9D515B319871D0900B48496 /* CharExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9D515B219871D0900B48496 /* CharExtensions.swift */; }; C9D515B919871D8500B48496 /* IEnumerator.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9D515B819871D8500B48496 /* IEnumerator.swift */; }; C9D515BB19871D9200B48496 /* IEnumerable.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9D515BA19871D9200B48496 /* IEnumerable.swift */; }; @@ -47,7 +46,6 @@ C98EBA661986F1B800DCC6C9 /* StringExtensionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = StringExtensionTests.swift; path = /Users/matt/Repos/DNSwift/DNSwift/DNSwiftTests/StringExtensionTests.swift; sourceTree = "<absolute>"; }; C98EBA691986FAA600DCC6C9 /* ArrayExtensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ArrayExtensions.swift; path = /Users/matt/Repos/DNSwift/DNSwift/DNSwift/ArrayExtensions.swift; sourceTree = "<absolute>"; }; C98EBA6C1987150600DCC6C9 /* ArrayExtensionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ArrayExtensionTests.swift; path = /Users/matt/Repos/DNSwift/DNSwift/DNSwiftTests/ArrayExtensionTests.swift; sourceTree = "<absolute>"; }; - C9D515B019871CE000B48496 /* Console.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Console.swift; sourceTree = "<group>"; }; C9D515B219871D0900B48496 /* CharExtensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CharExtensions.swift; sourceTree = "<group>"; }; C9D515B819871D8500B48496 /* IEnumerator.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IEnumerator.swift; sourceTree = "<group>"; }; C9D515BA19871D9200B48496 /* IEnumerable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IEnumerable.swift; sourceTree = "<group>"; }; @@ -143,7 +141,6 @@ isa = PBXGroup; children = ( C9D515B419871D4A00B48496 /* Collections */, - C9D515B019871CE000B48496 /* Console.swift */, ); name = System; path = /Users/matt/Repos/DNSwift/DNSwift/DNSwift/System; @@ -290,7 +287,6 @@ C9D515B319871D0900B48496 /* CharExtensions.swift in Sources */, C9D515BD19871DB900B48496 /* IList.swift in Sources */, C9D515C119871E2400B48496 /* Enumerator.swift in Sources */, - C9D515B119871CE000B48496 /* Console.swift in Sources */, C9D515C319871F3500B48496 /* Enumerable.swift in Sources */, C98EBA6A1986FAA600DCC6C9 /* ArrayExtensions.swift in Sources */, C9D515BB19871D9200B48496 /* IEnumerable.swift in Sources */, diff --git a/DNSwift/DNSwift/ArrayExtensions.swift b/DNSwift/DNSwift/ArrayExtensions.swift index a65d4b6..ccf7be0 100644 --- a/DNSwift/DNSwift/ArrayExtensions.swift +++ b/DNSwift/DNSwift/ArrayExtensions.swift @@ -6,7 +6,8 @@ // Copyright (c) 2014 Matthew S. All rights reserved. // -import Foundation +//import Foundation +import DNSwift public extension Array {// : IEnumerable { public func IndexOf<T: Equatable>(item: T) -> Int { @@ -74,7 +75,7 @@ public extension Array {// : IEnumerable { } } - /*func ToList() -> List<T> { - return List(objs: self); - }*/ + //public func ToList() -> List<T> { + //return List(objs: self); + //} }
\ No newline at end of file diff --git a/DNSwift/DNSwift/System/Collections/Generic/List.swift b/DNSwift/DNSwift/System/Collections/Generic/List.swift index 86a35c4..2d1d8b9 100644 --- a/DNSwift/DNSwift/System/Collections/Generic/List.swift +++ b/DNSwift/DNSwift/System/Collections/Generic/List.swift @@ -1,11 +1,3 @@ -// -// List.swift -// DNSwift -// -// Created by Matthew S on 7/28/14. -// Copyright (c) 2014 Matthew S. All rights reserved. -// - import Foundation public class List<E where E:Equatable>: IList { |