diff options
author | Matthew Sotoudeh <matthewsot@outlook.com> | 2014-06-06 22:56:34 -0700 |
---|---|---|
committer | Matthew Sotoudeh <matthewsot@outlook.com> | 2014-06-06 22:56:34 -0700 |
commit | 8156d5fcc255d856ca9e7952aa901ea0fd423c57 (patch) | |
tree | 0eafa1e116082c7d3e187b7d3114bc197957a322 | |
parent | 2a535e360372cd774efa198f53e26a0f4da8fb75 (diff) |
WebClient Swift version
this is just the GetAsyncString version right now
10 files changed, 654 insertions, 0 deletions
diff --git a/Universals/WebClient/Swift/WebClient/WebClient.xcodeproj/project.pbxproj b/Universals/WebClient/Swift/WebClient/WebClient.xcodeproj/project.pbxproj new file mode 100644 index 0000000..7d2fdf3 --- /dev/null +++ b/Universals/WebClient/Swift/WebClient/WebClient.xcodeproj/project.pbxproj @@ -0,0 +1,422 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + C9CD7A611942E00700C16574 /* WebClient.h in Headers */ = {isa = PBXBuildFile; fileRef = C9CD7A601942E00700C16574 /* WebClient.h */; settings = {ATTRIBUTES = (Public, ); }; }; + C9CD7A671942E00700C16574 /* WebClient.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C9CD7A5B1942E00700C16574 /* WebClient.framework */; }; + C9CD7A6E1942E00700C16574 /* WebClientTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9CD7A6D1942E00700C16574 /* WebClientTests.swift */; }; + C9CD7A781942E01800C16574 /* WebClient.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9CD7A771942E01800C16574 /* WebClient.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + C9CD7A681942E00700C16574 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = C9CD7A521942E00700C16574 /* Project object */; + proxyType = 1; + remoteGlobalIDString = C9CD7A5A1942E00700C16574; + remoteInfo = WebClient; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + C9CD7A5B1942E00700C16574 /* WebClient.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = WebClient.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + C9CD7A5F1942E00700C16574 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; + C9CD7A601942E00700C16574 /* WebClient.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebClient.h; sourceTree = "<group>"; }; + C9CD7A661942E00700C16574 /* WebClientTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = WebClientTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + C9CD7A6C1942E00700C16574 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; + C9CD7A6D1942E00700C16574 /* WebClientTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebClientTests.swift; sourceTree = "<group>"; }; + C9CD7A771942E01800C16574 /* WebClient.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WebClient.swift; sourceTree = "<group>"; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + C9CD7A571942E00700C16574 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C9CD7A631942E00700C16574 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + C9CD7A671942E00700C16574 /* WebClient.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + C9CD7A511942E00700C16574 = { + isa = PBXGroup; + children = ( + C9CD7A5D1942E00700C16574 /* WebClient */, + C9CD7A6A1942E00700C16574 /* WebClientTests */, + C9CD7A5C1942E00700C16574 /* Products */, + ); + sourceTree = "<group>"; + }; + C9CD7A5C1942E00700C16574 /* Products */ = { + isa = PBXGroup; + children = ( + C9CD7A5B1942E00700C16574 /* WebClient.framework */, + C9CD7A661942E00700C16574 /* WebClientTests.xctest */, + ); + name = Products; + sourceTree = "<group>"; + }; + C9CD7A5D1942E00700C16574 /* WebClient */ = { + isa = PBXGroup; + children = ( + C9CD7A601942E00700C16574 /* WebClient.h */, + C9CD7A5E1942E00700C16574 /* Supporting Files */, + C9CD7A771942E01800C16574 /* WebClient.swift */, + ); + path = WebClient; + sourceTree = "<group>"; + }; + C9CD7A5E1942E00700C16574 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + C9CD7A5F1942E00700C16574 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = "<group>"; + }; + C9CD7A6A1942E00700C16574 /* WebClientTests */ = { + isa = PBXGroup; + children = ( + C9CD7A6D1942E00700C16574 /* WebClientTests.swift */, + C9CD7A6B1942E00700C16574 /* Supporting Files */, + ); + path = WebClientTests; + sourceTree = "<group>"; + }; + C9CD7A6B1942E00700C16574 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + C9CD7A6C1942E00700C16574 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = "<group>"; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + C9CD7A581942E00700C16574 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + C9CD7A611942E00700C16574 /* WebClient.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + C9CD7A5A1942E00700C16574 /* WebClient */ = { + isa = PBXNativeTarget; + buildConfigurationList = C9CD7A711942E00700C16574 /* Build configuration list for PBXNativeTarget "WebClient" */; + buildPhases = ( + C9CD7A561942E00700C16574 /* Sources */, + C9CD7A571942E00700C16574 /* Frameworks */, + C9CD7A581942E00700C16574 /* Headers */, + C9CD7A591942E00700C16574 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = WebClient; + productName = WebClient; + productReference = C9CD7A5B1942E00700C16574 /* WebClient.framework */; + productType = "com.apple.product-type.framework"; + }; + C9CD7A651942E00700C16574 /* WebClientTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = C9CD7A741942E00700C16574 /* Build configuration list for PBXNativeTarget "WebClientTests" */; + buildPhases = ( + C9CD7A621942E00700C16574 /* Sources */, + C9CD7A631942E00700C16574 /* Frameworks */, + C9CD7A641942E00700C16574 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + C9CD7A691942E00700C16574 /* PBXTargetDependency */, + ); + name = WebClientTests; + productName = WebClientTests; + productReference = C9CD7A661942E00700C16574 /* WebClientTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + C9CD7A521942E00700C16574 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0600; + ORGANIZATIONNAME = "Matthew S"; + TargetAttributes = { + C9CD7A5A1942E00700C16574 = { + CreatedOnToolsVersion = 6.0; + }; + C9CD7A651942E00700C16574 = { + CreatedOnToolsVersion = 6.0; + TestTargetID = C9CD7A5A1942E00700C16574; + }; + }; + }; + buildConfigurationList = C9CD7A551942E00700C16574 /* Build configuration list for PBXProject "WebClient" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = C9CD7A511942E00700C16574; + productRefGroup = C9CD7A5C1942E00700C16574 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + C9CD7A5A1942E00700C16574 /* WebClient */, + C9CD7A651942E00700C16574 /* WebClientTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + C9CD7A591942E00700C16574 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C9CD7A641942E00700C16574 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + C9CD7A561942E00700C16574 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C9CD7A781942E01800C16574 /* WebClient.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C9CD7A621942E00700C16574 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C9CD7A6E1942E00700C16574 /* WebClientTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + C9CD7A691942E00700C16574 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = C9CD7A5A1942E00700C16574 /* WebClient */; + targetProxy = C9CD7A681942E00700C16574 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + C9CD7A6F1942E00700C16574 /* 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; + 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; + MACOSX_DEPLOYMENT_TARGET = 10.9; + METAL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + C9CD7A701942E00700C16574 /* 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; + COPY_PHASE_STRIP = YES; + 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_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; + MACOSX_DEPLOYMENT_TARGET = 10.9; + METAL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + C9CD7A721942E00700C16574 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + COMBINE_HIDPI_IMAGES = YES; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + FRAMEWORK_VERSION = A; + INFOPLIST_FILE = WebClient/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; + }; + C9CD7A731942E00700C16574 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + COMBINE_HIDPI_IMAGES = YES; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + FRAMEWORK_VERSION = A; + INFOPLIST_FILE = WebClient/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; + }; + C9CD7A751942E00700C16574 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + FRAMEWORK_SEARCH_PATHS = ( + "$(DEVELOPER_FRAMEWORKS_DIR)", + "$(inherited)", + ); + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = WebClientTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + METAL_ENABLE_DEBUG_INFO = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + C9CD7A761942E00700C16574 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + FRAMEWORK_SEARCH_PATHS = ( + "$(DEVELOPER_FRAMEWORKS_DIR)", + "$(inherited)", + ); + INFOPLIST_FILE = WebClientTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + METAL_ENABLE_DEBUG_INFO = NO; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + C9CD7A551942E00700C16574 /* Build configuration list for PBXProject "WebClient" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C9CD7A6F1942E00700C16574 /* Debug */, + C9CD7A701942E00700C16574 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + C9CD7A711942E00700C16574 /* Build configuration list for PBXNativeTarget "WebClient" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C9CD7A721942E00700C16574 /* Debug */, + C9CD7A731942E00700C16574 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + C9CD7A741942E00700C16574 /* Build configuration list for PBXNativeTarget "WebClientTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C9CD7A751942E00700C16574 /* Debug */, + C9CD7A761942E00700C16574 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = C9CD7A521942E00700C16574 /* Project object */; +} diff --git a/Universals/WebClient/Swift/WebClient/WebClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Universals/WebClient/Swift/WebClient/WebClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..7500af9 --- /dev/null +++ b/Universals/WebClient/Swift/WebClient/WebClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Workspace + version = "1.0"> + <FileRef + location = "self:WebClient.xcodeproj"> + </FileRef> +</Workspace> diff --git a/Universals/WebClient/Swift/WebClient/WebClient.xcodeproj/project.xcworkspace/xcuserdata/matt.xcuserdatad/UserInterfaceState.xcuserstate b/Universals/WebClient/Swift/WebClient/WebClient.xcodeproj/project.xcworkspace/xcuserdata/matt.xcuserdatad/UserInterfaceState.xcuserstate Binary files differnew file mode 100644 index 0000000..b2c8404 --- /dev/null +++ b/Universals/WebClient/Swift/WebClient/WebClient.xcodeproj/project.xcworkspace/xcuserdata/matt.xcuserdatad/UserInterfaceState.xcuserstate diff --git a/Universals/WebClient/Swift/WebClient/WebClient.xcodeproj/xcuserdata/matt.xcuserdatad/xcschemes/WebClient.xcscheme b/Universals/WebClient/Swift/WebClient/WebClient.xcodeproj/xcuserdata/matt.xcuserdatad/xcschemes/WebClient.xcscheme new file mode 100644 index 0000000..f938d8e --- /dev/null +++ b/Universals/WebClient/Swift/WebClient/WebClient.xcodeproj/xcuserdata/matt.xcuserdatad/xcschemes/WebClient.xcscheme @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Scheme + LastUpgradeVersion = "0600" + version = "1.3"> + <BuildAction + parallelizeBuildables = "YES" + buildImplicitDependencies = "YES"> + <BuildActionEntries> + <BuildActionEntry + buildForTesting = "YES" + buildForRunning = "YES" + buildForProfiling = "YES" + buildForArchiving = "YES" + buildForAnalyzing = "YES"> + <BuildableReference + BuildableIdentifier = "primary" + BlueprintIdentifier = "C9CD7A5A1942E00700C16574" + BuildableName = "WebClient.framework" + BlueprintName = "WebClient" + ReferencedContainer = "container:WebClient.xcodeproj"> + </BuildableReference> + </BuildActionEntry> + </BuildActionEntries> + </BuildAction> + <TestAction + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + shouldUseLaunchSchemeArgsEnv = "YES" + buildConfiguration = "Debug"> + <Testables> + <TestableReference + skipped = "NO"> + <BuildableReference + BuildableIdentifier = "primary" + BlueprintIdentifier = "C9CD7A651942E00700C16574" + BuildableName = "WebClientTests.xctest" + BlueprintName = "WebClientTests" + ReferencedContainer = "container:WebClient.xcodeproj"> + </BuildableReference> + </TestableReference> + </Testables> + </TestAction> + <LaunchAction + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + launchStyle = "0" + useCustomWorkingDirectory = "NO" + buildConfiguration = "Debug" + ignoresPersistentStateOnLaunch = "NO" + debugDocumentVersioning = "YES" + allowLocationSimulation = "YES"> + <AdditionalOptions> + </AdditionalOptions> + </LaunchAction> + <ProfileAction + shouldUseLaunchSchemeArgsEnv = "YES" + savedToolIdentifier = "" + useCustomWorkingDirectory = "NO" + buildConfiguration = "Release" + debugDocumentVersioning = "YES"> + </ProfileAction> + <AnalyzeAction + buildConfiguration = "Debug"> + </AnalyzeAction> + <ArchiveAction + buildConfiguration = "Release" + revealArchiveInOrganizer = "YES"> + </ArchiveAction> +</Scheme> diff --git a/Universals/WebClient/Swift/WebClient/WebClient.xcodeproj/xcuserdata/matt.xcuserdatad/xcschemes/xcschememanagement.plist b/Universals/WebClient/Swift/WebClient/WebClient.xcodeproj/xcuserdata/matt.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..ec4e50e --- /dev/null +++ b/Universals/WebClient/Swift/WebClient/WebClient.xcodeproj/xcuserdata/matt.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,27 @@ +<?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>SchemeUserState</key> + <dict> + <key>WebClient.xcscheme</key> + <dict> + <key>orderHint</key> + <integer>0</integer> + </dict> + </dict> + <key>SuppressBuildableAutocreation</key> + <dict> + <key>C9CD7A5A1942E00700C16574</key> + <dict> + <key>primary</key> + <true/> + </dict> + <key>C9CD7A651942E00700C16574</key> + <dict> + <key>primary</key> + <true/> + </dict> + </dict> +</dict> +</plist> diff --git a/Universals/WebClient/Swift/WebClient/WebClient/Info.plist b/Universals/WebClient/Swift/WebClient/WebClient/Info.plist new file mode 100644 index 0000000..365349d --- /dev/null +++ b/Universals/WebClient/Swift/WebClient/WebClient/Info.plist @@ -0,0 +1,28 @@ +<?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>sharpswift.${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>NSHumanReadableCopyright</key> + <string>Copyright © 2014 Matthew S. All rights reserved.</string> + <key>NSPrincipalClass</key> + <string></string> +</dict> +</plist> diff --git a/Universals/WebClient/Swift/WebClient/WebClient/WebClient.h b/Universals/WebClient/Swift/WebClient/WebClient/WebClient.h new file mode 100644 index 0000000..9c2d56a --- /dev/null +++ b/Universals/WebClient/Swift/WebClient/WebClient/WebClient.h @@ -0,0 +1,19 @@ +// +// WebClient.h +// WebClient +// +// Created by Matthew S on 6/6/14. +// Copyright (c) 2014 Matthew S. All rights reserved. +// + +#import <Cocoa/Cocoa.h> + +//! Project version number for WebClient. +FOUNDATION_EXPORT double WebClientVersionNumber; + +//! Project version string for WebClient. +FOUNDATION_EXPORT const unsigned char WebClientVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import <WebClient/PublicHeader.h> + + diff --git a/Universals/WebClient/Swift/WebClient/WebClient/WebClient.swift b/Universals/WebClient/Swift/WebClient/WebClient/WebClient.swift new file mode 100644 index 0000000..f8caeb6 --- /dev/null +++ b/Universals/WebClient/Swift/WebClient/WebClient/WebClient.swift @@ -0,0 +1,23 @@ +// +// WebClient.swift +// WebClient +// +// Created by Matthew S on 6/6/14. +// Copyright (c) 2014 Matthew S. All rights reserved. +// + +import Foundation +import Cocoa + +struct WebClient { + func GetAsyncString(url: String, handler: (String) -> Void) { + //Thanks! http://stackoverflow.com/questions/24016142/how-to-make-an-http-request-in-swift + var request = NSURLRequest(URL: NSURL(string: url)) + + NSURLConnection.sendAsynchronousRequest(request, queue: NSOperationQueue(), completionHandler: {(response: NSURLResponse!, data: NSData!, error: NSError!) in + + var str: String = NSString(data: data, encoding: NSUTF8StringEncoding); + handler(str); + }) + } +}
\ No newline at end of file diff --git a/Universals/WebClient/Swift/WebClient/WebClientTests/Info.plist b/Universals/WebClient/Swift/WebClient/WebClientTests/Info.plist new file mode 100644 index 0000000..7368c36 --- /dev/null +++ b/Universals/WebClient/Swift/WebClient/WebClientTests/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>sharpswift.${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/Universals/WebClient/Swift/WebClient/WebClientTests/WebClientTests.swift b/Universals/WebClient/Swift/WebClient/WebClientTests/WebClientTests.swift new file mode 100644 index 0000000..192015d --- /dev/null +++ b/Universals/WebClient/Swift/WebClient/WebClientTests/WebClientTests.swift @@ -0,0 +1,35 @@ +// +// WebClientTests.swift +// WebClientTests +// +// Created by Matthew S on 6/6/14. +// Copyright (c) 2014 Matthew S. All rights reserved. +// + +import XCTest + +class WebClientTests: 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. + } + } + +} |