From ea819b2a45cd4b9b663c549db94fb4c48dc3e747 Mon Sep 17 00:00:00 2001 From: Olivier Poitrey Date: Thu, 10 May 2012 00:30:48 +0200 Subject: [PATCH] Rework static library settings and documentation and add an example project Inspired by http://www.blog.montgomerie.net/easy-xcode-static-library-subprojects-and-submodules --- .../SDWebImage Demo.xcodeproj/project.pbxproj | 385 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + Examples/SDWebImage Demo/AppDelegate.h | 17 + Examples/SDWebImage Demo/AppDelegate.m | 57 +++ .../SDWebImage Demo/DetailViewController.h | 17 + .../SDWebImage Demo/DetailViewController.m | 57 +++ .../SDWebImage Demo/MasterViewController.h | 17 + .../SDWebImage Demo/MasterViewController.m | 178 ++++++++ .../SDWebImage Demo-Info.plist | 38 ++ .../SDWebImage Demo-Prefix.pch | 14 + .../en.lproj/DetailViewController.xib | 164 ++++++++ .../en.lproj/MasterViewController.xib | 139 +++++++ Examples/SDWebImage Demo/main.m | 18 + Examples/SDWebImage Demo/placeholder.png | Bin 0 -> 2759 bytes Examples/SDWebImage Demo/placeholder@2x.png | Bin 0 -> 6228 bytes README.md | 68 +++- SDWebImage.xcodeproj/project.pbxproj | 140 ++++++- 17 files changed, 1287 insertions(+), 29 deletions(-) create mode 100644 Examples/SDWebImage Demo.xcodeproj/project.pbxproj create mode 100644 Examples/SDWebImage Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 Examples/SDWebImage Demo/AppDelegate.h create mode 100644 Examples/SDWebImage Demo/AppDelegate.m create mode 100644 Examples/SDWebImage Demo/DetailViewController.h create mode 100644 Examples/SDWebImage Demo/DetailViewController.m create mode 100644 Examples/SDWebImage Demo/MasterViewController.h create mode 100644 Examples/SDWebImage Demo/MasterViewController.m create mode 100644 Examples/SDWebImage Demo/SDWebImage Demo-Info.plist create mode 100644 Examples/SDWebImage Demo/SDWebImage Demo-Prefix.pch create mode 100644 Examples/SDWebImage Demo/en.lproj/DetailViewController.xib create mode 100644 Examples/SDWebImage Demo/en.lproj/MasterViewController.xib create mode 100644 Examples/SDWebImage Demo/main.m create mode 100644 Examples/SDWebImage Demo/placeholder.png create mode 100644 Examples/SDWebImage Demo/placeholder@2x.png diff --git a/Examples/SDWebImage Demo.xcodeproj/project.pbxproj b/Examples/SDWebImage Demo.xcodeproj/project.pbxproj new file mode 100644 index 00000000..1cf091aa --- /dev/null +++ b/Examples/SDWebImage Demo.xcodeproj/project.pbxproj @@ -0,0 +1,385 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 5376129A155AB74D005750A4 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 53761299155AB74D005750A4 /* UIKit.framework */; }; + 5376129C155AB74D005750A4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5376129B155AB74D005750A4 /* Foundation.framework */; }; + 5376129E155AB74D005750A4 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5376129D155AB74D005750A4 /* CoreGraphics.framework */; }; + 537612A6155AB74D005750A4 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 537612A5155AB74D005750A4 /* main.m */; }; + 537612AA155AB74D005750A4 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 537612A9155AB74D005750A4 /* AppDelegate.m */; }; + 537612AD155AB74D005750A4 /* MasterViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 537612AC155AB74D005750A4 /* MasterViewController.m */; }; + 537612B0155AB74D005750A4 /* DetailViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 537612AF155AB74D005750A4 /* DetailViewController.m */; }; + 537612B3155AB74D005750A4 /* MasterViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 537612B1155AB74D005750A4 /* MasterViewController.xib */; }; + 537612B6155AB74D005750A4 /* DetailViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 537612B4155AB74D005750A4 /* DetailViewController.xib */; }; + 537612E7155ABA44005750A4 /* ImageIO.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 537612E6155ABA44005750A4 /* ImageIO.framework */; }; + 53761328155AD31B005750A4 /* MapKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 537612E3155ABA3C005750A4 /* MapKit.framework */; }; + 53A2B4FC155B096D00B12423 /* libSDWebImage ARC.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 53A2B4F9155B095800B12423 /* libSDWebImage ARC.a */; }; + 53A2B50D155B155A00B12423 /* placeholder.png in Resources */ = {isa = PBXBuildFile; fileRef = 53A2B50B155B155A00B12423 /* placeholder.png */; }; + 53A2B50E155B155A00B12423 /* placeholder@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 53A2B50C155B155A00B12423 /* placeholder@2x.png */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 53A2B4F6155B095800B12423 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 53A2B4EE155B095800B12423 /* SDWebImage.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 53922D6F148C55820056699D; + remoteInfo = SDWebImage; + }; + 53A2B4F8155B095800B12423 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 53A2B4EE155B095800B12423 /* SDWebImage.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 53761325155AD0D5005750A4; + remoteInfo = "SDWebImage ARC"; + }; + 53A2B4FA155B096700B12423 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 53A2B4EE155B095800B12423 /* SDWebImage.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = 53761307155AD0D5005750A4; + remoteInfo = "SDWebImage ARC"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 53761295155AB74D005750A4 /* SDWebImage Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "SDWebImage Demo.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 53761299155AB74D005750A4 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 5376129B155AB74D005750A4 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 5376129D155AB74D005750A4 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 537612A1155AB74D005750A4 /* SDWebImage Demo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SDWebImage Demo-Info.plist"; sourceTree = ""; }; + 537612A5155AB74D005750A4 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 537612A7155AB74D005750A4 /* SDWebImage Demo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SDWebImage Demo-Prefix.pch"; sourceTree = ""; }; + 537612A8155AB74D005750A4 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 537612A9155AB74D005750A4 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 537612AB155AB74D005750A4 /* MasterViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MasterViewController.h; sourceTree = ""; }; + 537612AC155AB74D005750A4 /* MasterViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MasterViewController.m; sourceTree = ""; }; + 537612AE155AB74D005750A4 /* DetailViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DetailViewController.h; sourceTree = ""; }; + 537612AF155AB74D005750A4 /* DetailViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DetailViewController.m; sourceTree = ""; }; + 537612B2155AB74D005750A4 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MasterViewController.xib; sourceTree = ""; }; + 537612B5155AB74D005750A4 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/DetailViewController.xib; sourceTree = ""; }; + 537612CD155AB8F4005750A4 /* libSDWebImage.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libSDWebImage.a; path = "../build/Release-iphoneos/libSDWebImage.a"; sourceTree = ""; }; + 537612E3155ABA3C005750A4 /* MapKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MapKit.framework; path = System/Library/Frameworks/MapKit.framework; sourceTree = SDKROOT; }; + 537612E6155ABA44005750A4 /* ImageIO.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ImageIO.framework; path = System/Library/Frameworks/ImageIO.framework; sourceTree = SDKROOT; }; + 53761326155AD28E005750A4 /* libSDWebImage ARC.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "libSDWebImage ARC.a"; path = "../build/Release-iphoneos/libSDWebImage ARC.a"; sourceTree = ""; }; + 53A2B4EE155B095800B12423 /* SDWebImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = SDWebImage.xcodeproj; path = ../SDWebImage.xcodeproj; sourceTree = ""; }; + 53A2B50B155B155A00B12423 /* placeholder.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = placeholder.png; sourceTree = ""; }; + 53A2B50C155B155A00B12423 /* placeholder@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "placeholder@2x.png"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 53761292155AB74D005750A4 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 53A2B4FC155B096D00B12423 /* libSDWebImage ARC.a in Frameworks */, + 53761328155AD31B005750A4 /* MapKit.framework in Frameworks */, + 537612E7155ABA44005750A4 /* ImageIO.framework in Frameworks */, + 5376129A155AB74D005750A4 /* UIKit.framework in Frameworks */, + 5376129C155AB74D005750A4 /* Foundation.framework in Frameworks */, + 5376129E155AB74D005750A4 /* CoreGraphics.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 5376128A155AB74D005750A4 = { + isa = PBXGroup; + children = ( + 53A2B4EE155B095800B12423 /* SDWebImage.xcodeproj */, + 5376129F155AB74D005750A4 /* SDWebImage Demo */, + 53761298155AB74D005750A4 /* Frameworks */, + 53761296155AB74D005750A4 /* Products */, + ); + sourceTree = ""; + }; + 53761296155AB74D005750A4 /* Products */ = { + isa = PBXGroup; + children = ( + 53761295155AB74D005750A4 /* SDWebImage Demo.app */, + ); + name = Products; + sourceTree = ""; + }; + 53761298155AB74D005750A4 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 537612E6155ABA44005750A4 /* ImageIO.framework */, + 537612E3155ABA3C005750A4 /* MapKit.framework */, + 537612CD155AB8F4005750A4 /* libSDWebImage.a */, + 53761326155AD28E005750A4 /* libSDWebImage ARC.a */, + 53761299155AB74D005750A4 /* UIKit.framework */, + 5376129B155AB74D005750A4 /* Foundation.framework */, + 5376129D155AB74D005750A4 /* CoreGraphics.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 5376129F155AB74D005750A4 /* SDWebImage Demo */ = { + isa = PBXGroup; + children = ( + 537612A8155AB74D005750A4 /* AppDelegate.h */, + 537612A9155AB74D005750A4 /* AppDelegate.m */, + 537612AB155AB74D005750A4 /* MasterViewController.h */, + 537612AC155AB74D005750A4 /* MasterViewController.m */, + 537612AE155AB74D005750A4 /* DetailViewController.h */, + 537612AF155AB74D005750A4 /* DetailViewController.m */, + 537612B1155AB74D005750A4 /* MasterViewController.xib */, + 537612B4155AB74D005750A4 /* DetailViewController.xib */, + 537612A0155AB74D005750A4 /* Supporting Files */, + ); + path = "SDWebImage Demo"; + sourceTree = ""; + }; + 537612A0155AB74D005750A4 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 537612A1155AB74D005750A4 /* SDWebImage Demo-Info.plist */, + 537612A5155AB74D005750A4 /* main.m */, + 537612A7155AB74D005750A4 /* SDWebImage Demo-Prefix.pch */, + 53A2B50B155B155A00B12423 /* placeholder.png */, + 53A2B50C155B155A00B12423 /* placeholder@2x.png */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 53A2B4EF155B095800B12423 /* Products */ = { + isa = PBXGroup; + children = ( + 53A2B4F7155B095800B12423 /* libSDWebImage.a */, + 53A2B4F9155B095800B12423 /* libSDWebImage ARC.a */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 53761294155AB74D005750A4 /* SDWebImage Demo */ = { + isa = PBXNativeTarget; + buildConfigurationList = 537612B9155AB74D005750A4 /* Build configuration list for PBXNativeTarget "SDWebImage Demo" */; + buildPhases = ( + 53761291155AB74D005750A4 /* Sources */, + 53761292155AB74D005750A4 /* Frameworks */, + 53761293155AB74D005750A4 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 53A2B4FB155B096700B12423 /* PBXTargetDependency */, + ); + name = "SDWebImage Demo"; + productName = "SDWebImage Demo"; + productReference = 53761295155AB74D005750A4 /* SDWebImage Demo.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 5376128C155AB74D005750A4 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0430; + ORGANIZATIONNAME = Dailymotion; + }; + buildConfigurationList = 5376128F155AB74D005750A4 /* Build configuration list for PBXProject "SDWebImage Demo" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 5376128A155AB74D005750A4; + productRefGroup = 53761296155AB74D005750A4 /* Products */; + projectDirPath = ""; + projectReferences = ( + { + ProductGroup = 53A2B4EF155B095800B12423 /* Products */; + ProjectRef = 53A2B4EE155B095800B12423 /* SDWebImage.xcodeproj */; + }, + ); + projectRoot = ""; + targets = ( + 53761294155AB74D005750A4 /* SDWebImage Demo */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXReferenceProxy section */ + 53A2B4F7155B095800B12423 /* libSDWebImage.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libSDWebImage.a; + remoteRef = 53A2B4F6155B095800B12423 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 53A2B4F9155B095800B12423 /* libSDWebImage ARC.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = "libSDWebImage ARC.a"; + remoteRef = 53A2B4F8155B095800B12423 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; +/* End PBXReferenceProxy section */ + +/* Begin PBXResourcesBuildPhase section */ + 53761293155AB74D005750A4 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 537612B3155AB74D005750A4 /* MasterViewController.xib in Resources */, + 537612B6155AB74D005750A4 /* DetailViewController.xib in Resources */, + 53A2B50D155B155A00B12423 /* placeholder.png in Resources */, + 53A2B50E155B155A00B12423 /* placeholder@2x.png in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 53761291155AB74D005750A4 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 537612A6155AB74D005750A4 /* main.m in Sources */, + 537612AA155AB74D005750A4 /* AppDelegate.m in Sources */, + 537612AD155AB74D005750A4 /* MasterViewController.m in Sources */, + 537612B0155AB74D005750A4 /* DetailViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 53A2B4FB155B096700B12423 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "SDWebImage ARC"; + targetProxy = 53A2B4FA155B096700B12423 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 537612B1155AB74D005750A4 /* MasterViewController.xib */ = { + isa = PBXVariantGroup; + children = ( + 537612B2155AB74D005750A4 /* en */, + ); + name = MasterViewController.xib; + sourceTree = ""; + }; + 537612B4155AB74D005750A4 /* DetailViewController.xib */ = { + isa = PBXVariantGroup; + children = ( + 537612B5155AB74D005750A4 /* en */, + ); + name = DetailViewController.xib; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 537612B7155AB74D005750A4 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + CLANG_ENABLE_OBJC_ARC = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = "compiler-default"; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_VERSION = ""; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 4.0; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 537612B8155AB74D005750A4 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + CLANG_ENABLE_OBJC_ARC = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + GCC_C_LANGUAGE_STANDARD = "compiler-default"; + GCC_VERSION = ""; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 4.0; + OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 537612BA155AB74D005750A4 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "SDWebImage Demo/SDWebImage Demo-Prefix.pch"; + GCC_PREPROCESSOR_DEFINITIONS = "DEBUG=1"; + INFOPLIST_FILE = "SDWebImage Demo/SDWebImage Demo-Info.plist"; + OTHER_CFLAGS = ""; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + USER_HEADER_SEARCH_PATHS = "”$(TARGET_BUILD_DIR)/usr/local/lib/include” ”$(OBJROOT)/UninstalledProducts/include”"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + 537612BB155AB74D005750A4 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "SDWebImage Demo/SDWebImage Demo-Prefix.pch"; + GCC_PREPROCESSOR_DEFINITIONS = ""; + INFOPLIST_FILE = "SDWebImage Demo/SDWebImage Demo-Info.plist"; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + USER_HEADER_SEARCH_PATHS = "”$(TARGET_BUILD_DIR)/usr/local/lib/include” ”$(OBJROOT)/UninstalledProducts/include”"; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 5376128F155AB74D005750A4 /* Build configuration list for PBXProject "SDWebImage Demo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 537612B7155AB74D005750A4 /* Debug */, + 537612B8155AB74D005750A4 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 537612B9155AB74D005750A4 /* Build configuration list for PBXNativeTarget "SDWebImage Demo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 537612BA155AB74D005750A4 /* Debug */, + 537612BB155AB74D005750A4 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 5376128C155AB74D005750A4 /* Project object */; +} diff --git a/Examples/SDWebImage Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Examples/SDWebImage Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..2fbeb920 --- /dev/null +++ b/Examples/SDWebImage Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Examples/SDWebImage Demo/AppDelegate.h b/Examples/SDWebImage Demo/AppDelegate.h new file mode 100644 index 00000000..7e60e229 --- /dev/null +++ b/Examples/SDWebImage Demo/AppDelegate.h @@ -0,0 +1,17 @@ +// +// AppDelegate.h +// SDWebImage Demo +// +// Created by Olivier Poitrey on 09/05/12. +// Copyright (c) 2012 Dailymotion. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@property (strong, nonatomic) UINavigationController *navigationController; + +@end diff --git a/Examples/SDWebImage Demo/AppDelegate.m b/Examples/SDWebImage Demo/AppDelegate.m new file mode 100644 index 00000000..721d4ac3 --- /dev/null +++ b/Examples/SDWebImage Demo/AppDelegate.m @@ -0,0 +1,57 @@ +// +// AppDelegate.m +// SDWebImage Demo +// +// Created by Olivier Poitrey on 09/05/12. +// Copyright (c) 2012 Dailymotion. All rights reserved. +// + +#import "AppDelegate.h" + +#import "MasterViewController.h" + +@implementation AppDelegate + +@synthesize window = _window; +@synthesize navigationController = _navigationController; + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; + // Override point for customization after application launch. + + MasterViewController *masterViewController = [[MasterViewController alloc] initWithNibName:@"MasterViewController" bundle:nil]; + self.navigationController = [[UINavigationController alloc] initWithRootViewController:masterViewController]; + self.window.rootViewController = self.navigationController; + [self.window makeKeyAndVisible]; + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // 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. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // 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. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // 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. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // 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. +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +@end diff --git a/Examples/SDWebImage Demo/DetailViewController.h b/Examples/SDWebImage Demo/DetailViewController.h new file mode 100644 index 00000000..f4c6b76f --- /dev/null +++ b/Examples/SDWebImage Demo/DetailViewController.h @@ -0,0 +1,17 @@ +// +// DetailViewController.h +// SDWebImage Demo +// +// Created by Olivier Poitrey on 09/05/12. +// Copyright (c) 2012 Dailymotion. All rights reserved. +// + +#import + +@interface DetailViewController : UIViewController + +@property (strong, nonatomic) NSURL *imageURL; + +@property (strong, nonatomic) IBOutlet UIImageView *imageView; + +@end diff --git a/Examples/SDWebImage Demo/DetailViewController.m b/Examples/SDWebImage Demo/DetailViewController.m new file mode 100644 index 00000000..4d6423b5 --- /dev/null +++ b/Examples/SDWebImage Demo/DetailViewController.m @@ -0,0 +1,57 @@ +// +// DetailViewController.m +// SDWebImage Demo +// +// Created by Olivier Poitrey on 09/05/12. +// Copyright (c) 2012 Dailymotion. All rights reserved. +// + +#import "DetailViewController.h" +#import + +@interface DetailViewController () +- (void)configureView; +@end + +@implementation DetailViewController + +@synthesize imageURL = _imageURL; +@synthesize imageView = _imageView; + +#pragma mark - Managing the detail item + +- (void)setImageURL:(NSURL *)imageURL +{ + if (_imageURL != imageURL) + { + _imageURL = imageURL; + [self configureView]; + } +} + +- (void)configureView +{ + if (self.imageURL) + { + [self.imageView setImageWithURL:self.imageURL placeholderImage:nil options:SDWebImageProgressiveDownload]; + } +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + [self configureView]; +} + +- (void)viewDidUnload +{ + [super viewDidUnload]; + self.imageView = nil; +} + +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation +{ + return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown); +} + +@end diff --git a/Examples/SDWebImage Demo/MasterViewController.h b/Examples/SDWebImage Demo/MasterViewController.h new file mode 100644 index 00000000..3f3a1392 --- /dev/null +++ b/Examples/SDWebImage Demo/MasterViewController.h @@ -0,0 +1,17 @@ +// +// MasterViewController.h +// SDWebImage Demo +// +// Created by Olivier Poitrey on 09/05/12. +// Copyright (c) 2012 Dailymotion. All rights reserved. +// + +#import + +@class DetailViewController; + +@interface MasterViewController : UITableViewController + +@property (strong, nonatomic) DetailViewController *detailViewController; + +@end diff --git a/Examples/SDWebImage Demo/MasterViewController.m b/Examples/SDWebImage Demo/MasterViewController.m new file mode 100644 index 00000000..0ed86250 --- /dev/null +++ b/Examples/SDWebImage Demo/MasterViewController.m @@ -0,0 +1,178 @@ +// +// MasterViewController.m +// SDWebImage Demo +// +// Created by Olivier Poitrey on 09/05/12. +// Copyright (c) 2012 Dailymotion. All rights reserved. +// + +#import "MasterViewController.h" +#import +#import "DetailViewController.h" + +@interface MasterViewController () { + NSMutableArray *_objects; +} +@end + +@implementation MasterViewController + +@synthesize detailViewController = _detailViewController; + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) + { + self.title = @"SDWebImage"; + _objects = [NSArray arrayWithObjects: + @"http://static2.dmcdn.net/static/video/451/838/44838154:jpeg_preview_small.jpg?20120509163826", + @"http://static2.dmcdn.net/static/video/656/177/44771656:jpeg_preview_small.jpg?20120509154705", + @"http://static2.dmcdn.net/static/video/629/228/44822926:jpeg_preview_small.jpg?20120509181018", + @"http://static2.dmcdn.net/static/video/116/367/44763611:jpeg_preview_small.jpg?20120509101749", + @"http://static2.dmcdn.net/static/video/340/086/44680043:jpeg_preview_small.jpg?20120509180118", + @"http://static2.dmcdn.net/static/video/666/645/43546666:jpeg_preview_small.jpg?20120412153140", + @"http://static2.dmcdn.net/static/video/771/577/44775177:jpeg_preview_small.jpg?20120509183230", + @"http://static2.dmcdn.net/static/video/810/508/44805018:jpeg_preview_small.jpg?20120508125339", + @"http://static2.dmcdn.net/static/video/152/008/44800251:jpeg_preview_small.jpg?20120508103336", + @"http://static2.dmcdn.net/static/video/694/741/35147496:jpeg_preview_small.jpg?20120508111445", + @"http://static2.dmcdn.net/static/video/988/667/44766889:jpeg_preview_small.jpg?20120508130425", + @"http://static2.dmcdn.net/static/video/282/467/44764282:jpeg_preview_small.jpg?20120507130637", + @"http://static2.dmcdn.net/static/video/754/657/44756457:jpeg_preview_small.jpg?20120507093012", + @"http://static2.dmcdn.net/static/video/831/107/44701138:jpeg_preview_small.jpg?20120506133917", + @"http://static2.dmcdn.net/static/video/411/057/44750114:jpeg_preview_small.jpg?20120507014914", + @"http://static2.dmcdn.net/static/video/894/547/44745498:jpeg_preview_small.jpg?20120509183004", + @"http://static2.dmcdn.net/static/video/082/947/44749280:jpeg_preview_small.jpg?20120507015022", + @"http://static2.dmcdn.net/static/video/833/347/44743338:jpeg_preview_small.jpg?20120509183004", + @"http://static2.dmcdn.net/static/video/683/666/44666386:jpeg_preview_small.jpg?20120505111208", + @"http://static2.dmcdn.net/static/video/595/946/44649595:jpeg_preview_small.jpg?20120507194104", + @"http://static2.dmcdn.net/static/video/984/935/44539489:jpeg_preview_small.jpg?20120501184650", + @"http://static2.dmcdn.net/static/video/440/416/44614044:jpeg_preview_small.jpg?20120505174152", + @"http://static2.dmcdn.net/static/video/561/977/20779165:jpeg_preview_small.jpg?20120423161805", + @"http://static2.dmcdn.net/static/video/104/546/44645401:jpeg_preview_small.jpg?20120507185246", + @"http://static2.dmcdn.net/static/video/671/636/44636176:jpeg_preview_small.jpg?20120504021339", + @"http://static2.dmcdn.net/static/video/142/746/44647241:jpeg_preview_small.jpg?20120504104451", + @"http://static2.dmcdn.net/static/video/776/860/44068677:jpeg_preview_small.jpg?20120507185251", + @"http://static2.dmcdn.net/static/video/026/626/44626620:jpeg_preview_small.jpg?20120503203036", + @"http://static2.dmcdn.net/static/video/364/663/39366463:jpeg_preview_small.jpg?20120509163505", + @"http://static2.dmcdn.net/static/video/392/895/44598293:jpeg_preview_small.jpg?20120503165252", + @"http://static2.dmcdn.net/static/video/620/865/44568026:jpeg_preview_small.jpg?20120507185121", + @"http://static2.dmcdn.net/static/video/031/395/44593130:jpeg_preview_small.jpg?20120507185139", + @"http://static2.dmcdn.net/static/video/676/495/44594676:jpeg_preview_small.jpg?20120503121341", + @"http://static2.dmcdn.net/static/video/025/195/44591520:jpeg_preview_small.jpg?20120503132132", + @"http://static2.dmcdn.net/static/video/993/665/44566399:jpeg_preview_small.jpg?20120503182623", + @"http://static2.dmcdn.net/static/video/137/635/44536731:jpeg_preview_small.jpg?20120501165940", + @"http://static2.dmcdn.net/static/video/611/794/44497116:jpeg_preview_small.jpg?20120507184954", + @"http://static2.dmcdn.net/static/video/732/790/44097237:jpeg_preview_small.jpg?20120430162348", + @"http://static2.dmcdn.net/static/video/064/991/44199460:jpeg_preview_small.jpg?20120430101250", + @"http://static2.dmcdn.net/static/video/404/094/44490404:jpeg_preview_small.jpg?20120507184948", + @"http://static2.dmcdn.net/static/video/413/120/44021314:jpeg_preview_small.jpg?20120507180850", + @"http://static2.dmcdn.net/static/video/200/584/44485002:jpeg_preview_small.jpg?20120507184941", + @"http://static2.dmcdn.net/static/video/551/318/42813155:jpeg_preview_small.jpg?20120412153202", + @"http://static2.dmcdn.net/static/video/524/750/44057425:jpeg_preview_small.jpg?20120501220912", + @"http://static2.dmcdn.net/static/video/124/843/44348421:jpeg_preview_small.jpg?20120507184551", + @"http://static2.dmcdn.net/static/video/496/394/42493694:jpeg_preview_small.jpg?20120430105337", + @"http://static2.dmcdn.net/static/video/548/883/44388845:jpeg_preview_small.jpg?20120428212713", + @"http://static2.dmcdn.net/static/video/282/533/44335282:jpeg_preview_small.jpg?20120427102844", + @"http://static2.dmcdn.net/static/video/257/132/44231752:jpeg_preview_small.jpg?20120428212609", + @"http://static2.dmcdn.net/static/video/480/193/44391084:jpeg_preview_small.jpg?20120501143214", + @"http://static2.dmcdn.net/static/video/903/432/44234309:jpeg_preview_small.jpg?20120427200002", + @"http://static2.dmcdn.net/static/video/646/573/44375646:jpeg_preview_small.jpg?20120507184652", + @"http://static2.dmcdn.net/static/video/709/573/44375907:jpeg_preview_small.jpg?20120507184652", + @"http://static2.dmcdn.net/static/video/885/633/44336588:jpeg_preview_small.jpg?20120507184540", + @"http://static2.dmcdn.net/static/video/732/523/44325237:jpeg_preview_small.jpg?20120426110308", + @"http://static2.dmcdn.net/static/video/935/132/44231539:jpeg_preview_small.jpg?20120426115744", + @"http://static2.dmcdn.net/static/video/941/129/43921149:jpeg_preview_small.jpg?20120426094640", + @"http://static2.dmcdn.net/static/video/775/942/44249577:jpeg_preview_small.jpg?20120425011228", + @"http://static2.dmcdn.net/static/video/868/332/44233868:jpeg_preview_small.jpg?20120429152901", + @"http://static2.dmcdn.net/static/video/959/732/44237959:jpeg_preview_small.jpg?20120425133534", + @"http://static2.dmcdn.net/static/video/383/402/44204383:jpeg_preview_small.jpg?20120424185842", + @"http://static2.dmcdn.net/static/video/971/932/44239179:jpeg_preview_small.jpg?20120424154419", + @"http://static2.dmcdn.net/static/video/096/991/44199690:jpeg_preview_small.jpg?20120423162001", + @"http://static2.dmcdn.net/static/video/661/450/44054166:jpeg_preview_small.jpg?20120507180921", + @"http://static2.dmcdn.net/static/video/419/322/44223914:jpeg_preview_small.jpg?20120424112858", + @"http://static2.dmcdn.net/static/video/673/391/44193376:jpeg_preview_small.jpg?20120507181450", + @"http://static2.dmcdn.net/static/video/907/781/44187709:jpeg_preview_small.jpg?20120423103507", + @"http://static2.dmcdn.net/static/video/446/571/44175644:jpeg_preview_small.jpg?20120423033122", + @"http://static2.dmcdn.net/static/video/146/671/44176641:jpeg_preview_small.jpg?20120428235503", + @"http://static2.dmcdn.net/static/video/463/571/44175364:jpeg_preview_small.jpg?20120428235503", + @"http://static2.dmcdn.net/static/video/442/471/44174244:jpeg_preview_small.jpg?20120428235502", + @"http://static2.dmcdn.net/static/video/523/471/44174325:jpeg_preview_small.jpg?20120422205107", + @"http://static2.dmcdn.net/static/video/977/159/43951779:jpeg_preview_small.jpg?20120420182100", + @"http://static2.dmcdn.net/static/video/875/880/40088578:jpeg_preview_small.jpg?20120501131026", + @"http://static2.dmcdn.net/static/video/434/992/38299434:jpeg_preview_small.jpg?20120503193356", + @"http://static2.dmcdn.net/static/video/448/798/42897844:jpeg_preview_small.jpg?20120418155203", + @"http://static2.dmcdn.net/static/video/374/690/44096473:jpeg_preview_small.jpg?20120507181124", + @"http://static2.dmcdn.net/static/video/284/313/43313482:jpeg_preview_small.jpg?20120420184511", + @"http://static2.dmcdn.net/static/video/682/060/44060286:jpeg_preview_small.jpg?20120421122436", + @"http://static2.dmcdn.net/static/video/701/750/44057107:jpeg_preview_small.jpg?20120420112918", + @"http://static2.dmcdn.net/static/video/790/850/44058097:jpeg_preview_small.jpg?20120424114522", + @"http://static2.dmcdn.net/static/video/153/617/43716351:jpeg_preview_small.jpg?20120419190650", + @"http://static2.dmcdn.net/static/video/394/633/37336493:jpeg_preview_small.jpg?20111109151109", + @"http://static2.dmcdn.net/static/video/893/330/44033398:jpeg_preview_small.jpg?20120419123322", + @"http://static2.dmcdn.net/static/video/395/046/42640593:jpeg_preview_small.jpg?20120418103546", + @"http://static2.dmcdn.net/static/video/913/040/44040319:jpeg_preview_small.jpg?20120419164908", + @"http://static2.dmcdn.net/static/video/090/020/44020090:jpeg_preview_small.jpg?20120418185934", + @"http://static2.dmcdn.net/static/video/349/299/43992943:jpeg_preview_small.jpg?20120418112749", + @"http://static2.dmcdn.net/static/video/530/189/43981035:jpeg_preview_small.jpg?20120419013834", + @"http://static2.dmcdn.net/static/video/763/469/43964367:jpeg_preview_small.jpg?20120425111931", + @"http://static2.dmcdn.net/static/video/961/455/43554169:jpeg_preview_small.jpg?20120418110127", + @"http://static2.dmcdn.net/static/video/666/889/43988666:jpeg_preview_small.jpg?20120507180735", + @"http://static2.dmcdn.net/static/video/160/459/43954061:jpeg_preview_small.jpg?20120501202847", + @"http://static2.dmcdn.net/static/video/352/069/43960253:jpeg_preview_small.jpg?20120503175747", + @"http://static2.dmcdn.net/static/video/096/502/43205690:jpeg_preview_small.jpg?20120417142655", + @"http://static2.dmcdn.net/static/video/257/119/43911752:jpeg_preview_small.jpg?20120416101238", + @"http://static2.dmcdn.net/static/video/874/098/43890478:jpeg_preview_small.jpg?20120415193608", + @"http://static2.dmcdn.net/static/video/406/148/43841604:jpeg_preview_small.jpg?20120416123145", + @"http://static2.dmcdn.net/static/video/463/885/43588364:jpeg_preview_small.jpg?20120409130206", + @"http://static2.dmcdn.net/static/video/176/845/38548671:jpeg_preview_small.jpg?20120414200742", + nil]; + } + return self; +} + +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation +{ + return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown); +} + +#pragma mark - Table View + +- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView +{ + return 1; +} + +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section +{ + return _objects.count; +} + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath +{ + static NSString *CellIdentifier = @"Cell"; + + UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; + if (cell == nil) + { + cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; + } + + cell.textLabel.text = [NSString stringWithFormat:@"Image #%d", indexPath.row]; + [cell.imageView setImageWithURL:[NSURL URLWithString:[_objects objectAtIndex:indexPath.row]] + placeholderImage:[UIImage imageNamed:@"placeholder"]]; + return cell; +} + +- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath +{ + if (!self.detailViewController) + { + self.detailViewController = [[DetailViewController alloc] initWithNibName:@"DetailViewController" bundle:nil]; + } + NSString *largeImageURL = [[_objects objectAtIndex:indexPath.row] stringByReplacingOccurrencesOfString:@"small" withString:@"source"]; + self.detailViewController.imageURL = [NSURL URLWithString:largeImageURL]; + [self.navigationController pushViewController:self.detailViewController animated:YES]; +} + +@end diff --git a/Examples/SDWebImage Demo/SDWebImage Demo-Info.plist b/Examples/SDWebImage Demo/SDWebImage Demo-Info.plist new file mode 100644 index 00000000..050a6050 --- /dev/null +++ b/Examples/SDWebImage Demo/SDWebImage Demo-Info.plist @@ -0,0 +1,38 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.dailymotion.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Examples/SDWebImage Demo/SDWebImage Demo-Prefix.pch b/Examples/SDWebImage Demo/SDWebImage Demo-Prefix.pch new file mode 100644 index 00000000..909f2de2 --- /dev/null +++ b/Examples/SDWebImage Demo/SDWebImage Demo-Prefix.pch @@ -0,0 +1,14 @@ +// +// Prefix header for all source files of the 'SDWebImage Demo' target in the 'SDWebImage Demo' project +// + +#import + +#ifndef __IPHONE_4_0 +#warning "This project uses features only available in iOS SDK 4.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/Examples/SDWebImage Demo/en.lproj/DetailViewController.xib b/Examples/SDWebImage Demo/en.lproj/DetailViewController.xib new file mode 100644 index 00000000..ccce9b18 --- /dev/null +++ b/Examples/SDWebImage Demo/en.lproj/DetailViewController.xib @@ -0,0 +1,164 @@ + + + + 1296 + 11D50b + 2182 + 1138.32 + 568.00 + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + 1181 + + + IBProxyObject + IBUIView + IBUIImageView + + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + PluginDependencyRecalculationVersion + + + + + IBFilesOwner + IBCocoaTouchFramework + + + IBFirstResponder + IBCocoaTouchFramework + + + + 274 + + + + 274 + {320, 460} + + + _NS:9 + 1 + NO + IBCocoaTouchFramework + + + {{0, 20}, {320, 460}} + + + + 3 + MQA + + 2 + + + + IBCocoaTouchFramework + + + + + + + view + + + + 3 + + + + imageView + + + + 8 + + + + + + 0 + + + + + + 1 + + + + + + + + -1 + + + File's Owner + + + -2 + + + + + 7 + + + + + + + DetailViewController + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + UIResponder + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + + + 8 + + + + + DetailViewController + UIViewController + + imageView + UIImageView + + + imageView + + imageView + UIImageView + + + + IBProjectSource + ./Classes/DetailViewController.h + + + + + 0 + IBCocoaTouchFramework + + com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS + + + YES + 3 + 1181 + + diff --git a/Examples/SDWebImage Demo/en.lproj/MasterViewController.xib b/Examples/SDWebImage Demo/en.lproj/MasterViewController.xib new file mode 100644 index 00000000..729e0153 --- /dev/null +++ b/Examples/SDWebImage Demo/en.lproj/MasterViewController.xib @@ -0,0 +1,139 @@ + + + + 1280 + 11C25 + 1919 + 1138.11 + 566.00 + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + 916 + + + IBProxyObject + IBUITableView + + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + PluginDependencyRecalculationVersion + + + + + IBFilesOwner + IBCocoaTouchFramework + + + IBFirstResponder + IBCocoaTouchFramework + + + + 274 + {{0, 20}, {320, 460}} + + + + 3 + MQA + + YES + + IBCocoaTouchFramework + YES + 1 + 0 + YES + 44 + 22 + 22 + + + + + + + view + + + + 3 + + + + dataSource + + + + 4 + + + + delegate + + + + 5 + + + + + + 0 + + + + + + -1 + + + File's Owner + + + -2 + + + + + 2 + + + + + + + MasterViewController + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + UIResponder + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + + + 5 + + + + + MasterViewController + UITableViewController + + IBProjectSource + ./Classes/MasterViewController.h + + + + + 0 + IBCocoaTouchFramework + YES + 3 + 916 + + diff --git a/Examples/SDWebImage Demo/main.m b/Examples/SDWebImage Demo/main.m new file mode 100644 index 00000000..463372ca --- /dev/null +++ b/Examples/SDWebImage Demo/main.m @@ -0,0 +1,18 @@ +// +// main.m +// SDWebImage Demo +// +// Created by Olivier Poitrey on 09/05/12. +// Copyright (c) 2012 Dailymotion. All rights reserved. +// + +#import + +#import "AppDelegate.h" + +int main(int argc, char *argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/Examples/SDWebImage Demo/placeholder.png b/Examples/SDWebImage Demo/placeholder.png new file mode 100644 index 0000000000000000000000000000000000000000..2de9af460867ae4d1f55f596b59b068ca5e18774 GIT binary patch literal 2759 zcmb8xX;f2Z8USEMt7i&g&sYVQS`mBHfq?+-VX0Ua*|!i$D9``_0to?4Zw{5wb4^E#)okx*0G_<}{AAixvy|Y_GW7GFI zgb&%r#Tgz%Bp73YiGf&S8X*eo2FWxyxFlf77(E&RA4!7KEcKxsaB!_&hUx1;TgVZX z`aUl1dfyRauzJUhj~kolTWRX)=~=`Chrm5;?0!!N|19;x$mA$E3`V6=jj6|si7}xt z(=%tzz)Z|wW@biUhY=|*l8m7lMUoC}6#1i$4VDxXgNq{Lh>?2gx|l#Bg>0#>uWt0w z#+<=HANxd6V(?Ix;2;YC2UXKEGch&Qv%%o-aRj1zZVT8(-lz38 zRzGcH0sCJgspkxe!D7h7m_L4<0;t z`0!z6Wo1=m6;NGO4REWuK#f{$Er{CMy4pI(BcQ&%zM;MW;5G1oMqVSpZ{!0_{3gg_ zp!sn#q@|^~1@Z*a+WMpwc-s0DXnWcQw70cGIy%}rAf25ZosehGI-dbu&$=MbpLacn zbVGW2x_cnKy*<6ai{2MN--|w=UritYArK6x356ikL?RF(kytDq6b}Nws!1duB$6S? z5M+3GXc!`u4oe|2nN$XhjEszqi~=u5Ujk!eWAZUM0ZGBfjf2AG|h1>VfQfy~XlnFHqM<{?Vuyb_{PDOJE*)mva; zVPSD$5qPJzv;;zJc^Sm=^2+iGWOa3A6~=yjFK!#SeX z?kcvgRmY#@wN?F+Evi>_3%>C*wY?AXNF{WJ^W^XeUsg@O=7442&Ri@0VCL|Ow( z_Q(*Gp7J*yP8dJd<@>LvXr{L&T|&!+?Um&mVLTW{(Hm_gO<&JC$ zrEOk|FDyv9S5iW$mKwd`)h9EnkTJuZhCCyOBDj2)LqCFFbAU72gU;vXO>a6$Ko2c_ zJwV}>x+Kge?jlP1l~w%9aZd}7**ORQnVrpMBm{_RkivMQMVc_$Rq`_0PZ^ANa!jqG z=i8MfS-H5<&%r~Hbc(kU%bd- zy0DSV<}i`Z=JRdlqT-ZyesnRj#wYIkUR%TtU(uY^set?8QR%&(pNL?fn|HF=Yxpez z&&nx>Wex@Wg7Gv(X3g>#V<19;JFO&9wwl=&riCst_~KZEPX1*vi$UNfZeKtPFobOh zs!~u@AOOkmv%`lNIK}&0;%Xdd^%^%64@B*fE!wn6c z;xA0O6U_N;iNnI0hgE~)(SECajz)6IX!$}go9Gx#^{hv==Px#_W-8Fm1OElEL>HTgiw1!Xy!NY&@qO|R~L5CfRP^`Vh-H(Fp*5Y4T@#b!> zrPAFtWeIO9=fk}OnaT;e-4K$^@xq^oP1ZiPiF2|Kv4_2S(OZIYyK29nK%8=)IB`rX zr@%#_D%=*4Q8CL?xqQVIuE<`ln-&WJ&U4M>^fJW2 zK3o4$0al^Rb*kAG9xP8?k+~#$6{+enZq?q&7V^x@YO-@Q z_P+}&!bXhbd(Mioa=C~MK~4`*9!;{h$tg-W`lit}V^%Dbk1JgxMDbkn_|goAH@HFS zZUX{=;yD~Jxe!t0Oyy;jN?GOXgzLS$ko2M%>g^? zeb+zvG}5k7zT#1HvNW8-sX(C&zoZtp=Y`p%y%n0zUSpsbI`n+AJVJdrZNKFu(=J^P zH+FrcPMiuY!*P!^xqVwlN2_%QCt&NJzzfd+HyKgiCH#Uo-`|-im#Y{A2Z}rh~1kO~tt% GF8v2+owyYM literal 0 HcmV?d00001 diff --git a/Examples/SDWebImage Demo/placeholder@2x.png b/Examples/SDWebImage Demo/placeholder@2x.png new file mode 100644 index 0000000000000000000000000000000000000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X+GVcJd8Zs0a!sfr8;M zs$~>~PBLsjwZf?~gnAYoO9EQ3CLfb=>4`YFCNND)Ki1Me@!iw zBE7QBHeEDQJV9*UbKkH$XlUHJE}BcDLk{H#x)o@f&yJfw@LDN}IKzU(JXwBqTZd6# zU*_B^!@LsSo!O~&y`#OhRX&J^F3j*TTo(EpZhN*8*K^w3WQkjyaknw6KdEQ`r5266 zC~Fk8-zob{&8yrK82&Q6)KfDKfs&V!E`9SU+G*5;@9MQQ(M+iSg1IcJJCS#OWx}0( zS^6@zN}8mEc*sI_?}IiTzE%~^n|j!`@PouZp@#YN&t zh2jm1@`)#y%fuOWh#}kV(ID!0!s>+=x?eLj-ut!#R_CYbOW#SG)9|@SpS9CoRc(*j zs+~S92XXh{RaUm)V3$sEREr1zb{5-0`kO};_$x?wxWLAplM6BXc$Uh|(Y&)^f-jUi zk_PwH1qmD5`~+uAr|*;h04xJ zEXrPL8nHl??Byhf-cI~`8zW>SERZ-*#Zl(3Y571O^w5+pjCSkzIP2V{JcHzFJn8-- nzx%~tbDc!JU{ ... @@ -234,43 +234,70 @@ Installation You can chose to copy all the files in your project or to import the it as a static library. -The following instructions are adapted from the excellent "Using Open Source Static Libraries in Xcode 4" -[tutorial][] from Jonah Williams. +### Add the SDWebImage project to your project -### Add the SDWebImage project to your workspace +Right-click on the project navigator and select "Add Files to "Your Project": -Make sure your project is in a workspace. If it's not, click File -> Save As Workspace first. +![Add Library Project](http://dl.dropbox.com/u/123346/SDWebImage/01_add_library_project.jpg) -Right-click on the project navigator and select "Add Files to "Your Project" and select SDWebImage.xcodeproj. -You may want to include the SDWebImage directory in your workspace repository before adding it to your project. +In the dialog, select SDWebImage.xcodeproj: -![Add SDWebImage](http://blog.carbonfive.com/wp-content/uploads/2011/04/adding_an_existing_project.png?w=300) +![Add Library Project Dialog](http://dl.dropbox.com/u/123346/SDWebImage/02_add_library_project_dialog.jpg) -You should end up with your project and SDWebimage project at the same level in the workspace. +After you’ve added the subproject, it’ll appear below the main project in Xcode’s Navigator tree: -### Build libSDWebImage.a File +![Library Added](http://dl.dropbox.com/u/123346/SDWebImage/03_library_added.jpg) -Set your build target to iOS Device, then click Build. Make sure the libSDWebImage.a file inside SDWebImage -> Products is not red. +You may want to add the SDWebImage directory in your project source tree as a submodule before adding it to your project. -### Add build target dependency +### Add build target dependencies -Select your project's build target and add the 'libSDWebImage.a' library to the "Link Binary With Libraries" inside the "Build Phases" tab. +In you application project app’s target settings, find the "Build Phases" section and open the "Target Dependencies" block: -![Add target dependency](http://blog.carbonfive.com/wp-content/uploads/2011/04/linkable_libraries.png?w=214) +![Add Target Dependencies](http://dl.dropbox.com/u/123346/SDWebImage/04_add_target_dependencies.jpg) -You may also need to add MapKit.framework here too as 'MKAnnotationView_WebCache.h' depends on it. +Click the "+" button and select "SDWebImage ARC" (you may choose the non ARC target if you want to support iOS <3): + +![Add Target Dependencies Dialog](http://dl.dropbox.com/u/123346/SDWebImage/05_add_target_dependencies_dialog.jpg) + +Open the "Link Binary With Libraries" block: + +![Add Library Link](http://dl.dropbox.com/u/123346/SDWebImage/06_add_library_link.jpg) + +Click the "+" button and select "libSDWebImageARC.a" library (use non ARC version if you chose non ARC version in the previous step): + +![Add Library Link Dialog](http://dl.dropbox.com/u/123346/SDWebImage/07_add_library_link_dialog.jpg) + +Click the "+" button again and select "MapKit.framework", this is used by MKAnnotationView+WebCache category: + +![Add ImageIO Framework](http://dl.dropbox.com/u/123346/SDWebImage/08_add_imageio_framework.jpg) + +Click the "+" button again and select the "ImageIO.framework", this is needed by the progressive download feature: + +![Add MapKit Framework](http://dl.dropbox.com/u/123346/SDWebImage/09_add_mapkit_framework.jpg) ### Add headers -Open the "Build Settingsæ tab and locate the "User Header Search Paths" setting. Set this to -"$(BUILT_PRODUCTS_DIR)/../../Headers" and check the "Recursive" check box. +Open the "Build Settings" tab, locate the "Other Linker Flags" setting and add the "-ObjC" flag: -![Header Search Paths](http://blog.carbonfive.com/wp-content/uploads/2011/04/header_search_path_value.png?w=300) +![Other Linker Flags](http://dl.dropbox.com/u/123346/SDWebImage/10_other_linker_flags.jpg) -Add the "-ObjC" flag to the "Other Linker Flags" build setting. +Locate "User Header Search Paths" and add two settings: ”$(TARGET_BUILD_DIR)/usr/local/lib/include” and ”$(OBJROOT)/UninstalledProducts/include”. Make sure to include the quotes here: + +![User Header Search Paths](http://dl.dropbox.com/u/123346/SDWebImage/11_user_header_search_paths.jpg) + +### Import headers in your source files + +In the source files where you need to use the library, use ``#import ``: + +```objective-c +#import +``` ### Build Project -At this point your workspace should build without error. If you are having problem, post to the Issue and the community can help you solve it. + +At this point your workspace should build without error. If you are having problem, post to the Issue and the +community can help you solve it. ### Fixing indexing @@ -278,7 +305,6 @@ If you have problem with auto-completion of SDWebImage methods, you may have to your project. - Future Enhancements ------------------- diff --git a/SDWebImage.xcodeproj/project.pbxproj b/SDWebImage.xcodeproj/project.pbxproj index 380740bb..50c38e60 100644 --- a/SDWebImage.xcodeproj/project.pbxproj +++ b/SDWebImage.xcodeproj/project.pbxproj @@ -9,6 +9,29 @@ /* Begin PBXBuildFile section */ 535699B615113E7300A4C397 /* MKAnnotationView+WebCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 535699B415113E7300A4C397 /* MKAnnotationView+WebCache.h */; settings = {ATTRIBUTES = (Public, ); }; }; 535699B715113E7300A4C397 /* MKAnnotationView+WebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 535699B515113E7300A4C397 /* MKAnnotationView+WebCache.m */; }; + 53761309155AD0D5005750A4 /* SDImageCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 53922D86148C56230056699D /* SDImageCache.m */; }; + 5376130A155AD0D5005750A4 /* SDWebImageDecoder.m in Sources */ = {isa = PBXBuildFile; fileRef = 53922D8A148C56230056699D /* SDWebImageDecoder.m */; }; + 5376130B155AD0D5005750A4 /* SDWebImageDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 53922D8C148C56230056699D /* SDWebImageDownloader.m */; }; + 5376130C155AD0D5005750A4 /* SDWebImageManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 53922D8F148C56230056699D /* SDWebImageManager.m */; }; + 5376130D155AD0D5005750A4 /* SDWebImagePrefetcher.m in Sources */ = {isa = PBXBuildFile; fileRef = 53922D92148C56230056699D /* SDWebImagePrefetcher.m */; }; + 5376130E155AD0D5005750A4 /* UIButton+WebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 53922D94148C56230056699D /* UIButton+WebCache.m */; }; + 5376130F155AD0D5005750A4 /* UIImageView+WebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 53922D96148C56230056699D /* UIImageView+WebCache.m */; }; + 53761310155AD0D5005750A4 /* MKAnnotationView+WebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 535699B515113E7300A4C397 /* MKAnnotationView+WebCache.m */; }; + 53761312155AD0D5005750A4 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 53FB894814D35E9E0020B787 /* UIKit.framework */; }; + 53761313155AD0D5005750A4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 53922D72148C55820056699D /* Foundation.framework */; }; + 53761314155AD0D5005750A4 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 53FB893F14D35D1A0020B787 /* CoreGraphics.framework */; }; + 53761316155AD0D5005750A4 /* SDImageCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 53922D85148C56230056699D /* SDImageCache.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 53761317155AD0D5005750A4 /* SDImageCacheDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 53922D87148C56230056699D /* SDImageCacheDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 53761318155AD0D5005750A4 /* SDWebImageCompat.h in Headers */ = {isa = PBXBuildFile; fileRef = 53922D88148C56230056699D /* SDWebImageCompat.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 53761319155AD0D5005750A4 /* SDWebImageDecoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 53922D89148C56230056699D /* SDWebImageDecoder.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5376131A155AD0D5005750A4 /* SDWebImageDownloader.h in Headers */ = {isa = PBXBuildFile; fileRef = 53922D8B148C56230056699D /* SDWebImageDownloader.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5376131B155AD0D5005750A4 /* SDWebImageDownloaderDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 53922D8D148C56230056699D /* SDWebImageDownloaderDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5376131C155AD0D5005750A4 /* SDWebImageManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 53922D8E148C56230056699D /* SDWebImageManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5376131D155AD0D5005750A4 /* SDWebImageManagerDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 53922D90148C56230056699D /* SDWebImageManagerDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5376131E155AD0D5005750A4 /* SDWebImagePrefetcher.h in Headers */ = {isa = PBXBuildFile; fileRef = 53922D91148C56230056699D /* SDWebImagePrefetcher.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5376131F155AD0D5005750A4 /* UIButton+WebCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 53922D93148C56230056699D /* UIButton+WebCache.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 53761320155AD0D5005750A4 /* UIImageView+WebCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 53922D95148C56230056699D /* UIImageView+WebCache.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 53761321155AD0D5005750A4 /* MKAnnotationView+WebCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 535699B415113E7300A4C397 /* MKAnnotationView+WebCache.h */; settings = {ATTRIBUTES = (Public, ); }; }; 53922D73148C55820056699D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 53922D72148C55820056699D /* Foundation.framework */; }; 53922D97148C56230056699D /* SDImageCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 53922D85148C56230056699D /* SDImageCache.h */; settings = {ATTRIBUTES = (Public, ); }; }; 53922D98148C56230056699D /* SDImageCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 53922D86148C56230056699D /* SDImageCache.m */; }; @@ -35,6 +58,7 @@ /* Begin PBXFileReference section */ 535699B415113E7300A4C397 /* MKAnnotationView+WebCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "MKAnnotationView+WebCache.h"; path = "SDWebImage/MKAnnotationView+WebCache.h"; sourceTree = SOURCE_ROOT; }; 535699B515113E7300A4C397 /* MKAnnotationView+WebCache.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "MKAnnotationView+WebCache.m"; path = "SDWebImage/MKAnnotationView+WebCache.m"; sourceTree = SOURCE_ROOT; }; + 53761325155AD0D5005750A4 /* libSDWebImageARC.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libSDWebImageARC.a; sourceTree = BUILT_PRODUCTS_DIR; }; 53922D6F148C55820056699D /* libSDWebImage.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libSDWebImage.a; sourceTree = BUILT_PRODUCTS_DIR; }; 53922D72148C55820056699D /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 53922D85148C56230056699D /* SDImageCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDImageCache.h; path = SDWebImage/SDImageCache.h; sourceTree = SOURCE_ROOT; }; @@ -60,6 +84,16 @@ /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ + 53761311155AD0D5005750A4 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 53761312155AD0D5005750A4 /* UIKit.framework in Frameworks */, + 53761313155AD0D5005750A4 /* Foundation.framework in Frameworks */, + 53761314155AD0D5005750A4 /* CoreGraphics.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 53922D6C148C55810056699D /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -86,6 +120,7 @@ isa = PBXGroup; children = ( 53922D6F148C55820056699D /* libSDWebImage.a */, + 53761325155AD0D5005750A4 /* libSDWebImageARC.a */, ); name = Products; sourceTree = ""; @@ -162,6 +197,25 @@ /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ + 53761315155AD0D5005750A4 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 53761316155AD0D5005750A4 /* SDImageCache.h in Headers */, + 53761317155AD0D5005750A4 /* SDImageCacheDelegate.h in Headers */, + 53761318155AD0D5005750A4 /* SDWebImageCompat.h in Headers */, + 53761319155AD0D5005750A4 /* SDWebImageDecoder.h in Headers */, + 5376131A155AD0D5005750A4 /* SDWebImageDownloader.h in Headers */, + 5376131B155AD0D5005750A4 /* SDWebImageDownloaderDelegate.h in Headers */, + 5376131C155AD0D5005750A4 /* SDWebImageManager.h in Headers */, + 5376131D155AD0D5005750A4 /* SDWebImageManagerDelegate.h in Headers */, + 5376131E155AD0D5005750A4 /* SDWebImagePrefetcher.h in Headers */, + 5376131F155AD0D5005750A4 /* UIButton+WebCache.h in Headers */, + 53761320155AD0D5005750A4 /* UIImageView+WebCache.h in Headers */, + 53761321155AD0D5005750A4 /* MKAnnotationView+WebCache.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 53922D6D148C55810056699D /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; @@ -184,6 +238,23 @@ /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ + 53761307155AD0D5005750A4 /* SDWebImage ARC */ = { + isa = PBXNativeTarget; + buildConfigurationList = 53761322155AD0D5005750A4 /* Build configuration list for PBXNativeTarget "SDWebImage ARC" */; + buildPhases = ( + 53761308155AD0D5005750A4 /* Sources */, + 53761311155AD0D5005750A4 /* Frameworks */, + 53761315155AD0D5005750A4 /* Headers */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "SDWebImage ARC"; + productName = SDWebImage; + productReference = 53761325155AD0D5005750A4 /* libSDWebImageARC.a */; + productType = "com.apple.product-type.library.static"; + }; 53922D6E148C55810056699D /* SDWebImage */ = { isa = PBXNativeTarget; buildConfigurationList = 53922D7C148C55820056699D /* Build configuration list for PBXNativeTarget "SDWebImage" */; @@ -223,11 +294,27 @@ projectRoot = ""; targets = ( 53922D6E148C55810056699D /* SDWebImage */, + 53761307155AD0D5005750A4 /* SDWebImage ARC */, ); }; /* End PBXProject section */ /* Begin PBXSourcesBuildPhase section */ + 53761308155AD0D5005750A4 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 53761309155AD0D5005750A4 /* SDImageCache.m in Sources */, + 5376130A155AD0D5005750A4 /* SDWebImageDecoder.m in Sources */, + 5376130B155AD0D5005750A4 /* SDWebImageDownloader.m in Sources */, + 5376130C155AD0D5005750A4 /* SDWebImageManager.m in Sources */, + 5376130D155AD0D5005750A4 /* SDWebImagePrefetcher.m in Sources */, + 5376130E155AD0D5005750A4 /* UIButton+WebCache.m in Sources */, + 5376130F155AD0D5005750A4 /* UIImageView+WebCache.m in Sources */, + 53761310155AD0D5005750A4 /* MKAnnotationView+WebCache.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 53922D6B148C55810056699D /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -246,13 +333,44 @@ /* End PBXSourcesBuildPhase section */ /* Begin XCBuildConfiguration section */ + 53761323155AD0D5005750A4 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_OBJC_ARC = NO; + CLANG_WARN_OBJCPP_ARC_ABI = YES; + DSTROOT = /tmp/SDWebImage.dst; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = ""; + INSTALL_PATH = "$(BUILT_PRODUCTS_DIR)"; + IPHONEOS_DEPLOYMENT_TARGET = 4.0; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = SDWebImageARC; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + 53761324155AD0D5005750A4 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_OBJC_ARC = NO; + CLANG_WARN_OBJCPP_ARC_ABI = YES; + DSTROOT = /tmp/SDWebImage.dst; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = ""; + INSTALL_PATH = "$(BUILT_PRODUCTS_DIR)"; + IPHONEOS_DEPLOYMENT_TARGET = 4.0; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = SDWebImageARC; + SKIP_INSTALL = YES; + }; + name = Release; + }; 53922D7A148C55820056699D /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; ARCHS = "$(ARCHS_STANDARD_32_BIT)"; COPY_PHASE_STRIP = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( @@ -260,11 +378,11 @@ "$(inherited)", ); GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_VERSION = com.apple.compilers.llvm.clang.1_0; GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; + IPHONEOS_DEPLOYMENT_TARGET = 3.0; + PUBLIC_HEADERS_FOLDER_PATH = include/SDWebImage; SDKROOT = iphoneos; }; name = Debug; @@ -275,12 +393,11 @@ ALWAYS_SEARCH_USER_PATHS = NO; ARCHS = "$(ARCHS_STANDARD_32_BIT)"; COPY_PHASE_STRIP = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_VERSION = com.apple.compilers.llvm.clang.1_0; GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; + IPHONEOS_DEPLOYMENT_TARGET = 3.0; + PUBLIC_HEADERS_FOLDER_PATH = include/SDWebImage; SDKROOT = iphoneos; VALIDATE_PRODUCT = YES; }; @@ -297,7 +414,6 @@ INSTALL_PATH = "$(BUILT_PRODUCTS_DIR)"; OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; - PUBLIC_HEADERS_FOLDER_PATH = "../../Headers/$(TARGET_NAME)"; SKIP_INSTALL = YES; }; name = Debug; @@ -313,7 +429,6 @@ INSTALL_PATH = "$(BUILT_PRODUCTS_DIR)"; OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; - PUBLIC_HEADERS_FOLDER_PATH = "../../Headers/$(TARGET_NAME)"; SKIP_INSTALL = YES; }; name = Release; @@ -321,6 +436,15 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ + 53761322155AD0D5005750A4 /* Build configuration list for PBXNativeTarget "SDWebImage ARC" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 53761323155AD0D5005750A4 /* Debug */, + 53761324155AD0D5005750A4 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 53922D69148C55810056699D /* Build configuration list for PBXProject "SDWebImage" */ = { isa = XCConfigurationList; buildConfigurations = (