Skip to content

Commit

Permalink
Release v5.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Button Bot authored and wessmith committed Feb 2, 2017
1 parent 5f04fa0 commit 41c121d
Show file tree
Hide file tree
Showing 27 changed files with 41 additions and 15 deletions.
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 modified 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.
18 changes: 12 additions & 6 deletions Button.framework/Versions/A/Headers/BTNAppAction.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,20 @@ typedef NS_ENUM(NSUInteger, BTNAppInstallState) {

/**
Invokes the Button commerce card flow or a preview action if one exists.
@discussion For integrations that only customize the button preview, call
this method when a user taps your custom button preview.
@warning Deprecated. Use `-invokeAction` instead.
*/
- (void)invokePreviewAction DEPRECATED_MSG_ATTRIBUTE("Use 'invokeAction' instead.");


/**
Invokes the default action associated with this AppAction instance.
@discussion Call this method when you're ready to invoke this action if:
1. This object was fetched via `-fetchAppActionWithMerchantId:completion:`
2. Your app has a custom Button preview that should display the Button inventory using the UI supplied by the SDK.
@see @c -invokeActionForListItem: If you've built out your own custom inventory UI.
@note Users will be sent to the destination application or through the
Attended Install flow if the destination application is not installed.
*/
- (void)invokePreviewAction;
- (void)invokeAction;


/**
Expand Down
6 changes: 6 additions & 0 deletions Button.framework/Versions/A/Headers/BTNAppActionMeta.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#import "BTNModelObject.h"

@class BTNImage;

/**
App action metadata objects contain information about the referrer,
destination app, and expiration of an app action.
Expand Down Expand Up @@ -31,6 +33,10 @@
@property (nullable, nonatomic, copy, readonly) NSString *appDisplayName;


/// The icon of the app represented by an app action.
@property (nullable, nonatomic, copy, readonly) BTNImage *appIcon;


/**
Indicated whether or not the action has expired.
@return YES is the action is expired, otherwise NO.
Expand Down
14 changes: 14 additions & 0 deletions Button.framework/Versions/A/Headers/Button.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,20 @@
completion:(nonnull void(^)(BTNAppAction * __nullable appAction, NSError * __nullable error))completionHandler;


/**
Fetches an app action for a merchantId.
@param merchantId The identifier for a merchant (e.g. org-xxxxxxxxxxxx).
@param completionHandler A block to be executed upon completion.
@discussion The completion handler takes two parameters
- appAction A BTNAppAction instance or nil if no action was found for the provided merchantId.
- error An error will be present if a network or server error occurred.
@note Returned actions are NOT cached.
*/
- (void)fetchAppActionWithMerchantId:(nonnull NSString *)merchantId
completion:(nonnull void(^)(BTNAppAction * __nullable appAction, NSError * __nullable error))completionHandler;


///-------------------------
/// @name Deep Link Handling
Expand Down
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.4.1"
s.version = "5.5.0"
s.summary = "Button iOS SDK."

s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion Examples/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<false/>
</dict>
<key>NSLocationWhenInUseUsageDescription</key>
<string>We need your location to get you a ride.</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "QA"
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
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.4.1)
- Button (5.5.0)

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

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

SPEC CHECKSUMS:
Button: c39ad3fbb7cae55569ae57770daabeea9ec92c70
Button: 3ee96e30d1e20bec50c29eac290abc24b529b753

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.4.1)
- Button (5.5.0)

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

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

SPEC CHECKSUMS:
Button: c39ad3fbb7cae55569ae57770daabeea9ec92c70
Button: 3ee96e30d1e20bec50c29eac290abc24b529b753

PODFILE CHECKSUM: 293fc3ed68c3abd2dca24349c320c6f18e87dbfc

Expand Down

0 comments on commit 41c121d

Please sign in to comment.