From b563875a3abe69b0c39a6bc2eaa61e467e802df8 Mon Sep 17 00:00:00 2001 From: Isaac Overacker Date: Sat, 6 Feb 2016 21:44:22 -0800 Subject: [PATCH] Added tvOS example --- .../project.pbxproj | 384 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../contents.xcworkspacedata | 10 + .../AppDelegate.swift | 45 ++ .../Content.imageset/Contents.json | 12 + .../Back.imagestacklayer/Contents.json | 6 + .../App Icon - Large.imagestack/Contents.json | 17 + .../Content.imageset/Contents.json | 12 + .../Front.imagestacklayer/Contents.json | 6 + .../Content.imageset/Contents.json | 12 + .../Middle.imagestacklayer/Contents.json | 6 + .../Content.imageset/Contents.json | 12 + .../Back.imagestacklayer/Contents.json | 6 + .../App Icon - Small.imagestack/Contents.json | 17 + .../Content.imageset/Contents.json | 12 + .../Front.imagestacklayer/Contents.json | 6 + .../Content.imageset/Contents.json | 12 + .../Middle.imagestacklayer/Contents.json | 6 + .../Contents.json | 26 ++ .../Top Shelf Image.imageset/Contents.json | 12 + .../Assets.xcassets/Contents.json | 6 + .../LaunchImage.launchimage/Contents.json | 15 + .../Contents.json | 13 + .../white-pinterest-logo@1x.png | Bin 0 -> 1836 bytes .../Base.lproj/Main.storyboard | 248 +++++++++++ .../CollectionViewCell.swift | 20 + .../CollectionViewController.swift | 65 +++ .../DegradedViewController.swift | 35 ++ .../GIFViewController.swift | 34 ++ .../PINRemoteImage.tvOSExample/Info.plist | 34 ++ .../ProcessingViewController.swift | 77 ++++ .../ProgressiveViewController.swift | 50 +++ .../WebPViewController.swift | 35 ++ Example-tvOS/Podfile | 7 + Example-tvOS/Podfile.lock | 54 +++ 35 files changed, 1319 insertions(+) create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample.xcodeproj/project.pbxproj create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample.xcworkspace/contents.xcworkspacedata create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/AppDelegate.swift create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/Contents.json create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/LaunchImage.launchimage/Contents.json create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/white-pinterest-logo.imageset/Contents.json create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/white-pinterest-logo.imageset/white-pinterest-logo@1x.png create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Base.lproj/Main.storyboard create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/CollectionViewCell.swift create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/CollectionViewController.swift create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/DegradedViewController.swift create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/GIFViewController.swift create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/Info.plist create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/ProcessingViewController.swift create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/ProgressiveViewController.swift create mode 100644 Example-tvOS/PINRemoteImage.tvOSExample/WebPViewController.swift create mode 100644 Example-tvOS/Podfile create mode 100644 Example-tvOS/Podfile.lock diff --git a/Example-tvOS/PINRemoteImage.tvOSExample.xcodeproj/project.pbxproj b/Example-tvOS/PINRemoteImage.tvOSExample.xcodeproj/project.pbxproj new file mode 100644 index 0000000..7d13976 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample.xcodeproj/project.pbxproj @@ -0,0 +1,384 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 78699F481C668C8E0044C9E9 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 78699F471C668C8E0044C9E9 /* AppDelegate.swift */; }; + 78699F4A1C668C8E0044C9E9 /* WebPViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 78699F491C668C8E0044C9E9 /* WebPViewController.swift */; }; + 78699F4C1C668C8E0044C9E9 /* ProgressiveViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 78699F4B1C668C8E0044C9E9 /* ProgressiveViewController.swift */; }; + 78699F4F1C668C8E0044C9E9 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 78699F4D1C668C8E0044C9E9 /* Main.storyboard */; }; + 78699F511C668C8E0044C9E9 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 78699F501C668C8E0044C9E9 /* Assets.xcassets */; }; + 78699F591C669AC70044C9E9 /* ProcessingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 78699F581C669AC70044C9E9 /* ProcessingViewController.swift */; }; + 78699F5B1C66A5A90044C9E9 /* DegradedViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 78699F5A1C66A5A90044C9E9 /* DegradedViewController.swift */; }; + 78699F5D1C66A7E20044C9E9 /* CollectionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 78699F5C1C66A7E20044C9E9 /* CollectionViewController.swift */; }; + 78699F5F1C66A8610044C9E9 /* CollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 78699F5E1C66A8610044C9E9 /* CollectionViewCell.swift */; }; + 78699F611C66BE660044C9E9 /* GIFViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 78699F601C66BE660044C9E9 /* GIFViewController.swift */; }; + 8711EE2CA5977BA3B86E1B62 /* Pods_PINRemoteImage_tvOSExample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C82D54FC041E5BDD75901E15 /* Pods_PINRemoteImage_tvOSExample.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 093C3E4AE850337BCD0D2FE6 /* Pods-PINRemoteImage.tvOSExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PINRemoteImage.tvOSExample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-PINRemoteImage.tvOSExample/Pods-PINRemoteImage.tvOSExample.debug.xcconfig"; sourceTree = ""; }; + 78699F441C668C8E0044C9E9 /* PINRemoteImage.tvOSExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PINRemoteImage.tvOSExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 78699F471C668C8E0044C9E9 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 78699F491C668C8E0044C9E9 /* WebPViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebPViewController.swift; sourceTree = ""; }; + 78699F4B1C668C8E0044C9E9 /* ProgressiveViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProgressiveViewController.swift; sourceTree = ""; }; + 78699F4E1C668C8E0044C9E9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 78699F501C668C8E0044C9E9 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 78699F521C668C8E0044C9E9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 78699F581C669AC70044C9E9 /* ProcessingViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ProcessingViewController.swift; sourceTree = ""; }; + 78699F5A1C66A5A90044C9E9 /* DegradedViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DegradedViewController.swift; sourceTree = ""; }; + 78699F5C1C66A7E20044C9E9 /* CollectionViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CollectionViewController.swift; sourceTree = ""; }; + 78699F5E1C66A8610044C9E9 /* CollectionViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CollectionViewCell.swift; sourceTree = ""; }; + 78699F601C66BE660044C9E9 /* GIFViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GIFViewController.swift; sourceTree = ""; }; + AAF1AB8C026DF61369E568CC /* Pods-PINRemoteImage.tvOSExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PINRemoteImage.tvOSExample.release.xcconfig"; path = "Pods/Target Support Files/Pods-PINRemoteImage.tvOSExample/Pods-PINRemoteImage.tvOSExample.release.xcconfig"; sourceTree = ""; }; + C82D54FC041E5BDD75901E15 /* Pods_PINRemoteImage_tvOSExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_PINRemoteImage_tvOSExample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 78699F411C668C8E0044C9E9 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 8711EE2CA5977BA3B86E1B62 /* Pods_PINRemoteImage_tvOSExample.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 717A14585C13E19AFD257717 /* Frameworks */ = { + isa = PBXGroup; + children = ( + C82D54FC041E5BDD75901E15 /* Pods_PINRemoteImage_tvOSExample.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 78699F3B1C668C8E0044C9E9 = { + isa = PBXGroup; + children = ( + 78699F461C668C8E0044C9E9 /* PINRemoteImage.tvOSExample */, + 78699F451C668C8E0044C9E9 /* Products */, + 91B09A3FE05D54DA24016146 /* Pods */, + 717A14585C13E19AFD257717 /* Frameworks */, + ); + sourceTree = ""; + }; + 78699F451C668C8E0044C9E9 /* Products */ = { + isa = PBXGroup; + children = ( + 78699F441C668C8E0044C9E9 /* PINRemoteImage.tvOSExample.app */, + ); + name = Products; + sourceTree = ""; + }; + 78699F461C668C8E0044C9E9 /* PINRemoteImage.tvOSExample */ = { + isa = PBXGroup; + children = ( + 78699F501C668C8E0044C9E9 /* Assets.xcassets */, + 78699F521C668C8E0044C9E9 /* Info.plist */, + 78699F471C668C8E0044C9E9 /* AppDelegate.swift */, + 78699F4D1C668C8E0044C9E9 /* Main.storyboard */, + 78699F491C668C8E0044C9E9 /* WebPViewController.swift */, + 78699F4B1C668C8E0044C9E9 /* ProgressiveViewController.swift */, + 78699F581C669AC70044C9E9 /* ProcessingViewController.swift */, + 78699F5A1C66A5A90044C9E9 /* DegradedViewController.swift */, + 78699F5C1C66A7E20044C9E9 /* CollectionViewController.swift */, + 78699F5E1C66A8610044C9E9 /* CollectionViewCell.swift */, + 78699F601C66BE660044C9E9 /* GIFViewController.swift */, + ); + path = PINRemoteImage.tvOSExample; + sourceTree = ""; + }; + 91B09A3FE05D54DA24016146 /* Pods */ = { + isa = PBXGroup; + children = ( + 093C3E4AE850337BCD0D2FE6 /* Pods-PINRemoteImage.tvOSExample.debug.xcconfig */, + AAF1AB8C026DF61369E568CC /* Pods-PINRemoteImage.tvOSExample.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 78699F431C668C8E0044C9E9 /* PINRemoteImage.tvOSExample */ = { + isa = PBXNativeTarget; + buildConfigurationList = 78699F551C668C8E0044C9E9 /* Build configuration list for PBXNativeTarget "PINRemoteImage.tvOSExample" */; + buildPhases = ( + FA9E035135C48FB08841B4A3 /* Check Pods Manifest.lock */, + 78699F401C668C8E0044C9E9 /* Sources */, + 78699F411C668C8E0044C9E9 /* Frameworks */, + 78699F421C668C8E0044C9E9 /* Resources */, + 8B150830C60182EB93A19C74 /* Embed Pods Frameworks */, + CC3C0E4279D9CD7BF5C64E5D /* Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = PINRemoteImage.tvOSExample; + productName = PINRemoteImage.tvOSExample; + productReference = 78699F441C668C8E0044C9E9 /* PINRemoteImage.tvOSExample.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 78699F3C1C668C8E0044C9E9 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0720; + LastUpgradeCheck = 0720; + TargetAttributes = { + 78699F431C668C8E0044C9E9 = { + CreatedOnToolsVersion = 7.2.1; + }; + }; + }; + buildConfigurationList = 78699F3F1C668C8E0044C9E9 /* Build configuration list for PBXProject "PINRemoteImage.tvOSExample" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 78699F3B1C668C8E0044C9E9; + productRefGroup = 78699F451C668C8E0044C9E9 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 78699F431C668C8E0044C9E9 /* PINRemoteImage.tvOSExample */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 78699F421C668C8E0044C9E9 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 78699F511C668C8E0044C9E9 /* Assets.xcassets in Resources */, + 78699F4F1C668C8E0044C9E9 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 8B150830C60182EB93A19C74 /* Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Embed Pods Frameworks"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-PINRemoteImage.tvOSExample/Pods-PINRemoteImage.tvOSExample-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + CC3C0E4279D9CD7BF5C64E5D /* Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-PINRemoteImage.tvOSExample/Pods-PINRemoteImage.tvOSExample-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + FA9E035135C48FB08841B4A3 /* 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; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 78699F401C668C8E0044C9E9 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 78699F5D1C66A7E20044C9E9 /* CollectionViewController.swift in Sources */, + 78699F4C1C668C8E0044C9E9 /* ProgressiveViewController.swift in Sources */, + 78699F591C669AC70044C9E9 /* ProcessingViewController.swift in Sources */, + 78699F5F1C66A8610044C9E9 /* CollectionViewCell.swift in Sources */, + 78699F481C668C8E0044C9E9 /* AppDelegate.swift in Sources */, + 78699F4A1C668C8E0044C9E9 /* WebPViewController.swift in Sources */, + 78699F5B1C66A5A90044C9E9 /* DegradedViewController.swift in Sources */, + 78699F611C66BE660044C9E9 /* GIFViewController.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 78699F4D1C668C8E0044C9E9 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 78699F4E1C668C8E0044C9E9 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 78699F531C668C8E0044C9E9 /* 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; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = appletvos; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + TARGETED_DEVICE_FAMILY = 3; + TVOS_DEPLOYMENT_TARGET = 9.1; + }; + name = Debug; + }; + 78699F541C668C8E0044C9E9 /* 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 = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = appletvos; + TARGETED_DEVICE_FAMILY = 3; + TVOS_DEPLOYMENT_TARGET = 9.1; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 78699F561C668C8E0044C9E9 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 093C3E4AE850337BCD0D2FE6 /* Pods-PINRemoteImage.tvOSExample.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + INFOPLIST_FILE = PINRemoteImage.tvOSExample/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.PINRemoteImage-tvOSExample"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TVOS_DEPLOYMENT_TARGET = 9.0; + }; + name = Debug; + }; + 78699F571C668C8E0044C9E9 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = AAF1AB8C026DF61369E568CC /* Pods-PINRemoteImage.tvOSExample.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + INFOPLIST_FILE = PINRemoteImage.tvOSExample/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.PINRemoteImage-tvOSExample"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TVOS_DEPLOYMENT_TARGET = 9.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 78699F3F1C668C8E0044C9E9 /* Build configuration list for PBXProject "PINRemoteImage.tvOSExample" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 78699F531C668C8E0044C9E9 /* Debug */, + 78699F541C668C8E0044C9E9 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 78699F551C668C8E0044C9E9 /* Build configuration list for PBXNativeTarget "PINRemoteImage.tvOSExample" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 78699F561C668C8E0044C9E9 /* Debug */, + 78699F571C668C8E0044C9E9 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 78699F3C1C668C8E0044C9E9 /* Project object */; +} diff --git a/Example-tvOS/PINRemoteImage.tvOSExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Example-tvOS/PINRemoteImage.tvOSExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..b27b730 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Example-tvOS/PINRemoteImage.tvOSExample.xcworkspace/contents.xcworkspacedata b/Example-tvOS/PINRemoteImage.tvOSExample.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..95c731b --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/AppDelegate.swift b/Example-tvOS/PINRemoteImage.tvOSExample/AppDelegate.swift new file mode 100644 index 0000000..b385bb6 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/AppDelegate.swift @@ -0,0 +1,45 @@ +// +// AppDelegate.swift +// PINRemoteImage.tvOSExample +// +// Created by Isaac Overacker on 2/6/16. +// +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { + // Override point for customization after application launch. + return true + } + + func applicationWillResignActive(application: UIApplication) { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(application: UIApplication) { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } + + func applicationWillEnterForeground(application: UIApplication) { + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(application: UIApplication) { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } + + func applicationWillTerminate(application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + + +} + diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..0564959 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json new file mode 100644 index 0000000..8bf75d9 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json @@ -0,0 +1,17 @@ +{ + "layers" : [ + { + "filename" : "Front.imagestacklayer" + }, + { + "filename" : "Middle.imagestacklayer" + }, + { + "filename" : "Back.imagestacklayer" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..0564959 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..0564959 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..0564959 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json new file mode 100644 index 0000000..8bf75d9 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json @@ -0,0 +1,17 @@ +{ + "layers" : [ + { + "filename" : "Front.imagestacklayer" + }, + { + "filename" : "Middle.imagestacklayer" + }, + { + "filename" : "Back.imagestacklayer" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..0564959 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..0564959 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json new file mode 100644 index 0000000..6a3dcfa --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json @@ -0,0 +1,26 @@ +{ + "assets" : [ + { + "size" : "1280x768", + "idiom" : "tv", + "filename" : "App Icon - Large.imagestack", + "role" : "primary-app-icon" + }, + { + "size" : "400x240", + "idiom" : "tv", + "filename" : "App Icon - Small.imagestack", + "role" : "primary-app-icon" + }, + { + "size" : "1920x720", + "idiom" : "tv", + "filename" : "Top Shelf Image.imageset", + "role" : "top-shelf-image" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json new file mode 100644 index 0000000..0564959 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/Contents.json b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/LaunchImage.launchimage/Contents.json b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 0000000..29d94c7 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,15 @@ +{ + "images" : [ + { + "orientation" : "landscape", + "idiom" : "tv", + "extent" : "full-screen", + "minimum-system-version" : "9.0", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/white-pinterest-logo.imageset/Contents.json b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/white-pinterest-logo.imageset/Contents.json new file mode 100644 index 0000000..6ce31c8 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/white-pinterest-logo.imageset/Contents.json @@ -0,0 +1,13 @@ +{ + "images" : [ + { + "idiom" : "tv", + "filename" : "white-pinterest-logo@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/white-pinterest-logo.imageset/white-pinterest-logo@1x.png b/Example-tvOS/PINRemoteImage.tvOSExample/Assets.xcassets/white-pinterest-logo.imageset/white-pinterest-logo@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..2c882a9b84833580e725a923b9b6dcdbd666d254 GIT binary patch literal 1836 zcmV+{2h;e8P)`~` zihu{z0=fcs0r5aX;1o~{tOvFMo{d9viS7iFfu_J&U=OeYICdGQQHDZ2AOrZV!k_j4 zgB|Td_!q5#O&+p44U7T8WEc9?1sDOO0?z@vgzP4H zDWf~^hhRKJ?cFRiSRZ&0SgjP21B8c^a0&KAe57|jP**7A0?=M7qX}?C2zN2BE58B9 zD}_8CQo==ap*(&CYJ2cJBjh&4mWR`HWB{>z{t_4jlm{_P6KIGmr32C8{Sjb3F!Fye zf@YrGfl{RHkB+6Cuy^Dez!vV3_0?QlS8;NW0tGc#5oU95 zVnCNfq3iWG;+ib2m5ob9MICk2B;`5EjMAK5 zX<#<5MMGJ@eqNoH8t_;bi_;QCCt)M|Fj;{EK&I%+P+u{2Ixg>zo*%OKK@Y7?}c5ehjGPFho6- zp?(5L7Vl*${`g$fc}4hH9P4C|3_u*v0@&@tvr)`DTelFOLDnutIQmpY_xtFdzXyD% z_-6o9>8UgVibS0Wq$WE8(!LyD3jaLcCjuMPd;$#Cq~JdWrU|dp&^+?~B+4cLi5zpQ zD1VA`Hghi*Alj<2O?II<`TMJWeat zgq@2P2H(1l$!hKzg6?Nl0%H=5=F3QUpe46XF8?Z{$ z{R~7Zd+{UZbz?CUqRp&I2=XA4aN){X7_B0EbGI+xRlKwk{hpzq zZ6D^k+v&l(kBL^xD>Jr3DyxixqS0iPM3l5frAef{7$eH>QwA|g)Fq0#lfwJyA-e6znm@mlqJO&lBH z@RB1J4X>b!Yw`IF1KHtkZpI`>U&{AL)@GbddD>ZjBc9=pT5|IJm=0r-R%>u6&P_S^jSUJT5o8y&@O z14VQwmOC~_0@D`e&k?1-UV4J5ysFxYvD2!sju_g=&0I?%*ORWiqX2E^OxmMT26@Kd zzW~%xy!IP-2~#!0Wtu6>@mHN3AQc!0ED8P7=E|mgHI*?k4JqOZlgogc{QByUXs$f{ aBftRQEK;V2C2Ifx0000{ literal 0 HcmV?d00001 diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Base.lproj/Main.storyboard b/Example-tvOS/PINRemoteImage.tvOSExample/Base.lproj/Main.storyboard new file mode 100644 index 0000000..fe83869 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Base.lproj/Main.storyboard @@ -0,0 +1,248 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/CollectionViewCell.swift b/Example-tvOS/PINRemoteImage.tvOSExample/CollectionViewCell.swift new file mode 100644 index 0000000..a034415 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/CollectionViewCell.swift @@ -0,0 +1,20 @@ +// +// CollectionViewCell.swift +// PINRemoteImage.tvOSExample +// +// Created by Isaac Overacker on 2/6/16. +// +// + +import UIKit + +class CollectionViewCell: UICollectionViewCell { + + @IBOutlet weak var imageView: UIImageView! + + override func prepareForReuse() { + super.prepareForReuse() + self.imageView.image = nil + } + +} diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/CollectionViewController.swift b/Example-tvOS/PINRemoteImage.tvOSExample/CollectionViewController.swift new file mode 100644 index 0000000..c9105da --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/CollectionViewController.swift @@ -0,0 +1,65 @@ +// +// CollectionViewController.swift +// PINRemoteImage.tvOSExample +// +// Created by Isaac Overacker on 2/6/16. +// +// + +import UIKit +import PINRemoteImage + +private let reuseIdentifier = "Cell" + +class CollectionViewController: UICollectionViewController { + + let kittenURLs = [ + NSURL(string: "https://s-media-cache-ak0.pinimg.com/736x/92/5d/5a/925d5ac74db0dcfabc238e1686e31d16.jpg"), + NSURL(string: "https://s-media-cache-ak0.pinimg.com/736x/ff/b3/ae/ffb3ae40533b7f9463cf1c04d7ab69d1.jpg"), + NSURL(string: "https://s-media-cache-ak0.pinimg.com/736x/e4/b7/7c/e4b77ca06e1d4a401b1a49d7fadd90d9.jpg"), + NSURL(string: "https://s-media-cache-ak0.pinimg.com/736x/46/e1/59/46e159d76b167ed9211d662f95e7bf6f.jpg"), + NSURL(string: "https://s-media-cache-ak0.pinimg.com/736x/7a/72/77/7a72779329942c06f888c148eb8d7e34.jpg"), + NSURL(string: "https://s-media-cache-ak0.pinimg.com/736x/60/21/8f/60218ff43257fb3b6d7c5b888f74a5bf.jpg"), + NSURL(string: "https://s-media-cache-ak0.pinimg.com/736x/90/e8/e4/90e8e47d53e71e0d97691dd13a5617fb.jpg"), + NSURL(string: "https://s-media-cache-ak0.pinimg.com/736x/96/ae/31/96ae31fbc52d96dd3308d2754a6ca37e.jpg"), + NSURL(string: "https://s-media-cache-ak0.pinimg.com/736x/9b/7b/99/9b7b99ff63be31bba8f9863724b3ebbc.jpg"), + NSURL(string: "https://s-media-cache-ak0.pinimg.com/736x/80/23/51/802351d953dd2a8b232d0da1c7ca6880.jpg"), + NSURL(string: "https://s-media-cache-ak0.pinimg.com/736x/f5/c4/f0/f5c4f04fa2686338dc3b08420d198484.jpg"), + NSURL(string: "https://s-media-cache-ak0.pinimg.com/736x/2b/06/4f/2b064f3e0af984a556ac94b251ff7060.jpg"), + NSURL(string: "https://s-media-cache-ak0.pinimg.com/736x/17/1f/c0/171fc02398143269d8a507a15563166a.jpg"), + NSURL(string: "https://s-media-cache-ak0.pinimg.com/736x/8a/35/33/8a35338bbf67c86a198ba2dd926edd82.jpg"), + NSURL(string: "https://s-media-cache-ak0.pinimg.com/736x/4d/6e/3c/4d6e3cf970031116c57486e85c2a4cab.jpg"), + NSURL(string: "https://s-media-cache-ak0.pinimg.com/736x/54/25/ee/5425eeccba78731cf7be70f0b8808bd2.jpg"), + NSURL(string: "https://s-media-cache-ak0.pinimg.com/736x/04/f1/3f/04f13fdb7580dcbe8c4d6b7d5a0a5ec2.jpg"), + NSURL(string: "https://s-media-cache-ak0.pinimg.com/736x/dc/16/4e/dc164ed33af9d899e5ed188e642f00e9.jpg"), + NSURL(string: "https://s-media-cache-ak0.pinimg.com/736x/c1/06/13/c106132936189b6cb654671f2a2183ed.jpg"), + NSURL(string: "https://s-media-cache-ak0.pinimg.com/736x/46/43/ed/4643eda4e1be4273721a76a370b90346.jpg") + ] + + override func viewDidLoad() { + super.viewDidLoad() + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + // MARK: UICollectionViewDataSource + + override func numberOfSectionsInCollectionView(collectionView: UICollectionView) -> Int { + return 1 + } + + + override func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { + return kittenURLs.count + } + + override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell { + let cell = collectionView.dequeueReusableCellWithReuseIdentifier(reuseIdentifier, forIndexPath: indexPath) as! CollectionViewCell + cell.imageView.pin_setImageFromURL(kittenURLs[indexPath.row]) + return cell + } + +} diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/DegradedViewController.swift b/Example-tvOS/PINRemoteImage.tvOSExample/DegradedViewController.swift new file mode 100644 index 0000000..91d8f11 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/DegradedViewController.swift @@ -0,0 +1,35 @@ +// +// DegradedViewController.swift +// PINRemoteImage.tvOSExample +// +// Created by Isaac Overacker on 2/6/16. +// +// + +import UIKit +import PINRemoteImage + +class DegradedViewController: UIViewController { + + @IBOutlet weak var imageView: UIImageView! + + override func viewDidLoad() { + super.viewDidLoad() + PINRemoteImageManager.sharedImageManager().setShouldUpgradeLowQualityImages(true, completion: nil) + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + override func viewWillAppear(animated: Bool) { + super.viewWillAppear(animated) + + imageView.pin_setImageFromURLs([ + NSURL(string: "https://placekitten.com/101/101")!, + NSURL(string: "https://placekitten.com/401/401")!, + NSURL(string: "https://placekitten.com/801/801")! + ]) + } +} diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/GIFViewController.swift b/Example-tvOS/PINRemoteImage.tvOSExample/GIFViewController.swift new file mode 100644 index 0000000..8d11b42 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/GIFViewController.swift @@ -0,0 +1,34 @@ +// +// GIFViewController.swift +// PINRemoteImage.tvOSExample +// +// Created by Isaac Overacker on 2/6/16. +// +// + +import UIKit +import PINRemoteImage + +class GIFViewController: UIViewController { + + @IBOutlet weak var animatedImageView: FLAnimatedImageView! + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view, typically from a nib. + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + override func viewDidAppear(animated: Bool) { + super.viewDidAppear(animated) + + if let url = NSURL(string: "https://i.giphy.com/l49FiX2pvMPPmCfSw.gif") { + animatedImageView.pin_setImageFromURL(url) + } + } + +} diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/Info.plist b/Example-tvOS/PINRemoteImage.tvOSExample/Info.plist new file mode 100644 index 0000000..6aae3e5 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/Info.plist @@ -0,0 +1,34 @@ + + + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + arm64 + + + diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/ProcessingViewController.swift b/Example-tvOS/PINRemoteImage.tvOSExample/ProcessingViewController.swift new file mode 100644 index 0000000..ecd82d2 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/ProcessingViewController.swift @@ -0,0 +1,77 @@ +// +// ProcessingViewController.swift +// PINRemoteImage.tvOSExample +// +// Created by Isaac Overacker on 2/6/16. +// +// + +import UIKit +import PINRemoteImage + +class ProcessingViewController: UIViewController { + + @IBOutlet weak var imageView: UIImageView! + + override func viewDidLoad() { + super.viewDidLoad() + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + override func viewWillAppear(animated: Bool) { + super.viewWillAppear(animated) + + if let url = NSURL(string: "https://s-media-cache-ak0.pinimg.com/1200x/2e/0c/c5/2e0cc5d86e7b7cd42af225c29f21c37f.jpg") { + imageView.pin_setImageFromURL(url, + processorKey: "rounded", + processor: { (result, cost) -> UIImage? in + if let image = result.image { + let radius = CGFloat(7.0) + let targetSize = CGSize(width: 200, height: 300) + let imageRect = CGRect(x: 0, y: 0, width: targetSize.width, height: targetSize.height) + UIGraphicsBeginImageContext(imageRect.size) + let bezierPath = UIBezierPath(roundedRect: imageRect, cornerRadius: radius) + bezierPath.addClip() + + let widthMultiplier = CGFloat(targetSize.width / image.size.width) + let heightMultiplier = CGFloat(targetSize.height / image.size.height) + let sizeMultiplier = max(widthMultiplier, heightMultiplier) + + var drawRect = CGRect(x: 0, y: 0, width: image.size.width * sizeMultiplier, height: image.size.height * sizeMultiplier) + if CGRectGetMaxX(drawRect) > CGRectGetMaxX(imageRect) { + drawRect.origin.x -= (CGRectGetMaxX(drawRect) - CGRectGetMaxX(imageRect)) / 2.0; + } + if CGRectGetMaxY(drawRect) > CGRectGetMaxY(imageRect) { + drawRect.origin.y -= (CGRectGetMaxY(drawRect) - CGRectGetMaxY(imageRect)) / 2.0; + } + + image.drawInRect(drawRect) + + UIColor.redColor().setStroke() + bezierPath.lineWidth = 5.0 + bezierPath.stroke() + + let ctx = UIGraphicsGetCurrentContext(); + CGContextSetBlendMode(ctx, .Overlay); + CGContextSetAlpha(ctx, 0.5); + + if let logo = UIImage(named: "white-pinterest-logo") { + CGContextScaleCTM(ctx, 1.0, -1.0); + CGContextTranslateCTM(ctx, 0.0, -drawRect.size.height); + CGContextDrawImage(ctx, CGRect(x: 0, y: 0, width: logo.size.width, height: logo.size.height), logo.CGImage); + } + + let processedImage = UIGraphicsGetImageFromCurrentImageContext(); + UIGraphicsEndImageContext(); + return processedImage; + } + + return nil + }) + } + } +} diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/ProgressiveViewController.swift b/Example-tvOS/PINRemoteImage.tvOSExample/ProgressiveViewController.swift new file mode 100644 index 0000000..379b394 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/ProgressiveViewController.swift @@ -0,0 +1,50 @@ +// +// ProgressiveViewController.swift +// PINRemoteImage.tvOSExample +// +// Created by Isaac Overacker on 2/6/16. +// +// + +import UIKit +import PINRemoteImage + +class ProgressiveViewController: UIViewController { + + @IBOutlet weak var imageView: UIImageView! + + override func viewDidLoad() { + super.viewDidLoad() + imageView.pin_updateWithProgress = true + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + override func viewDidAppear(animated: Bool) { + super.viewDidAppear(animated) + + if let url = NSURL(string: "https://s-media-cache-ak0.pinimg.com/1200x/2e/0c/c5/2e0cc5d86e7b7cd42af225c29f21c37f.jpg") { + PINRemoteImageManager.sharedImageManager().setProgressThresholds([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9], completion: nil) + + imageView.pin_setImageFromURL(url) + + var progress = [UIImage]() + PINRemoteImageManager.sharedImageManager().downloadImageWithURL(url, + options: .DownloadOptionsNone, + progress: { result in + if let image = result.image { + progress.append(image) + } + }, completion: { result in + if let image = result.image { + progress.append(image) + } + }) + } + } + +} + diff --git a/Example-tvOS/PINRemoteImage.tvOSExample/WebPViewController.swift b/Example-tvOS/PINRemoteImage.tvOSExample/WebPViewController.swift new file mode 100644 index 0000000..1b8f3c2 --- /dev/null +++ b/Example-tvOS/PINRemoteImage.tvOSExample/WebPViewController.swift @@ -0,0 +1,35 @@ +// +// WebPViewController.swift +// PINRemoteImage.tvOSExample +// +// Created by Isaac Overacker on 2/6/16. +// +// + +import UIKit +import PINRemoteImage + +class WebPViewController: UIViewController { + + @IBOutlet weak var imageView: UIImageView! + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view, typically from a nib. + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + override func viewDidAppear(animated: Bool) { + super.viewDidAppear(animated) + + if let url = NSURL(string: "https://github.com/samdutton/simpl/blob/master/picturetype/kittens.webp") { + imageView.pin_setImageFromURL(url) + } + } + +} + diff --git a/Example-tvOS/Podfile b/Example-tvOS/Podfile new file mode 100644 index 0000000..96ee1a0 --- /dev/null +++ b/Example-tvOS/Podfile @@ -0,0 +1,7 @@ +use_frameworks! + +target 'PINRemoteImage.tvOSExample', :exclusive => true do + pod "PINRemoteImage", :path => "../" + pod "PINCache" + pod "libwebp" +end diff --git a/Example-tvOS/Podfile.lock b/Example-tvOS/Podfile.lock new file mode 100644 index 0000000..0111f1d --- /dev/null +++ b/Example-tvOS/Podfile.lock @@ -0,0 +1,54 @@ +PODS: + - FLAnimatedImage (1.0.10) + - libwebp (0.5.0): + - libwebp/core (= 0.5.0) + - libwebp/dec (= 0.5.0) + - libwebp/demux (= 0.5.0) + - libwebp/dsp (= 0.5.0) + - libwebp/enc (= 0.5.0) + - libwebp/mux (= 0.5.0) + - libwebp/utils (= 0.5.0) + - libwebp/webp (= 0.5.0) + - libwebp/core (0.5.0): + - libwebp/webp + - libwebp/dec (0.5.0): + - libwebp/core + - libwebp/demux (0.5.0): + - libwebp/core + - libwebp/dsp (0.5.0): + - libwebp/core + - libwebp/enc (0.5.0): + - libwebp/core + - libwebp/mux (0.5.0): + - libwebp/core + - libwebp/utils (0.5.0): + - libwebp/core + - libwebp/webp (0.5.0) + - PINCache (2.1.2) + - PINRemoteImage (1.2.3): + - PINRemoteImage/FLAnimatedImage (= 1.2.3) + - PINRemoteImage/Core (1.2.3): + - PINCache (>= 2.1) + - PINRemoteImage/FLAnimatedImage (1.2.3): + - FLAnimatedImage (>= 1.0) + - PINRemoteImage/Core + +DEPENDENCIES: + - FLAnimatedImage (from `../../FLAnimatedImage`) + - libwebp + - PINCache + - PINRemoteImage (from `../`) + +EXTERNAL SOURCES: + FLAnimatedImage: + :path: "../../FLAnimatedImage" + PINRemoteImage: + :path: "../" + +SPEC CHECKSUMS: + FLAnimatedImage: d843599c5bbbe8cf92644e2391ec0d9e72ce4563 + libwebp: 68ba2001ba6806ee52837ebd77a551a0b6567e4e + PINCache: 9e70271f1bdd60c0465b7208adcc4b6acc1fc376 + PINRemoteImage: 9ed2ed5e69c82513348bdcb296455d9598f52aa3 + +COCOAPODS: 0.39.0