Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
frankus committed Oct 11, 2017
2 parents 7fc66cc + fc6318b commit d213894
Show file tree
Hide file tree
Showing 248 changed files with 1,465 additions and 453 deletions.
8 changes: 4 additions & 4 deletions Apptentive/Apptentive.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
01A2D1A61E490A9700C2103A /* ApptentiveUtilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 01A2D0901E490A9700C2103A /* ApptentiveUtilities.h */; };
01A2D1A71E490A9700C2103A /* ApptentiveUtilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 01A2D0911E490A9700C2103A /* ApptentiveUtilities.m */; };
01A2D1A81E490A9700C2103A /* NSDictionary+Apptentive.h in Headers */ = {isa = PBXBuildFile; fileRef = 01A2D0921E490A9700C2103A /* NSDictionary+Apptentive.h */; };
01A2D1A91E490A9700C2103A /* NSDictionary+ApptentiveAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 01A2D0931E490A9700C2103A /* NSDictionary+ApptentiveAdditions.m */; };
01A2D1A91E490A9700C2103A /* NSDictionary+Apptentive.m in Sources */ = {isa = PBXBuildFile; fileRef = 01A2D0931E490A9700C2103A /* NSDictionary+Apptentive.m */; };
01A2D1AA1E490A9700C2103A /* ApptentiveAppConfiguration.h in Headers */ = {isa = PBXBuildFile; fileRef = 01A2D0951E490A9700C2103A /* ApptentiveAppConfiguration.h */; };
01A2D1AB1E490A9700C2103A /* ApptentiveAppConfiguration.m in Sources */ = {isa = PBXBuildFile; fileRef = 01A2D0961E490A9700C2103A /* ApptentiveAppConfiguration.m */; };
01A2D1B21E490A9700C2103A /* ApptentiveLegacyEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 01A2D09D1E490A9700C2103A /* ApptentiveLegacyEvent.h */; };
Expand Down Expand Up @@ -654,7 +654,7 @@
01A2D0901E490A9700C2103A /* ApptentiveUtilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ApptentiveUtilities.h; sourceTree = "<group>"; };
01A2D0911E490A9700C2103A /* ApptentiveUtilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ApptentiveUtilities.m; sourceTree = "<group>"; };
01A2D0921E490A9700C2103A /* NSDictionary+Apptentive.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSDictionary+Apptentive.h"; sourceTree = "<group>"; };
01A2D0931E490A9700C2103A /* NSDictionary+ApptentiveAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSDictionary+ApptentiveAdditions.m"; sourceTree = "<group>"; };
01A2D0931E490A9700C2103A /* NSDictionary+Apptentive.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSDictionary+Apptentive.m"; sourceTree = "<group>"; };
01A2D0951E490A9700C2103A /* ApptentiveAppConfiguration.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ApptentiveAppConfiguration.h; sourceTree = "<group>"; };
01A2D0961E490A9700C2103A /* ApptentiveAppConfiguration.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ApptentiveAppConfiguration.m; sourceTree = "<group>"; };
01A2D09D1E490A9700C2103A /* ApptentiveLegacyEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ApptentiveLegacyEvent.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1390,7 +1390,7 @@
01A2D0901E490A9700C2103A /* ApptentiveUtilities.h */,
01A2D0911E490A9700C2103A /* ApptentiveUtilities.m */,
01A2D0921E490A9700C2103A /* NSDictionary+Apptentive.h */,
01A2D0931E490A9700C2103A /* NSDictionary+ApptentiveAdditions.m */,
01A2D0931E490A9700C2103A /* NSDictionary+Apptentive.m */,
01626EB71EB7D60C0064E73F /* NSData+Encryption.h */,
01626EB81EB7D60C0064E73F /* NSData+Encryption.m */,
EF8EE3A91EBBA5D00033E7A1 /* ApptentiveJWT.h */,
Expand Down Expand Up @@ -2089,7 +2089,7 @@
01A2D17D1E490A9700C2103A /* ApptentiveBannerViewController.m in Sources */,
EFC97A9F1F56303300BCC461 /* UIAlertController+Apptentive.m in Sources */,
01A2D1D71E490A9700C2103A /* ApptentiveBackend.m in Sources */,
01A2D1A91E490A9700C2103A /* NSDictionary+ApptentiveAdditions.m in Sources */,
01A2D1A91E490A9700C2103A /* NSDictionary+Apptentive.m in Sources */,
0140D60B1E83553C007B5130 /* ApptentiveLegacyFileAttachment.m in Sources */,
01A2D1951E490A9700C2103A /* ApptentiveMessageCenterMessageCell.m in Sources */,
EF8EE3A31EBA79EC0033E7A1 /* ATDataModel v5 to v6.xcmappingmodel in Sources */,
Expand Down
25 changes: 21 additions & 4 deletions Apptentive/Apptentive/Apptentive.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
//

#import <UIKit/UIKit.h>
#import <UserNotifications/UserNotifications.h>

NS_ASSUME_NONNULL_BEGIN

//! Project version number for Apptentive.
/** The Apptentive version number */
Expand All @@ -17,13 +20,11 @@ FOUNDATION_EXPORT double ApptentiveVersionNumber;
FOUNDATION_EXPORT const unsigned char ApptentiveVersionString[];

/** The version number of the Apptentive SDK. */
#define kApptentiveVersionString @"4.0.6"
#define kApptentiveVersionString @"4.0.7"

/** The platform that the SDK is built for. */
#define kApptentivePlatformString @"iOS"

NS_ASSUME_NONNULL_BEGIN

/**
A code corresponding to the reason that the Apptentive server authentication failed.
*/
Expand Down Expand Up @@ -383,7 +384,7 @@ typedef NS_ENUM(NSUInteger, ApptentiveLogLevel) {
@return `YES` if Message Center was presented, `NO` otherwise.
*/
- (BOOL)presentMessageCenterFromViewController:(UIViewController *)viewController withCustomData:(nullable NSDictionary *)customData;
- (BOOL)presentMessageCenterFromViewController:(nullable UIViewController *)viewController withCustomData:(nullable NSDictionary *)customData;

/**
Dismisses Message Center.
Expand Down Expand Up @@ -497,7 +498,23 @@ typedef NS_ENUM(NSUInteger, ApptentiveLogLevel) {
@param viewController The view controller Message Center may be presented from.
@return `YES` if the notification was sent by Apptentive, `NO` otherwise.
*/

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
- (BOOL)didReceiveLocalNotification:(UILocalNotification *)notification fromViewController:(UIViewController *)viewController NS_SWIFT_NAME(didReceiveLocalNotification(_:from:));
#pragma clang diagnostic pop

/**
Forwards a user notification from your user notification center delegate to Apptentive.
In the event that this method returns `NO`, your code must call the completion handler.
@param response The notification response
@param completionHandler The completion handler that will be called if the notification was sent by Apptentive
@return `YES` if the notification was sent by Apptentive, `NO` otherwise.
*/

- (BOOL)didReceveUserNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler;

///-------------------------------------
/// @name Attach Text, Images, and Files
Expand Down
Loading

0 comments on commit d213894

Please sign in to comment.