Skip to content

Commit

Permalink
- Conversations for Stores support
Browse files Browse the repository at this point in the history
- Rich Push notification support for requesting store reviews
- Notification suppor integrated with BVLocation module (store geofence support)
- Fix some max limit bugs in Conversations Display requests for Reviews and Bulk Ratings
- Bump SDK version to 5.0
  • Loading branch information
Tim Kelly committed Oct 28, 2016
1 parent e59efa5 commit 4f8d9a3
Show file tree
Hide file tree
Showing 184 changed files with 7,806 additions and 777 deletions.
17 changes: 10 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,24 @@ git:
before_install:
# - gem update cocoapods --no-ri --no-rdoc
- gem install cocoapods -v '1.0.1'
- gem install xcpretty --no-ri --no-rdoc
- gem install xcpretty --no-ri --no-rdoc --no-document --quiet
- SIMULATOR_ID=$(xcrun instruments -s | grep -o "iPhone 6 (10.0) \[.*\]" | grep -o "\[.*\]" | sed "s/^\[\(.*\)\]$/\1/")


script:
- set -o pipefail
- open -a "simulator" --args -CurrentDeviceUDID $SIMULATOR_ID

# Sanity test to make sure BVSDKDemo installs dependencies and builds OK
- cd ./Examples/BVSDKDemo
- pod update
- cd ../..
- xcodebuild -workspace ./Examples/BVSDKDemo/BVSDKDemo.xcworkspace -scheme "BVSDKDemo" -configuration Debug -sdk iphonesimulator | xcpretty -c


# Run the unit tests on the available simulator
- cd ./Tests
- pod update
- pod install
- cd ..
- xcodebuild test -workspace ./Tests/BVSDK.xcworkspace -scheme "BVSDK-Tests" -configuration Debug -sdk iphonesimulator -destination "platform=iOS Simulator,id=$SIMULATOR_ID,OS=10.0" | xcpretty -c

# Sanity test to make sure BVSDKDemo installs dependencies and builds OK
- cd ./Examples/BVSDKDemo
- pod update
- cd ../..
- xcodebuild -workspace ./Examples/BVSDKDemo/BVSDKDemo.xcworkspace -scheme "BVSDKDemo" -configuration Debug -sdk iphonesimulator | egrep -A 5 "(error|warning):"
10 changes: 9 additions & 1 deletion BVSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Pod::Spec.new do |s|
s.name = "BVSDK"
s.version = '4.3.0'
s.version = '5.0.0'
s.homepage = 'https://developer.bazaarvoice.com'
s.license = { :type => 'Commercial', :text => 'See https://developer.bazaarvoice.com/API_Terms_of_Use' }
s.author = { 'Bazaarvoice' => '[email protected]' }
Expand All @@ -27,6 +27,8 @@ Pod::Spec.new do |s|

s.subspec 'Core' do |core|
core.source_files = 'Pod/BVCommon/**/*.{h,m}', 'Pod/BVConversations/**/*.{h,m}', 'Pod/BVAnalytics/**/*.{h,m}'
core.resources = ['Pod/BVCommon/Notifications/mapThumbnail.png']

end

s.subspec 'BVConversations' do |conversations|
Expand Down Expand Up @@ -54,4 +56,10 @@ Pod::Spec.new do |s|
location.library = 'z'
location.dependency 'BVSDK/Core'
end

s.subspec 'BVNotifications' do |notifications|
notifications.source_files = 'Pod/BVNotifications/**/*.{h,m}', 'Pod/BVAnalytics/**/*.{h,m}', 'Pod/BVConversations/**/*.{h,m}', 'Pod/BVCommon/*.{h,m}','Pod/BVCommon/Private/*.{h,m}','Pod/BVCommon/Notifications/BVNotificationCenterObject.h','Pod/BVCommon/Notifications/BVReviewRichNotificationCenter.{h,m}','Pod/BVCommon/Notifications/BVNotificationConstants.h'
notifications.resources = ['Pod/BVNotifications/BVStoreReviewNotificationViewController.xib']
end

end
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11201" systemVersion="15G1004" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="M4Y-Lb-cyx">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11161"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Notification View Controller-->
<scene sceneID="cwh-vc-ff4">
<objects>
<viewController id="M4Y-Lb-cyx" userLabel="Notification View Controller" customClass="NotificationViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="pRP-DF-rgR"/>
<viewControllerLayoutGuide type="bottom" id="MHx-1Q-7GX"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" simulatedAppContext="notificationCenter" id="cXC-RW-vBY">
<rect key="frame" x="0.0" y="0.0" width="320" height="217"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.93725490199999995" green="0.93725490199999995" blue="0.93725490199999995" alpha="1" colorSpace="calibratedRGB"/>
</view>
<extendedEdge key="edgesForExtendedLayout"/>
<nil key="simulatedStatusBarMetrics"/>
<nil key="simulatedTopBarMetrics"/>
<nil key="simulatedBottomBarMetrics"/>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<size key="freeformSize" width="320" height="217"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="vXp-U4-Rya" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="116.8" y="120.98950524737631"/>
</scene>
</scenes>
</document>
43 changes: 43 additions & 0 deletions Examples/BVSDKDemo/BVReviewContentExtension/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>BVReviewContentExtension</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>34</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
<dict>
<key>UNNotificationExtensionCategory</key>
<string>bvReviewCustomContent</string>
<key>UNNotificationExtensionInitialContentSizeRatio</key>
<real>1</real>
</dict>
<key>NSExtensionMainStoryboard</key>
<string>MainInterface</string>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.usernotifications.content-extension</string>
</dict>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// NotificationViewController.h
// BVReviewContentExtension
//
// Copyright © 2016 Bazaarvoice. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BVStoreReviewNotificationViewController.h"

@interface NotificationViewController : BVStoreReviewNotificationViewController

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// NotificationViewController.m
// BVReviewContentExtension
//
// Copyright © 2016 Bazaarvoice. All rights reserved.
//

#import "NotificationViewController.h"
#import <UserNotifications/UserNotifications.h>
#import <UserNotificationsUI/UserNotificationsUI.h>
#import <MapKit/MapKit.h>

@interface NotificationViewController ()

@end

@implementation NotificationViewController

-(void)viewDidLoad {
[super viewDidLoad];

}

@end
Loading

0 comments on commit 4f8d9a3

Please sign in to comment.