Skip to content

Commit

Permalink
Updating Appboy SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenzhi committed Sep 6, 2016
1 parent 6da2e07 commit 1c45068
Show file tree
Hide file tree
Showing 64 changed files with 630 additions and 110 deletions.
2 changes: 1 addition & 1 deletion Appboy-iOS-SDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Appboy-iOS-SDK"
s.version = "2.22.1"
s.version = "2.23.0"
s.summary = "This is the Appboy iOS SDK for Mobile Marketing Automation"
s.homepage = "http://www.appboy.com"
s.license = { :type => 'Commercial', :text => 'Please refer to https://github.com/Appboy/appboy-ios-sdk/blob/master/LICENSE'}
Expand Down
2 changes: 1 addition & 1 deletion Appboy-tvOS-SDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Appboy-tvOS-SDK"
s.version = "2.22.1"
s.version = "2.22.0"
s.summary = "This is the Appboy tvOS SDK for Mobile Marketing Automation"
s.homepage = "http://www.appboy.com"
s.license = { :type => 'Commercial', :text => 'Please refer to https://github.com/Appboy/appboy-ios-sdk/blob/master/LICENSE'}
Expand Down
Binary file not shown.
Binary file modified Appboy-tvOS-SDK/AppboyTVOSKit.framework/AppboyTVOSKit
Binary file not shown.
2 changes: 1 addition & 1 deletion Appboy-tvOS-SDK/AppboyTVOSKit.framework/Headers/Appboy.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#import <UIKit/UIKit.h>

#ifndef APPBOY_SDK_VERSION
#define APPBOY_SDK_VERSION @"2.22.1"
#define APPBOY_SDK_VERSION @"2.22.0"
#endif

#if !TARGET_OS_TV
Expand Down
Binary file modified Appboy-tvOS-SDK/AppboyTVOSKit.framework/Info.plist
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@
</data>
<key>Headers/Appboy.h</key>
<data>
83DXynJeowmTBIcGfGaP9mJiDfI=
2dp32rpIUAb0Vj6LaQhM2q3S1N0=
</data>
<key>Headers/AppboyKit.h</key>
<data>
Sdrh8p7KyYA0p0SsWSJj4oIpJzM=
</data>
<key>Info.plist</key>
<data>
ob2k7tu6eGwTgtMm5WoiTkg+MAE=
VFvi9aY/9hqkJp5Ylp+Isab/fvI=
</data>
</dict>
<key>files2</key>
Expand Down Expand Up @@ -203,11 +203,11 @@
<dict>
<key>hash</key>
<data>
83DXynJeowmTBIcGfGaP9mJiDfI=
2dp32rpIUAb0Vj6LaQhM2q3S1N0=
</data>
<key>hash2</key>
<data>
FJ3zOsyvck1JRYFOORiP6jrHae6M152ZHNcGHn1QaZo=
sS/4LgupsN0HW70qIrlFXyduVE/87it2dr36ytI1YhA=
</data>
</dict>
<key>Headers/AppboyKit.h</key>
Expand Down
Binary file modified AppboyKit/Appboy.bundle/ABKBannerCardCell.nib
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/ABKCrossPromotionCardCell.nib
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/ABKFeedNoConnectionView.nib
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/ABKFeedbackContentView.nib
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/ABKFeedbackEmailViewPortrait.nib
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/ABKFeedbackNavBar.nib
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/ABKSpinnerView.nib
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/ABKTextAnnouncementCardCell.nib
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/Info.plist
Binary file not shown.
55 changes: 55 additions & 0 deletions AppboyKit/headers/AppboyKitLibrary/ABKInAppMessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,24 @@ typedef NS_ENUM(NSInteger, ABKInAppMessageDismissType) {
ABKInAppMessageDismissManually
};

/*!
* The ABKInAppMessageOrientation defines preferred screen orientation for the in-app message.
*
* ABKInAppMessageOrientationAny - This is the default value for an in-app message's orientation. This
* value allows the in-app message display in any orientation.
*
* ABKInAppMessageOrientationPortrait - This value will limit the in-app message to only display in
* protrait and portrait upside down orientation.
*
* ABKInAppMessageOrientationLandscape - This value will limit the in-app message to only display in
* landscape orientation, including landscape left and landscape right.
*/
typedef NS_ENUM(NSInteger, ABKInAppMessageOrientation) {
ABKInAppMessageOrientationAny,
ABKInAppMessageOrientationPortrait,
ABKInAppMessageOrientationLandscape
};

/*
* Appboy Public API: ABKInAppMessage
*/
Expand Down Expand Up @@ -120,6 +138,43 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (copy, nullable) NSURL *imageURI;

/*!
* imageContentMode defines the content mode of the image on in-app message.
* For immersive in-app messages, the imageContentMode defines both the image icon and the graphic
* image's content mode.
*
* The imageContentMode default values are:
* Slideup: UIViewContentModeScaleAspectFit
* Modal: UIViewContentModeScaleAspectFit
* Full: UIViewContentModeScaleAspectFill
*/
@property UIViewContentMode imageContentMode;

/*!
* orientation defines the preferred screen orientation for the in-app message.
* In-app messages will only display if the preferred orientation matches the current status bar
* orientation. However, there is an important exception for iPads. For in-app messages that
* have a preferred orientation and are being displayed on an iPad, the in-app message will appear
* in the style of the preferred orientation regardless of actual screen orientation.
*/
@property ABKInAppMessageOrientation orientation;

/*!
* messageTextAlignment defines the preferred text alignment of the message label.
* The default values are:
* Slideup: NSTextAlignmentNatural
* Modal: NSTextAlignmentCenter
* Full: NSTextAlignmentCenter
*/
@property NSTextAlignment messageTextAlignment;

/*
* animateIn/animateOut define if the in-app message should be animated in/out on the screen when
* displaying/dismissing. The default value is YES.
*/
@property BOOL animateIn;
@property BOOL animateOut;

/*!
* If you're handling in-app messages completely on your own (returning YES from onInAppMessageReceived), you should still report
* impressions and clicks on the in-app message back to Appboy with these methods so that your campaign reporting features
Expand Down
36 changes: 36 additions & 0 deletions AppboyKit/headers/AppboyKitLibrary/ABKInAppMessageImmersive.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@
* Appboy Public API: ABKInAppMessageImmersive
*/
NS_ASSUME_NONNULL_BEGIN

/*!
* The ABKInAppMessageImmersiveImageStyle defines the image style of the in-app message
*
* ABKInAppMessageGraphic - The image will make up the entire in-app message, with buttons on the
* image(buttons are optional). No icons, headers or message will be displayed in this style.
*
*
* ABKInAppMessageTopImage - This is the default image style. The image will be on upper top of the
* in-app message if there is one, with all other in-app message elements.
*/
typedef NS_ENUM(NSInteger, ABKInAppMessageImmersiveImageStyle) {
ABKInAppMessageGraphic,
ABKInAppMessageTopImage
};

@interface ABKInAppMessageImmersive : ABKInAppMessage

/*!
Expand Down Expand Up @@ -35,6 +51,26 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (readonly, nullable) NSArray *buttons;

/*!
* frameColor defines the frame color of an immersive in-app message. This color will fill the
* screen outside of the in-app message. When the property is nil, the color will be
* set to the default color, which is black with 90% opacity.
*/
@property (strong, nullable) UIColor *frameColor;

/*!
* headerTextAlignment defines the preferred text alignment of the header label.
* The default value is NSTextAlignmentCenter.
*/
@property NSTextAlignment headerTextAlignment;

/*!
* imageStyle defines the image style of a immersive in-app message.
* For more information about the possible image styles, please check the documentation of
* ABKInAppMessageImmersiveImageStyle above.
*/
@property ABKInAppMessageImmersiveImageStyle imageStyle;

/*!
* @param buttonID The clicked button's button ID for the in-app message. This number can't be negative.
* If you're handling in-app messages completely on your own (returning YES from onInAppMessageReceived), you should still report
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface ABKInAppMessageImmersiveViewController : ABKInAppMessageViewController

@property (weak) IBOutlet ABKLabel *inAppMessageHeaderLabel;
@property (weak, nonatomic, nullable) IBOutlet UIImageView *graphicImageView;

- (IBAction)dismissInAppMessage:(id)sender;

Expand Down
7 changes: 0 additions & 7 deletions AppboyKit/headers/AppboyKitLibrary/ABKInAppMessageModal.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,5 @@
NS_ASSUME_NONNULL_BEGIN
@interface ABKInAppMessageModal : ABKInAppMessageImmersive

/*!
* modalFrameColor defines the frame color of a modal in-app message. This color will fill the
* screen outside of modal in-app message. When the property is nil, the color will be
* set to the default color, which is black with 90% opacity.
*/
@property (strong, nullable) UIColor *modalFrameColor;

@end
NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
*/
NS_ASSUME_NONNULL_BEGIN
@interface ABKInAppMessageModalViewController : ABKInAppMessageImmersiveViewController

@end
NS_ASSUME_NONNULL_END
10 changes: 1 addition & 9 deletions AppboyKit/headers/AppboyKitLibrary/Appboy.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#import <UIKit/UIKit.h>

#ifndef APPBOY_SDK_VERSION
#define APPBOY_SDK_VERSION @"2.22.1"
#define APPBOY_SDK_VERSION @"2.23.0"
#endif

#if !TARGET_OS_TV
Expand Down Expand Up @@ -420,14 +420,6 @@ typedef NS_OPTIONS(NSUInteger, ABKSocialNetwork) {
*/
- (void)logPurchase:(NSString *)productIdentifier inCurrency:(NSString *)currencyCode atPrice:(NSDecimalNumber *)price withQuantity:(NSUInteger)quantity andProperties:(nullable NSDictionary *)properties;

/*!
* @param socialNetwork An ABKSocialNetwork indicating the network that you wish to access.
*
* @discussion Records that the current user shared something to social network. This is added to the event tracking log
* that's lazily pushed up to the server.
*/
- (void)logSocialShare:(ABKSocialNetwork)socialNetwork __deprecated;

/*!
* @param replyToEmail The email address to send feedback replies to.
* @param message The message input by the user. Must be non-null and non-empty.
Expand Down
Binary file modified AppboyKit/libAppboyKitLibrary.a
Binary file not shown.
Loading

0 comments on commit 1c45068

Please sign in to comment.