From 22e8b7058d774135e047ec42d3da0272a7175f97 Mon Sep 17 00:00:00 2001 From: Sergio Azua Date: Wed, 21 Jun 2017 15:10:53 -0500 Subject: [PATCH] MOB-644 add video to reviews, isSyndicated Q&A --- BVSDK.podspec | 2 +- BVSDK.xcodeproj/project.pbxproj | 18 ++- BVSDK/Info.plist | 4 +- Examples/BVSDKDemo/Podfile.lock | 12 +- .../Base.lproj/Main.storyboard | 12 +- .../RootViewController.swift | 5 +- Examples/Conversations/Swift/Podfile.lock | 6 +- Pod/BVCommon/BVSDKConstants.h | 4 +- .../GenericConversationsResult/BVAnswer.h | 1 + .../GenericConversationsResult/BVAnswer.m | 4 + .../GenericConversationsResult/BVQuestion.h | 1 + .../GenericConversationsResult/BVQuestion.m | 7 +- .../Submission/BVBaseUGCSubmission.h | 1 + .../Submission/Review/BVReviewSubmission.h | 8 + .../Submission/Review/BVReviewSubmission.m | 141 ++++++++++-------- .../Video/BVUploadableYouTubeVideo.h | 17 +++ .../Video/BVUploadableYouTubeVideo.m | 22 +++ .../DisplayTests/ProfileDisplayTests.swift | 2 +- .../ReviewSubmissionTests.swift | 23 ++- 19 files changed, 204 insertions(+), 86 deletions(-) create mode 100644 Pod/BVConversations/Submission/Video/BVUploadableYouTubeVideo.h create mode 100644 Pod/BVConversations/Submission/Video/BVUploadableYouTubeVideo.m diff --git a/BVSDK.podspec b/BVSDK.podspec index 72d07a7f..187b86d5 100644 --- a/BVSDK.podspec +++ b/BVSDK.podspec @@ -9,7 +9,7 @@ Pod::Spec.new do |s| s.name = "BVSDK" - s.version = '6.7.1' + s.version = '6.7.2' 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/BVSDK.xcodeproj/project.pbxproj b/BVSDK.xcodeproj/project.pbxproj index cd117218..06c2bbef 100644 --- a/BVSDK.xcodeproj/project.pbxproj +++ b/BVSDK.xcodeproj/project.pbxproj @@ -44,6 +44,8 @@ 15D4F83F1DF5EC3C00E6B30D /* ph.png in Resources */ = {isa = PBXBuildFile; fileRef = 15D4F83E1DF5EC3C00E6B30D /* ph.png */; }; 870F13421E490B5200D46BE6 /* BVCurationsPostViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 870F133C1E490B5200D46BE6 /* BVCurationsPostViewController.m */; }; 870F13641E490B7B00D46BE6 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 870F13631E490B7B00D46BE6 /* Assets.xcassets */; }; + 87252B091EF46FA10011C845 /* BVUploadableYouTubeVideo.h in Headers */ = {isa = PBXBuildFile; fileRef = 87252B071EF46FA10011C845 /* BVUploadableYouTubeVideo.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 87252B0A1EF46FA10011C845 /* BVUploadableYouTubeVideo.m in Sources */ = {isa = PBXBuildFile; fileRef = 87252B081EF46FA10011C845 /* BVUploadableYouTubeVideo.m */; }; 873DC48E1E7482840080FA03 /* BVAnalyticEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 873DC4791E7482840080FA03 /* BVAnalyticEvent.h */; settings = {ATTRIBUTES = (Public, ); }; }; 873DC48F1E7482840080FA03 /* BVAnalyticEventManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 873DC47A1E7482840080FA03 /* BVAnalyticEventManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; 873DC4901E7482840080FA03 /* BVAnalyticEventManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 873DC47B1E7482840080FA03 /* BVAnalyticEventManager.m */; }; @@ -551,6 +553,8 @@ 870F133F1E490B5200D46BE6 /* BVCurationsUICollectionViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = BVCurationsUICollectionViewCell.h; path = Pod/BVCurationsUI/BVCurationsUICollectionViewCell.h; sourceTree = SOURCE_ROOT; }; 870F13401E490B5200D46BE6 /* BVCurationsUICollectionViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = BVCurationsUICollectionViewCell.m; path = Pod/BVCurationsUI/BVCurationsUICollectionViewCell.m; sourceTree = SOURCE_ROOT; }; 870F13631E490B7B00D46BE6 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Pod/BVCurationsUI/Assets/Assets.xcassets; sourceTree = SOURCE_ROOT; }; + 87252B071EF46FA10011C845 /* BVUploadableYouTubeVideo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = BVUploadableYouTubeVideo.h; path = Video/BVUploadableYouTubeVideo.h; sourceTree = ""; }; + 87252B081EF46FA10011C845 /* BVUploadableYouTubeVideo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = BVUploadableYouTubeVideo.m; path = Video/BVUploadableYouTubeVideo.m; sourceTree = ""; }; 873DC4791E7482840080FA03 /* BVAnalyticEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = BVAnalyticEvent.h; path = BVPixelEvents/BVAnalyticEvent.h; sourceTree = ""; }; 873DC47A1E7482840080FA03 /* BVAnalyticEventManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = BVAnalyticEventManager.h; path = BVPixelEvents/BVAnalyticEventManager.h; sourceTree = ""; }; 873DC47B1E7482840080FA03 /* BVAnalyticEventManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = BVAnalyticEventManager.m; path = BVPixelEvents/BVAnalyticEventManager.m; sourceTree = ""; }; @@ -1073,6 +1077,15 @@ path = BVCurationsUI; sourceTree = ""; }; + 87252B0B1EF46FF40011C845 /* Video */ = { + isa = PBXGroup; + children = ( + 87252B071EF46FA10011C845 /* BVUploadableYouTubeVideo.h */, + 87252B081EF46FA10011C845 /* BVUploadableYouTubeVideo.m */, + ); + name = Video; + sourceTree = ""; + }; 875410A71E1F10DF006C5C6E /* BVExtensionNotifications */ = { isa = PBXGroup; children = ( @@ -1599,10 +1612,11 @@ 87F2DB9F1DAD585E00FB43F3 /* BVSubmissionResponse.m */, 87F2DB891DAD585E00FB43F3 /* Answer */, 87EDAFCE1EDDCEAD00FA07C0 /* Comment */, - 87F2DBA01DAD585E00FB43F3 /* Photo */, 87A02B5D1E0963020002701B /* Feedback */, + 87F2DBA01DAD585E00FB43F3 /* Photo */, 87F2DBA61DAD585E00FB43F3 /* Question */, 87F2DBAF1DAD585E00FB43F3 /* Review */, + 87252B0B1EF46FF40011C845 /* Video */, ); path = Submission; sourceTree = ""; @@ -2244,6 +2258,7 @@ 87EDAFD51EDDD1FD00FA07C0 /* BVSubmittedComment.h in Headers */, 87EDAFD91EDDD3E200FA07C0 /* BVCommentSubmissionErrorResponse.h in Headers */, 877AD2941EE1D134006C7070 /* BVBaseUGCSubmission.h in Headers */, + 87252B091EF46FA10011C845 /* BVUploadableYouTubeVideo.h in Headers */, 87EDAFCC1EDDC9F400FA07C0 /* BVCommentSubmission.h in Headers */, 87F2DC241DAD585E00FB43F3 /* BVContextualInterests.h in Headers */, 87F2DC251DAD585E00FB43F3 /* BVGMBLSighting.h in Headers */, @@ -2479,6 +2494,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + 87252B0A1EF46FA10011C845 /* BVUploadableYouTubeVideo.m in Sources */, 15BE4D231E55EFCD00C12B57 /* BVSDKConfiguration.m in Sources */, 870F13421E490B5200D46BE6 /* BVCurationsPostViewController.m in Sources */, 153550AF1E898CF000C62D90 /* BVCurationsUICollectionViewCell.m in Sources */, diff --git a/BVSDK/Info.plist b/BVSDK/Info.plist index a1b713f3..83f8a6a0 100644 --- a/BVSDK/Info.plist +++ b/BVSDK/Info.plist @@ -15,9 +15,9 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 6.7.1 + 6.7.2 CFBundleVersion - 6.7.1 + 6.7.2 LSApplicationCategoryType NSPrincipalClass diff --git a/Examples/BVSDKDemo/Podfile.lock b/Examples/BVSDKDemo/Podfile.lock index 62544bc7..e52afaf5 100644 --- a/Examples/BVSDKDemo/Podfile.lock +++ b/Examples/BVSDKDemo/Podfile.lock @@ -5,16 +5,16 @@ PODS: - Bolts/AppLinks (1.8.4): - Bolts/Tasks - Bolts/Tasks (1.8.4) - - BVSDK/BVCurations (6.7.1): + - BVSDK/BVCurations (6.7.2): - BVSDK/Core - - BVSDK/BVLocation (6.7.1): + - BVSDK/BVLocation (6.7.2): - BVSDK/Core - - BVSDK/BVNotifications (6.7.1): + - BVSDK/BVNotifications (6.7.2): - BVSDK/BVLocation - BVSDK/BVPIN - - BVSDK/BVPIN (6.7.1): + - BVSDK/BVPIN (6.7.2): - BVSDK/Core - - BVSDK/Core (6.7.1) + - BVSDK/Core (6.7.2) - Crashlytics (3.8.3): - Fabric (~> 1.6.3) - Fabric (1.6.11) @@ -88,7 +88,7 @@ CHECKOUT OPTIONS: SPEC CHECKSUMS: Bolts: 8a7995239dbe724f9cba2248b766d48b7ebdd322 - BVSDK: 5e06b8e158dd2e67cf09315185b33a62dcad15b7 + BVSDK: b3377e17a07986866234a2a22ed3e083ed373d66 Crashlytics: 2b6dbe138a42395577cfa73dfa1aa7248cadf39e Fabric: 5911403591946b8228ab1c51d98f1d7137e863c6 FBSDKCoreKit: 894b2b6eda6a4c8c4204e92e59cc355709ef045c diff --git a/Examples/Conversations/Swift/ConversationsExample/Base.lproj/Main.storyboard b/Examples/Conversations/Swift/ConversationsExample/Base.lproj/Main.storyboard index 56bee87b..65683885 100644 --- a/Examples/Conversations/Swift/ConversationsExample/Base.lproj/Main.storyboard +++ b/Examples/Conversations/Swift/ConversationsExample/Base.lproj/Main.storyboard @@ -1,11 +1,11 @@ - + - + @@ -52,8 +52,8 @@