Skip to content

Commit

Permalink
Release v5.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Button Bot authored and pavelpantus committed Sep 5, 2017
1 parent 17a8faf commit 8a81c6a
Show file tree
Hide file tree
Showing 27 changed files with 96 additions and 11 deletions.
Binary file modified Button.bundle/BTNAuthViewController.nib
Binary file not shown.
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/BTNLoadingSheetController.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/BTNWebViewSheetController.nib
Binary file not shown.
4 changes: 2 additions & 2 deletions Button.bundle/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<key>CFBundleIdentifier</key>
<string>com.usebutton.sdk</string>
<key>CFBundleShortVersionString</key>
<string>5.18.0</string>
<string>5.19.0</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>iPhoneOS</string>
</array>
<key>CFBundleVersion</key>
<string>5.18.0</string>
<string>5.19.0</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
Expand Down
Binary file modified Button.framework/Versions/A/Button
Binary file not shown.
15 changes: 15 additions & 0 deletions Button.framework/Versions/A/Headers/BTNMerchantAction.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
@import Foundation;

/// Represents result of merchant action flow.
typedef NS_ENUM(NSInteger, BTNMerchantActionResult) {
/// An error occurred and Button could not proceed.
BTNMerchantActionResultError = 0,
/**
No action was presented.
@discussion This result is posted only when shouldPresentUnattributedAction on BTNMerchantActionSettings was set to NO.
*/
BTNMerchantActionResultNoActionPresented,
/// Button finished presenting an unattributed action.
BTNMerchantActionResultUnattributedActionEnded,
/// Button finished presenting an attributed action.
BTNMerchantActionResultAttributedActionEnded
};

NS_ASSUME_NONNULL_BEGIN

@interface BTNMerchantAction : NSObject
Expand Down
32 changes: 32 additions & 0 deletions Button.framework/Versions/A/Headers/BTNMerchantActionSettings.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
@import Foundation;

NS_ASSUME_NONNULL_BEGIN

/**
Settings object is used to customize merchant action flow.
*/
@interface BTNMerchantActionSettings : NSObject

/**
Unavailable. Use -initWithPresentUnattributedAction: instead.
@return Returns nil.
*/
- (instancetype)init NS_UNAVAILABLE;


/**
Initializes a new settings instance.
@param shouldPresentUnattributedAction Indicates whether Button should present unattributed action to user.
*/
- (instancetype)initWithPresentUnattributedAction:(BOOL)shouldPresentUnattributedAction;


/**
Indicates whether Button should present unattributed action to user.
Set YES and Button will present unattributed action in a web view. No-op otherwise.
*/
@property (nonatomic, assign, readonly) BOOL shouldPresentUnattributedAction;

@end

NS_ASSUME_NONNULL_END
45 changes: 41 additions & 4 deletions Button.framework/Versions/A/Headers/Button.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,18 +166,55 @@



///-------------------------
/// @name Presenting Actions
///-------------------------
///----------------------------------
/// @name Presenting Merchant Actions
///----------------------------------


/**
Presents the merchant action after exchanging for a Button attributed action. If the merchant action cannot be exchanged, it will be presented in an in-app web view.
Pass your URL to Button via BTNMerchantAction.
When starting a BTNMerchantAction, Button will take control and detect whether the URL
can be exchanged for a commissioned Checkout Flow including installing the merchant app if necessary.
If Button cannot exchange the URL, it will open it in an in-app web view.
@param merchantAction The merchant link url and additional associated data.
*/
- (void)presentMerchantAction:(nonnull BTNMerchantAction *)merchantAction;


/**
Similar to -presentMerchantAction:
Includes a callback to know when the Button Checkout Flow has completed.
@param merchantAction The merchant link url and additional associated data.
@param completionHandler A block to be executed upon completion.
@discussion The completion handler takes two parameters
- result Result code of presentation.
- error An error will be present if an error occurred.
*/
- (void)presentMerchantAction:(nonnull BTNMerchantAction *)merchantAction
completion:(nonnull void (^)(BTNMerchantActionResult result, NSError * __nullable error))completionHandler;


/**
Similar to -presentMerchantAction:
Includes a BTNMerchantActionSettings to configure whether Button should handle URLs that it cannot commission.
@param merchantAction The merchant link url and additional associated data.
@param settings Merchant Action presentation settings.
@param completionHandler A block to be executed upon completion.
@discussion The completion handler takes two parameters
- result Result code of presentation.
- error An error will be present if an error occurred.
*/
- (void)presentMerchantAction:(nonnull BTNMerchantAction *)merchantAction
settings:(nonnull BTNMerchantActionSettings *)settings
completion:(nonnull void (^)(BTNMerchantActionResult result, NSError * __nullable error))completionHandler;


///-------------------------
/// @name Deep Link Handling
///-------------------------
Expand Down
1 change: 1 addition & 0 deletions Button.framework/Versions/A/Headers/Button_Public.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// Actions
#import "BTNAppAction.h"
#import "BTNMerchantAction.h"
#import "BTNMerchantActionSettings.h"

// Orders
#import "BTNLineItem.h"
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.18.0"
s.version = "5.19.0"
s.summary = "Button iOS SDK."

s.description = <<-DESC
Expand Down
4 changes: 2 additions & 2 deletions Examples/Objective-C/Button-CocoaPods/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Button (5.18.0)
- Button (5.19.0)

DEPENDENCIES:
- Button (from `../../../`)
Expand All @@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: "../../../"

SPEC CHECKSUMS:
Button: 11c623cc38a484dbec09f4c935abda7864651c03
Button: 2242fa04061f42e5972c52f859d473fae0b5e165

PODFILE CHECKSUM: b62f13ba0b325840ecb1fce12a2403f20a0d77fe

Expand Down
4 changes: 2 additions & 2 deletions Examples/Swift/Button-CocoaPods/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Button (5.18.0)
- Button (5.19.0)

DEPENDENCIES:
- Button (from `../../../`)
Expand All @@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: "../../../"

SPEC CHECKSUMS:
Button: 11c623cc38a484dbec09f4c935abda7864651c03
Button: 2242fa04061f42e5972c52f859d473fae0b5e165

PODFILE CHECKSUM: 293fc3ed68c3abd2dca24349c320c6f18e87dbfc

Expand Down

0 comments on commit 8a81c6a

Please sign in to comment.