Skip to content

Commit

Permalink
Public release 6.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
button-bot committed Feb 21, 2020
1 parent 908eeb3 commit 90ed6f7
Show file tree
Hide file tree
Showing 119 changed files with 19,611 additions and 33 deletions.
Binary file modified Button.bundle/BTNAutofillAccessoryView.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified Button.bundle/BTNAutofillAccessoryView.nib/objects-13.0+.nib
Binary file not shown.
Binary file modified Button.bundle/BTNAutofillAccessoryView.nib/runtime.nib
Binary file not shown.
Binary file modified Button.bundle/BTNBaseModalController.nib/objects-13.0+.nib
Binary file not shown.
Binary file modified Button.bundle/BTNBaseModalController.nib/runtime.nib
Binary file not shown.
Binary file modified Button.bundle/BTNDefaultItemButton.nib/objects-13.0+.nib
Binary file not shown.
Binary file modified Button.bundle/BTNDefaultItemButton.nib/runtime.nib
Binary file not shown.
Binary file modified Button.bundle/BTNGroupNameCell.nib/objects-12.3+.nib
Binary file not shown.
Binary file modified Button.bundle/BTNGroupNameCell.nib/objects-13.0+.nib
Binary file not shown.
Binary file modified Button.bundle/BTNGroupNameCell.nib/runtime.nib
Binary file not shown.
Binary file modified Button.bundle/BTNInstallBannerView.nib/objects-13.0+.nib
Binary file not shown.
Binary file modified Button.bundle/BTNInstallBannerView.nib/runtime.nib
Binary file not shown.
Binary file modified Button.bundle/BTNInstallCardView.nib/objects-13.0+.nib
Binary file not shown.
Binary file modified Button.bundle/BTNInstallCardView.nib/runtime.nib
Binary file not shown.
Binary file not shown.
Binary file modified Button.bundle/BTNInteractiveButtonContentView.nib/runtime.nib
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Button.bundle/BTNInteractiveButtonInventoryCell.nib/runtime.nib
Binary file not shown.
Binary file modified Button.bundle/BTNInventoryItemCell.nib/objects-13.0+.nib
Binary file not shown.
Binary file modified Button.bundle/BTNInventoryItemCell.nib/runtime.nib
Binary file not shown.
Binary file modified Button.bundle/BTNInventoryListCell.nib/objects-12.3+.nib
Binary file not shown.
Binary file modified Button.bundle/BTNInventoryListCell.nib/objects-13.0+.nib
Binary file not shown.
Binary file modified Button.bundle/BTNInventoryListCell.nib/runtime.nib
Binary file not shown.
Binary file modified Button.bundle/BTNInventoryView.nib/objects-13.0+.nib
Binary file not shown.
Binary file modified Button.bundle/BTNInventoryView.nib/runtime.nib
Binary file not shown.
Binary file modified Button.bundle/BTNNavigationHeaderView.nib/objects-13.0+.nib
Binary file not shown.
Binary file modified Button.bundle/BTNNavigationHeaderView.nib/runtime.nib
Binary file not shown.
Binary file modified Button.bundle/BTNSandboxAppStoreController.nib/objects-13.0+.nib
Binary file not shown.
Binary file modified Button.bundle/BTNSandboxAppStoreController.nib/runtime.nib
Binary file not shown.
Binary file modified Button.bundle/BTNSimulatorInstallView.nib/objects-13.0+.nib
Binary file not shown.
Binary file modified Button.bundle/BTNSimulatorInstallView.nib/runtime.nib
Binary file not shown.
Binary file modified Button.bundle/BTNTextBannerView.nib/objects-13.0+.nib
Binary file not shown.
Binary file modified Button.bundle/BTNTextBannerView.nib/runtime.nib
Binary file not shown.
Binary file modified Button.bundle/BTNTextCardView.nib/objects-13.0+.nib
Binary file not shown.
Binary file modified Button.bundle/BTNTextCardView.nib/runtime.nib
Binary file not shown.
Binary file modified Button.bundle/BTNToolbarView.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified Button.bundle/BTNToolbarView.nib/objects-13.0+.nib
Binary file not shown.
Binary file modified Button.bundle/BTNToolbarView.nib/runtime.nib
Binary file not shown.
Binary file modified Button.bundle/BTNWebViewSheetController.nib/objects-13.0+.nib
Binary file not shown.
Binary file modified Button.bundle/BTNWebViewSheetController.nib/runtime.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>6.20.0</string>
<string>6.21.0</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>iPhoneOS</string>
</array>
<key>CFBundleVersion</key>
<string>400</string>
<string>421</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.
50 changes: 50 additions & 0 deletions Button.framework/Versions/A/Headers/BTNBrowserConfig.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
@import Foundation;

NS_ASSUME_NONNULL_BEGIN

/**
Configuration class used to provide customizable parameters to the Browser.
*/
NS_SWIFT_NAME(BrowserConfig)
@interface BTNBrowserConfig : NSObject

/**
An optional token to be associated with all downstream orders, transactions and webhooks. (Max 100 chars.)
*/
@property (nullable, nonatomic, readwrite, copy) NSString *pubRef;


/**
The title to show in the Browser header chrome.
*/
@property (nullable, nonatomic, readwrite, copy) NSString *title;


/**
The subtitle to show in the Browser header chrome.
*/
@property (nullable, nonatomic, readwrite, copy) NSString *subtitle;


/**
Initializes a Browser Config object with a `pubRef`.
@param pubRef The token to be associated with all downstream orders, transactions and webhooks. (Max 100 chars.)
@return A configuration object populated with the provided `pubRef`.
*/
- (instancetype)initWithPubRef:(NSString *)pubRef;


/**
Initializes a Browser Config object with a `title` and an optional `subtitle`.
@param title The title to show in the Browser header chrome.
@param subtitle The optional subtitle to show in the Browser header chrome.
@return A configuration object populated with the provided `title` and `subtitle`.
*/
- (instancetype)initWithTitle:(NSString *)title subtitle:(nullable NSString *)subtitle;


@end

NS_ASSUME_NONNULL_END
7 changes: 7 additions & 0 deletions Button.framework/Versions/A/Headers/BTNUserProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ NS_SWIFT_NAME(User)
*/
- (void)setState:(NSString *)state;

/**
Sets a country for the user's autofill profile
@param country The user's country.
*/
- (void)setCountry:(NSString *)country;


/**
Sets a postal code for the user's autofill profile.
Expand Down
68 changes: 59 additions & 9 deletions Button.framework/Versions/A/Headers/Button.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface Button : NSObject

/**
The current SDK version (e.g. @"6.0.0")
The current SDK version (e.g. @"6.0.0").
*/
@property (class, readonly) NSString *version;

Expand All @@ -24,13 +24,16 @@ NS_ASSUME_NONNULL_BEGIN
Configures Button with your `applicationId`.
@note
Get your application Id from from the [Button Dashboard](https://app.usebutton.com)
Get your application Id from from the [Button Dashboard](https://app.usebutton.com).
@params applicationId Your applicationId (required)
@params applicationId Your applicationId (required).
@param completionHandler A block to be executed upon completion (optional).
*/
+ (void)configureWithApplicationId:(NSString *)applicationId
completion:(nullable void(^)(NSError * __nullable error))completionHandler NS_SWIFT_NAME(configure(applicationId:completion:));
completion:(nullable void(^)(NSError * __nullable error))completionHandler
NS_SWIFT_NAME(configure(applicationId:completion:));



///-----------------------
/// @name Opening a URL
Expand All @@ -39,15 +42,62 @@ NS_ASSUME_NONNULL_BEGIN
/**
Opens a URL in the Browser. Works with direct and non-direct partnerships.
@param url The URL to open (required)
@param title A title to set on the browser (optional)
@param subtitle A subtitle to set on the browser (optional)
@param completionHandler A completion that is invoked after opening the URL (optional)
@param url The URL to open (required).
*/
+ (void)openURL:(NSURL *)url
NS_SWIFT_NAME(open(url:));


/**
Opens a URL in the Browser with a configuration object. Works with direct and non-direct partnerships.
@param url The URL to open (required).
@param config An object used to configure the Browser (optional).
*/
+ (void)openURL:(NSURL *)url
config:(nullable BTNBrowserConfig *)config
NS_SWIFT_NAME(open(url:config:));


/**
Opens a URL in the Browser with a completion handler. Works with direct and non-direct partnerships.
@param url The URL to open (required).
@param completionHandler A block that is invoked after opening the URL (optional).
*/
+ (void)openURL:(NSURL *)url
completion:(nullable void(^)(NSError * __nullable error))completionHandler
NS_SWIFT_NAME(open(url:completion:));


/**
Opens a URL in the Browser with a configuration object and a completion handler.
Works with direct and non-direct partnerships.
@param url The URL to open (required).
@param config An object used to configure the Browser (optional).
@param completionHandler A block that is invoked after opening the URL (optional).
*/
+ (void)openURL:(NSURL *)url
config:(nullable BTNBrowserConfig *)config
completion:(nullable void(^)(NSError * __nullable error))completionHandler
NS_SWIFT_NAME(open(url:config:completion:));


/**
Opens a URL in the Browser. Works with direct and non-direct partnerships.
@param url The URL to open (required).
@param title A title to set on the Browser (optional).
@param subtitle A subtitle to set on the Browser (optional).
@param completionHandler A block that is invoked after opening the URL (optional).
*/
+ (void)openURL:(NSURL *)url
title:(nullable NSString *)title
subtitle:(nullable NSString *)subtitle
completion:(nullable void(^)(NSError * __nullable error))completionHandler NS_SWIFT_NAME(open(url:title:subtitle:completion:));
completion:(nullable void(^)(NSError * __nullable error))completionHandler
NS_SWIFT_NAME(open(url:title:subtitle:completion:))
DEPRECATED_MSG_ATTRIBUTE("Use '[Button openURL:]' or any of the other method signatures instead.");



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 @@ -6,6 +6,7 @@
#import "BTNConfigurationInterfaceProtocol.h"
#import "BTNPaymentMethodProviderProtocol.h"
#import "BTNImpressionView.h"
#import "BTNBrowserConfig.h"

// System
@import SystemConfiguration;
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 = "6.20.0"
s.version = "6.21.0"
s.summary = "Button iOS SDK."

s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion Samples/PurchasePath/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
inhibit_all_warnings!

pod 'Button', '6.20.0'
pod 'Button', '6.21.0'
pod 'Sourcery'

target 'Swift-Demo' do
Expand Down
13 changes: 8 additions & 5 deletions Samples/PurchasePath/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
PODS:
- Button (6.20.0)
- Button (6.21.0-build.420)
- Sourcery (0.13.1)

DEPENDENCIES:
- Button (= 6.20.0)
- Button (from `../../`)
- Sourcery

SPEC REPOS:
https://github.com/CocoaPods/Specs.git:
- Button
- Sourcery

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

SPEC CHECKSUMS:
Button: 7a0284b12caa04089fd0bc1b79497589b80886ad
Button: 4dc5da8d7cf56e1772e49c84ef51e55f7c39f13d
Sourcery: 9ef51b8777516f204d82996441f293813158d0d7

PODFILE CHECKSUM: b58fe594bc63ca136707fda742df472057cc123c
PODFILE CHECKSUM: cfe49ec404de013101464b212c5af9e01a870d7d

COCOAPODS: 1.8.4
28 changes: 14 additions & 14 deletions Samples/PurchasePath/PurchasePath.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
DE31D16B202BEB95004A29D6 /* Sources */,
DE31D16C202BEB95004A29D6 /* Frameworks */,
DE31D16D202BEB95004A29D6 /* Resources */,
2C3761B55EAE88CE35E03B8B /* [CP] Copy Pods Resources */,
7832A358365220B8EEE44296 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -364,40 +364,40 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
2C3761B55EAE88CE35E03B8B /* [CP] Copy Pods Resources */ = {
71E15E49A421411D71ED8CB6 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Swift-Demo/Pods-Swift-Demo-resources.sh",
"${PODS_ROOT}/Button/Button.bundle",
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Copy Pods Resources";
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Button.bundle",
"$(DERIVED_FILE_DIR)/Pods-ObjC-Demo-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Swift-Demo/Pods-Swift-Demo-resources.sh\"\n";
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
71E15E49A421411D71ED8CB6 /* [CP] Check Pods Manifest.lock */ = {
7832A358365220B8EEE44296 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
"${PODS_ROOT}/Target Support Files/Pods-Swift-Demo/Pods-Swift-Demo-resources.sh",
"${PODS_ROOT}/../../../Button.bundle",
);
name = "[CP] Check Pods Manifest.lock";
name = "[CP] Copy Pods Resources";
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-ObjC-Demo-checkManifestLockResult.txt",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Button.bundle",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Swift-Demo/Pods-Swift-Demo-resources.sh\"\n";
showEnvVarsInLog = 0;
};
84D7BBFB7A8E8FB350BBC378 /* [CP] Copy Pods Resources */ = {
Expand All @@ -407,7 +407,7 @@
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-ObjC-Demo/Pods-ObjC-Demo-resources.sh",
"${PODS_ROOT}/Button/Button.bundle",
"${PODS_ROOT}/../../../Button.bundle",
);
name = "[CP] Copy Pods Resources";
outputPaths = (
Expand Down
Loading

0 comments on commit 90ed6f7

Please sign in to comment.