diff --git a/BVSDK.podspec b/BVSDK.podspec index e187b6f7..bd6bf290 100644 --- a/BVSDK.podspec +++ b/BVSDK.podspec @@ -9,7 +9,7 @@ Pod::Spec.new do |s| s.name = "BVSDK" - s.version = '5.0.1' + s.version = '5.1.0' s.homepage = 'https://developer.bazaarvoice.com' s.license = { :type => 'Commercial', :text => 'See https://developer.bazaarvoice.com/API_Terms_of_Use' } s.author = { 'Bazaarvoice' => 'support@bazaarvoice.com' } diff --git a/Examples/Curations/Obj-C/CurationsExample/Base.lproj/Main.storyboard b/Examples/Curations/Obj-C/CurationsExample/Base.lproj/Main.storyboard index 61788a49..73eab440 100644 --- a/Examples/Curations/Obj-C/CurationsExample/Base.lproj/Main.storyboard +++ b/Examples/Curations/Obj-C/CurationsExample/Base.lproj/Main.storyboard @@ -1,9 +1,10 @@ - + - + + @@ -15,11 +16,10 @@ - + - @@ -33,13 +33,12 @@ - - + diff --git a/Examples/Curations/Obj-C/CurationsExample/DemoCollectionViewCell.xib b/Examples/Curations/Obj-C/CurationsExample/DemoCollectionViewCell.xib index 3ae5dc77..360defec 100644 --- a/Examples/Curations/Obj-C/CurationsExample/DemoCollectionViewCell.xib +++ b/Examples/Curations/Obj-C/CurationsExample/DemoCollectionViewCell.xib @@ -1,8 +1,9 @@ - + - + + @@ -14,11 +15,8 @@ - - - + - diff --git a/Examples/Curations/Obj-C/Podfile.lock b/Examples/Curations/Obj-C/Podfile.lock index 4caa9895..07520d9c 100644 --- a/Examples/Curations/Obj-C/Podfile.lock +++ b/Examples/Curations/Obj-C/Podfile.lock @@ -1,7 +1,7 @@ PODS: - - BVSDK/BVCurations (4.2.2): + - BVSDK/BVCurations (5.1.0): - BVSDK/Core - - BVSDK/Core (4.2.2) + - BVSDK/Core (5.1.0) - SDWebImage (3.7.6): - SDWebImage/Core (= 3.7.6) - SDWebImage/Core (3.7.6) @@ -15,7 +15,7 @@ EXTERNAL SOURCES: :path: ../../../ SPEC CHECKSUMS: - BVSDK: 78e5a89a469cd87ffab6e63da5ed7358796a00f2 + BVSDK: deb3f6dfd6842d57e2f2fe78365feaea5b69acaf SDWebImage: c325cf02c30337336b95beff20a13df489ec0ec9 PODFILE CHECKSUM: 861490fad65c8c2b6f41ebe6e5e30e85b782a193 diff --git a/Examples/Curations/Swift/CurationsExample/Base.lproj/Main.storyboard b/Examples/Curations/Swift/CurationsExample/Base.lproj/Main.storyboard index 9e6bf964..5882c998 100644 --- a/Examples/Curations/Swift/CurationsExample/Base.lproj/Main.storyboard +++ b/Examples/Curations/Swift/CurationsExample/Base.lproj/Main.storyboard @@ -1,9 +1,10 @@ - + - + + @@ -15,12 +16,11 @@ - + - - + @@ -30,7 +30,7 @@ - + diff --git a/Examples/Curations/Swift/CurationsExample/DemoCollectionViewCell.xib b/Examples/Curations/Swift/CurationsExample/DemoCollectionViewCell.xib index 5a5492ac..b931dd13 100644 --- a/Examples/Curations/Swift/CurationsExample/DemoCollectionViewCell.xib +++ b/Examples/Curations/Swift/CurationsExample/DemoCollectionViewCell.xib @@ -1,8 +1,9 @@ - + - + + @@ -14,11 +15,11 @@ - - + + + - diff --git a/Examples/Curations/Swift/CurationsExample/ViewController.swift b/Examples/Curations/Swift/CurationsExample/ViewController.swift index d46cd45c..364613ec 100644 --- a/Examples/Curations/Swift/CurationsExample/ViewController.swift +++ b/Examples/Curations/Swift/CurationsExample/ViewController.swift @@ -44,10 +44,9 @@ class ViewController: UIViewController, UICollectionViewDataSource, UICollection super.viewWillLayoutSubviews() let layout = (curationsCollectionView.collectionViewLayout) as! UICollectionViewFlowLayout - layout.itemSize = CGSizeMake(curationsCollectionView.bounds.height, curationsCollectionView.bounds.height) layout.scrollDirection = UICollectionViewScrollDirection.Vertical - layout.itemSize = CGSizeMake(curationsCollectionView.bounds.width / 2, curationsCollectionView.bounds.width / 2) + layout.itemSize = CGSizeMake(curationsCollectionView.bounds.size.width / 2, curationsCollectionView.bounds.size.width / 2) layout.minimumInteritemSpacing = 0 layout.minimumLineSpacing = 0 diff --git a/Examples/Curations/Swift/Podfile.lock b/Examples/Curations/Swift/Podfile.lock index d655543d..05e2290e 100644 --- a/Examples/Curations/Swift/Podfile.lock +++ b/Examples/Curations/Swift/Podfile.lock @@ -1,7 +1,7 @@ PODS: - - BVSDK/BVCurations (4.2.2): + - BVSDK/BVCurations (5.1.0): - BVSDK/Core - - BVSDK/Core (4.2.2) + - BVSDK/Core (5.1.0) - SDWebImage (3.8.2): - SDWebImage/Core (= 3.8.2) - SDWebImage/Core (3.8.2) @@ -15,7 +15,7 @@ EXTERNAL SOURCES: :path: ../../../ SPEC CHECKSUMS: - BVSDK: 78e5a89a469cd87ffab6e63da5ed7358796a00f2 + BVSDK: deb3f6dfd6842d57e2f2fe78365feaea5b69acaf SDWebImage: 098e97e6176540799c27e804c96653ee0833d13c PODFILE CHECKSUM: 0e2a5addcaf7b532e1957c0c4fd55a1aaa08ebb8 diff --git a/Pod/BVCommon/BVCore.h b/Pod/BVCommon/BVCore.h index 2b93457c..438485e7 100644 --- a/Pod/BVCommon/BVCore.h +++ b/Pod/BVCommon/BVCore.h @@ -18,11 +18,11 @@ /// Provides the master version of the SDK. -#define BV_SDK_VERSION @"5.0.1" +#define BV_SDK_VERSION @"5.1.0" /// Conversation SDK Version #define SDK_HEADER_NAME @"X-UA-BV-SDK" -#define SDK_HEADER_VALUE @"IOS_SDK_V501" +#define SDK_HEADER_VALUE @"IOS_SDK_V510" /// Error domain for NSError results, when present. #define BVErrDomain @"com.bvsdk.bazaarvoice" diff --git a/Pod/BVCurations/BVCurationsAddPostRequest.h b/Pod/BVCurations/BVCurationsAddPostRequest.h index 84444d9b..c44d258e 100644 --- a/Pod/BVCurations/BVCurationsAddPostRequest.h +++ b/Pod/BVCurations/BVCurationsAddPostRequest.h @@ -98,10 +98,10 @@ NS_ASSUME_NONNULL_BEGIN @property double unixTimeStamp; /*! The longitude attributed to the post. */ -//@property double longitude; +@property double longitude; /*! The latitude attributed to the post. */ -//@property double latitude; +@property double latitude; /*! The UIImage asset to be uploaded to Curations */ @property UIImage *image; @@ -114,4 +114,4 @@ NS_ASSUME_NONNULL_BEGIN @end -NS_ASSUME_NONNULL_END \ No newline at end of file +NS_ASSUME_NONNULL_END diff --git a/Pod/BVCurations/BVCurationsAddPostRequest.m b/Pod/BVCurations/BVCurationsAddPostRequest.m index b41e5dc1..d84c501c 100644 --- a/Pod/BVCurations/BVCurationsAddPostRequest.m +++ b/Pod/BVCurations/BVCurationsAddPostRequest.m @@ -19,8 +19,8 @@ - (id)initWithGroups:(NSArray*)groups withAuthorAlias:(NSString *)al _token = token; _text = text; _unixTimeStamp = 0; -// _latitude = 0; -// _longitude = 0; + _latitude = 0; + _longitude = 0; _photos = [NSArray array]; _links = [NSArray array]; @@ -79,15 +79,15 @@ - (NSDictionary *)toDictionary { [params setObject:[NSNumber numberWithDouble:self.unixTimeStamp]forKey:@"timestamp"]; } -// if (self.longitude != 0 && self.latitude != 0){ -// -// NSNumber *longNum = [NSNumber numberWithDouble:self.longitude]; -// NSNumber *latNum = [NSNumber numberWithDouble:self.latitude]; -// -// NSDictionary *coordinatesDict = [NSDictionary dictionaryWithObjectsAndKeys:latNum, @"x", longNum, @"y", nil]; -// -// [params setObject:coordinatesDict forKey:@"coordinates"]; -// } + if (self.longitude != 0 && self.latitude != 0){ + + NSNumber *longNum = [NSNumber numberWithDouble:self.longitude]; + NSNumber *latNum = [NSNumber numberWithDouble:self.latitude]; + + NSDictionary *coordinatesDict = [NSDictionary dictionaryWithObjectsAndKeys:latNum, @"x", longNum, @"y", nil]; + + [params setObject:coordinatesDict forKey:@"coordinates"]; + } if (self.links.count > 0){ NSMutableArray *linksArray = [NSMutableArray array];