Skip to content

Commit

Permalink
Sailthru Mobile iOS SDK 8.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CarnivalBot committed Sep 25, 2019
1 parent 73b7a7d commit 956bf8e
Show file tree
Hide file tree
Showing 18 changed files with 133 additions and 49 deletions.
Binary file modified Carnival.framework/Carnival
Binary file not shown.
32 changes: 30 additions & 2 deletions Carnival.framework/Headers/Carnival.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
#import <UserNotifications/UserNotifications.h>
#import "CarnivalMessageStream.h"
#import "CarnivalAttributes.h"
#import "CarnivalLogger.h"
#import "CarnivalContentItem.h"
#import "CarnivalPurchase.h"

#define CARNIVAL_VERSION @"8.5.1"
#define CARNIVAL_VERSION @"8.6.0"
FOUNDATION_EXPORT double CarnivalSDKVersionNumber;
FOUNDATION_EXPORT const unsigned char CarnivalSDKVersionString[];

Expand Down Expand Up @@ -160,7 +161,34 @@ NS_ASSUME_NONNULL_END
*
* @param notificationDict The userInfo dictionary from the remote notification you want the Carnival SDK to handle. This dictionary is normally passed back to you from the application:didReceiveRemoteNotification: method.
*/
+ (void)handleNotification:(nonnull NSDictionary *)notificationDict;
+ (void)handleNotification:(nonnull NSDictionary *)notificationDict __attribute__((deprecated("use handleNotificationResponse:, handlePresentNotification: and handleNotificationPayload: methods instead.")));

/**
* Tells the SDK to handle the notification response.
*
* This method should be called in the userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler: method if auto integration has been disabled in order to allow the SDK to handle the notification response.
*
* @param notificationResponse The response object from the notification.
*/
+ (void)handleNotificationResponse:(nonnull UNNotificationResponse *)notificationResponse API_AVAILABLE(ios(10.0));

/**
* Tells the SDK to handle a notification received while the app was in the foreground.
*
* This method should be called in the userNotificationCenter:willPresentNotification:withCompletionHandler: method if auto integration has been disabled in order to allow the SDK to handle the notification.
*
* @param notification The notification object received.
*/
+ (void)handlePresentNotification:(nonnull UNNotification *)notification API_AVAILABLE(ios(10.0));

/**
* Tells the SDK to handle the data from a notification payload.
*
* This method should be called in the application:didReceiveRemoteNotification:fetchCompletionHandler: method if auto integration has been disabled in order to allow the SDK to handle the notification data. For iOS 8 & 9 this method will execute all the notification handling previously covered by the handleNotification: method. Should be used if auto integration has been disabled in order to allow the SDK to handle the notification payload.
*
* @param notificationDict The userInfo dictionary from the remote notification you want the Carnival SDK to handle.
*/
+ (void)handleNotificationPayload:(nonnull NSDictionary *)notificationDict;

/**
* Tells the Carnival SDK that the notification settings have been updated and that it should synchronize the new settings with the Carnival platform. This method is only required if auto integration has been disabled. It should be called after either the requestAuthorizationWithOptions:completionHandler: or registerUserNotificationSettings: methods have been used to request push notifications authorization.
Expand Down
4 changes: 2 additions & 2 deletions Carnival.framework/Headers/CarnivalPurchase.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (strong, nonatomic, nullable) NSString *messageId;

- (nullable instancetype) init NS_UNAVAILABLE;
+ (nullable instancetype) new NS_UNAVAILABLE;
- (instancetype) init NS_UNAVAILABLE;
+ (instancetype) new NS_UNAVAILABLE;

/**
* Create a purchase instance with the required fields.
Expand Down
4 changes: 2 additions & 2 deletions Carnival.framework/Headers/CarnivalPurchaseItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (strong, nonatomic, nullable) NSDictionary<NSString *, id> *images;

- (nullable instancetype) init NS_UNAVAILABLE;
+ (nullable instancetype) new NS_UNAVAILABLE;
- (instancetype) init NS_UNAVAILABLE;
+ (instancetype) new NS_UNAVAILABLE;

/**
* Create a purchase item instance with the required fields.
Expand Down
Binary file modified Carnival.framework/Info.plist
Binary file not shown.
20 changes: 10 additions & 10 deletions Carnival.framework/_CodeSignature/CodeResources
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<dict>
<key>Headers/Carnival.h</key>
<data>
8L5JU1wNvVEEaKEa3vG5CAt+8Mc=
ZhTzkpvQQH5Tfho3F9/bm+jnsN8=
</data>
<key>Headers/CarnivalAttributes.h</key>
<data>
Expand All @@ -30,15 +30,15 @@
</data>
<key>Headers/CarnivalPurchase.h</key>
<data>
ovEmxOZokWA58oFZQIEVMH92XjY=
oqQF5aoWX3cnLtd5V6BbH8AJSGw=
</data>
<key>Headers/CarnivalPurchaseItem.h</key>
<data>
zLQnCfuWnFaeThd2BZ69nItRW9U=
W9vHO3UL9aJY2hKldH3pComg6dI=
</data>
<key>Info.plist</key>
<data>
Edso33gjoTKEeEmJPNoCiRbzSm8=
LWHpG1A1RJk8AMKSuGJO1pOqFnc=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand Down Expand Up @@ -128,11 +128,11 @@
<dict>
<key>hash</key>
<data>
8L5JU1wNvVEEaKEa3vG5CAt+8Mc=
ZhTzkpvQQH5Tfho3F9/bm+jnsN8=
</data>
<key>hash2</key>
<data>
kWWR7k0wTEHe/Pw3RDxw6DpNhxJxPhOfGM6o1GZ0ASw=
fvVARMIoWvB4o0sdKuHyXi06QGE5CZQpQEPB9YGPCB0=
</data>
</dict>
<key>Headers/CarnivalAttributes.h</key>
Expand Down Expand Up @@ -194,22 +194,22 @@
<dict>
<key>hash</key>
<data>
ovEmxOZokWA58oFZQIEVMH92XjY=
oqQF5aoWX3cnLtd5V6BbH8AJSGw=
</data>
<key>hash2</key>
<data>
CqrzonGZ1pnanDj50+QCEoQ03abYD5xY5k8WN60mIp0=
hRyFTR5rosejC/3P8G34OM1bvyDmxvppBWZ6O353Jwg=
</data>
</dict>
<key>Headers/CarnivalPurchaseItem.h</key>
<dict>
<key>hash</key>
<data>
zLQnCfuWnFaeThd2BZ69nItRW9U=
W9vHO3UL9aJY2hKldH3pComg6dI=
</data>
<key>hash2</key>
<data>
jRO3DPJELHMImmq7VTYETLnEg0JAuVFk06x/ISSN/PY=
isLhO6VT8a7LhrhMoyIgdwY8OXz/bdbgsna2lhKbyj4=
</data>
</dict>
<key>Modules/module.modulemap</key>
Expand Down
2 changes: 1 addition & 1 deletion Carnival.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Carnival'
s.version = '8.5.1'
s.version = '8.6.0'
s.summary = 'Carnival iOS SDK for integrating with http://carnival.io messaging and analytics service.'
s.author = {
'Carnival Mobile' => '[email protected]'
Expand Down
Binary file modified CarnivalExtension.framework/CarnivalExtension
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
#import <UserNotifications/UserNotifications.h>
#import "CarnivalMessageStream.h"
#import "CarnivalAttributes.h"
#import "CarnivalLogger.h"
#import "CarnivalContentItem.h"
#import "CarnivalPurchase.h"

#define CARNIVAL_VERSION @"8.5.1"
#define CARNIVAL_VERSION @"8.6.0"
FOUNDATION_EXPORT double CarnivalSDKVersionNumber;
FOUNDATION_EXPORT const unsigned char CarnivalSDKVersionString[];

Expand Down Expand Up @@ -160,7 +161,34 @@ NS_ASSUME_NONNULL_END
*
* @param notificationDict The userInfo dictionary from the remote notification you want the Carnival SDK to handle. This dictionary is normally passed back to you from the application:didReceiveRemoteNotification: method.
*/
+ (void)handleNotification:(nonnull NSDictionary *)notificationDict;
+ (void)handleNotification:(nonnull NSDictionary *)notificationDict __attribute__((deprecated("use handleNotificationResponse:, handlePresentNotification: and handleNotificationPayload: methods instead.")));

/**
* Tells the SDK to handle the notification response.
*
* This method should be called in the userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler: method if auto integration has been disabled in order to allow the SDK to handle the notification response.
*
* @param notificationResponse The response object from the notification.
*/
+ (void)handleNotificationResponse:(nonnull UNNotificationResponse *)notificationResponse API_AVAILABLE(ios(10.0));

/**
* Tells the SDK to handle a notification received while the app was in the foreground.
*
* This method should be called in the userNotificationCenter:willPresentNotification:withCompletionHandler: method if auto integration has been disabled in order to allow the SDK to handle the notification.
*
* @param notification The notification object received.
*/
+ (void)handlePresentNotification:(nonnull UNNotification *)notification API_AVAILABLE(ios(10.0));

/**
* Tells the SDK to handle the data from a notification payload.
*
* This method should be called in the application:didReceiveRemoteNotification:fetchCompletionHandler: method if auto integration has been disabled in order to allow the SDK to handle the notification data. For iOS 8 & 9 this method will execute all the notification handling previously covered by the handleNotification: method. Should be used if auto integration has been disabled in order to allow the SDK to handle the notification payload.
*
* @param notificationDict The userInfo dictionary from the remote notification you want the Carnival SDK to handle.
*/
+ (void)handleNotificationPayload:(nonnull NSDictionary *)notificationDict;

/**
* Tells the Carnival SDK that the notification settings have been updated and that it should synchronize the new settings with the Carnival platform. This method is only required if auto integration has been disabled. It should be called after either the requestAuthorizationWithOptions:completionHandler: or registerUserNotificationSettings: methods have been used to request push notifications authorization.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (strong, nonatomic, nullable) NSString *messageId;

- (nullable instancetype) init NS_UNAVAILABLE;
+ (nullable instancetype) new NS_UNAVAILABLE;
- (instancetype) init NS_UNAVAILABLE;
+ (instancetype) new NS_UNAVAILABLE;

/**
* Create a purchase instance with the required fields.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (strong, nonatomic, nullable) NSDictionary<NSString *, id> *images;

- (nullable instancetype) init NS_UNAVAILABLE;
+ (nullable instancetype) new NS_UNAVAILABLE;
- (instancetype) init NS_UNAVAILABLE;
+ (instancetype) new NS_UNAVAILABLE;

/**
* Create a purchase item instance with the required fields.
Expand Down
Binary file modified ExampleProject/ExampleProject/Carnival.framework/Info.plist
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<dict>
<key>Headers/Carnival.h</key>
<data>
8L5JU1wNvVEEaKEa3vG5CAt+8Mc=
ZhTzkpvQQH5Tfho3F9/bm+jnsN8=
</data>
<key>Headers/CarnivalAttributes.h</key>
<data>
Expand All @@ -30,15 +30,15 @@
</data>
<key>Headers/CarnivalPurchase.h</key>
<data>
ovEmxOZokWA58oFZQIEVMH92XjY=
oqQF5aoWX3cnLtd5V6BbH8AJSGw=
</data>
<key>Headers/CarnivalPurchaseItem.h</key>
<data>
zLQnCfuWnFaeThd2BZ69nItRW9U=
W9vHO3UL9aJY2hKldH3pComg6dI=
</data>
<key>Info.plist</key>
<data>
aXr6TjZaAyOqETSCfvu8UpDYiQE=
QZefFUcQSC9rDzHjo+S+AsRSkXs=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand Down Expand Up @@ -128,11 +128,11 @@
<dict>
<key>hash</key>
<data>
8L5JU1wNvVEEaKEa3vG5CAt+8Mc=
ZhTzkpvQQH5Tfho3F9/bm+jnsN8=
</data>
<key>hash2</key>
<data>
kWWR7k0wTEHe/Pw3RDxw6DpNhxJxPhOfGM6o1GZ0ASw=
fvVARMIoWvB4o0sdKuHyXi06QGE5CZQpQEPB9YGPCB0=
</data>
</dict>
<key>Headers/CarnivalAttributes.h</key>
Expand Down Expand Up @@ -194,22 +194,22 @@
<dict>
<key>hash</key>
<data>
ovEmxOZokWA58oFZQIEVMH92XjY=
oqQF5aoWX3cnLtd5V6BbH8AJSGw=
</data>
<key>hash2</key>
<data>
CqrzonGZ1pnanDj50+QCEoQ03abYD5xY5k8WN60mIp0=
hRyFTR5rosejC/3P8G34OM1bvyDmxvppBWZ6O353Jwg=
</data>
</dict>
<key>Headers/CarnivalPurchaseItem.h</key>
<dict>
<key>hash</key>
<data>
zLQnCfuWnFaeThd2BZ69nItRW9U=
W9vHO3UL9aJY2hKldH3pComg6dI=
</data>
<key>hash2</key>
<data>
jRO3DPJELHMImmq7VTYETLnEg0JAuVFk06x/ISSN/PY=
isLhO6VT8a7LhrhMoyIgdwY8OXz/bdbgsna2lhKbyj4=
</data>
</dict>
<key>Modules/module.modulemap</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
#import <UserNotifications/UserNotifications.h>
#import "CarnivalMessageStream.h"
#import "CarnivalAttributes.h"
#import "CarnivalLogger.h"
#import "CarnivalContentItem.h"
#import "CarnivalPurchase.h"

#define CARNIVAL_VERSION @"8.5.1"
#define CARNIVAL_VERSION @"8.6.0"
FOUNDATION_EXPORT double CarnivalSDKVersionNumber;
FOUNDATION_EXPORT const unsigned char CarnivalSDKVersionString[];

Expand Down Expand Up @@ -160,7 +161,34 @@ NS_ASSUME_NONNULL_END
*
* @param notificationDict The userInfo dictionary from the remote notification you want the Carnival SDK to handle. This dictionary is normally passed back to you from the application:didReceiveRemoteNotification: method.
*/
+ (void)handleNotification:(nonnull NSDictionary *)notificationDict;
+ (void)handleNotification:(nonnull NSDictionary *)notificationDict __attribute__((deprecated("use handleNotificationResponse:, handlePresentNotification: and handleNotificationPayload: methods instead.")));

/**
* Tells the SDK to handle the notification response.
*
* This method should be called in the userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler: method if auto integration has been disabled in order to allow the SDK to handle the notification response.
*
* @param notificationResponse The response object from the notification.
*/
+ (void)handleNotificationResponse:(nonnull UNNotificationResponse *)notificationResponse API_AVAILABLE(ios(10.0));

/**
* Tells the SDK to handle a notification received while the app was in the foreground.
*
* This method should be called in the userNotificationCenter:willPresentNotification:withCompletionHandler: method if auto integration has been disabled in order to allow the SDK to handle the notification.
*
* @param notification The notification object received.
*/
+ (void)handlePresentNotification:(nonnull UNNotification *)notification API_AVAILABLE(ios(10.0));

/**
* Tells the SDK to handle the data from a notification payload.
*
* This method should be called in the application:didReceiveRemoteNotification:fetchCompletionHandler: method if auto integration has been disabled in order to allow the SDK to handle the notification data. For iOS 8 & 9 this method will execute all the notification handling previously covered by the handleNotification: method. Should be used if auto integration has been disabled in order to allow the SDK to handle the notification payload.
*
* @param notificationDict The userInfo dictionary from the remote notification you want the Carnival SDK to handle.
*/
+ (void)handleNotificationPayload:(nonnull NSDictionary *)notificationDict;

/**
* Tells the Carnival SDK that the notification settings have been updated and that it should synchronize the new settings with the Carnival platform. This method is only required if auto integration has been disabled. It should be called after either the requestAuthorizationWithOptions:completionHandler: or registerUserNotificationSettings: methods have been used to request push notifications authorization.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (strong, nonatomic, nullable) NSString *messageId;

- (nullable instancetype) init NS_UNAVAILABLE;
+ (nullable instancetype) new NS_UNAVAILABLE;
- (instancetype) init NS_UNAVAILABLE;
+ (instancetype) new NS_UNAVAILABLE;

/**
* Create a purchase instance with the required fields.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (strong, nonatomic, nullable) NSDictionary<NSString *, id> *images;

- (nullable instancetype) init NS_UNAVAILABLE;
+ (nullable instancetype) new NS_UNAVAILABLE;
- (instancetype) init NS_UNAVAILABLE;
+ (instancetype) new NS_UNAVAILABLE;

/**
* Create a purchase item instance with the required fields.
Expand Down
Binary file not shown.
Loading

0 comments on commit 956bf8e

Please sign in to comment.