Skip to content

Commit

Permalink
Release v5.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Button Bot authored and wessmith committed Dec 16, 2016
1 parent 92ff767 commit e4fd145
Show file tree
Hide file tree
Showing 31 changed files with 249 additions and 199 deletions.
17 changes: 13 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
language: objective-c

osx_image: xcode7.2
osx_image: xcode8.1

branches:
only:
- master

before_install:
- bundle
- pod install --project-directory=Tests
- bundle
- pod install --project-directory=Tests

env:
global:
- WORKSPACE="Tests/Tests.xcworkspace"
- SCHEME="Tests"
- DESTINATION="Tests"
- SDK="iphonesimulator10.1"
- DESTINATION="name=iPhone 6,OS=10.1"

script:
- xcodebuild test -workspace "Tests/Tests.xcworkspace" -scheme "Tests" -destination 'platform=iOS Simulator,name=iPhone 6,OS=9.2'
- set -o pipefail
- xcodebuild build-for-testing test-without-building -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" ONLY_ACTIVE_ARCH=YES | xcpretty -c
Binary file modified Button.bundle/BTNBaseModalController.nib
Binary file not shown.
Binary file modified Button.bundle/BTNDefaultItemButton.nib
Binary file not shown.
Binary file modified Button.bundle/BTNGroupNameCell.nib
Binary file not shown.
Binary file modified Button.bundle/BTNInstallBannerView.nib
Binary file not shown.
Binary file modified Button.bundle/BTNInteractiveButtonContentView.nib
Binary file not shown.
Binary file modified Button.bundle/BTNInteractiveButtonInventoryCell.nib
Binary file not shown.
Binary file modified Button.bundle/BTNInventoryItemCell.nib
Binary file not shown.
Binary file modified Button.bundle/BTNInventoryListCell.nib
Binary file not shown.
Binary file modified Button.bundle/BTNInventoryPreviewView.nib
Binary file not shown.
Binary file modified Button.bundle/BTNInventoryView.nib
Binary file not shown.
Binary file modified Button.bundle/BTNLocationRequestView.nib
Binary file not shown.
Binary file modified Button.bundle/BTNNavigationHeaderView.nib
Binary file not shown.
Binary file modified Button.bundle/BTNSandboxAppStoreController.nib
Binary file not shown.
Binary file modified Button.bundle/BTNSimulatorInstallView.nib
Binary file not shown.
Binary file modified Button.bundle/BTNTextBannerView.nib
Binary file not shown.
Binary file added Button.bundle/BTNWebViewInstallAppController.nib
Binary file not shown.
Binary file modified Button.bundle/Button-Info.plist
Binary file not shown.
Binary file modified Button.bundle/Info.plist
Binary file not shown.
Binary file modified Button.framework/Versions/A/Button
Binary file not shown.
2 changes: 1 addition & 1 deletion Button.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "Button"
s.version = "5.2.1"
s.version = "5.3.0"
s.summary = "Button iOS SDK."

s.description = <<-DESC
Expand Down
6 changes: 3 additions & 3 deletions Examples/Objective-C/Button-CocoaPods/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
PODS:
- Button (5.2.1)
- Button (5.3.0)

DEPENDENCIES:
- Button (from `../../../`)

EXTERNAL SOURCES:
Button:
:path: "../../../"
:path: ../../../

SPEC CHECKSUMS:
Button: b3cfc666eb439e682576938d8e0108d51c83678a
Button: 553956b88caa385a2004c746273b4cb12a36369d

PODFILE CHECKSUM: b62f13ba0b325840ecb1fce12a2403f20a0d77fe

Expand Down
6 changes: 3 additions & 3 deletions Examples/Swift/Button-CocoaPods/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
PODS:
- Button (5.2.1)
- Button (5.3.0)

DEPENDENCIES:
- Button (from `../../../`)

EXTERNAL SOURCES:
Button:
:path: "../../../"
:path: ../../../

SPEC CHECKSUMS:
Button: b3cfc666eb439e682576938d8e0108d51c83678a
Button: 553956b88caa385a2004c746273b4cb12a36369d

PODFILE CHECKSUM: 293fc3ed68c3abd2dca24349c320c6f18e87dbfc

Expand Down
2 changes: 1 addition & 1 deletion Tests/Podfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
platform :ios, '7.0'
platform :ios, '8.0'

target 'PublicAPITests' do
pod 'Button', :path => '..'
Expand Down
10 changes: 6 additions & 4 deletions Tests/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Button (4.11.0)
- Button (5.3.0)
- Expecta (1.0.5)
- OCMock (3.3)
- Specta (1.0.5)
Expand All @@ -12,12 +12,14 @@ DEPENDENCIES:

EXTERNAL SOURCES:
Button:
:path: ..
:path: ".."

SPEC CHECKSUMS:
Button: e521c3f9010cbf12166b96bd5b2c2068a94894bf
Button: 553956b88caa385a2004c746273b4cb12a36369d
Expecta: e1c022fcd33910b6be89c291d2775b3fe27a89fe
OCMock: d68685bde31f69cb61d518dcb39269080c78b5ed
Specta: ac94d110b865115fe60ff2c6d7281053c6f8e8a2

COCOAPODS: 0.39.0
PODFILE CHECKSUM: df8037b70f379db94ca50690b96641b47183710c

COCOAPODS: 1.1.1
Original file line number Diff line number Diff line change
Expand Up @@ -189,38 +189,6 @@

});

describe(@"iconColor", ^{

it(@"is declared", ^{
expect(appearanceMock).to.respondTo(@selector(iconColor));
});

it(@"takes and returns the expected argument types", ^{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
UIColor *iconColor = [appearanceMock iconColor];
[appearanceMock setIconColor:iconColor];
#pragma clang diagnostic pop
});

});

describe(@"highlightedIconColor", ^{

it(@"is declared", ^{
expect(appearanceMock).to.respondTo(@selector(highlightedIconColor));
});

it(@"takes and returns the expected argument types", ^{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
UIColor *color = [appearanceMock highlightedIconColor];
[appearanceMock setHighlightedIconColor:color];
#pragma clang diagnostic pop
});

});

describe(@"normalBackgroundColor", ^{

it(@"is declared", ^{
Expand Down
44 changes: 44 additions & 0 deletions Tests/PublicAPITests/ButtonDeprecatedProtocol_PublicAPISpec.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#import "Specta/Specta.h"
#import <Expecta/Expecta.h>
#import "OCMock.h"
#import "NSObject+BTNMock.h"
#import "NSObject+BTNClassProperties.h"
#import "Button/Button.h"

SpecBegin(ButtonDeprecatedProtocol_PublicAPI)

context(@"Button Deprecated Protocol", ^{

__block id buttonDeprecatedMock;

beforeAll(^{
buttonDeprecatedMock = OCMProtocolMock(@protocol(ButtonDeprecated));
});

afterAll(^{
[buttonDeprecatedMock stopMocking];
});

describe(@"reportOrderWithId:currencyCode:lineItems:", ^{

it(@"is declared", ^{
expect(buttonDeprecatedMock)
.to
.respondTo(@selector(reportOrderWithId:currencyCode:lineItems:));
});

});

describe(@"reportOrderWithValue:orderId:currencyCode:", ^{

it(@"is declared", ^{
expect(buttonDeprecatedMock)
.to
.respondTo(@selector(reportOrderWithValue:orderId:currencyCode:));
});

});

});

SpecEnd
124 changes: 124 additions & 0 deletions Tests/PublicAPITests/ButtonProtocol_PublicAPISpec.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
#import "Specta/Specta.h"
#import <Expecta/Expecta.h>
#import "OCMock.h"
#import "NSObject+BTNMock.h"
#import "NSObject+BTNClassProperties.h"
#import "Button/Button.h"

SpecBegin(ButtonProtocol_PublicAPI)

context(@"Button Protocol", ^{

__block id buttonProtocolMock;

beforeAll(^{
buttonProtocolMock = OCMProtocolMock(@protocol(Button));
});

afterAll(^{
[buttonProtocolMock stopMocking];
});

describe(@"configureWithApplicationId:completion:", ^{

it(@"is declared", ^{
expect(buttonProtocolMock)
.to
.respondTo(@selector(configureWithApplicationId:completion:));
});

});

describe(@"configureWithApplicationId:userId:completion:", ^{

it(@"is declared", ^{
expect(buttonProtocolMock)
.to
.respondTo(@selector(configureWithApplicationId:userId:completion:));
});

});

describe(@"willDisplayButtonWithId:context:completion:", ^{

it(@"is declared", ^{
expect(buttonProtocolMock)
.to
.respondTo(@selector(willDisplayButtonWithId:context:completion:));
});

});

describe(@"fetchAppActionWithButtonId:context:completion:", ^{

it(@"is declared", ^{
expect(buttonProtocolMock)
.to
.respondTo(@selector(fetchAppActionWithButtonId:context:completion:));
});

});

describe(@"continueUserActivity:", ^{

it(@"is declared", ^{
expect(buttonProtocolMock)
.to
.respondTo(@selector(continueUserActivity:));
});

});

describe(@"handleURL:", ^{

it(@"is declared", ^{
expect(buttonProtocolMock)
.to
.respondTo(@selector(handleURL:));
});

});

describe(@"referrerToken", ^{

it(@"is declared", ^{
expect(buttonProtocolMock)
.to
.respondTo(@selector(referrerToken));
});

});

describe(@"setUserIdentifier:", ^{

it(@"is declared", ^{
expect(buttonProtocolMock)
.to
.respondTo(@selector(setUserIdentifier:));
});

});

describe(@"reportEventWithName:properties:", ^{

it(@"is declared", ^{
expect(buttonProtocolMock)
.to
.respondTo(@selector(reportEventWithName:properties:));
});

});

describe(@"setDebugLoggingEnabled:", ^{

it(@"is declared", ^{
expect(buttonProtocolMock)
.to
.respondTo(@selector(setDebugLoggingEnabled:));
});

});

});

SpecEnd
Loading

0 comments on commit e4fd145

Please sign in to comment.