Skip to content

Commit

Permalink
Updating Appboy SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenzhi committed Jul 27, 2017
1 parent 7ed308a commit ff616e3
Show file tree
Hide file tree
Showing 149 changed files with 4,757 additions and 328 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
Example/build
Pods/
Podfile.lock
!Samples/**/Podfile.lock

xcuserdata/
.idea/

# Emacs temporary files
*~
*~
14 changes: 10 additions & 4 deletions 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.30.0"
s.version = "2.31.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 All @@ -20,13 +20,19 @@ Pod::Spec.new do |s|
sc.frameworks = 'SystemConfiguration', 'QuartzCore', 'CoreText', 'WebKit'
sc.source_files = 'AppboyKit/headers/AppboyKitLibrary/*.h', 'AppboyKit/ABKIdentifierForAdvertisingProvider.m', 'AppboyKit/ABKModalWebViewController.m', 'AppboyKit/ABKNoConnectionLocalization.m'
sc.vendored_libraries = 'AppboyKit/libAppboyKitLibrary.a'
sc.weak_framework = 'CoreTelephony', 'Social', 'Accounts', 'AdSupport', 'StoreKit','UserNotifications'
sc.weak_framework = 'CoreTelephony', 'Social', 'Accounts', 'AdSupport', 'StoreKit', 'UserNotifications'
end

s.subspec 'UI' do |sui|
sui.source_files = 'AppboyKit/headers/AppboyKitLibrary/*.h', 'AppboyKit/*.m'
sui.resource = 'AppboyKit/Appboy.bundle'
sui.source_files = 'AppboyKit/headers/AppboyKitLibrary/*.h', 'AppboyKit/*.m', 'AppboyUI/ABKFeedbackViewController/FeedbackViewController/*.*', 'AppboyUI/ABKUIUtils/**/*.*'
sui.resource = 'AppboyKit/Appboy.bundle', 'AppboyUI/ABKFeedbackViewController/Feedback_Resources/**/*.*'
sui.dependency 'SDWebImage/GIF', '~>4.0'
sui.dependency 'Appboy-iOS-SDK/Core'
end

s.subspec 'Feedback' do |sfb|
sfb.source_files = 'AppboyKit/headers/AppboyKitLibrary/*.h', 'AppboyKit/ABKIdentifierForAdvertisingProvider.m', 'AppboyKit/ABKModalWebViewController.m', 'AppboyKit/ABKNoConnectionLocalization.m', 'AppboyUI/ABKFeedbackViewController/FeedbackViewController/*.*', 'AppboyUI/ABKUIUtils/**/*.*'
sfb.resource = 'AppboyUI/ABKFeedbackViewController/Feedback_Resources/**/*.*'
sfb.dependency 'Appboy-iOS-SDK/Core'
end
end
4 changes: 2 additions & 2 deletions AppboyKit/ABKModalWebViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ - (void)closeButtonPressed:(id)sender {

- (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction
decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler {
NSString *URLString = [[navigationAction.request.mainDocumentURL absoluteString] lowercaseString];
NSArray *stringComponents = [URLString componentsSeparatedByString:@":"];
NSString *urlString = [[navigationAction.request.mainDocumentURL absoluteString] lowercaseString];
NSArray *stringComponents = [urlString componentsSeparatedByString:@":"];
if ([stringComponents[1] hasPrefix:@"//itunes.apple.com"] ||
(![stringComponents[0] isEqual:@"http"] &&
![stringComponents[0] isEqual:@"https"])) {
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 removed AppboyKit/Appboy.bundle/ABKFeedbackContentView.nib
Binary file not shown.
Binary file not shown.
Binary file removed 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 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.
Binary file modified AppboyKit/Appboy.bundle/ar.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file removed AppboyKit/Appboy.bundle/checkmark-bg@2x.png
Binary file not shown.
Binary file removed AppboyKit/Appboy.bundle/checkmark.png
Binary file not shown.
Binary file removed AppboyKit/Appboy.bundle/checkmark@2x.png
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/da.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/de.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/en.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/et.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/fi.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/fil.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/fr.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/he.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/id.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/it.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/ja.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/ko.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/ms.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/nb.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/nl.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/pt.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file not shown.
Binary file modified AppboyKit/Appboy.bundle/sv.lproj/LocalizedAppboyUIString.strings
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/zh.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
22 changes: 0 additions & 22 deletions AppboyKit/headers/AppboyKitLibrary/ABKFeedbackViewController.h

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion AppboyKit/headers/AppboyKitLibrary/ABKPushUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ NS_ASSUME_NONNULL_BEGIN

+ (NSSet<UNNotificationCategory *> *)getAppboyUNNotificationCategorySet;

#if __IPHONE_OS_VERSION_MIN_REQUIRED < 10
#if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_10_0
+ (NSSet<UIUserNotificationCategory *> *)getAppboyUIUserNotificationCategorySet;
#endif

Expand Down
12 changes: 12 additions & 0 deletions AppboyKit/headers/AppboyKitLibrary/ABKUser.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,18 @@ typedef NS_ENUM(NSInteger, ABKNotificationSubscriptionType) {
*/
@property (strong, nullable) ABKAttributionData *attributionData;

/*!
* Adds an an alias for the current user. Individual (alias, label) pairs can exist on one and only one user.
* If a different user already has this alias or external user id, the alias attempt will be rejected
* on the server.
*
* @param alias The alias of the current user.
* @param label The label of the alias; used to differentiate it from other aliases for the user.
* @return Whether or not the alias and label are valid. Does not guarantee they won't collide with
* an existing pair.
*/
- (BOOL)addAlias:(NSString *)alias withLabel:(NSString *)label;

/*!
* @param gender ABKUserGender enum representing the user's gender.
* @return YES if the user gender is set properly
Expand Down
Loading

0 comments on commit ff616e3

Please sign in to comment.