From bd846596b4c512fc7fac413e1a42b9aadd43effe Mon Sep 17 00:00:00 2001 From: Steve Lawrence Date: Tue, 6 Jan 2015 14:39:00 -0800 Subject: [PATCH 01/14] flickr sort by relevance instead of date --- DZNPhotoPickerController.podspec | 6 +- .../Classes/Services/DZNPhotoServiceClient.m | 95 ++++++++++--------- 2 files changed, 52 insertions(+), 49 deletions(-) diff --git a/DZNPhotoPickerController.podspec b/DZNPhotoPickerController.podspec index 6b0e319c..58791cda 100644 --- a/DZNPhotoPickerController.podspec +++ b/DZNPhotoPickerController.podspec @@ -1,4 +1,4 @@ -@version = "1.6.1" +@version = "1.6.2" Pod::Spec.new do |s| s.name = "DZNPhotoPickerController" @@ -9,7 +9,7 @@ Pod::Spec.new do |s| s.screenshots = "https://raw.githubusercontent.com/dzenbot/DZNPhotoPickerController/master/Docs/screenshots.png" s.license = { :type => 'MIT', :file => 'LICENSE' } s.author = { "Ignacio Romero Z." => "iromero@dzen.cl" } - + s.source = { :git => "https://github.com/dzenbot/UIPhotoPickerController.git", :tag => "v#{s.version}" } s.default_subspec = 'Core' @@ -40,5 +40,5 @@ Pod::Spec.new do |s| ss.source_files = 'Source/Classes/Editor/*.{h,m}', 'Source/Classes/Core/DZNPhotoPickerControllerConstants.{h,m}' end - + end diff --git a/Source/Classes/Services/DZNPhotoServiceClient.m b/Source/Classes/Services/DZNPhotoServiceClient.m index 33b385c3..2ee585e1 100644 --- a/Source/Classes/Services/DZNPhotoServiceClient.m +++ b/Source/Classes/Services/DZNPhotoServiceClient.m @@ -30,15 +30,15 @@ - (instancetype)initWithService:(DZNPhotoPickerControllerServices)service subscr { self = [super initWithBaseURL:baseURLForService(service)]; if (self) { - + _service = service; _subscription = subscription; - + self.requestSerializer = [AFJSONRequestSerializer serializer]; self.responseSerializer = [AFHTTPResponseSerializer serializer]; - + [[AFNetworkActivityIndicatorManager sharedManager] setEnabled:YES]; - + [self configureHTTPHeader]; } return self; @@ -47,24 +47,24 @@ - (instancetype)initWithService:(DZNPhotoPickerControllerServices)service subscr - (void)configureHTTPHeader { NSString *consumerKey = [self consumerKey]; - + if (!consumerKey) { return; } - + NSString *accessToken = [self accessToken]; - + // Add basic auth to Bing service if (self.service == DZNPhotoPickerControllerServiceBingImages) { - + //Bing requires basic auth with password and user name as the consumer key. [self.requestSerializer setAuthorizationHeaderFieldWithUsername:consumerKey password:consumerKey]; } else if (self.service == DZNPhotoPickerControllerServiceGettyImages) { - + // Getty Images requires authentification via the custom 'Api-Key' HTTP Header [self.requestSerializer setValue:consumerKey forHTTPHeaderField:@"Api-Key"]; - + if (accessToken) { // Getty Images requires basic auth with access token via the standard Authorization HTTP header as type Bearer. [self.requestSerializer setValue:[NSString stringWithFormat:@"Bearer %@", accessToken] forHTTPHeaderField:@"Authorization"]; @@ -93,19 +93,19 @@ - (NSString *)credentialIdentifier - (NSString *)accessToken { NSString *identifier = [self credentialIdentifier]; - + if (!identifier) { return nil; } - + AFOAuthCredential *credential = [AFOAuthCredential retrieveCredentialWithIdentifier:identifier]; - + // If still found but expired, the credential is deleted and returns nil if (credential.isExpired) { [AFOAuthCredential deleteCredentialWithIdentifier:identifier]; return nil; } - + return credential.accessToken; } @@ -119,16 +119,16 @@ - (NSDictionary *)tagsParamsWithKeyword:(NSString *)keyword NSAssert(keyword, @"'keyword' cannot be nil for %@", NSStringFromService(self.service)); NSAssert([self consumerKey], @"'consumerKey' cannot be nil for %@", NSStringFromService(self.service)); NSAssert([self consumerSecret], @"'consumerSecret' cannot be nil for %@", NSStringFromService(self.service)); - + NSMutableDictionary *params = [NSMutableDictionary new]; [params setObject:[self consumerKey] forKey:keyForAPIConsumerKey(self.service)]; [params setObject:keyword forKey:keyForSearchTag(self.service)]; - + if (self.service == DZNPhotoPickerControllerServiceFlickr) { [params setObject:tagSearchUrlPathForService(self.service) forKey:@"method"]; [params setObject:@"json" forKey:@"format"]; } - + return params; } @@ -140,27 +140,27 @@ - (NSDictionary *)photosParamsWithKeyword:(NSString *)keyword page:(NSInteger)pa if (isConsumerSecretRequiredForService(self.service)) { NSAssert([self consumerSecret], @"'consumerSecret' cannot be nil for %@", NSStringFromService(self.service)); } - + NSMutableDictionary *params = [NSMutableDictionary new]; - + if (isConsumerKeyInParametersRequiredForService(self.service)) { [params setObject:[self consumerKey] forKey:keyForAPIConsumerKey(self.service)]; } - + //Bing requires parameters to be wrapped in '' values. if (self.service == DZNPhotoPickerControllerServiceBingImages) { [params setObject:[NSString stringWithFormat:@"'%@'", keyword] forKey:keyForSearchTerm(self.service)]; } else { [params setObject:keyword forKey:keyForSearchTerm(self.service)]; } - + if (keyForSearchResultPerPage(self.service)) { [params setObject:@(resultPerPage) forKey:keyForSearchResultPerPage(self.service)]; } if (self.service == DZNPhotoPickerControllerService500px || self.service == DZNPhotoPickerControllerServiceFlickr || self.service == DZNPhotoPickerControllerServiceGettyImages) { [params setObject:@(page) forKey:@"page"]; } - + if (self.service == DZNPhotoPickerControllerService500px) { [params setObject:@[@(2),@(4)] forKey:@"image_size"]; @@ -171,6 +171,7 @@ - (NSDictionary *)photosParamsWithKeyword:(NSString *)keyword page:(NSInteger)pa [params setObject:photoSearchUrlPathForService(self.service) forKey:@"method"]; [params setObject:@"json" forKey:@"format"]; [params setObject:@"photos" forKey:@"media"]; + [params setObject:@"relevance" forKey:@"sort"]; [params setObject:@(YES) forKey:@"in_gallery"]; [params setObject:@(1) forKey:@"safe_search"]; [params setObject:@(1) forKey:@"content_type"]; @@ -185,7 +186,7 @@ - (NSDictionary *)photosParamsWithKeyword:(NSString *)keyword page:(NSInteger)pa else if (self.service == DZNPhotoPickerControllerServiceBingImages) { [params setObject:@"'Moderate'" forKey:@"Adult"]; - + //Default to size medium. Size Large causes some buggy behavior with download times. [params setObject:@"'Size:Medium'" forKey:@"ImageFilters"]; } @@ -195,23 +196,23 @@ - (NSDictionary *)photosParamsWithKeyword:(NSString *)keyword page:(NSInteger)pa [params setObject:@"photography" forKey:@"graphical_styles"]; [params setObject:@"true" forKey:@"exclude_nudity"]; } - + return params; } - (NSData *)processData:(NSData *)data { if (self.service == DZNPhotoPickerControllerServiceFlickr) { - + NSString *string = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; NSString *responsePrefix = @"jsonFlickrApi("; - + if ([string rangeOfString:responsePrefix].location != NSNotFound) { string = [[string stringByReplacingOccurrencesOfString:responsePrefix withString:@""] stringByReplacingOccurrencesOfString:@")" withString:@""]; return [string dataUsingEncoding:NSUTF8StringEncoding]; } } - + return data; } @@ -219,20 +220,20 @@ - (NSArray *)parseObjects:(Class)class withJSON:(NSDictionary *)json { NSString *keyPath = keyPathForObjectName(self.service, [class name]); NSMutableArray *objects = [NSMutableArray arrayWithArray:[json valueForKeyPath:keyPath]]; - + if ([[class name] isEqualToString:[DZNPhotoTag name]]) { - + if (self.service == DZNPhotoPickerControllerServiceFlickr) { NSString *keyword = [json valueForKeyPath:@"tags.source"]; if (keyword) [objects insertObject:@{keyForSearchTagContent(self.service):keyword} atIndex:0]; } - + return [DZNPhotoTag photoTagListFromService:self.service withResponse:objects]; } else if ([[class name] isEqualToString:[DZNPhotoMetadata name]]) { return [DZNPhotoMetadata metadataListWithResponse:objects service:self.service]; } - + return nil; } @@ -242,10 +243,10 @@ - (NSArray *)parseObjects:(Class)class withJSON:(NSDictionary *)json - (void)setCredentialIdentifier:(NSString *)identifier service:(DZNPhotoPickerControllerServices)service { NSAssert(identifier, @"'identifier' cannot be nil"); - + [[NSUserDefaults standardUserDefaults] setObject:identifier forKey:NSUserDefaultsUniqueKey(service, DZNPhotoServiceCredentialIdentifier)]; [[NSUserDefaults standardUserDefaults] synchronize]; - + [self configureHTTPHeader]; } @@ -255,7 +256,7 @@ - (void)setCredentialIdentifier:(NSString *)identifier service:(DZNPhotoPickerCo - (void)searchTagsWithKeyword:(NSString *)keyword completion:(DZNHTTPRequestCompletion)completion { NSString *path = tagSearchUrlPathForService(self.service); - + NSDictionary *params = [self tagsParamsWithKeyword:keyword]; [self getObject:[DZNPhotoTag class] path:path params:params completion:completion]; } @@ -271,12 +272,12 @@ - (void)searchPhotosWithKeyword:(NSString *)keyword page:(NSInteger)page resultP - (void)getObject:(Class)class path:(NSString *)path params:(NSDictionary *)params completion:(DZNHTTPRequestCompletion)completion { _loading = YES; - + if (isAuthenticationRequiredForService(self.service) && ![self accessToken]) { [self authenticateWithClientKey:[self consumerKey] secret:[self consumerSecret] completion:^(NSString *accessToken, NSError *error) { - + if (!error) { [self getObject:class path:path params:params completion:completion]; } @@ -287,7 +288,7 @@ - (void)getObject:(Class)class path:(NSString *)path params:(NSDictionary *)para }]; return; } - + if (self.service == DZNPhotoPickerControllerServiceInstagram) { NSString *keyword = [params objectForKey:keyForSearchTerm(self.service)]; NSString *encodedKeyword = [keyword stringByReplacingOccurrencesOfString:@" " withString:@""]; @@ -296,18 +297,20 @@ - (void)getObject:(Class)class path:(NSString *)path params:(NSDictionary *)para else if (self.service == DZNPhotoPickerControllerServiceFlickr) { path = @""; } - + + NSLog(@"GET %@ %@", path, params); + [self GET:path parameters:params success:^(AFHTTPRequestOperation *operation, id response) { - + NSData *data = [self processData:response]; NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableLeaves | NSJSONReadingAllowFragments error:nil]; - + _loading = NO; if (completion) completion([self parseObjects:class withJSON:json], nil); - + } failure:^(AFHTTPRequestOperation *operation, NSError *error) { - + _loading = NO; if (completion) completion(nil, error); }]; @@ -325,15 +328,15 @@ - (void)authenticateWithClientKey:(NSString *)key secret:(NSString *)secret comp { NSURL *baseURL = baseURLForService(self.service); GROAuth2SessionManager *sessionManager = [GROAuth2SessionManager managerWithBaseURL:baseURL clientID:key secret:secret]; - + NSString *path = authUrlPathForService(self.service); - + NSDictionary *params = @{}; - + if (self.service == DZNPhotoPickerControllerServiceGettyImages) { params = @{@"grant_type":@"client_credentials"}; } - + [sessionManager authenticateUsingOAuthWithPath:path parameters:params success:^(AFOAuthCredential *credential) { From 6bf2c0b5db22957a5754fb011c99df5b587ab6c4 Mon Sep 17 00:00:00 2001 From: Steve Lawrence Date: Tue, 6 Jan 2015 14:47:12 -0800 Subject: [PATCH 02/14] bump SDWebImage version to match our fork --- DZNPhotoPickerController.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DZNPhotoPickerController.podspec b/DZNPhotoPickerController.podspec index 58791cda..c24acd6d 100644 --- a/DZNPhotoPickerController.podspec +++ b/DZNPhotoPickerController.podspec @@ -19,7 +19,7 @@ Pod::Spec.new do |s| s.subspec 'Core' do |ss| ss.source_files = 'Source/Classes/Core/*.{h,m}' - ss.dependency 'SDWebImage', '3.7' + ss.dependency 'SDWebImage', '3.7.1' ss.dependency 'DZNEmptyDataSet', '1.3.3' ss.dependency 'MBProgressHUD', '0.9' From f1eb929a2e0a16f32b613c89f8f4f3a66cfad6a0 Mon Sep 17 00:00:00 2001 From: Steve Lawrence Date: Tue, 6 Jan 2015 16:45:39 -0800 Subject: [PATCH 03/14] workaround for blank image workaround for getting a blank image when returning to a previously selected image --- Source/Classes/Core/DZNPhotoDisplayViewController.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Classes/Core/DZNPhotoDisplayViewController.m b/Source/Classes/Core/DZNPhotoDisplayViewController.m index efa6656a..5da67676 100644 --- a/Source/Classes/Core/DZNPhotoDisplayViewController.m +++ b/Source/Classes/Core/DZNPhotoDisplayViewController.m @@ -519,7 +519,11 @@ - (void)selectedItemAtIndexPath:(NSIndexPath *)indexPath [controller.activityIndicator startAnimating]; __weak DZNPhotoEditorViewController *_controller = controller; - + + // workaround for bug where image is blank when returning to the same image + // remove any previously cached image + [[SDImageCache sharedImageCache] removeImageForKey:[metadata.sourceURL absoluteString] fromDisk:NO]; + [controller.imageView sd_setImageWithPreviousCachedImageWithURL:metadata.sourceURL andPlaceholderImage:nil options:SDWebImageCacheMemoryOnly|SDWebImageProgressiveDownload|SDWebImageRetryFailed From ea81b5b081015995bcf5a5c770e0bc2329a685a7 Mon Sep 17 00:00:00 2001 From: hansimmmi Date: Sun, 11 Jan 2015 22:47:55 -0800 Subject: [PATCH 04/14] search result crash fix --- Source/Classes/Core/DZNPhotoDisplayViewController.m | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Source/Classes/Core/DZNPhotoDisplayViewController.m b/Source/Classes/Core/DZNPhotoDisplayViewController.m index 5da67676..0cb75135 100644 --- a/Source/Classes/Core/DZNPhotoDisplayViewController.m +++ b/Source/Classes/Core/DZNPhotoDisplayViewController.m @@ -53,6 +53,7 @@ @implementation DZNPhotoDisplayViewController @synthesize loadButton = _loadButton; @synthesize activityIndicator = _activityIndicator; @synthesize searchTimer = _searchTimer; +static bool showResult; - (instancetype)init { @@ -603,6 +604,9 @@ - (void)shouldSearchPhotos:(NSString *)keyword if ((_previousService != _selectedService || _searchBar.text != keyword) && keyword.length > 1) { _previousService = _selectedService; + showResult = YES; + [_searchBar becomeFirstResponder]; + [_searchBar resignFirstResponder]; [self resetPhotos]; [self searchPhotosWithKeyword:keyword]; } @@ -850,7 +854,11 @@ - (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar - (BOOL)searchBarShouldEndEditing:(UISearchBar *)searchBar { - return YES; + if (showResult) { + return YES; + }else { + return NO; + } } - (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText From b4dc06dcf263886282c7052531be74eb10dd01a0 Mon Sep 17 00:00:00 2001 From: hansimmmi Date: Sun, 11 Jan 2015 23:22:00 -0800 Subject: [PATCH 05/14] bug fix --- Source/Classes/Core/DZNPhotoPickerController.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Classes/Core/DZNPhotoPickerController.m b/Source/Classes/Core/DZNPhotoPickerController.m index 31d53842..b45d490e 100644 --- a/Source/Classes/Core/DZNPhotoPickerController.m +++ b/Source/Classes/Core/DZNPhotoPickerController.m @@ -214,7 +214,9 @@ - (void)cancelPicker:(id)sender if (self.delegate && [self.delegate respondsToSelector:@selector(photoPickerControllerDidCancel:)]) { [self.delegate photoPickerControllerDidCancel:self]; + [self dismissViewControllerAnimated:YES completion:nil]; } + } From 5fa705438458451cfee20a41d687786e5b8d82ad Mon Sep 17 00:00:00 2001 From: hansimmmi Date: Sun, 11 Jan 2015 23:28:43 -0800 Subject: [PATCH 06/14] bug fix --- Source/Classes/Core/DZNPhotoDisplayViewController.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Classes/Core/DZNPhotoDisplayViewController.m b/Source/Classes/Core/DZNPhotoDisplayViewController.m index 0cb75135..1df8beb1 100644 --- a/Source/Classes/Core/DZNPhotoDisplayViewController.m +++ b/Source/Classes/Core/DZNPhotoDisplayViewController.m @@ -848,6 +848,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath - (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar { + showResult = NO; [self stopLoadingRequest]; return YES; } From b12dbbd5ff706215e1589a2386df157dbc214070 Mon Sep 17 00:00:00 2001 From: hansimmmi Date: Sun, 11 Jan 2015 23:38:34 -0800 Subject: [PATCH 07/14] version bump --- DZNPhotoPickerController.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DZNPhotoPickerController.podspec b/DZNPhotoPickerController.podspec index c24acd6d..59a4e9c4 100644 --- a/DZNPhotoPickerController.podspec +++ b/DZNPhotoPickerController.podspec @@ -1,4 +1,4 @@ -@version = "1.6.2" +@version = "1.6.3" Pod::Spec.new do |s| s.name = "DZNPhotoPickerController" From a3d0380f1f433927ea218cfb3d82f90af463712b Mon Sep 17 00:00:00 2001 From: hansimmmi Date: Mon, 12 Jan 2015 00:51:33 -0800 Subject: [PATCH 08/14] modification --- Source/Classes/Core/DZNPhotoDisplayViewController.h | 1 + Source/Classes/Core/DZNPhotoDisplayViewController.m | 5 +++++ Source/Classes/Core/DZNPhotoPickerController.m | 1 + 3 files changed, 7 insertions(+) diff --git a/Source/Classes/Core/DZNPhotoDisplayViewController.h b/Source/Classes/Core/DZNPhotoDisplayViewController.h index e6f529db..411438e8 100644 --- a/Source/Classes/Core/DZNPhotoDisplayViewController.h +++ b/Source/Classes/Core/DZNPhotoDisplayViewController.h @@ -30,5 +30,6 @@ Stops any loading HTTP request. */ - (void)stopLoadingRequest; +- (void)hideKeyboard; @end diff --git a/Source/Classes/Core/DZNPhotoDisplayViewController.m b/Source/Classes/Core/DZNPhotoDisplayViewController.m index 1df8beb1..dfa5e26e 100644 --- a/Source/Classes/Core/DZNPhotoDisplayViewController.m +++ b/Source/Classes/Core/DZNPhotoDisplayViewController.m @@ -861,6 +861,11 @@ - (BOOL)searchBarShouldEndEditing:(UISearchBar *)searchBar return NO; } } +- (void) hideKeyboard { + showResult = YES; + [_searchBar becomeFirstResponder]; + [_searchBar resignFirstResponder]; +} - (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText { diff --git a/Source/Classes/Core/DZNPhotoPickerController.m b/Source/Classes/Core/DZNPhotoPickerController.m index b45d490e..5700fb4f 100644 --- a/Source/Classes/Core/DZNPhotoPickerController.m +++ b/Source/Classes/Core/DZNPhotoPickerController.m @@ -208,6 +208,7 @@ - (void)cancelPicker:(id)sender } if (self.cancellationBlock) { + [controller hideKeyboard]; self.cancellationBlock(self); return; } From 7611360bc779df600839233e4af0e983567d9c5f Mon Sep 17 00:00:00 2001 From: Philip Yun Date: Tue, 13 Jan 2015 10:47:10 -0800 Subject: [PATCH 09/14] bug fix --- Source/Classes/Core/DZNPhotoDisplayViewController.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Classes/Core/DZNPhotoDisplayViewController.m b/Source/Classes/Core/DZNPhotoDisplayViewController.m index dfa5e26e..7cf97569 100644 --- a/Source/Classes/Core/DZNPhotoDisplayViewController.m +++ b/Source/Classes/Core/DZNPhotoDisplayViewController.m @@ -863,8 +863,7 @@ - (BOOL)searchBarShouldEndEditing:(UISearchBar *)searchBar } - (void) hideKeyboard { showResult = YES; - [_searchBar becomeFirstResponder]; - [_searchBar resignFirstResponder]; + [_searchBar resignFirstResponder]; } - (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText From 16825620c8d1f0091eb83946cbd4901cfc9b2ed1 Mon Sep 17 00:00:00 2001 From: hansimmmi Date: Tue, 13 Jan 2015 22:33:36 -0800 Subject: [PATCH 10/14] version bump --- DZNPhotoPickerController.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DZNPhotoPickerController.podspec b/DZNPhotoPickerController.podspec index 59a4e9c4..60f74008 100644 --- a/DZNPhotoPickerController.podspec +++ b/DZNPhotoPickerController.podspec @@ -1,4 +1,4 @@ -@version = "1.6.3" +@version = "1.6.4" Pod::Spec.new do |s| s.name = "DZNPhotoPickerController" From 8b84071e487968c29461b8e4d7a6407945dc0522 Mon Sep 17 00:00:00 2001 From: Dennis Lysenko Date: Wed, 1 Jul 2015 22:45:42 -0400 Subject: [PATCH 11/14] fix bug where hitting cancel twice would get the keyboard stuck --- Source/Classes/Core/DZNPhotoPickerController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Classes/Core/DZNPhotoPickerController.m b/Source/Classes/Core/DZNPhotoPickerController.m index 96db2b15..c0de1985 100644 --- a/Source/Classes/Core/DZNPhotoPickerController.m +++ b/Source/Classes/Core/DZNPhotoPickerController.m @@ -208,8 +208,8 @@ - (void)cancelPicker:(id)sender [controller stopLoadingRequest]; } + [controller hideKeyboard]; if (self.cancellationBlock) { - [controller hideKeyboard]; self.cancellationBlock(self); return; } From a3010864c2197de1ee3a704ed06d1596e6954abb Mon Sep 17 00:00:00 2001 From: Dennis Lysenko Date: Wed, 1 Jul 2015 22:48:05 -0400 Subject: [PATCH 12/14] update podspec version just so it will update in our project --- DZNPhotoPickerController.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DZNPhotoPickerController.podspec b/DZNPhotoPickerController.podspec index 60f74008..b1227d15 100644 --- a/DZNPhotoPickerController.podspec +++ b/DZNPhotoPickerController.podspec @@ -1,4 +1,4 @@ -@version = "1.6.4" +@version = "1.6.5" Pod::Spec.new do |s| s.name = "DZNPhotoPickerController" From 61de1cae20fe957c89a99f78b04a9805a8941ed7 Mon Sep 17 00:00:00 2001 From: Dennis Lysenko Date: Fri, 24 Jul 2015 15:17:46 -0400 Subject: [PATCH 13/14] fix include for AFNetworking for xcode 7 beta --- Source/Classes/Services/DZNPhotoServiceClient.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Classes/Services/DZNPhotoServiceClient.h b/Source/Classes/Services/DZNPhotoServiceClient.h index efbb06d3..20240158 100644 --- a/Source/Classes/Services/DZNPhotoServiceClient.h +++ b/Source/Classes/Services/DZNPhotoServiceClient.h @@ -8,7 +8,7 @@ // Licence: MIT-Licence // -#import "AFNetworking.h" +#import #import "DZNPhotoServiceClientProtocol.h" #import "DZNPhotoPickerControllerConstants.h" From 1cca86b00c44a235988d9df765280d83c07870c0 Mon Sep 17 00:00:00 2001 From: Dennis Lysenko Date: Fri, 24 Jul 2015 15:30:14 -0400 Subject: [PATCH 14/14] Revert "fix include for AFNetworking for xcode 7 beta" This reverts commit 61de1cae20fe957c89a99f78b04a9805a8941ed7. --- Source/Classes/Services/DZNPhotoServiceClient.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Classes/Services/DZNPhotoServiceClient.h b/Source/Classes/Services/DZNPhotoServiceClient.h index 20240158..efbb06d3 100644 --- a/Source/Classes/Services/DZNPhotoServiceClient.h +++ b/Source/Classes/Services/DZNPhotoServiceClient.h @@ -8,7 +8,7 @@ // Licence: MIT-Licence // -#import +#import "AFNetworking.h" #import "DZNPhotoServiceClientProtocol.h" #import "DZNPhotoPickerControllerConstants.h"