diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..9216b1f Binary files /dev/null and b/.DS_Store differ diff --git a/New Group/Main.storyboard b/New Group/Main.storyboard new file mode 100644 index 0000000..f430139 --- /dev/null +++ b/New Group/Main.storyboard @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Podfile b/Podfile index 30c6984..daa35f1 100644 --- a/Podfile +++ b/Podfile @@ -1,6 +1,20 @@ -platform :ios, '7.0' +# Uncomment the next line to define a global platform for your project +# platform :ios, '9.0' -pod 'SVProgressHUD' +target 'Vista-se' do + # Comment the next line if you're not using Swift and don't want to use dynamic frameworks + use_frameworks! + + # Pods for Vista-se + pod 'SVProgressHUD' pod 'MWFeedParser' pod 'KINWebBrowser' -pod 'AFNetworking' \ No newline at end of file +pod 'AFNetworking' + + + target 'Vista-seTests' do + inherit! :search_paths + # Pods for testing + end + +end diff --git a/Podfile.lock b/Podfile.lock index a4bc952..6911af0 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -1,11 +1,11 @@ PODS: - AFNetworking (2.2.4): - - AFNetworking/NSURLConnection - - AFNetworking/NSURLSession - - AFNetworking/Reachability - - AFNetworking/Security - - AFNetworking/Serialization - - AFNetworking/UIKit + - AFNetworking/NSURLConnection (= 2.2.4) + - AFNetworking/NSURLSession (= 2.2.4) + - AFNetworking/Reachability (= 2.2.4) + - AFNetworking/Security (= 2.2.4) + - AFNetworking/Serialization (= 2.2.4) + - AFNetworking/UIKit (= 2.2.4) - AFNetworking/NSURLConnection (2.2.4): - AFNetworking/Reachability - AFNetworking/Security @@ -20,9 +20,9 @@ PODS: - AFNetworking/NSURLSession - KINWebBrowser (0.2.4) - MWFeedParser (1.0.1): - - MWFeedParser/FeedParser - - MWFeedParser/NSDate+InternetDateTime - - MWFeedParser/NSString+HTML + - MWFeedParser/FeedParser (= 1.0.1) + - MWFeedParser/NSDate+InternetDateTime (= 1.0.1) + - MWFeedParser/NSString+HTML (= 1.0.1) - MWFeedParser/FeedParser (1.0.1): - MWFeedParser/NSDate+InternetDateTime - MWFeedParser/NSString+HTML @@ -37,9 +37,11 @@ DEPENDENCIES: - SVProgressHUD SPEC CHECKSUMS: - AFNetworking: ab63e259fe91eef4519b371ef0a4955af0e73e64 - KINWebBrowser: 466c88a47d28e36ca202f312d9b8f756791b8c63 - MWFeedParser: 003cbf5398e99a7f2057fbe9583054fd1b84be72 - SVProgressHUD: 5034c6e22b8c2ca3e09402e48d41ed0340aa1c50 + AFNetworking: caca0799b310f0c3bf1fc1af45145fc96972bcab + KINWebBrowser: f68c923e4a9172db5e249a4c2c4efa2d57ed9296 + MWFeedParser: 2cf646014c1baf6ad1b08c480b40a08180079247 + SVProgressHUD: 46088807596a795cbcb4affd92cf3f13b6ab3dda + +PODFILE CHECKSUM: 8219c5cbdd6138ffeef5a772008293b965a6610a -COCOAPODS: 0.32.1 +COCOAPODS: 1.3.1 diff --git a/RSSReader.xcodeproj/project.pbxproj b/RSSReader.xcodeproj/project.pbxproj deleted file mode 100644 index 5998fac..0000000 --- a/RSSReader.xcodeproj/project.pbxproj +++ /dev/null @@ -1,482 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - AA8AA144194362C900C3888B /* logo.png in Resources */ = {isa = PBXBuildFile; fileRef = AA8AA143194362C900C3888B /* logo.png */; }; - AAC02B19193DEEFE003997F3 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = AAC02B18193DEEFE003997F3 /* AppDelegate.swift */; }; - AAC02B1B193DEEFE003997F3 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AAC02B1A193DEEFE003997F3 /* ViewController.swift */; }; - AAC02B1E193DEEFE003997F3 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AAC02B1C193DEEFE003997F3 /* Main.storyboard */; }; - AAC02B20193DEEFE003997F3 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AAC02B1F193DEEFE003997F3 /* Images.xcassets */; }; - AAC02B2C193DEEFE003997F3 /* RSSReaderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = AAC02B2B193DEEFE003997F3 /* RSSReaderTests.swift */; }; - AAC02B3A193DF344003997F3 /* Podfile in Resources */ = {isa = PBXBuildFile; fileRef = AAC02B39193DF344003997F3 /* Podfile */; }; - BFBD447B1C0843409AC9A3C4 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AFE16BB7AB9C49C5B4EFAE90 /* libPods.a */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - AAC02B26193DEEFE003997F3 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = AAC02B0B193DEEFE003997F3 /* Project object */; - proxyType = 1; - remoteGlobalIDString = AAC02B12193DEEFE003997F3; - remoteInfo = RSSReader; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - AA8AA143194362C900C3888B /* logo.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = logo.png; sourceTree = ""; }; - AAC02B13193DEEFE003997F3 /* RSSReader.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RSSReader.app; sourceTree = BUILT_PRODUCTS_DIR; }; - AAC02B17193DEEFE003997F3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - AAC02B18193DEEFE003997F3 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - AAC02B1A193DEEFE003997F3 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; - AAC02B1D193DEEFE003997F3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - AAC02B1F193DEEFE003997F3 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; - AAC02B25193DEEFE003997F3 /* RSSReaderTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RSSReaderTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - AAC02B2A193DEEFE003997F3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - AAC02B2B193DEEFE003997F3 /* RSSReaderTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RSSReaderTests.swift; sourceTree = ""; }; - AAC02B35193DF2B8003997F3 /* RSSReader-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RSSReader-Bridging-Header.h"; sourceTree = ""; }; - AAC02B39193DF344003997F3 /* Podfile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Podfile; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; - AFE16BB7AB9C49C5B4EFAE90 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; - E885CC41F32F4E3AA56367A0 /* Pods.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.xcconfig; path = Pods/Pods.xcconfig; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - AAC02B10193DEEFE003997F3 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - BFBD447B1C0843409AC9A3C4 /* libPods.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - AAC02B22193DEEFE003997F3 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 70FA9D20B8584551BECCAF8B /* Frameworks */ = { - isa = PBXGroup; - children = ( - AFE16BB7AB9C49C5B4EFAE90 /* libPods.a */, - ); - name = Frameworks; - sourceTree = ""; - }; - AAC02B0A193DEEFE003997F3 = { - isa = PBXGroup; - children = ( - AAC02B39193DF344003997F3 /* Podfile */, - AAC02B15193DEEFE003997F3 /* RSSReader */, - AAC02B28193DEEFE003997F3 /* RSSReaderTests */, - AAC02B14193DEEFE003997F3 /* Products */, - E885CC41F32F4E3AA56367A0 /* Pods.xcconfig */, - 70FA9D20B8584551BECCAF8B /* Frameworks */, - ); - sourceTree = ""; - }; - AAC02B14193DEEFE003997F3 /* Products */ = { - isa = PBXGroup; - children = ( - AAC02B13193DEEFE003997F3 /* RSSReader.app */, - AAC02B25193DEEFE003997F3 /* RSSReaderTests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - AAC02B15193DEEFE003997F3 /* RSSReader */ = { - isa = PBXGroup; - children = ( - AA8AA143194362C900C3888B /* logo.png */, - AAC02B18193DEEFE003997F3 /* AppDelegate.swift */, - AAC02B1A193DEEFE003997F3 /* ViewController.swift */, - AAC02B1C193DEEFE003997F3 /* Main.storyboard */, - AAC02B1F193DEEFE003997F3 /* Images.xcassets */, - AAC02B16193DEEFE003997F3 /* Supporting Files */, - AAC02B35193DF2B8003997F3 /* RSSReader-Bridging-Header.h */, - ); - path = RSSReader; - sourceTree = ""; - }; - AAC02B16193DEEFE003997F3 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - AAC02B17193DEEFE003997F3 /* Info.plist */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - AAC02B28193DEEFE003997F3 /* RSSReaderTests */ = { - isa = PBXGroup; - children = ( - AAC02B2B193DEEFE003997F3 /* RSSReaderTests.swift */, - AAC02B29193DEEFE003997F3 /* Supporting Files */, - ); - path = RSSReaderTests; - sourceTree = ""; - }; - AAC02B29193DEEFE003997F3 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - AAC02B2A193DEEFE003997F3 /* Info.plist */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - AAC02B12193DEEFE003997F3 /* RSSReader */ = { - isa = PBXNativeTarget; - buildConfigurationList = AAC02B2F193DEEFE003997F3 /* Build configuration list for PBXNativeTarget "RSSReader" */; - buildPhases = ( - 02FC4CDD8BDA4695B7FC7560 /* Check Pods Manifest.lock */, - AAC02B0F193DEEFE003997F3 /* Sources */, - AAC02B10193DEEFE003997F3 /* Frameworks */, - AAC02B11193DEEFE003997F3 /* Resources */, - 5D1F79F4E393422A8E38BE19 /* Copy Pods Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = RSSReader; - productName = RSSReader; - productReference = AAC02B13193DEEFE003997F3 /* RSSReader.app */; - productType = "com.apple.product-type.application"; - }; - AAC02B24193DEEFE003997F3 /* RSSReaderTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = AAC02B32193DEEFE003997F3 /* Build configuration list for PBXNativeTarget "RSSReaderTests" */; - buildPhases = ( - AAC02B21193DEEFE003997F3 /* Sources */, - AAC02B22193DEEFE003997F3 /* Frameworks */, - AAC02B23193DEEFE003997F3 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - AAC02B27193DEEFE003997F3 /* PBXTargetDependency */, - ); - name = RSSReaderTests; - productName = RSSReaderTests; - productReference = AAC02B25193DEEFE003997F3 /* RSSReaderTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - AAC02B0B193DEEFE003997F3 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0600; - ORGANIZATIONNAME = susieyy; - TargetAttributes = { - AAC02B12193DEEFE003997F3 = { - CreatedOnToolsVersion = 6.0; - }; - AAC02B24193DEEFE003997F3 = { - CreatedOnToolsVersion = 6.0; - TestTargetID = AAC02B12193DEEFE003997F3; - }; - }; - }; - buildConfigurationList = AAC02B0E193DEEFE003997F3 /* Build configuration list for PBXProject "RSSReader" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = AAC02B0A193DEEFE003997F3; - productRefGroup = AAC02B14193DEEFE003997F3 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - AAC02B12193DEEFE003997F3 /* RSSReader */, - AAC02B24193DEEFE003997F3 /* RSSReaderTests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - AAC02B11193DEEFE003997F3 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - AA8AA144194362C900C3888B /* logo.png in Resources */, - AAC02B3A193DF344003997F3 /* Podfile in Resources */, - AAC02B1E193DEEFE003997F3 /* Main.storyboard in Resources */, - AAC02B20193DEEFE003997F3 /* Images.xcassets in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - AAC02B23193DEEFE003997F3 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 02FC4CDD8BDA4695B7FC7560 /* Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Check Pods Manifest.lock"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; - showEnvVarsInLog = 0; - }; - 5D1F79F4E393422A8E38BE19 /* Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Copy Pods Resources"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Pods-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - AAC02B0F193DEEFE003997F3 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - AAC02B1B193DEEFE003997F3 /* ViewController.swift in Sources */, - AAC02B19193DEEFE003997F3 /* AppDelegate.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - AAC02B21193DEEFE003997F3 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - AAC02B2C193DEEFE003997F3 /* RSSReaderTests.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - AAC02B27193DEEFE003997F3 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = AAC02B12193DEEFE003997F3 /* RSSReader */; - targetProxy = AAC02B26193DEEFE003997F3 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - AAC02B1C193DEEFE003997F3 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - AAC02B1D193DEEFE003997F3 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - AAC02B2D193DEEFE003997F3 /* 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 = "iPhone Developer"; - "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 = 7.1; - METAL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - AAC02B2E193DEEFE003997F3 /* 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 = "iPhone Developer"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = YES; - 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 = 7.1; - METAL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - AAC02B30193DEEFE003997F3 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = E885CC41F32F4E3AA56367A0 /* Pods.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; - CLANG_ENABLE_MODULES = YES; - INFOPLIST_FILE = RSSReader/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "RSSReader/RSSReader-Bridging-Header.h"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - AAC02B31193DEEFE003997F3 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = E885CC41F32F4E3AA56367A0 /* Pods.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; - CLANG_ENABLE_MODULES = YES; - INFOPLIST_FILE = RSSReader/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "RSSReader/RSSReader-Bridging-Header.h"; - }; - name = Release; - }; - AAC02B33193DEEFE003997F3 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/RSSReader.app/RSSReader"; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - ); - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - INFOPLIST_FILE = RSSReaderTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - METAL_ENABLE_DEBUG_INFO = YES; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUNDLE_LOADER)"; - }; - name = Debug; - }; - AAC02B34193DEEFE003997F3 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/RSSReader.app/RSSReader"; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - ); - INFOPLIST_FILE = RSSReaderTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - METAL_ENABLE_DEBUG_INFO = NO; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUNDLE_LOADER)"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - AAC02B0E193DEEFE003997F3 /* Build configuration list for PBXProject "RSSReader" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - AAC02B2D193DEEFE003997F3 /* Debug */, - AAC02B2E193DEEFE003997F3 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - AAC02B2F193DEEFE003997F3 /* Build configuration list for PBXNativeTarget "RSSReader" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - AAC02B30193DEEFE003997F3 /* Debug */, - AAC02B31193DEEFE003997F3 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - AAC02B32193DEEFE003997F3 /* Build configuration list for PBXNativeTarget "RSSReaderTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - AAC02B33193DEEFE003997F3 /* Debug */, - AAC02B34193DEEFE003997F3 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = AAC02B0B193DEEFE003997F3 /* Project object */; -} diff --git a/RSSReader.xcodeproj/project.xcworkspace/xcuserdata/susieyy.xcuserdatad/UserInterfaceState.xcuserstate b/RSSReader.xcodeproj/project.xcworkspace/xcuserdata/susieyy.xcuserdatad/UserInterfaceState.xcuserstate deleted file mode 100644 index 1ff7b3d..0000000 Binary files a/RSSReader.xcodeproj/project.xcworkspace/xcuserdata/susieyy.xcuserdatad/UserInterfaceState.xcuserstate and /dev/null differ diff --git a/RSSReader.xcworkspace/contents.xcworkspacedata b/RSSReader.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 805e3f7..0000000 --- a/RSSReader.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/RSSReader.xcworkspace/xcshareddata/RSSReader.xccheckout b/RSSReader.xcworkspace/xcshareddata/RSSReader.xccheckout deleted file mode 100644 index 12aab86..0000000 --- a/RSSReader.xcworkspace/xcshareddata/RSSReader.xccheckout +++ /dev/null @@ -1,41 +0,0 @@ - - - - - IDESourceControlProjectFavoriteDictionaryKey - - IDESourceControlProjectIdentifier - E800942E-402F-4C5E-8E22-99B1590ADA24 - IDESourceControlProjectName - RSSReader - IDESourceControlProjectOriginsDictionary - - 7B007683-1A9F-4419-A960-2C0E408BADDF - ssh://github.com/susieyy/RSSReaderSwift.git - - IDESourceControlProjectPath - RSSReader.xcworkspace - IDESourceControlProjectRelativeInstallPathDictionary - - 7B007683-1A9F-4419-A960-2C0E408BADDF - .. - - IDESourceControlProjectURL - ssh://github.com/susieyy/RSSReaderSwift.git - IDESourceControlProjectVersion - 110 - IDESourceControlProjectWCCIdentifier - 7B007683-1A9F-4419-A960-2C0E408BADDF - IDESourceControlProjectWCConfigurations - - - IDESourceControlRepositoryExtensionIdentifierKey - public.vcs.git - IDESourceControlWCCIdentifierKey - 7B007683-1A9F-4419-A960-2C0E408BADDF - IDESourceControlWCCName - RSSReaderSwift - - - - diff --git a/RSSReader/Base.lproj/Main.storyboard b/RSSReader/Base.lproj/Main.storyboard deleted file mode 100644 index 455b974..0000000 --- a/RSSReader/Base.lproj/Main.storyboard +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/RSSReader/Images.xcassets/AppIcon.appiconset/Contents.json b/RSSReader/Images.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index a396706..0000000 --- a/RSSReader/Images.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "2x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/RSSReader/ViewController.swift b/RSSReader/ViewController.swift deleted file mode 100644 index cb85bd3..0000000 --- a/RSSReader/ViewController.swift +++ /dev/null @@ -1,97 +0,0 @@ -// -// ViewController.swift -// RSSReader -// -// Created by susieyy on 2014/06/03. -// Copyright (c) 2014年 susieyy. All rights reserved. -// - -import UIKit - -class ViewController: UITableViewController, MWFeedParserDelegate { - - var items = [MWFeedItem]() - - override func viewDidLoad() { - super.viewDidLoad() - // Do any additional setup after loading the view, typically from a nib. - } - - override func viewWillAppear(animated: Bool) { - super.viewWillAppear(animated) - request() - } - - override func didReceiveMemoryWarning() { - super.didReceiveMemoryWarning() - // Dispose of any resources that can be recreated. - } - - func request() { - let URL = NSURL(string: "https://www.wantedly.com/projects.xml") - let feedParser = MWFeedParser(feedURL: URL); - feedParser.delegate = self - feedParser.parse() - } - - func feedParserDidStart(parser: MWFeedParser) { - SVProgressHUD.show() - self.items = [MWFeedItem]() - } - - func feedParserDidFinish(parser: MWFeedParser) { - SVProgressHUD.dismiss() - self.tableView.reloadData() - } - - - func feedParser(parser: MWFeedParser, didParseFeedInfo info: MWFeedInfo) { - println(info) - self.title = info.title - } - - func feedParser(parser: MWFeedParser, didParseFeedItem item: MWFeedItem) { - println(item) - self.items.append(item) - } - - override func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat { - return 100 - } - - override func numberOfSectionsInTableView(tableView: UITableView) -> Int { - return 1 - } - - override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { - return self.items.count - } - - override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { - let cell = UITableViewCell(style: UITableViewCellStyle.Default, reuseIdentifier: "FeedCell") - self.configureCell(cell, atIndexPath: indexPath) - return cell - } - - override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { - let item = self.items[indexPath.row] as MWFeedItem - let con = KINWebBrowserViewController() - let URL = NSURL(string: item.link) - con.loadURL(URL) - self.navigationController?.pushViewController(con, animated: true) - } - - func configureCell(cell: UITableViewCell, atIndexPath indexPath: NSIndexPath) { - let item = self.items[indexPath.row] as MWFeedItem - cell.textLabel?.text = item.title - cell.textLabel?.font = UIFont.systemFontOfSize(14.0) - cell.textLabel?.numberOfLines = 0 - - let projectURL = item.link.componentsSeparatedByString("?")[0] - let imgURL: NSURL? = NSURL(string: projectURL + "/cover_image?style=200x200#") - cell.imageView?.contentMode = UIViewContentMode.ScaleAspectFit - cell.imageView?.setImageWithURL(imgURL, placeholderImage: UIImage(named: "logo.png")) - } - -} - diff --git a/RSSReader/logo.png b/RSSReader/logo.png deleted file mode 100644 index cd695b9..0000000 Binary files a/RSSReader/logo.png and /dev/null differ diff --git a/Untitled.p12 b/Untitled.p12 new file mode 100644 index 0000000..5d334c1 Binary files /dev/null and b/Untitled.p12 differ diff --git a/Vista-se.xcodeproj/project.pbxproj b/Vista-se.xcodeproj/project.pbxproj new file mode 100644 index 0000000..1d7b468 --- /dev/null +++ b/Vista-se.xcodeproj/project.pbxproj @@ -0,0 +1,445 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 259B92257A80CAF9C255A5EB /* Pods_Vista_se.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3F23217022E1AC8D8FF75DEA /* Pods_Vista_se.framework */; }; + 8BB79998203B85FE00378C44 /* FeedCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8BB7998D203B85FD00378C44 /* FeedCell.xib */; }; + 8BB79999203B85FE00378C44 /* logo.png in Resources */ = {isa = PBXBuildFile; fileRef = 8BB7998E203B85FD00378C44 /* logo.png */; }; + 8BB7999A203B85FE00378C44 /* Launch Screen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8BB7998F203B85FD00378C44 /* Launch Screen.storyboard */; }; + 8BB7999B203B85FE00378C44 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8BB79990203B85FD00378C44 /* Images.xcassets */; }; + 8BB7999C203B85FE00378C44 /* icone_vista_se.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 8BB79991203B85FD00378C44 /* icone_vista_se.jpg */; }; + 8BB7999D203B85FE00378C44 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 8BB79992203B85FE00378C44 /* Info.plist */; }; + 8BB7999E203B85FE00378C44 /* FeedCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8BB79993203B85FE00378C44 /* FeedCell.swift */; }; + 8BB7999F203B85FE00378C44 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8BB79994203B85FE00378C44 /* AppDelegate.swift */; }; + 8BB799A0203B85FE00378C44 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8BB79996203B85FE00378C44 /* ViewController.swift */; }; + 8BB799A3203B86C300378C44 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8BB799A2203B86B500378C44 /* Main.storyboard */; }; + AAC02B3A193DF344003997F3 /* Podfile in Resources */ = {isa = PBXBuildFile; fileRef = AAC02B39193DF344003997F3 /* Podfile */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 13309F42819CB74E67D6A028 /* Pods-RSSReaderTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RSSReaderTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-RSSReaderTests/Pods-RSSReaderTests.release.xcconfig"; sourceTree = ""; }; + 246E9E0B92EAC1A7BA66C656 /* Pods-Vista-seTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Vista-seTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-Vista-seTests/Pods-Vista-seTests.release.xcconfig"; sourceTree = ""; }; + 2C1AA53046DA50D840398BCD /* Pods_RSSReader.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RSSReader.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 2D757707C144E43AC840CE1A /* Pods_Vista_seTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Vista_seTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 3751883036FBA32BF6A282BC /* Pods-Vista-se.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Vista-se.release.xcconfig"; path = "Pods/Target Support Files/Pods-Vista-se/Pods-Vista-se.release.xcconfig"; sourceTree = ""; }; + 3A137C52CB1642A6B75A6C93 /* Pods-RSSReaderTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RSSReaderTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RSSReaderTests/Pods-RSSReaderTests.debug.xcconfig"; sourceTree = ""; }; + 3B0FCBF3AF7D0C482C8B46E5 /* Pods_RSSReaderTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RSSReaderTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 3F23217022E1AC8D8FF75DEA /* Pods_Vista_se.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Vista_se.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 640183C4A1209A427FB96824 /* Pods-RSSReader.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RSSReader.release.xcconfig"; path = "Pods/Target Support Files/Pods-RSSReader/Pods-RSSReader.release.xcconfig"; sourceTree = ""; }; + 697F38DD3077968DF6C7E5A5 /* Pods-RSSReader.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RSSReader.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RSSReader/Pods-RSSReader.debug.xcconfig"; sourceTree = ""; }; + 6EAF24B39436799B7B85E685 /* Pods-Vista-se.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Vista-se.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Vista-se/Pods-Vista-se.debug.xcconfig"; sourceTree = ""; }; + 8BB7998D203B85FD00378C44 /* FeedCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = FeedCell.xib; path = "Vista-se/FeedCell.xib"; sourceTree = SOURCE_ROOT; }; + 8BB7998E203B85FD00378C44 /* logo.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = logo.png; path = "Vista-se/logo.png"; sourceTree = SOURCE_ROOT; }; + 8BB7998F203B85FD00378C44 /* Launch Screen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = "Launch Screen.storyboard"; path = "Vista-se/Launch Screen.storyboard"; sourceTree = SOURCE_ROOT; }; + 8BB79990203B85FD00378C44 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = "Vista-se/Images.xcassets"; sourceTree = SOURCE_ROOT; }; + 8BB79991203B85FD00378C44 /* icone_vista_se.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = icone_vista_se.jpg; path = "Vista-se/icone_vista_se.jpg"; sourceTree = SOURCE_ROOT; }; + 8BB79992203B85FE00378C44 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = "Vista-se/Info.plist"; sourceTree = SOURCE_ROOT; }; + 8BB79993203B85FE00378C44 /* FeedCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FeedCell.swift; path = "Vista-se/FeedCell.swift"; sourceTree = SOURCE_ROOT; }; + 8BB79994203B85FE00378C44 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = "Vista-se/AppDelegate.swift"; sourceTree = SOURCE_ROOT; }; + 8BB79995203B85FE00378C44 /* RSSReader-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "RSSReader-Bridging-Header.h"; path = "Vista-se/RSSReader-Bridging-Header.h"; sourceTree = SOURCE_ROOT; }; + 8BB79996203B85FE00378C44 /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ViewController.swift; path = "Vista-se/ViewController.swift"; sourceTree = SOURCE_ROOT; }; + 8BB799A2203B86B500378C44 /* Main.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; + AAC02B13193DEEFE003997F3 /* Vista-se.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Vista-se.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + AAC02B2A193DEEFE003997F3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + AAC02B2B193DEEFE003997F3 /* RSSReaderTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RSSReaderTests.swift; sourceTree = ""; }; + AAC02B39193DF344003997F3 /* Podfile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Podfile; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + FC89E12AF80172D8082C50CC /* Pods-Vista-seTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Vista-seTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Vista-seTests/Pods-Vista-seTests.debug.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + AAC02B10193DEEFE003997F3 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 259B92257A80CAF9C255A5EB /* Pods_Vista_se.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 72DF2961FEFF079C61BD3EDC /* Pods */ = { + isa = PBXGroup; + children = ( + 697F38DD3077968DF6C7E5A5 /* Pods-RSSReader.debug.xcconfig */, + 640183C4A1209A427FB96824 /* Pods-RSSReader.release.xcconfig */, + 3A137C52CB1642A6B75A6C93 /* Pods-RSSReaderTests.debug.xcconfig */, + 13309F42819CB74E67D6A028 /* Pods-RSSReaderTests.release.xcconfig */, + 6EAF24B39436799B7B85E685 /* Pods-Vista-se.debug.xcconfig */, + 3751883036FBA32BF6A282BC /* Pods-Vista-se.release.xcconfig */, + FC89E12AF80172D8082C50CC /* Pods-Vista-seTests.debug.xcconfig */, + 246E9E0B92EAC1A7BA66C656 /* Pods-Vista-seTests.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; + 8BB7998C203B85EA00378C44 /* Vista-se */ = { + isa = PBXGroup; + children = ( + 8BB79994203B85FE00378C44 /* AppDelegate.swift */, + 8BB79993203B85FE00378C44 /* FeedCell.swift */, + 8BB7998D203B85FD00378C44 /* FeedCell.xib */, + 8BB799A2203B86B500378C44 /* Main.storyboard */, + 8BB79991203B85FD00378C44 /* icone_vista_se.jpg */, + 8BB79990203B85FD00378C44 /* Images.xcassets */, + 8BB79992203B85FE00378C44 /* Info.plist */, + 8BB7998F203B85FD00378C44 /* Launch Screen.storyboard */, + 8BB7998E203B85FD00378C44 /* logo.png */, + 8BB79995203B85FE00378C44 /* RSSReader-Bridging-Header.h */, + 8BB79996203B85FE00378C44 /* ViewController.swift */, + ); + name = "Vista-se"; + path = "New Group"; + sourceTree = ""; + }; + A51F0087B05B822CE6215D98 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 2C1AA53046DA50D840398BCD /* Pods_RSSReader.framework */, + 3B0FCBF3AF7D0C482C8B46E5 /* Pods_RSSReaderTests.framework */, + 3F23217022E1AC8D8FF75DEA /* Pods_Vista_se.framework */, + 2D757707C144E43AC840CE1A /* Pods_Vista_seTests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + AAC02B0A193DEEFE003997F3 = { + isa = PBXGroup; + children = ( + 8BB7998C203B85EA00378C44 /* Vista-se */, + AAC02B39193DF344003997F3 /* Podfile */, + AAC02B28193DEEFE003997F3 /* RSSReaderTests */, + AAC02B14193DEEFE003997F3 /* Products */, + 72DF2961FEFF079C61BD3EDC /* Pods */, + A51F0087B05B822CE6215D98 /* Frameworks */, + ); + sourceTree = ""; + }; + AAC02B14193DEEFE003997F3 /* Products */ = { + isa = PBXGroup; + children = ( + AAC02B13193DEEFE003997F3 /* Vista-se.app */, + ); + name = Products; + sourceTree = ""; + }; + AAC02B28193DEEFE003997F3 /* RSSReaderTests */ = { + isa = PBXGroup; + children = ( + AAC02B2B193DEEFE003997F3 /* RSSReaderTests.swift */, + AAC02B29193DEEFE003997F3 /* Supporting Files */, + ); + path = RSSReaderTests; + sourceTree = ""; + }; + AAC02B29193DEEFE003997F3 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + AAC02B2A193DEEFE003997F3 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + AAC02B12193DEEFE003997F3 /* Vista-se */ = { + isa = PBXNativeTarget; + buildConfigurationList = AAC02B2F193DEEFE003997F3 /* Build configuration list for PBXNativeTarget "Vista-se" */; + buildPhases = ( + 88AE26BB9ED97C98A88A8AA3 /* [CP] Check Pods Manifest.lock */, + AAC02B0F193DEEFE003997F3 /* Sources */, + AAC02B10193DEEFE003997F3 /* Frameworks */, + AAC02B11193DEEFE003997F3 /* Resources */, + 957AD5FA4DC47A6A9CD3C3CC /* [CP] Embed Pods Frameworks */, + 3B23A8640929A21132E4B551 /* [CP] Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "Vista-se"; + productName = RSSReader; + productReference = AAC02B13193DEEFE003997F3 /* Vista-se.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + AAC02B0B193DEEFE003997F3 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0600; + ORGANIZATIONNAME = susieyy; + TargetAttributes = { + AAC02B12193DEEFE003997F3 = { + CreatedOnToolsVersion = 6.0; + DevelopmentTeam = 54JDK55DR5; + ProvisioningStyle = Automatic; + }; + }; + }; + buildConfigurationList = AAC02B0E193DEEFE003997F3 /* Build configuration list for PBXProject "Vista-se" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = AAC02B0A193DEEFE003997F3; + productRefGroup = AAC02B14193DEEFE003997F3 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + AAC02B12193DEEFE003997F3 /* Vista-se */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + AAC02B11193DEEFE003997F3 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8BB7999C203B85FE00378C44 /* icone_vista_se.jpg in Resources */, + AAC02B3A193DF344003997F3 /* Podfile in Resources */, + 8BB7999B203B85FE00378C44 /* Images.xcassets in Resources */, + 8BB799A3203B86C300378C44 /* Main.storyboard in Resources */, + 8BB79998203B85FE00378C44 /* FeedCell.xib in Resources */, + 8BB7999A203B85FE00378C44 /* Launch Screen.storyboard in Resources */, + 8BB79999203B85FE00378C44 /* logo.png in Resources */, + 8BB7999D203B85FE00378C44 /* Info.plist in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B23A8640929A21132E4B551 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Vista-se/Pods-Vista-se-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + 88AE26BB9ED97C98A88A8AA3 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Vista-se-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 957AD5FA4DC47A6A9CD3C3CC /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${SRCROOT}/Pods/Target Support Files/Pods-Vista-se/Pods-Vista-se-frameworks.sh", + "${BUILT_PRODUCTS_DIR}/AFNetworking/AFNetworking.framework", + "${BUILT_PRODUCTS_DIR}/KINWebBrowser/KINWebBrowser.framework", + "${BUILT_PRODUCTS_DIR}/MWFeedParser/MWFeedParser.framework", + "${BUILT_PRODUCTS_DIR}/SVProgressHUD/SVProgressHUD.framework", + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AFNetworking.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/KINWebBrowser.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MWFeedParser.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SVProgressHUD.framework", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Vista-se/Pods-Vista-se-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + AAC02B0F193DEEFE003997F3 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8BB799A0203B85FE00378C44 /* ViewController.swift in Sources */, + 8BB7999F203B85FE00378C44 /* AppDelegate.swift in Sources */, + 8BB7999E203B85FE00378C44 /* FeedCell.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + AAC02B2D193DEEFE003997F3 /* 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 = "iPhone Developer"; + "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 = 7.1; + METAL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + AAC02B2E193DEEFE003997F3 /* 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 = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + 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 = 7.1; + METAL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + AAC02B30193DEEFE003997F3 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 6EAF24B39436799B7B85E685 /* Pods-Vista-se.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 54JDK55DR5; + INFOPLIST_FILE = "Vista-se/Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 9.3; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.ezefranca.vista-se"; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE = ""; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_OBJC_BRIDGING_HEADER = "Vista-se/RSSReader-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 4.0; + }; + name = Debug; + }; + AAC02B31193DEEFE003997F3 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 3751883036FBA32BF6A282BC /* Pods-Vista-se.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_IDENTITY = "iPhone Distribution"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 54JDK55DR5; + INFOPLIST_FILE = "Vista-se/Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 9.3; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.ezefranca.vista-se"; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE = ""; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_OBJC_BRIDGING_HEADER = "Vista-se/RSSReader-Bridging-Header.h"; + SWIFT_VERSION = 4.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + AAC02B0E193DEEFE003997F3 /* Build configuration list for PBXProject "Vista-se" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + AAC02B2D193DEEFE003997F3 /* Debug */, + AAC02B2E193DEEFE003997F3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + AAC02B2F193DEEFE003997F3 /* Build configuration list for PBXNativeTarget "Vista-se" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + AAC02B30193DEEFE003997F3 /* Debug */, + AAC02B31193DEEFE003997F3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = AAC02B0B193DEEFE003997F3 /* Project object */; +} diff --git a/RSSReader.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Vista-se.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from RSSReader.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to Vista-se.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/Vista-se.xcworkspace/contents.xcworkspacedata b/Vista-se.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..f19bb21 --- /dev/null +++ b/Vista-se.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/Vista-se/.DS_Store b/Vista-se/.DS_Store new file mode 100644 index 0000000..0262b6f Binary files /dev/null and b/Vista-se/.DS_Store differ diff --git a/RSSReader/AppDelegate.swift b/Vista-se/AppDelegate.swift similarity index 100% rename from RSSReader/AppDelegate.swift rename to Vista-se/AppDelegate.swift diff --git a/Vista-se/FeedCell.swift b/Vista-se/FeedCell.swift new file mode 100644 index 0000000..1c048bb --- /dev/null +++ b/Vista-se/FeedCell.swift @@ -0,0 +1,40 @@ +// +// FeedCell.swift +// RSSReader +// +// Created by Ezequiel on 18/02/18. +// Copyright © 2018 susieyy. All rights reserved. +// + +import UIKit +import MWFeedParser + +class FeedCell: UITableViewCell { + + @IBOutlet weak var img: UIImageView! + @IBOutlet weak var txt: UILabel! + @IBOutlet weak var date: UILabel! + + public func configureCell(indexPath: IndexPath, items:[MWFeedItem], images:[URL]) { + let item = items[indexPath.row] + self.txt.text = item.title + self.date.text = item.date.stringValue() +// cell.textLabel?.font = UIFont.systemFont(ofSize: 14.0) +// cell.textLabel?.numberOfLines = 0 + let imgURL = images[indexPath.row] + //self.img.contentMode = UIViewContentMode.scaleToFill + self.img.setImageWith(imgURL, placeholderImage: UIImage(named: "logo.png")) + } + + override func awakeFromNib() { + super.awakeFromNib() + // Initialization code + } + + override func setSelected(_ selected: Bool, animated: Bool) { + super.setSelected(selected, animated: animated) + + // Configure the view for the selected state + } + +} diff --git a/Vista-se/FeedCell.xib b/Vista-se/FeedCell.xib new file mode 100644 index 0000000..72aa58b --- /dev/null +++ b/Vista-se/FeedCell.xib @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + Avenir-Light + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Vista-se/Images.xcassets/.DS_Store b/Vista-se/Images.xcassets/.DS_Store new file mode 100644 index 0000000..785a725 Binary files /dev/null and b/Vista-se/Images.xcassets/.DS_Store differ diff --git a/Vista-se/Images.xcassets/2GdmbbG.imageset/2GdmbbG.jpg b/Vista-se/Images.xcassets/2GdmbbG.imageset/2GdmbbG.jpg new file mode 100644 index 0000000..1c9567a Binary files /dev/null and b/Vista-se/Images.xcassets/2GdmbbG.imageset/2GdmbbG.jpg differ diff --git a/Vista-se/Images.xcassets/2GdmbbG.imageset/Contents.json b/Vista-se/Images.xcassets/2GdmbbG.imageset/Contents.json new file mode 100644 index 0000000..2e0db6d --- /dev/null +++ b/Vista-se/Images.xcassets/2GdmbbG.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "2GdmbbG.jpg", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Contents.json b/Vista-se/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100755 index 0000000..4062365 --- /dev/null +++ b/Vista-se/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,158 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "57x57", + "idiom" : "iphone", + "filename" : "Icon-App-57x57@1x.png", + "scale" : "1x" + }, + { + "size" : "57x57", + "idiom" : "iphone", + "filename" : "Icon-App-57x57@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "50x50", + "idiom" : "ipad", + "filename" : "Icon-Small-50x50@1x.png", + "scale" : "1x" + }, + { + "size" : "50x50", + "idiom" : "ipad", + "filename" : "Icon-Small-50x50@2x.png", + "scale" : "2x" + }, + { + "size" : "72x72", + "idiom" : "ipad", + "filename" : "Icon-App-72x72@1x.png", + "scale" : "1x" + }, + { + "size" : "72x72", + "idiom" : "ipad", + "filename" : "Icon-App-72x72@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "ItunesArtwork@2x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 0000000..defc901 Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000..091e33d Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000..636f48a Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000..8adf1ae Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000..d372ebf Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 0000000..2a98dc6 Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 0000000..091e33d Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000..2dc0ead Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000..e0781b0 Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png new file mode 100644 index 0000000..bbc48bb Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png differ diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png new file mode 100644 index 0000000..908d028 Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png differ diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000..e0781b0 Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000..a517160 Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png new file mode 100644 index 0000000..733fb24 Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png differ diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png new file mode 100644 index 0000000..a0b44e3 Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png differ diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000..a8beb96 Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 0000000..f184825 Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 0000000..1ec8e18 Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-Small-50x50@1x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-Small-50x50@1x.png new file mode 100644 index 0000000..e8caa61 Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-Small-50x50@1x.png differ diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-Small-50x50@2x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-Small-50x50@2x.png new file mode 100644 index 0000000..08db331 Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/Icon-Small-50x50@2x.png differ diff --git a/Vista-se/Images.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png b/Vista-se/Images.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png new file mode 100644 index 0000000..94fd439 Binary files /dev/null and b/Vista-se/Images.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png differ diff --git a/Vista-se/Images.xcassets/Contents.json b/Vista-se/Images.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Vista-se/Images.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/RSSReader/Images.xcassets/LaunchImage.launchimage/Contents.json b/Vista-se/Images.xcassets/LaunchImage.launchimage/Contents.json similarity index 100% rename from RSSReader/Images.xcassets/LaunchImage.launchimage/Contents.json rename to Vista-se/Images.xcassets/LaunchImage.launchimage/Contents.json diff --git a/RSSReader/Images.xcassets/LaunchImage.launchimage/launchimage.png b/Vista-se/Images.xcassets/LaunchImage.launchimage/launchimage.png similarity index 100% rename from RSSReader/Images.xcassets/LaunchImage.launchimage/launchimage.png rename to Vista-se/Images.xcassets/LaunchImage.launchimage/launchimage.png diff --git a/RSSReader/Images.xcassets/LaunchImage.launchimage/launchimage4inch.png b/Vista-se/Images.xcassets/LaunchImage.launchimage/launchimage4inch.png similarity index 100% rename from RSSReader/Images.xcassets/LaunchImage.launchimage/launchimage4inch.png rename to Vista-se/Images.xcassets/LaunchImage.launchimage/launchimage4inch.png diff --git a/Vista-se/Images.xcassets/calendar.imageset/Contents.json b/Vista-se/Images.xcassets/calendar.imageset/Contents.json new file mode 100644 index 0000000..977e747 --- /dev/null +++ b/Vista-se/Images.xcassets/calendar.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "icons8-calendar-50.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "calendar.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Vista-se/Images.xcassets/calendar.imageset/calendar.png b/Vista-se/Images.xcassets/calendar.imageset/calendar.png new file mode 100644 index 0000000..9c89218 Binary files /dev/null and b/Vista-se/Images.xcassets/calendar.imageset/calendar.png differ diff --git a/Vista-se/Images.xcassets/calendar.imageset/icons8-calendar-50.png b/Vista-se/Images.xcassets/calendar.imageset/icons8-calendar-50.png new file mode 100644 index 0000000..a7a1f75 Binary files /dev/null and b/Vista-se/Images.xcassets/calendar.imageset/icons8-calendar-50.png differ diff --git a/Vista-se/Images.xcassets/icone_vista_se.imageset/Contents.json b/Vista-se/Images.xcassets/icone_vista_se.imageset/Contents.json new file mode 100644 index 0000000..32f567c --- /dev/null +++ b/Vista-se/Images.xcassets/icone_vista_se.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "icone_vista_se.jpg", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Vista-se/Images.xcassets/icone_vista_se.imageset/icone_vista_se.jpg b/Vista-se/Images.xcassets/icone_vista_se.imageset/icone_vista_se.jpg new file mode 100644 index 0000000..94a1b84 Binary files /dev/null and b/Vista-se/Images.xcassets/icone_vista_se.imageset/icone_vista_se.jpg differ diff --git a/RSSReader/Info.plist b/Vista-se/Info.plist similarity index 88% rename from RSSReader/Info.plist rename to Vista-se/Info.plist index f78d189..5936a9d 100644 --- a/RSSReader/Info.plist +++ b/Vista-se/Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable ${EXECUTABLE_NAME} CFBundleIdentifier - jp.susiea.rssreader.${PRODUCT_NAME:rfc1034identifier} + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName @@ -22,6 +22,8 @@ 1 LSRequiresIPhoneOS + UILaunchStoryboardName + Launch Screen UIMainStoryboardFile Main UIRequiredDeviceCapabilities diff --git a/Vista-se/Launch Screen.storyboard b/Vista-se/Launch Screen.storyboard new file mode 100644 index 0000000..2cb3a6d --- /dev/null +++ b/Vista-se/Launch Screen.storyboard @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/RSSReader/RSSReader-Bridging-Header.h b/Vista-se/RSSReader-Bridging-Header.h similarity index 72% rename from RSSReader/RSSReader-Bridging-Header.h rename to Vista-se/RSSReader-Bridging-Header.h index c989b2d..c3ca046 100644 --- a/RSSReader/RSSReader-Bridging-Header.h +++ b/Vista-se/RSSReader-Bridging-Header.h @@ -2,7 +2,7 @@ // Use this file to import your target's public headers that you would like to expose to Swift. // -#import "SVProgressHUD.h" -#import "MWFeedParser.h" +#import +#import #import #import diff --git a/Vista-se/ViewController.swift b/Vista-se/ViewController.swift new file mode 100644 index 0000000..3b31f59 --- /dev/null +++ b/Vista-se/ViewController.swift @@ -0,0 +1,149 @@ +// +// ViewController.swift +// RSSReader +// +// Created by susieyy on 2014/06/03. +// Copyright (c) 2014年 susieyy. All rights reserved. +// + +import UIKit +import MWFeedParser +import SVProgressHUD +import KINWebBrowser + +class ViewController: UITableViewController, MWFeedParserDelegate { + + var items = [MWFeedItem]() + var images = [URL]() + + override func viewDidLoad() { + super.viewDidLoad() + //tableView.register(FeedCell.self, forCellReuseIdentifier: "FeedCell") + tableView.register(UINib(nibName: "FeedCell", bundle: nil), forCellReuseIdentifier: "FeedCell") + // Do any additional setup after loading the view, typically from a nib. + } + + override func viewWillAppear(_ animated: Bool) { + super.viewWillAppear(animated) + request() + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + @IBAction func refresh(_ sender: Any) { + request() + } + + func request() { + SVProgressHUD.show() + let url = URL(string: "https://www.vista-se.com.br/feed") + let feedParser = MWFeedParser(feedURL: url) + feedParser?.delegate = self + feedParser?.parse() + } + + func feedParserDidStart(_ parser: MWFeedParser) { + SVProgressHUD.show() + self.items = [MWFeedItem]() + } + + func feedParserDidFinish(_ parser: MWFeedParser) { + SVProgressHUD.dismiss() + self.tableView.reloadData() + } + + func feedParser(_ parser: MWFeedParser!, didFailWithError error: Error!) { + SVProgressHUD.dismiss() + self.tableView.reloadData() + } + + + func feedParser(_ parser: MWFeedParser, didParseFeedInfo info: MWFeedInfo) { + print(info.title) + self.title = info.title + } + + func feedParser(_ parser: MWFeedParser, didParseFeedItem item: MWFeedItem) { + if let imgURL = item.content.extractURLs().first { + images.append(imgURL) + } else { + images.append(URL(string: "https://www.vista-se.com.br/docs/logo.jpg")!) + } + self.items.append(item) + } + + override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { + return 120 + } + + override func numberOfSections(in tableView: UITableView) -> Int { + return 1 + } + override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + return self.items.count + } + + override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + let cell = tableView.dequeueReusableCell(withIdentifier: "FeedCell", for: indexPath) as! FeedCell + cell.configureCell(indexPath: indexPath, items: self.items, images: self.images) + return cell + } + + override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { + let item = self.items[indexPath.row] as MWFeedItem + let con = KINWebBrowserViewController() + let url = URL(string: item.link) + con.load(url) + self.navigationController?.pushViewController(con, animated: true) + } +} + +extension String { + func extractURLs() -> [URL] { + var urls : [URL] = [] + do { + let detector = try NSDataDetector(types: NSTextCheckingResult.CheckingType.link.rawValue) + detector.enumerateMatches(in: self, options: [], range: NSMakeRange(0, self.count), using: { (result, _, _) in + if let match = result, let url = match.url { + urls.append(url) + } + }) + } catch let error as NSError { + print(error.localizedDescription) + } + return urls + } +} + +extension Date { + func stringValue() -> String { + let dateFormatter = DateFormatter() + dateFormatter.dateFormat = "dd/MM/yyyy" + dateFormatter.timeZone = TimeZone(identifier: "GMT") + return dateFormatter.string(from: self) + } + + func brazilianTimeZoneDate() -> Date { + let myLocale = Locale(identifier: "pt_BR") + if let myTimezone = TimeZone(identifier: "GMT") { + print("\(myTimezone.identifier)") + } + let formatter = DateFormatter() + formatter.locale = myLocale + formatter.dateStyle = .medium + formatter.timeStyle = .medium + let dateStr = formatter.string(from: self) + var calendar = Calendar(identifier: .gregorian) + calendar.locale = myLocale + let dateComponents = calendar.dateComponents([.day, .month, .year], from: self) + _ = calendar.monthSymbols[dateComponents.month! - 1] + if let componentsBasedDate = calendar.date(from: dateComponents) { + let componentsBasedDateStr = formatter.string(from: componentsBasedDate) + print("3. \(componentsBasedDateStr)") + } + return formatter.date(from: dateStr) ?? Date() + } +} + diff --git a/Vista-se/icone_vista_se.jpg b/Vista-se/icone_vista_se.jpg new file mode 100644 index 0000000..94a1b84 Binary files /dev/null and b/Vista-se/icone_vista_se.jpg differ diff --git a/Vista-se/logo.png b/Vista-se/logo.png new file mode 100644 index 0000000..910ab3f Binary files /dev/null and b/Vista-se/logo.png differ diff --git a/RSSReaderTests/Info.plist b/Vista-seTests/Info.plist similarity index 90% rename from RSSReaderTests/Info.plist rename to Vista-seTests/Info.plist index e7f0e5e..07c4ff7 100644 --- a/RSSReaderTests/Info.plist +++ b/Vista-seTests/Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable ${EXECUTABLE_NAME} CFBundleIdentifier - jp.susiea.rssreader.${PRODUCT_NAME:rfc1034identifier} + com.ezefranca.vista-se.${PRODUCT_NAME:rfc1034identifier} CFBundleInfoDictionaryVersion 6.0 CFBundleName diff --git a/RSSReaderTests/RSSReaderTests.swift b/Vista-seTests/RSSReaderTests.swift similarity index 100% rename from RSSReaderTests/RSSReaderTests.swift rename to Vista-seTests/RSSReaderTests.swift