Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
This release provides updates to all our example projects and unit te…
…sts.

- The unit tests have been updated to use OHHTTPStubs for mocking various responses and failure cases.

- The /Examples folder has been updated to include a ‘BVSDKDemo’ project, which by default runs all mock data. This example is mean to show you a full implementation of all the BVSDK modules in a single native experience.

- All other components in the /Examples folder have been updated for each BVSDK module (Advertising, Conversations, Curations, Product Recommendations) to show you the simplest configuration possible to get you up and running quickly. Developers can drop in their API Keys/IDs into the demos to get a quick sanity test of the integration.
  • Loading branch information
Tim Kelly committed Jun 9, 2016
1 parent 891b501 commit 3731848
Show file tree
Hide file tree
Showing 707 changed files with 21,886 additions and 21,825 deletions.
13 changes: 6 additions & 7 deletions .gitignore
Expand Up @@ -22,12 +22,11 @@ DerivedData
# Bundler
.bundle

#Pods
Tests/Pods/*

# Removing the pods from the example projects so that deployment never needs to update the SDK inside the reference apps themselves
Examples/*/Pods/
Examples/Conversations/*/Pods/
# Ignore all Pods directories
Pods/

# ignore jekyll generated content
_site/
_site/

# ignore internal testing files
demoAppConfigs.plist
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -2,6 +2,9 @@ language: objective-c
osx_image: xcode7
podfile: ./Tests/Podfile

git:
depth: 1

script:
# - echo print xctool version
# - xctool -v
Expand Down
2 changes: 1 addition & 1 deletion BVSDK.podspec
Expand Up @@ -9,7 +9,7 @@

Pod::Spec.new do |s|
s.name = "BVSDK"
s.version = '4.0.1'
s.version = '4.0.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' }
Expand Down

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions Examples/Advertising/Obj-C/Podfile
@@ -0,0 +1,9 @@
source 'https://github.com/CocoaPods/Specs.git'

target 'TargetedAdsDemo' do

pod "BVSDK/BVAdvertising", :path => "../../../"
pod 'Google-Mobile-Ads-SDK'
pod 'MBProgressHUD', '~> 0.9.1'
pod 'FontAwesomeKit/FontAwesome'
end
@@ -1,27 +1,27 @@
PODS:
- BVSDK/BVAdvertising (3.3.0):
- BVSDK/BVAdvertising (4.0.2):
- BVSDK/Core
- BVSDK/Core (3.3.0)
- BVSDK/Core (4.0.2)
- FontAwesomeKit/Core (2.2.0)
- FontAwesomeKit/FontAwesome (2.2.0):
- FontAwesomeKit/Core
- Google-Mobile-Ads-SDK (7.7.1)
- Google-Mobile-Ads-SDK (7.8.1)
- MBProgressHUD (0.9.2)

DEPENDENCIES:
- BVSDK/BVAdvertising (from `../../`)
- BVSDK/BVAdvertising (from `../../../`)
- FontAwesomeKit/FontAwesome
- Google-Mobile-Ads-SDK (~> 7.6)
- Google-Mobile-Ads-SDK
- MBProgressHUD (~> 0.9.1)

EXTERNAL SOURCES:
BVSDK:
:path: ../../
:path: ../../../

SPEC CHECKSUMS:
BVSDK: 731e9cc69a0e5ab17b90128f333469f80f232bc3
BVSDK: 9b5bc0d7dad08f6846428627546d90f16aae85b7
FontAwesomeKit: 025fd4dd1017fe4e3f8d47b03e024deedbb33cd4
Google-Mobile-Ads-SDK: e27569901b58881d9a94b42f2c642739cfe3970a
Google-Mobile-Ads-SDK: 3c2a6656117989469bfe7645640aa1de024a4c6c
MBProgressHUD: 1569cf7ace17a8bac47aabfbb8580a49690386d1

COCOAPODS: 0.39.0
Expand Up @@ -22,7 +22,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
NSString *myClientId = @"REPLACE_ME"; // INSERT YOUR CLIEND ID!!!!
NSString *myShopperAdvertisingKey = @"REPLACE_ME"; // INSERT YOUR SHOPPER ADVERTISING KEY!!!


if (![myClientId isEqualToString:@"REPLACE_ME"] && ![myShopperAdvertisingKey isEqualToString:@"REPLACE_ME"]){


Expand Down
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="9531" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9529"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
</dependencies>
<objects>
Expand Down
Expand Up @@ -42,10 +42,10 @@
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</dict>
</plist>
Expand Up @@ -10,16 +10,13 @@
#import "UIColor+BVColor.h"
#import "BVAdTypesCell.h"
#import "BannerDemoViewController.h"
#import "LocationExample.h"
#import "InterstitialDemo.h"
#import "NativeContentAdDemoViewController.h"
#import "GeneralizedDemoViewController.h"


@interface RootViewController ()<UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>

@property InterstitialDemo* interstitialDemo;
@property LocationExample* locationListener;

@end

Expand All @@ -31,15 +28,6 @@ - (void)viewDidLoad {
self.title = @"Ads Demo";
self.view.backgroundColor = [UIColor whiteColor];

// example gimbal beacon setup, used with BVAdsSDK
// functionality not included to not include Gimbal SDK in this SDK.
// Use GimbalExample as an example of how BVAdsSDK works with Gimbal's SDK.
// GimbalExample* gimbalListener = [[GimbalExample alloc] init];

// example iBeacon/geofence setup, used with BVAdsSDK
self.locationListener = [[LocationExample alloc] init];


UIBarButtonItem* adUnitTestBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"gear.png"] style:UIBarButtonSystemItemCamera target:self action:@selector(adUnitTestButtonPressed)];
self.navigationItem.rightBarButtonItem = adUnitTestBarButtonItem;

Expand Down
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="10116" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
Expand Down
File renamed without changes.
11 changes: 0 additions & 11 deletions Examples/Advertising/Podfile

This file was deleted.

10 changes: 10 additions & 0 deletions Examples/Advertising/Swift/Podfile
@@ -0,0 +1,10 @@
platform :ios, '8.0'
use_frameworks!

target 'TargetedAdsDemo' do
pod "BVSDK/BVAdvertising", :path => "../../../"
pod 'Google-Mobile-Ads-SDK'
pod 'MBProgressHUD', '~> 0.9.1'
pod 'FontAwesomeKit/FontAwesome'
end

27 changes: 27 additions & 0 deletions Examples/Advertising/Swift/Podfile.lock
@@ -0,0 +1,27 @@
PODS:
- BVSDK/BVAdvertising (4.0.2):
- BVSDK/Core
- BVSDK/Core (4.0.2)
- FontAwesomeKit/Core (2.2.0)
- FontAwesomeKit/FontAwesome (2.2.0):
- FontAwesomeKit/Core
- Google-Mobile-Ads-SDK (7.8.1)
- MBProgressHUD (0.9.2)

DEPENDENCIES:
- BVSDK/BVAdvertising (from `../../../`)
- FontAwesomeKit/FontAwesome
- Google-Mobile-Ads-SDK
- MBProgressHUD (~> 0.9.1)

EXTERNAL SOURCES:
BVSDK:
:path: ../../../

SPEC CHECKSUMS:
BVSDK: 9b5bc0d7dad08f6846428627546d90f16aae85b7
FontAwesomeKit: 025fd4dd1017fe4e3f8d47b03e024deedbb33cd4
Google-Mobile-Ads-SDK: 3c2a6656117989469bfe7645640aa1de024a4c6c
MBProgressHUD: 1569cf7ace17a8bac47aabfbb8580a49690386d1

COCOAPODS: 0.39.0

0 comments on commit 3731848

Please sign in to comment.