From 44e5e3b39757ab00b8d34c9b29798b931c1bd995 Mon Sep 17 00:00:00 2001 From: kean Date: Sun, 20 Sep 2015 11:38:16 +0300 Subject: [PATCH] Carthage support (limited to Core and UI components) --- .../Nuke.xcworkspace/contents.xcworkspacedata | 79 ---- Nuke.podspec | 8 +- Nuke/Nuke.xcodeproj/project.pbxproj | 384 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/xcschemes/Nuke.xcscheme | 80 ++++ .../Alamofire/AlamofireImageDataLoader.swift | 0 .../Source}/Core/ImageDataLoader.swift | 0 .../Source}/Core/ImageDecoder.swift | 0 .../Source}/Core/ImageManager.swift | 0 .../Source}/Core/ImageManagerExtensions.swift | 0 .../Source}/Core/ImageManagerLoader.swift | 0 .../Source}/Core/ImageMemoryCache.swift | 0 .../Source}/Core/ImageProcessor.swift | 0 .../Source}/Core/ImageRequest.swift | 0 .../Source}/Core/ImageResponse.swift | 0 .../Source}/Core/ImageTask.swift | 0 {Pod/Classes => Nuke/Source}/Core/Nuke.swift | 0 .../Source}/GIF/AnimatedImage.swift | 0 .../Source}/GIF/AnimatedImageView.swift | 0 {Pod/Classes => Nuke/Source}/Nuke.h | 0 ...geCollectionViewPreheatingController.swift | 0 .../Source}/UI/ImageView.swift | 0 Nuke/Supporting Files/Info.plist | 26 ++ Pod/Assets/.gitkeep | 0 Pod/Classes/.gitkeep | 0 README.md | 22 +- _Pods.xcodeproj | 1 - 27 files changed, 517 insertions(+), 90 deletions(-) create mode 100644 Nuke/Nuke.xcodeproj/project.pbxproj create mode 100644 Nuke/Nuke.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 Nuke/Nuke.xcodeproj/xcshareddata/xcschemes/Nuke.xcscheme rename {Pod/Classes => Nuke/Source}/Alamofire/AlamofireImageDataLoader.swift (100%) rename {Pod/Classes => Nuke/Source}/Core/ImageDataLoader.swift (100%) rename {Pod/Classes => Nuke/Source}/Core/ImageDecoder.swift (100%) rename {Pod/Classes => Nuke/Source}/Core/ImageManager.swift (100%) rename {Pod/Classes => Nuke/Source}/Core/ImageManagerExtensions.swift (100%) rename {Pod/Classes => Nuke/Source}/Core/ImageManagerLoader.swift (100%) rename {Pod/Classes => Nuke/Source}/Core/ImageMemoryCache.swift (100%) rename {Pod/Classes => Nuke/Source}/Core/ImageProcessor.swift (100%) rename {Pod/Classes => Nuke/Source}/Core/ImageRequest.swift (100%) rename {Pod/Classes => Nuke/Source}/Core/ImageResponse.swift (100%) rename {Pod/Classes => Nuke/Source}/Core/ImageTask.swift (100%) rename {Pod/Classes => Nuke/Source}/Core/Nuke.swift (100%) rename {Pod/Classes => Nuke/Source}/GIF/AnimatedImage.swift (100%) rename {Pod/Classes => Nuke/Source}/GIF/AnimatedImageView.swift (100%) rename {Pod/Classes => Nuke/Source}/Nuke.h (100%) rename {Pod/Classes => Nuke/Source}/UI/ImageCollectionViewPreheatingController.swift (100%) rename {Pod/Classes => Nuke/Source}/UI/ImageView.swift (100%) create mode 100644 Nuke/Supporting Files/Info.plist delete mode 100644 Pod/Assets/.gitkeep delete mode 100644 Pod/Classes/.gitkeep delete mode 120000 _Pods.xcodeproj diff --git a/Example/Nuke.xcworkspace/contents.xcworkspacedata b/Example/Nuke.xcworkspace/contents.xcworkspacedata index 5c5ab802a..88af0a758 100644 --- a/Example/Nuke.xcworkspace/contents.xcworkspacedata +++ b/Example/Nuke.xcworkspace/contents.xcworkspacedata @@ -4,85 +4,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Nuke.podspec b/Nuke.podspec index 1c6f4e98f..d1bd13585 100644 --- a/Nuke.podspec +++ b/Nuke.podspec @@ -16,19 +16,19 @@ Pod::Spec.new do |s| s.default_subspecs = "Core", "UI" s.subspec "Core" do |ss| - ss.source_files = "Pod/Classes/Core/**/*" + ss.source_files = "Nuke/Source/Core/**/*" end s.subspec "UI" do |ss| ss.ios.deployment_target = "8.0" ss.dependency "Nuke/Core" - ss.ios.source_files = "Pod/Classes/UI/**/*" + ss.ios.source_files = "Nuke/Source/UI/**/*" end s.subspec "Alamofire" do |ss| ss.dependency "Nuke/Core" ss.dependency "Alamofire", "~> 2.0" - ss.source_files = "Pod/Classes/Alamofire/**/*" + ss.source_files = "Nuke/Source/Alamofire/**/*" end s.subspec "GIF" do |ss| @@ -36,6 +36,6 @@ Pod::Spec.new do |s| ss.dependency "Nuke/Core" ss.dependency "Nuke/UI" ss.dependency "FLAnimatedImage", "~> 1.0" - ss.source_files = "Pod/Classes/GIF/**/*" + ss.source_files = "Nuke/Source/GIF/**/*" end end diff --git a/Nuke/Nuke.xcodeproj/project.pbxproj b/Nuke/Nuke.xcodeproj/project.pbxproj new file mode 100644 index 000000000..406680867 --- /dev/null +++ b/Nuke/Nuke.xcodeproj/project.pbxproj @@ -0,0 +1,384 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 0C096C921BAE9ADD007FE380 /* ImageDataLoader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C096C7F1BAE9ADD007FE380 /* ImageDataLoader.swift */; settings = {ASSET_TAGS = (); }; }; + 0C096C931BAE9ADD007FE380 /* ImageDecoder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C096C801BAE9ADD007FE380 /* ImageDecoder.swift */; settings = {ASSET_TAGS = (); }; }; + 0C096C941BAE9ADD007FE380 /* ImageManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C096C811BAE9ADD007FE380 /* ImageManager.swift */; settings = {ASSET_TAGS = (); }; }; + 0C096C951BAE9ADD007FE380 /* ImageManagerExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C096C821BAE9ADD007FE380 /* ImageManagerExtensions.swift */; settings = {ASSET_TAGS = (); }; }; + 0C096C961BAE9ADD007FE380 /* ImageManagerLoader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C096C831BAE9ADD007FE380 /* ImageManagerLoader.swift */; settings = {ASSET_TAGS = (); }; }; + 0C096C971BAE9ADD007FE380 /* ImageMemoryCache.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C096C841BAE9ADD007FE380 /* ImageMemoryCache.swift */; settings = {ASSET_TAGS = (); }; }; + 0C096C981BAE9ADD007FE380 /* ImageProcessor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C096C851BAE9ADD007FE380 /* ImageProcessor.swift */; settings = {ASSET_TAGS = (); }; }; + 0C096C991BAE9ADD007FE380 /* ImageRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C096C861BAE9ADD007FE380 /* ImageRequest.swift */; settings = {ASSET_TAGS = (); }; }; + 0C096C9A1BAE9ADD007FE380 /* ImageResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C096C871BAE9ADD007FE380 /* ImageResponse.swift */; settings = {ASSET_TAGS = (); }; }; + 0C096C9B1BAE9ADD007FE380 /* ImageTask.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C096C881BAE9ADD007FE380 /* ImageTask.swift */; settings = {ASSET_TAGS = (); }; }; + 0C096C9C1BAE9ADD007FE380 /* Nuke.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C096C891BAE9ADD007FE380 /* Nuke.swift */; settings = {ASSET_TAGS = (); }; }; + 0C096C9F1BAE9ADD007FE380 /* Nuke.h in Headers */ = {isa = PBXBuildFile; fileRef = 0C096C8D1BAE9ADD007FE380 /* Nuke.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 0C096CA01BAE9ADD007FE380 /* ImageCollectionViewPreheatingController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C096C8F1BAE9ADD007FE380 /* ImageCollectionViewPreheatingController.swift */; settings = {ASSET_TAGS = (); }; }; + 0C096CA11BAE9ADD007FE380 /* ImageView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C096C901BAE9ADD007FE380 /* ImageView.swift */; settings = {ASSET_TAGS = (); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 0C096C791BAE9AC9007FE380 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 0C096C7D1BAE9ADD007FE380 /* AlamofireImageDataLoader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AlamofireImageDataLoader.swift; sourceTree = ""; }; + 0C096C7F1BAE9ADD007FE380 /* ImageDataLoader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImageDataLoader.swift; sourceTree = ""; }; + 0C096C801BAE9ADD007FE380 /* ImageDecoder.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImageDecoder.swift; sourceTree = ""; }; + 0C096C811BAE9ADD007FE380 /* ImageManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImageManager.swift; sourceTree = ""; }; + 0C096C821BAE9ADD007FE380 /* ImageManagerExtensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImageManagerExtensions.swift; sourceTree = ""; }; + 0C096C831BAE9ADD007FE380 /* ImageManagerLoader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImageManagerLoader.swift; sourceTree = ""; }; + 0C096C841BAE9ADD007FE380 /* ImageMemoryCache.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImageMemoryCache.swift; sourceTree = ""; }; + 0C096C851BAE9ADD007FE380 /* ImageProcessor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImageProcessor.swift; sourceTree = ""; }; + 0C096C861BAE9ADD007FE380 /* ImageRequest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImageRequest.swift; sourceTree = ""; }; + 0C096C871BAE9ADD007FE380 /* ImageResponse.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImageResponse.swift; sourceTree = ""; }; + 0C096C881BAE9ADD007FE380 /* ImageTask.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImageTask.swift; sourceTree = ""; }; + 0C096C891BAE9ADD007FE380 /* Nuke.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Nuke.swift; sourceTree = ""; }; + 0C096C8B1BAE9ADD007FE380 /* AnimatedImage.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AnimatedImage.swift; sourceTree = ""; }; + 0C096C8C1BAE9ADD007FE380 /* AnimatedImageView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AnimatedImageView.swift; sourceTree = ""; }; + 0C096C8D1BAE9ADD007FE380 /* Nuke.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Nuke.h; sourceTree = ""; }; + 0C096C8F1BAE9ADD007FE380 /* ImageCollectionViewPreheatingController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImageCollectionViewPreheatingController.swift; sourceTree = ""; }; + 0C096C901BAE9ADD007FE380 /* ImageView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImageView.swift; sourceTree = ""; }; + 0C9174901BAE99EE004A7905 /* Nuke.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Nuke.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 0C91748C1BAE99EE004A7905 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 0C096C781BAE9AC9007FE380 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 0C096C791BAE9AC9007FE380 /* Info.plist */, + ); + path = "Supporting Files"; + sourceTree = ""; + }; + 0C096C7B1BAE9ADD007FE380 /* Source */ = { + isa = PBXGroup; + children = ( + 0C096C8D1BAE9ADD007FE380 /* Nuke.h */, + 0C096C7E1BAE9ADD007FE380 /* Core */, + 0C096C8E1BAE9ADD007FE380 /* UI */, + 0C096C7C1BAE9ADD007FE380 /* Alamofire */, + 0C096C8A1BAE9ADD007FE380 /* GIF */, + ); + path = Source; + sourceTree = ""; + }; + 0C096C7C1BAE9ADD007FE380 /* Alamofire */ = { + isa = PBXGroup; + children = ( + 0C096C7D1BAE9ADD007FE380 /* AlamofireImageDataLoader.swift */, + ); + path = Alamofire; + sourceTree = ""; + }; + 0C096C7E1BAE9ADD007FE380 /* Core */ = { + isa = PBXGroup; + children = ( + 0C096C7F1BAE9ADD007FE380 /* ImageDataLoader.swift */, + 0C096C801BAE9ADD007FE380 /* ImageDecoder.swift */, + 0C096C811BAE9ADD007FE380 /* ImageManager.swift */, + 0C096C821BAE9ADD007FE380 /* ImageManagerExtensions.swift */, + 0C096C831BAE9ADD007FE380 /* ImageManagerLoader.swift */, + 0C096C841BAE9ADD007FE380 /* ImageMemoryCache.swift */, + 0C096C851BAE9ADD007FE380 /* ImageProcessor.swift */, + 0C096C861BAE9ADD007FE380 /* ImageRequest.swift */, + 0C096C871BAE9ADD007FE380 /* ImageResponse.swift */, + 0C096C881BAE9ADD007FE380 /* ImageTask.swift */, + 0C096C891BAE9ADD007FE380 /* Nuke.swift */, + ); + path = Core; + sourceTree = ""; + }; + 0C096C8A1BAE9ADD007FE380 /* GIF */ = { + isa = PBXGroup; + children = ( + 0C096C8B1BAE9ADD007FE380 /* AnimatedImage.swift */, + 0C096C8C1BAE9ADD007FE380 /* AnimatedImageView.swift */, + ); + path = GIF; + sourceTree = ""; + }; + 0C096C8E1BAE9ADD007FE380 /* UI */ = { + isa = PBXGroup; + children = ( + 0C096C8F1BAE9ADD007FE380 /* ImageCollectionViewPreheatingController.swift */, + 0C096C901BAE9ADD007FE380 /* ImageView.swift */, + ); + path = UI; + sourceTree = ""; + }; + 0C9174861BAE99EE004A7905 = { + isa = PBXGroup; + children = ( + 0C096C7B1BAE9ADD007FE380 /* Source */, + 0C096C781BAE9AC9007FE380 /* Supporting Files */, + 0C9174911BAE99EE004A7905 /* Products */, + ); + sourceTree = ""; + }; + 0C9174911BAE99EE004A7905 /* Products */ = { + isa = PBXGroup; + children = ( + 0C9174901BAE99EE004A7905 /* Nuke.framework */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 0C91748D1BAE99EE004A7905 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 0C096C9F1BAE9ADD007FE380 /* Nuke.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 0C91748F1BAE99EE004A7905 /* Nuke */ = { + isa = PBXNativeTarget; + buildConfigurationList = 0C9174981BAE99EE004A7905 /* Build configuration list for PBXNativeTarget "Nuke" */; + buildPhases = ( + 0C91748B1BAE99EE004A7905 /* Sources */, + 0C91748C1BAE99EE004A7905 /* Frameworks */, + 0C91748D1BAE99EE004A7905 /* Headers */, + 0C91748E1BAE99EE004A7905 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Nuke; + productName = Nuke; + productReference = 0C9174901BAE99EE004A7905 /* Nuke.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 0C9174871BAE99EE004A7905 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0700; + ORGANIZATIONNAME = "Alexander Grebenyuk"; + TargetAttributes = { + 0C91748F1BAE99EE004A7905 = { + CreatedOnToolsVersion = 7.0; + }; + }; + }; + buildConfigurationList = 0C91748A1BAE99EE004A7905 /* Build configuration list for PBXProject "Nuke" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 0C9174861BAE99EE004A7905; + productRefGroup = 0C9174911BAE99EE004A7905 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 0C91748F1BAE99EE004A7905 /* Nuke */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 0C91748E1BAE99EE004A7905 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 0C91748B1BAE99EE004A7905 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0C096C9C1BAE9ADD007FE380 /* Nuke.swift in Sources */, + 0C096C951BAE9ADD007FE380 /* ImageManagerExtensions.swift in Sources */, + 0C096C921BAE9ADD007FE380 /* ImageDataLoader.swift in Sources */, + 0C096C9B1BAE9ADD007FE380 /* ImageTask.swift in Sources */, + 0C096C9A1BAE9ADD007FE380 /* ImageResponse.swift in Sources */, + 0C096CA01BAE9ADD007FE380 /* ImageCollectionViewPreheatingController.swift in Sources */, + 0C096C981BAE9ADD007FE380 /* ImageProcessor.swift in Sources */, + 0C096C961BAE9ADD007FE380 /* ImageManagerLoader.swift in Sources */, + 0C096CA11BAE9ADD007FE380 /* ImageView.swift in Sources */, + 0C096C971BAE9ADD007FE380 /* ImageMemoryCache.swift in Sources */, + 0C096C931BAE9ADD007FE380 /* ImageDecoder.swift in Sources */, + 0C096C991BAE9ADD007FE380 /* ImageRequest.swift in Sources */, + 0C096C941BAE9ADD007FE380 /* ImageManager.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 0C9174961BAE99EE004A7905 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + 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; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 0C9174971BAE99EE004A7905 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_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; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 0C9174991BAE99EE004A7905 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + APPLICATION_EXTENSION_API_ONLY = YES; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "Supporting Files/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.github.kean.Nuke; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + 0C91749A1BAE99EE004A7905 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + APPLICATION_EXTENSION_API_ONLY = YES; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "Supporting Files/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.github.kean.Nuke; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 0C91748A1BAE99EE004A7905 /* Build configuration list for PBXProject "Nuke" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0C9174961BAE99EE004A7905 /* Debug */, + 0C9174971BAE99EE004A7905 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 0C9174981BAE99EE004A7905 /* Build configuration list for PBXNativeTarget "Nuke" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0C9174991BAE99EE004A7905 /* Debug */, + 0C91749A1BAE99EE004A7905 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 0C9174871BAE99EE004A7905 /* Project object */; +} diff --git a/Nuke/Nuke.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Nuke/Nuke.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..ff2855e7d --- /dev/null +++ b/Nuke/Nuke.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Nuke/Nuke.xcodeproj/xcshareddata/xcschemes/Nuke.xcscheme b/Nuke/Nuke.xcodeproj/xcshareddata/xcschemes/Nuke.xcscheme new file mode 100644 index 000000000..b7b9beb7f --- /dev/null +++ b/Nuke/Nuke.xcodeproj/xcshareddata/xcschemes/Nuke.xcscheme @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Pod/Classes/Alamofire/AlamofireImageDataLoader.swift b/Nuke/Source/Alamofire/AlamofireImageDataLoader.swift similarity index 100% rename from Pod/Classes/Alamofire/AlamofireImageDataLoader.swift rename to Nuke/Source/Alamofire/AlamofireImageDataLoader.swift diff --git a/Pod/Classes/Core/ImageDataLoader.swift b/Nuke/Source/Core/ImageDataLoader.swift similarity index 100% rename from Pod/Classes/Core/ImageDataLoader.swift rename to Nuke/Source/Core/ImageDataLoader.swift diff --git a/Pod/Classes/Core/ImageDecoder.swift b/Nuke/Source/Core/ImageDecoder.swift similarity index 100% rename from Pod/Classes/Core/ImageDecoder.swift rename to Nuke/Source/Core/ImageDecoder.swift diff --git a/Pod/Classes/Core/ImageManager.swift b/Nuke/Source/Core/ImageManager.swift similarity index 100% rename from Pod/Classes/Core/ImageManager.swift rename to Nuke/Source/Core/ImageManager.swift diff --git a/Pod/Classes/Core/ImageManagerExtensions.swift b/Nuke/Source/Core/ImageManagerExtensions.swift similarity index 100% rename from Pod/Classes/Core/ImageManagerExtensions.swift rename to Nuke/Source/Core/ImageManagerExtensions.swift diff --git a/Pod/Classes/Core/ImageManagerLoader.swift b/Nuke/Source/Core/ImageManagerLoader.swift similarity index 100% rename from Pod/Classes/Core/ImageManagerLoader.swift rename to Nuke/Source/Core/ImageManagerLoader.swift diff --git a/Pod/Classes/Core/ImageMemoryCache.swift b/Nuke/Source/Core/ImageMemoryCache.swift similarity index 100% rename from Pod/Classes/Core/ImageMemoryCache.swift rename to Nuke/Source/Core/ImageMemoryCache.swift diff --git a/Pod/Classes/Core/ImageProcessor.swift b/Nuke/Source/Core/ImageProcessor.swift similarity index 100% rename from Pod/Classes/Core/ImageProcessor.swift rename to Nuke/Source/Core/ImageProcessor.swift diff --git a/Pod/Classes/Core/ImageRequest.swift b/Nuke/Source/Core/ImageRequest.swift similarity index 100% rename from Pod/Classes/Core/ImageRequest.swift rename to Nuke/Source/Core/ImageRequest.swift diff --git a/Pod/Classes/Core/ImageResponse.swift b/Nuke/Source/Core/ImageResponse.swift similarity index 100% rename from Pod/Classes/Core/ImageResponse.swift rename to Nuke/Source/Core/ImageResponse.swift diff --git a/Pod/Classes/Core/ImageTask.swift b/Nuke/Source/Core/ImageTask.swift similarity index 100% rename from Pod/Classes/Core/ImageTask.swift rename to Nuke/Source/Core/ImageTask.swift diff --git a/Pod/Classes/Core/Nuke.swift b/Nuke/Source/Core/Nuke.swift similarity index 100% rename from Pod/Classes/Core/Nuke.swift rename to Nuke/Source/Core/Nuke.swift diff --git a/Pod/Classes/GIF/AnimatedImage.swift b/Nuke/Source/GIF/AnimatedImage.swift similarity index 100% rename from Pod/Classes/GIF/AnimatedImage.swift rename to Nuke/Source/GIF/AnimatedImage.swift diff --git a/Pod/Classes/GIF/AnimatedImageView.swift b/Nuke/Source/GIF/AnimatedImageView.swift similarity index 100% rename from Pod/Classes/GIF/AnimatedImageView.swift rename to Nuke/Source/GIF/AnimatedImageView.swift diff --git a/Pod/Classes/Nuke.h b/Nuke/Source/Nuke.h similarity index 100% rename from Pod/Classes/Nuke.h rename to Nuke/Source/Nuke.h diff --git a/Pod/Classes/UI/ImageCollectionViewPreheatingController.swift b/Nuke/Source/UI/ImageCollectionViewPreheatingController.swift similarity index 100% rename from Pod/Classes/UI/ImageCollectionViewPreheatingController.swift rename to Nuke/Source/UI/ImageCollectionViewPreheatingController.swift diff --git a/Pod/Classes/UI/ImageView.swift b/Nuke/Source/UI/ImageView.swift similarity index 100% rename from Pod/Classes/UI/ImageView.swift rename to Nuke/Source/UI/ImageView.swift diff --git a/Nuke/Supporting Files/Info.plist b/Nuke/Supporting Files/Info.plist new file mode 100644 index 000000000..d3de8eefb --- /dev/null +++ b/Nuke/Supporting Files/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + NSPrincipalClass + + + diff --git a/Pod/Assets/.gitkeep b/Pod/Assets/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/Pod/Classes/.gitkeep b/Pod/Classes/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/README.md b/README.md index f80315bef..40a318820 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Nuke.taskWithURL(URL) { 1. [Getting Started](#h_getting_started) 2. [Usage](#h_usage) 3. [Design](#h_design) -4. [Installation](#install_using_cocopods) +4. [Installation](#installation) 5. [Requirements](#h_requirements) 6. [Contribution](#h_contribution) @@ -194,23 +194,33 @@ ImageManager.setShared(manager) |`ImageProcessing`|Processes decoded images| |`ImageMemoryCaching`|Stores processed images into memory cache| -## Installation using [CocoaPods](http://cocoapods.org) +## Installation -CocoaPods is the dependency manager for Cocoa projects. If you are not familiar with CocoaPods the best place to start would be [official CocoaPods guides](http://guides.cocoapods.org). To install Nuke add a dependency in your Podfile: +### CocoaPods + +[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. If you are not familiar with CocoaPods the best place to start would be [CocoaPods guides](http://guides.cocoapods.org). To install Nuke add a dependency in your Podfile: ```ruby # Podfile # platform :ios, '8.0' # platform :watchos, '2.0' +# use_frameworks! pod 'Nuke' ``` By default it will install these subspecs (if they are available for your platform): -- `Nuke/Core` - Nuke core classes +- `Nuke/Core` - core classes - `Nuke/UI` - UI components -There is one more optional subspec: +There are two more optional subspec: - `Nuke/Alamofire` - [Alamofire](https://github.com/Alamofire/Alamofire) integration -- `Nuke/GIF` - GIF support via [FLAnimatedImage](https://github.com/Flipboard/FLAnimatedImage) integration +- `Nuke/GIF` - [FLAnimatedImage](https://github.com/Flipboard/FLAnimatedImage) integration + +### Carthage + +[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager for Cocoa projects. Nuke has a limitied Carthage support that doesn't feature [FLAnimatedImage](https://github.com/Flipboard/FLAnimatedImage) and [Alamofire](https://github.com/Alamofire/Alamofire) integration. To install Nuke add a dependency to your Cartfile: +``` +github 'Nuke' +``` ## Requirements - iOS 8.0+ / watchOS 2.0+ diff --git a/_Pods.xcodeproj b/_Pods.xcodeproj deleted file mode 120000 index 3c5a8e715..000000000 --- a/_Pods.xcodeproj +++ /dev/null @@ -1 +0,0 @@ -Example/Pods/Pods.xcodeproj \ No newline at end of file