From 450d43470add1c450e98ce1ad172b465f8817b09 Mon Sep 17 00:00:00 2001 From: Lucian Boboc Date: Sat, 15 Apr 2017 18:18:26 +0300 Subject: [PATCH] - fixed Xcode 8 warnings. --- LBCache.podspec | 2 +- LBCache/ImageOperation.h | 2 +- LBCache/Info.plist | 4 +- LBCache/LBCacheManager.h | 2 +- ...ing+LBcategory.h => NSString+LBCategory.h} | 4 +- ...ing+LBcategory.m => NSString+LBCategory.m} | 6 +- ...+LBcategory.h => UIImageView+LBCategory.h} | 16 ++--- ...+LBcategory.m => UIImageView+LBCategory.m} | 6 +- LBCache2-Demo.xcodeproj/project.pbxproj | 66 +++++++++++++------ .../xcschemes/LBCache-Demo.xcscheme | 19 ++++-- LBCache2-Demo/LBCache-Demo-Info.plist | 7 +- LBCacheTests/Info.plist | 2 +- README.md | 6 +- 13 files changed, 90 insertions(+), 52 deletions(-) rename LBCache/{NSString+LBcategory.h => NSString+LBCategory.h} (95%) rename LBCache/{NSString+LBcategory.m => NSString+LBCategory.m} (94%) rename LBCache/{UIImageView+LBcategory.h => UIImageView+LBCategory.h} (78%) rename LBCache/{UIImageView+LBcategory.m => UIImageView+LBCategory.m} (96%) diff --git a/LBCache.podspec b/LBCache.podspec index 75671ed..880352f 100644 --- a/LBCache.podspec +++ b/LBCache.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "LBCache" - s.version = "1.0.6" + s.version = "1.0.7" s.summary = "LBCache image cache framework" s.description = <<-DESC LBCache is an asynchronous image cache framework for iOS. diff --git a/LBCache/ImageOperation.h b/LBCache/ImageOperation.h index 53421a1..6be1701 100644 --- a/LBCache/ImageOperation.h +++ b/LBCache/ImageOperation.h @@ -7,7 +7,7 @@ // #import -#import "NSString+LBcategory.h" +#import "NSString+LBCategory.h" /// kDefaultHashType is the method used to generate the hash which is used as the image name when saved on disk. #define kDefaultHashType HashTypeSHA1 diff --git a/LBCache/Info.plist b/LBCache/Info.plist index d5a8c41..269beea 100644 --- a/LBCache/Info.plist +++ b/LBCache/Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier - com.lucianboboc.$(PRODUCT_NAME:rfc1034identifier) + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.0 + 1 CFBundleSignature ???? CFBundleVersion diff --git a/LBCache/LBCacheManager.h b/LBCache/LBCacheManager.h index ec613fe..4b5e656 100644 --- a/LBCache/LBCacheManager.h +++ b/LBCache/LBCacheManager.h @@ -16,7 +16,7 @@ #endif #import -#import "UIImageView+LBcategory.h" +#import "UIImageView+LBCategory.h" /// kDaysToKeepCache is the days duration the images will be kepped in cache. #define kDaysToKeepCache 3 diff --git a/LBCache/NSString+LBcategory.h b/LBCache/NSString+LBCategory.h similarity index 95% rename from LBCache/NSString+LBcategory.h rename to LBCache/NSString+LBCategory.h index 545bf4c..7a452bd 100644 --- a/LBCache/NSString+LBcategory.h +++ b/LBCache/NSString+LBCategory.h @@ -1,5 +1,5 @@ // -// NSString+LBcategory.h +// NSString+LBCategory.h // LBCache // // Created by Lucian Boboc on 6/1/13. @@ -9,7 +9,7 @@ #import -@interface NSString (LBcategory) +@interface NSString (LBCategory) /// HashType enum is used as an option used for the hash type. diff --git a/LBCache/NSString+LBcategory.m b/LBCache/NSString+LBCategory.m similarity index 94% rename from LBCache/NSString+LBcategory.m rename to LBCache/NSString+LBCategory.m index 3296d36..e4a1b98 100644 --- a/LBCache/NSString+LBcategory.m +++ b/LBCache/NSString+LBCategory.m @@ -1,15 +1,15 @@ // -// NSString+LBcategory.m +// NSString+LBCategory.m // LBCache // // Created by Lucian Boboc on 6/1/13. // Copyright (c) 2013 Lucian Boboc. All rights reserved. // -#import "NSString+LBcategory.h" +#import "NSString+LBCategory.h" #import -@implementation NSString (LBcategory) +@implementation NSString (LBCategory) - (NSString*) lbHashMD5 { diff --git a/LBCache/UIImageView+LBcategory.h b/LBCache/UIImageView+LBCategory.h similarity index 78% rename from LBCache/UIImageView+LBcategory.h rename to LBCache/UIImageView+LBCategory.h index d0beb92..9b927bc 100644 --- a/LBCache/UIImageView+LBcategory.h +++ b/LBCache/UIImageView+LBCategory.h @@ -1,5 +1,5 @@ // -// UIImageView+LBcategory.h +// UIImageView+LBCategory.h // LBCache // // Created by Lucian Boboc on 6/1/13. @@ -9,7 +9,7 @@ #import #import "ImageOperation.h" -@interface UIImageView (LBcategory) +@interface UIImageView (LBCategory) /// The method will start the image download and image will be set after download is complete. @@ -23,17 +23,17 @@ /// /// @param urlString is an NSString with the url string where the image is located. /// @param placeholderImage is a UIImage with the image that will be used as a placeholder until the image was downloaded. -/// @param options is an enum, `LBCacheImageOptions` option, which is used to decide how the image is loaded, from cache or web. -- (void) setImageWithURLString: (NSString * __nullable) urlString placeholderImage: (UIImage * __nullable) placeholderImage options: (LBCacheImageOptions) option; +/// @param options is an enum, `LBCacheImageOptions` options, which is used to decide how the image is loaded, from cache or web. +- (void) setImageWithURLString: (NSString * __nullable) urlString placeholderImage: (UIImage * __nullable) placeholderImage options: (LBCacheImageOptions) options; /// The method will start the image download and also return it in the completion block if download was successfull. /// /// @param urlString is an NSString with the url string where the image is located. /// @param placeholderImage is a UIImage with the image that will be used as a placeholder until the image was downloaded. -/// @param options is an enum, `LBCacheImageOptions` option, which is used to decide how the image is loaded, from cache or web. +/// @param options is an enum, `LBCacheImageOptions` options, which is used to decide how the image is loaded, from cache or web. /// @param completionBlock is an LBCacheOperationBlock callback which is used as a completion block for the ImageOperation. -- (void) setImageWithURLString: (NSString * __nullable) urlString placeholderImage: (UIImage * __nullable) placeholderImage options: (LBCacheImageOptions) option completionBlock: (LBCacheImageBlock __nullable) completionBlock; +- (void) setImageWithURLString: (NSString * __nullable) urlString placeholderImage: (UIImage * __nullable) placeholderImage options: (LBCacheImageOptions) options completionBlock: (LBCacheImageBlock __nullable) completionBlock; @@ -41,10 +41,10 @@ /// /// @param urlString is an NSString with the url string where the image is located. /// @param placeholderImage is a UIImage with the image that will be used as a placeholder until the image was downloaded. -/// @param options is an enum, `LBCacheImageOptions` option, which is used to decide how the image is loaded, from cache or web. +/// @param options is an enum, `LBCacheImageOptions` options, which is used to decide how the image is loaded, from cache or web. /// @param progressBlock is an ProgressBlock callback which is used to pass the percent for the ImageOperation. /// @param completionBlock is an LBCacheOperationBlock callback which is used as a completion block for the ImageOperation. -- (void) setImageWithURLString: (NSString * __nullable) urlString placeholderImage: (UIImage * __nullable) placeholderImage options: (LBCacheImageOptions) option progressBlock: (ProgressBlock __nullable) progressBlock completionBlock: (LBCacheImageBlock __nullable) completionBlock; +- (void) setImageWithURLString: (NSString * __nullable) urlString placeholderImage: (UIImage * __nullable) placeholderImage options: (LBCacheImageOptions) options progressBlock: (ProgressBlock __nullable) progressBlock completionBlock: (LBCacheImageBlock __nullable) completionBlock; /// The method will return the image object from the cache, memory or from the disk. diff --git a/LBCache/UIImageView+LBcategory.m b/LBCache/UIImageView+LBCategory.m similarity index 96% rename from LBCache/UIImageView+LBcategory.m rename to LBCache/UIImageView+LBCategory.m index c5aa45c..d1f7c98 100644 --- a/LBCache/UIImageView+LBcategory.m +++ b/LBCache/UIImageView+LBCategory.m @@ -1,18 +1,18 @@ // -// UIImageView+LBcategory.m +// UIImageView+LBCategory.m // LBCache // // Created by Lucian Boboc on 6/1/13. // Copyright (c) 2013 Lucian Boboc. All rights reserved. // -#import "UIImageView+LBcategory.h" +#import "UIImageView+LBCategory.h" #import "LBCacheManager.h" #import static char operationKey; -@implementation UIImageView (LBcategory) +@implementation UIImageView (LBCategory) - (void) setImageWithURLString: (NSString *) urlString placeholderImage: (UIImage *) placeholderImage { diff --git a/LBCache2-Demo.xcodeproj/project.pbxproj b/LBCache2-Demo.xcodeproj/project.pbxproj index 61b757c..c6c81c0 100644 --- a/LBCache2-Demo.xcodeproj/project.pbxproj +++ b/LBCache2-Demo.xcodeproj/project.pbxproj @@ -26,10 +26,10 @@ 670199AF1AE7C7C1003F81A8 /* ImageOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 670199A71AE7C7C1003F81A8 /* ImageOperation.m */; }; 670199B01AE7C7C1003F81A8 /* LBCacheManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 670199A81AE7C7C1003F81A8 /* LBCacheManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; 670199B11AE7C7C1003F81A8 /* LBCacheManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 670199A91AE7C7C1003F81A8 /* LBCacheManager.m */; }; - 670199B21AE7C7C1003F81A8 /* NSString+LBcategory.h in Headers */ = {isa = PBXBuildFile; fileRef = 670199AA1AE7C7C1003F81A8 /* NSString+LBcategory.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 670199B31AE7C7C1003F81A8 /* NSString+LBcategory.m in Sources */ = {isa = PBXBuildFile; fileRef = 670199AB1AE7C7C1003F81A8 /* NSString+LBcategory.m */; }; - 670199B41AE7C7C1003F81A8 /* UIImageView+LBcategory.h in Headers */ = {isa = PBXBuildFile; fileRef = 670199AC1AE7C7C1003F81A8 /* UIImageView+LBcategory.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 670199B51AE7C7C1003F81A8 /* UIImageView+LBcategory.m in Sources */ = {isa = PBXBuildFile; fileRef = 670199AD1AE7C7C1003F81A8 /* UIImageView+LBcategory.m */; }; + 670199B21AE7C7C1003F81A8 /* NSString+LBCategory.h in Headers */ = {isa = PBXBuildFile; fileRef = 670199AA1AE7C7C1003F81A8 /* NSString+LBCategory.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 670199B31AE7C7C1003F81A8 /* NSString+LBCategory.m in Sources */ = {isa = PBXBuildFile; fileRef = 670199AB1AE7C7C1003F81A8 /* NSString+LBCategory.m */; }; + 670199B41AE7C7C1003F81A8 /* UIImageView+LBCategory.h in Headers */ = {isa = PBXBuildFile; fileRef = 670199AC1AE7C7C1003F81A8 /* UIImageView+LBCategory.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 670199B51AE7C7C1003F81A8 /* UIImageView+LBCategory.m in Sources */ = {isa = PBXBuildFile; fileRef = 670199AD1AE7C7C1003F81A8 /* UIImageView+LBCategory.m */; }; 67B30CEF1AE7C13D003AD8F5 /* LBCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 67B30CEE1AE7C13D003AD8F5 /* LBCache.h */; settings = {ATTRIBUTES = (Public, ); }; }; 67B30CF51AE7C13D003AD8F5 /* LBCache.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67B30CEA1AE7C13D003AD8F5 /* LBCache.framework */; }; 67B30CFE1AE7C13D003AD8F5 /* LBCacheTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 67B30CFD1AE7C13D003AD8F5 /* LBCacheTests.m */; }; @@ -99,10 +99,10 @@ 670199A71AE7C7C1003F81A8 /* ImageOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ImageOperation.m; sourceTree = ""; }; 670199A81AE7C7C1003F81A8 /* LBCacheManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LBCacheManager.h; sourceTree = ""; }; 670199A91AE7C7C1003F81A8 /* LBCacheManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LBCacheManager.m; sourceTree = ""; }; - 670199AA1AE7C7C1003F81A8 /* NSString+LBcategory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSString+LBcategory.h"; sourceTree = ""; }; - 670199AB1AE7C7C1003F81A8 /* NSString+LBcategory.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSString+LBcategory.m"; sourceTree = ""; }; - 670199AC1AE7C7C1003F81A8 /* UIImageView+LBcategory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIImageView+LBcategory.h"; sourceTree = ""; }; - 670199AD1AE7C7C1003F81A8 /* UIImageView+LBcategory.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImageView+LBcategory.m"; sourceTree = ""; }; + 670199AA1AE7C7C1003F81A8 /* NSString+LBCategory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSString+LBCategory.h"; sourceTree = ""; }; + 670199AB1AE7C7C1003F81A8 /* NSString+LBCategory.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSString+LBCategory.m"; sourceTree = ""; }; + 670199AC1AE7C7C1003F81A8 /* UIImageView+LBCategory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIImageView+LBCategory.h"; sourceTree = ""; }; + 670199AD1AE7C7C1003F81A8 /* UIImageView+LBCategory.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImageView+LBCategory.m"; sourceTree = ""; }; 671EC89D178577AA002886A9 /* libobjc.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libobjc.dylib; path = usr/lib/libobjc.dylib; sourceTree = SDKROOT; }; 674F51E81AEB9B6200C97EDD /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = SOURCE_ROOT; }; 679024E21AE7F30200678433 /* LICENSE.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = LICENSE.md; sourceTree = SOURCE_ROOT; }; @@ -222,10 +222,10 @@ 670199A71AE7C7C1003F81A8 /* ImageOperation.m */, 670199A81AE7C7C1003F81A8 /* LBCacheManager.h */, 670199A91AE7C7C1003F81A8 /* LBCacheManager.m */, - 670199AA1AE7C7C1003F81A8 /* NSString+LBcategory.h */, - 670199AB1AE7C7C1003F81A8 /* NSString+LBcategory.m */, - 670199AC1AE7C7C1003F81A8 /* UIImageView+LBcategory.h */, - 670199AD1AE7C7C1003F81A8 /* UIImageView+LBcategory.m */, + 670199AA1AE7C7C1003F81A8 /* NSString+LBCategory.h */, + 670199AB1AE7C7C1003F81A8 /* NSString+LBCategory.m */, + 670199AC1AE7C7C1003F81A8 /* UIImageView+LBCategory.h */, + 670199AD1AE7C7C1003F81A8 /* UIImageView+LBCategory.m */, 67B30CEC1AE7C13D003AD8F5 /* Supporting Files */, ); path = LBCache; @@ -265,9 +265,9 @@ files = ( 670199AE1AE7C7C1003F81A8 /* ImageOperation.h in Headers */, 67B30CEF1AE7C13D003AD8F5 /* LBCache.h in Headers */, - 670199B21AE7C7C1003F81A8 /* NSString+LBcategory.h in Headers */, + 670199B21AE7C7C1003F81A8 /* NSString+LBCategory.h in Headers */, 670199B01AE7C7C1003F81A8 /* LBCacheManager.h in Headers */, - 670199B41AE7C7C1003F81A8 /* UIImageView+LBcategory.h in Headers */, + 670199B41AE7C7C1003F81A8 /* UIImageView+LBCategory.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -336,7 +336,7 @@ 25C65F2A175D39F100AE8FFC /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0460; + LastUpgradeCheck = 0830; ORGANIZATIONNAME = "Lucian Boboc"; TargetAttributes = { 67B30CE91AE7C13D003AD8F5 = { @@ -414,8 +414,8 @@ files = ( 670199B11AE7C7C1003F81A8 /* LBCacheManager.m in Sources */, 670199AF1AE7C7C1003F81A8 /* ImageOperation.m in Sources */, - 670199B31AE7C7C1003F81A8 /* NSString+LBcategory.m in Sources */, - 670199B51AE7C7C1003F81A8 /* UIImageView+LBcategory.m in Sources */, + 670199B31AE7C7C1003F81A8 /* NSString+LBCategory.m in Sources */, + 670199B51AE7C7C1003F81A8 /* UIImageView+LBCategory.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -474,25 +474,35 @@ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; + 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_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 6.1; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; }; @@ -505,18 +515,27 @@ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = YES; + 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; + GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 6.1; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; SDKROOT = iphoneos; VALIDATE_PRODUCT = YES; @@ -533,6 +552,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; ONLY_ACTIVE_ARCH = NO; + PRODUCT_BUNDLE_IDENTIFIER = com.lucianboboc.LBCache2; PRODUCT_NAME = "LBCache2-Demo"; WRAPPER_EXTENSION = app; }; @@ -548,6 +568,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; ONLY_ACTIVE_ARCH = NO; + PRODUCT_BUNDLE_IDENTIFIER = com.lucianboboc.LBCache2; PRODUCT_NAME = "LBCache2-Demo"; WRAPPER_EXTENSION = app; }; @@ -561,6 +582,7 @@ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_UNREACHABLE_CODE = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; CURRENT_PROJECT_VERSION = 1; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEFINES_MODULE = YES; @@ -583,6 +605,8 @@ IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = NO; + PRODUCT_BUNDLE_IDENTIFIER = "com.lucianboboc.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; TARGETED_DEVICE_FAMILY = "1,2"; @@ -599,6 +623,7 @@ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_UNREACHABLE_CODE = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; COPY_PHASE_STRIP = NO; CURRENT_PROJECT_VERSION = 1; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; @@ -619,6 +644,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_BUNDLE_IDENTIFIER = "com.lucianboboc.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; TARGETED_DEVICE_FAMILY = "1,2"; @@ -655,6 +681,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 8.3; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MTL_ENABLE_DEBUG_INFO = YES; + PRODUCT_BUNDLE_IDENTIFIER = "com.lucianboboc.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LBCache2-Demo.app/LBCache2-Demo"; }; @@ -686,6 +713,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 8.3; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_BUNDLE_IDENTIFIER = "com.lucianboboc.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LBCache2-Demo.app/LBCache2-Demo"; }; diff --git a/LBCache2-Demo.xcodeproj/xcuserdata/lucianboboc.xcuserdatad/xcschemes/LBCache-Demo.xcscheme b/LBCache2-Demo.xcodeproj/xcuserdata/lucianboboc.xcuserdatad/xcschemes/LBCache-Demo.xcscheme index 39c824d..2a1e662 100644 --- a/LBCache2-Demo.xcodeproj/xcuserdata/lucianboboc.xcuserdatad/xcschemes/LBCache-Demo.xcscheme +++ b/LBCache2-Demo.xcodeproj/xcuserdata/lucianboboc.xcuserdatad/xcschemes/LBCache-Demo.xcscheme @@ -1,6 +1,6 @@ + shouldUseLaunchSchemeArgsEnv = "YES"> @@ -38,17 +38,21 @@ ReferencedContainer = "container:LBCache2-Demo.xcodeproj"> + + - + - + CFBundleExecutable ${EXECUTABLE_NAME} CFBundleIdentifier - com.lucianboboc.LBCache2 + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName @@ -24,6 +24,11 @@ 1.0 LSRequiresIPhoneOS + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + UIMainStoryboardFile MainStoryboard UIRequiredDeviceCapabilities diff --git a/LBCacheTests/Info.plist b/LBCacheTests/Info.plist index 0f0cadd..ba72822 100644 --- a/LBCacheTests/Info.plist +++ b/LBCacheTests/Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier - com.lucianboboc.$(PRODUCT_NAME:rfc1034identifier) + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName diff --git a/README.md b/README.md index 5625db6..8f3200d 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ LBCache is an asynchronous image cache framework for iOS ### How to use -# UIImageView+LBcategory.h +# UIImageView+LBCategory.h - this UIImageView category offer the option to set a URL string of the image location on the server; - the image is downloaded asynchrnous in the background; - the image is saved on the disk in the caches directory; @@ -36,7 +36,7 @@ There are 3 options to use: # LBCacheManager.h This class is used by the UIImageView category for the download but you can use it directly. You can use methods from LBCacheManager to get the UIImage object from the disk or the path location where the image is cached. - imagePathLocationForURLString: - a string with the local path location of the image saved on disk or nil if the image for the URLString is not found. -- imageForURLString: - same as UIImageView+LBcategory, search the UIImage directly in cache (memory or disk), nil is returned if not found. +- imageForURLString: - same as UIImageView+LBCategory, search the UIImage directly in cache (memory or disk), nil is returned if not found. ```objective-c @@ -57,7 +57,7 @@ This class is used by the UIImageView category for the download but you can use ``` -# NSString+LBcategory.h +# NSString+LBCategory.h You can use this class category to get hash value from a string. - there are 3 options available, MD5, SHA1 and SHA256