diff --git a/Button.bundle/BTNAlertView~ipad.nib/objects-8.0+.nib b/Button.bundle/BTNAlertView~ipad.nib/objects-8.0+.nib index 4aae4b5c..2d1b7abb 100644 Binary files a/Button.bundle/BTNAlertView~ipad.nib/objects-8.0+.nib and b/Button.bundle/BTNAlertView~ipad.nib/objects-8.0+.nib differ diff --git a/Button.bundle/BTNAlertView~ipad.nib/runtime.nib b/Button.bundle/BTNAlertView~ipad.nib/runtime.nib index f6261d1e..ed7cf1cf 100644 Binary files a/Button.bundle/BTNAlertView~ipad.nib/runtime.nib and b/Button.bundle/BTNAlertView~ipad.nib/runtime.nib differ diff --git a/Button.bundle/BTNAlertView~iphone.nib/objects-8.0+.nib b/Button.bundle/BTNAlertView~iphone.nib/objects-8.0+.nib index 3072010d..d1c0bf20 100644 Binary files a/Button.bundle/BTNAlertView~iphone.nib/objects-8.0+.nib and b/Button.bundle/BTNAlertView~iphone.nib/objects-8.0+.nib differ diff --git a/Button.bundle/BTNAlertView~iphone.nib/runtime.nib b/Button.bundle/BTNAlertView~iphone.nib/runtime.nib index b107831d..78f173a6 100644 Binary files a/Button.bundle/BTNAlertView~iphone.nib/runtime.nib and b/Button.bundle/BTNAlertView~iphone.nib/runtime.nib differ diff --git a/Button.bundle/BTNAppCard~ipad.nib/objects-8.0+.nib b/Button.bundle/BTNAppCard~ipad.nib/objects-8.0+.nib index c6ee39ce..5bdc6257 100644 Binary files a/Button.bundle/BTNAppCard~ipad.nib/objects-8.0+.nib and b/Button.bundle/BTNAppCard~ipad.nib/objects-8.0+.nib differ diff --git a/Button.bundle/BTNAppCard~ipad.nib/runtime.nib b/Button.bundle/BTNAppCard~ipad.nib/runtime.nib index d649d0fe..2f5c05a7 100644 Binary files a/Button.bundle/BTNAppCard~ipad.nib/runtime.nib and b/Button.bundle/BTNAppCard~ipad.nib/runtime.nib differ diff --git a/Button.bundle/BTNAppCard~iphone.nib/objects-8.0+.nib b/Button.bundle/BTNAppCard~iphone.nib/objects-8.0+.nib index 4d513963..36ad74c1 100644 Binary files a/Button.bundle/BTNAppCard~iphone.nib/objects-8.0+.nib and b/Button.bundle/BTNAppCard~iphone.nib/objects-8.0+.nib differ diff --git a/Button.bundle/BTNAppCard~iphone.nib/runtime.nib b/Button.bundle/BTNAppCard~iphone.nib/runtime.nib index fa2f381a..8b280b05 100644 Binary files a/Button.bundle/BTNAppCard~iphone.nib/runtime.nib and b/Button.bundle/BTNAppCard~iphone.nib/runtime.nib differ diff --git a/Button.bundle/BTNBaseModalController.nib b/Button.bundle/BTNBaseModalController.nib index e2b08e71..c1e94de1 100644 Binary files a/Button.bundle/BTNBaseModalController.nib and b/Button.bundle/BTNBaseModalController.nib differ diff --git a/Button.bundle/BTNGroupNameCell~ipad.nib/objects-8.0+.nib b/Button.bundle/BTNGroupNameCell~ipad.nib/objects-8.0+.nib index c5bdc574..afdef927 100644 Binary files a/Button.bundle/BTNGroupNameCell~ipad.nib/objects-8.0+.nib and b/Button.bundle/BTNGroupNameCell~ipad.nib/objects-8.0+.nib differ diff --git a/Button.bundle/BTNGroupNameCell~ipad.nib/objects.nib b/Button.bundle/BTNGroupNameCell~ipad.nib/objects.nib index c6307e90..b76e94fa 100644 Binary files a/Button.bundle/BTNGroupNameCell~ipad.nib/objects.nib and b/Button.bundle/BTNGroupNameCell~ipad.nib/objects.nib differ diff --git a/Button.bundle/BTNGroupNameCell~iphone.nib/objects-8.0+.nib b/Button.bundle/BTNGroupNameCell~iphone.nib/objects-8.0+.nib index d2d352a0..2903ad46 100644 Binary files a/Button.bundle/BTNGroupNameCell~iphone.nib/objects-8.0+.nib and b/Button.bundle/BTNGroupNameCell~iphone.nib/objects-8.0+.nib differ diff --git a/Button.bundle/BTNGroupNameCell~iphone.nib/objects.nib b/Button.bundle/BTNGroupNameCell~iphone.nib/objects.nib index f4a06fc0..b5912336 100644 Binary files a/Button.bundle/BTNGroupNameCell~iphone.nib/objects.nib and b/Button.bundle/BTNGroupNameCell~iphone.nib/objects.nib differ diff --git a/Button.bundle/BTNInventoryItemCell~ipad.nib/objects-8.0+.nib b/Button.bundle/BTNInventoryItemCell~ipad.nib/objects-8.0+.nib index 27ee0fe3..a4b373a7 100644 Binary files a/Button.bundle/BTNInventoryItemCell~ipad.nib/objects-8.0+.nib and b/Button.bundle/BTNInventoryItemCell~ipad.nib/objects-8.0+.nib differ diff --git a/Button.bundle/BTNInventoryItemCell~ipad.nib/runtime.nib b/Button.bundle/BTNInventoryItemCell~ipad.nib/runtime.nib index 571f42f6..5d1f39d1 100644 Binary files a/Button.bundle/BTNInventoryItemCell~ipad.nib/runtime.nib and b/Button.bundle/BTNInventoryItemCell~ipad.nib/runtime.nib differ diff --git a/Button.bundle/BTNInventoryItemCell~iphone.nib/objects-8.0+.nib b/Button.bundle/BTNInventoryItemCell~iphone.nib/objects-8.0+.nib index dede16b1..9c4dad87 100644 Binary files a/Button.bundle/BTNInventoryItemCell~iphone.nib/objects-8.0+.nib and b/Button.bundle/BTNInventoryItemCell~iphone.nib/objects-8.0+.nib differ diff --git a/Button.bundle/BTNInventoryItemCell~iphone.nib/runtime.nib b/Button.bundle/BTNInventoryItemCell~iphone.nib/runtime.nib index ff4033e4..d989310b 100644 Binary files a/Button.bundle/BTNInventoryItemCell~iphone.nib/runtime.nib and b/Button.bundle/BTNInventoryItemCell~iphone.nib/runtime.nib differ diff --git a/Button.bundle/BTNInventoryListCell~ipad.nib/objects-8.0+.nib b/Button.bundle/BTNInventoryListCell~ipad.nib/objects-8.0+.nib index d0c3e53f..29485bdf 100644 Binary files a/Button.bundle/BTNInventoryListCell~ipad.nib/objects-8.0+.nib and b/Button.bundle/BTNInventoryListCell~ipad.nib/objects-8.0+.nib differ diff --git a/Button.bundle/BTNInventoryListCell~ipad.nib/objects.nib b/Button.bundle/BTNInventoryListCell~ipad.nib/objects.nib index ab3d7fce..3ba3c72b 100644 Binary files a/Button.bundle/BTNInventoryListCell~ipad.nib/objects.nib and b/Button.bundle/BTNInventoryListCell~ipad.nib/objects.nib differ diff --git a/Button.bundle/BTNInventoryListCell~iphone.nib/objects-8.0+.nib b/Button.bundle/BTNInventoryListCell~iphone.nib/objects-8.0+.nib index 673087fd..796d1557 100644 Binary files a/Button.bundle/BTNInventoryListCell~iphone.nib/objects-8.0+.nib and b/Button.bundle/BTNInventoryListCell~iphone.nib/objects-8.0+.nib differ diff --git a/Button.bundle/BTNInventoryListCell~iphone.nib/objects.nib b/Button.bundle/BTNInventoryListCell~iphone.nib/objects.nib index 5d182cdf..e52d0466 100644 Binary files a/Button.bundle/BTNInventoryListCell~iphone.nib/objects.nib and b/Button.bundle/BTNInventoryListCell~iphone.nib/objects.nib differ diff --git a/Button.bundle/BTNInventoryView~ipad.nib/objects-8.0+.nib b/Button.bundle/BTNInventoryView~ipad.nib/objects-8.0+.nib index 44238853..4362bad9 100644 Binary files a/Button.bundle/BTNInventoryView~ipad.nib/objects-8.0+.nib and b/Button.bundle/BTNInventoryView~ipad.nib/objects-8.0+.nib differ diff --git a/Button.bundle/BTNInventoryView~ipad.nib/runtime.nib b/Button.bundle/BTNInventoryView~ipad.nib/runtime.nib index 4f6cd59f..10b711dd 100644 Binary files a/Button.bundle/BTNInventoryView~ipad.nib/runtime.nib and b/Button.bundle/BTNInventoryView~ipad.nib/runtime.nib differ diff --git a/Button.bundle/BTNInventoryView~iphone.nib/objects-8.0+.nib b/Button.bundle/BTNInventoryView~iphone.nib/objects-8.0+.nib index 979002b4..8a96ed14 100644 Binary files a/Button.bundle/BTNInventoryView~iphone.nib/objects-8.0+.nib and b/Button.bundle/BTNInventoryView~iphone.nib/objects-8.0+.nib differ diff --git a/Button.bundle/BTNInventoryView~iphone.nib/runtime.nib b/Button.bundle/BTNInventoryView~iphone.nib/runtime.nib index 6d51b2b5..cecdd723 100644 Binary files a/Button.bundle/BTNInventoryView~iphone.nib/runtime.nib and b/Button.bundle/BTNInventoryView~iphone.nib/runtime.nib differ diff --git a/Button.bundle/BTNLocationRequestView~ipad.nib/objects-8.0+.nib b/Button.bundle/BTNLocationRequestView~ipad.nib/objects-8.0+.nib index 8a619af0..4bcbe8c3 100644 Binary files a/Button.bundle/BTNLocationRequestView~ipad.nib/objects-8.0+.nib and b/Button.bundle/BTNLocationRequestView~ipad.nib/objects-8.0+.nib differ diff --git a/Button.bundle/BTNLocationRequestView~ipad.nib/runtime.nib b/Button.bundle/BTNLocationRequestView~ipad.nib/runtime.nib index 1946f119..b7df9874 100644 Binary files a/Button.bundle/BTNLocationRequestView~ipad.nib/runtime.nib and b/Button.bundle/BTNLocationRequestView~ipad.nib/runtime.nib differ diff --git a/Button.bundle/BTNLocationRequestView~iphone.nib/objects-8.0+.nib b/Button.bundle/BTNLocationRequestView~iphone.nib/objects-8.0+.nib index 3da1e7a1..5b3ad61d 100644 Binary files a/Button.bundle/BTNLocationRequestView~iphone.nib/objects-8.0+.nib and b/Button.bundle/BTNLocationRequestView~iphone.nib/objects-8.0+.nib differ diff --git a/Button.bundle/BTNLocationRequestView~iphone.nib/runtime.nib b/Button.bundle/BTNLocationRequestView~iphone.nib/runtime.nib index ee03b0a3..5d4d9ccb 100644 Binary files a/Button.bundle/BTNLocationRequestView~iphone.nib/runtime.nib and b/Button.bundle/BTNLocationRequestView~iphone.nib/runtime.nib differ diff --git a/Button.bundle/Button-Info.plist b/Button.bundle/Button-Info.plist index dac1449d..f56031fa 100644 Binary files a/Button.bundle/Button-Info.plist and b/Button.bundle/Button-Info.plist differ diff --git a/Button.framework/Button b/Button.framework/Button index c79e01d4..929223a5 100644 Binary files a/Button.framework/Button and b/Button.framework/Button differ diff --git a/Button.framework/Headers/BTNEventTracker.h b/Button.framework/Headers/BTNEventTracker.h deleted file mode 100644 index 06cf7a7f..00000000 --- a/Button.framework/Headers/BTNEventTracker.h +++ /dev/null @@ -1,27 +0,0 @@ -@import Foundation; - -@interface BTNEventTracker : NSObject - -/** - Returns the globally shared instance of BTNEventTracker - @return BTNEventTracker the default event tracker. - **/ -+ (instancetype)eventTracker; - - -#pragma mark - Event Tracking - -/** - Track an event with the provided name - @param eventName A string value for the name of the event to track - **/ -- (void)trackEvent:(NSString *)eventName; - -/** - Track an event with the provided name - @param eventName A string value for the name of the event to track - @param properties A dictionary of key-value pairs to associate with the event - **/ -- (void)trackEvent:(NSString *)eventName withProperties:(NSDictionary *)properties; - -@end \ No newline at end of file diff --git a/Button.framework/Headers/Button.h b/Button.framework/Headers/Button.h index 995560cc..8c180bc0 100644 --- a/Button.framework/Headers/Button.h +++ b/Button.framework/Headers/Button.h @@ -61,14 +61,6 @@ typedef void(^BTNConfigurationCompletionBlock)(NSError *error); - (void)setThirdPartyId:(NSString *)thirdPartyId; -/** - Returns the current referrerToken fror the last inbound link from - the Button marketplace or nil if none is present. - @return String value of the last inbound referrerToken - **/ -- (NSString *)referrerToken; - - /** Reports an order to Button. @param orderValue The value of the order in pennies. @@ -93,6 +85,21 @@ typedef void(^BTNConfigurationCompletionBlock)(NSError *error); - (BOOL)handleLocalNotification:(UILocalNotification *)notification; +///------------------ +/// @name Debugging +///------------------ + + +/** + Sets whether the Button SDK will output debug log messages to the console. + @discussion You should ship to the App Store with this disabled. + + @param enabled Pass YES to enable debug log messages to the console. + @note The default value is NO. + */ +- (void)setDebugLoggingEnabled:(BOOL)enabled; + + ///------------------ /// @name Permissions ///------------------ @@ -107,4 +114,5 @@ typedef void(^BTNConfigurationCompletionBlock)(NSError *error); */ + (void)allowButtonToRequestLocationPermission:(BOOL)isAllowed; + @end diff --git a/Button.framework/Versions/A/Button b/Button.framework/Versions/A/Button index c79e01d4..929223a5 100644 Binary files a/Button.framework/Versions/A/Button and b/Button.framework/Versions/A/Button differ diff --git a/Button.framework/Versions/A/Headers/BTNEventTracker.h b/Button.framework/Versions/A/Headers/BTNEventTracker.h deleted file mode 100644 index 06cf7a7f..00000000 --- a/Button.framework/Versions/A/Headers/BTNEventTracker.h +++ /dev/null @@ -1,27 +0,0 @@ -@import Foundation; - -@interface BTNEventTracker : NSObject - -/** - Returns the globally shared instance of BTNEventTracker - @return BTNEventTracker the default event tracker. - **/ -+ (instancetype)eventTracker; - - -#pragma mark - Event Tracking - -/** - Track an event with the provided name - @param eventName A string value for the name of the event to track - **/ -- (void)trackEvent:(NSString *)eventName; - -/** - Track an event with the provided name - @param eventName A string value for the name of the event to track - @param properties A dictionary of key-value pairs to associate with the event - **/ -- (void)trackEvent:(NSString *)eventName withProperties:(NSDictionary *)properties; - -@end \ No newline at end of file diff --git a/Button.framework/Versions/A/Headers/Button.h b/Button.framework/Versions/A/Headers/Button.h index 995560cc..8c180bc0 100644 --- a/Button.framework/Versions/A/Headers/Button.h +++ b/Button.framework/Versions/A/Headers/Button.h @@ -61,14 +61,6 @@ typedef void(^BTNConfigurationCompletionBlock)(NSError *error); - (void)setThirdPartyId:(NSString *)thirdPartyId; -/** - Returns the current referrerToken fror the last inbound link from - the Button marketplace or nil if none is present. - @return String value of the last inbound referrerToken - **/ -- (NSString *)referrerToken; - - /** Reports an order to Button. @param orderValue The value of the order in pennies. @@ -93,6 +85,21 @@ typedef void(^BTNConfigurationCompletionBlock)(NSError *error); - (BOOL)handleLocalNotification:(UILocalNotification *)notification; +///------------------ +/// @name Debugging +///------------------ + + +/** + Sets whether the Button SDK will output debug log messages to the console. + @discussion You should ship to the App Store with this disabled. + + @param enabled Pass YES to enable debug log messages to the console. + @note The default value is NO. + */ +- (void)setDebugLoggingEnabled:(BOOL)enabled; + + ///------------------ /// @name Permissions ///------------------ @@ -107,4 +114,5 @@ typedef void(^BTNConfigurationCompletionBlock)(NSError *error); */ + (void)allowButtonToRequestLocationPermission:(BOOL)isAllowed; + @end diff --git a/Button.framework/Versions/Current/Button b/Button.framework/Versions/Current/Button index c79e01d4..929223a5 100644 Binary files a/Button.framework/Versions/Current/Button and b/Button.framework/Versions/Current/Button differ diff --git a/Button.framework/Versions/Current/Headers/BTNEventTracker.h b/Button.framework/Versions/Current/Headers/BTNEventTracker.h deleted file mode 100644 index 06cf7a7f..00000000 --- a/Button.framework/Versions/Current/Headers/BTNEventTracker.h +++ /dev/null @@ -1,27 +0,0 @@ -@import Foundation; - -@interface BTNEventTracker : NSObject - -/** - Returns the globally shared instance of BTNEventTracker - @return BTNEventTracker the default event tracker. - **/ -+ (instancetype)eventTracker; - - -#pragma mark - Event Tracking - -/** - Track an event with the provided name - @param eventName A string value for the name of the event to track - **/ -- (void)trackEvent:(NSString *)eventName; - -/** - Track an event with the provided name - @param eventName A string value for the name of the event to track - @param properties A dictionary of key-value pairs to associate with the event - **/ -- (void)trackEvent:(NSString *)eventName withProperties:(NSDictionary *)properties; - -@end \ No newline at end of file diff --git a/Button.framework/Versions/Current/Headers/Button.h b/Button.framework/Versions/Current/Headers/Button.h index 995560cc..8c180bc0 100644 --- a/Button.framework/Versions/Current/Headers/Button.h +++ b/Button.framework/Versions/Current/Headers/Button.h @@ -61,14 +61,6 @@ typedef void(^BTNConfigurationCompletionBlock)(NSError *error); - (void)setThirdPartyId:(NSString *)thirdPartyId; -/** - Returns the current referrerToken fror the last inbound link from - the Button marketplace or nil if none is present. - @return String value of the last inbound referrerToken - **/ -- (NSString *)referrerToken; - - /** Reports an order to Button. @param orderValue The value of the order in pennies. @@ -93,6 +85,21 @@ typedef void(^BTNConfigurationCompletionBlock)(NSError *error); - (BOOL)handleLocalNotification:(UILocalNotification *)notification; +///------------------ +/// @name Debugging +///------------------ + + +/** + Sets whether the Button SDK will output debug log messages to the console. + @discussion You should ship to the App Store with this disabled. + + @param enabled Pass YES to enable debug log messages to the console. + @note The default value is NO. + */ +- (void)setDebugLoggingEnabled:(BOOL)enabled; + + ///------------------ /// @name Permissions ///------------------ @@ -107,4 +114,5 @@ typedef void(^BTNConfigurationCompletionBlock)(NSError *error); */ + (void)allowButtonToRequestLocationPermission:(BOOL)isAllowed; + @end diff --git a/Button.podspec b/Button.podspec index a5661bc5..4d3fdfd7 100644 --- a/Button.podspec +++ b/Button.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "Button" - s.version = "3.5.0" + s.version = "3.5.1" s.summary = "Button iOS SDK." s.description = <<-DESC diff --git a/Examples/Button-CocoaPods/Podfile.lock b/Examples/Button-CocoaPods/Podfile.lock index ca42c671..2211a961 100644 --- a/Examples/Button-CocoaPods/Podfile.lock +++ b/Examples/Button-CocoaPods/Podfile.lock @@ -1,5 +1,5 @@ PODS: - - Button (3.5.0) + - Button (3.5.1) DEPENDENCIES: - Button (from `../../`) @@ -9,6 +9,6 @@ EXTERNAL SOURCES: :path: ../../ SPEC CHECKSUMS: - Button: 1481c44c7ad0bcff1fcc4ddd5612703b40a9a9c5 + Button: eb815a37e96d0ef1d140988b91593bc0222f0128 COCOAPODS: 0.37.2