Skip to content

Commit

Permalink
[MB-1425] Suppress deprecation warnings for inbox UI classes
Browse files Browse the repository at this point in the history
  • Loading branch information
crow committed Sep 25, 2015
1 parent 2cc7fad commit 10acdfa
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Airship/UI/Default/Inbox/Classes/Shared/UAInboxAlertHandler.h
Expand Up @@ -24,6 +24,9 @@
*/

#import <UIKit/UIKit.h>
#import "UACommon.h"

UA_SUPPRESS_UI_DEPRECATION_WARNINGS

typedef void (^UAInboxAlertHandlerViewBlock)(void);

Expand Down
2 changes: 2 additions & 0 deletions Airship/UI/Default/Inbox/Classes/Shared/UAInboxAlertHandler.m
Expand Up @@ -28,6 +28,8 @@
#import "UAInboxAlertHandler.h"
#import "UAInboxLocalization.h"

UA_SUPPRESS_UI_DEPRECATION_WARNINGS

@interface UAInboxAlertHandler()
@property(nonatomic, copy) UAInboxAlertHandlerViewBlock viewBlock;
@end
Expand Down
Expand Up @@ -26,9 +26,13 @@
#import "UAInboxMessageViewController.h"
#import "UAInboxLocalization.h"

#import "UACommon.h"

#define kMessageUp 0
#define kMessageDown 1

UA_SUPPRESS_UI_DEPRECATION_WARNINGS

@interface UAInboxMessageViewController ()

- (void)refreshHeader;
Expand Down
3 changes: 3 additions & 0 deletions InboxSample/Classes/Shared/InboxSampleAppDelegate.m
Expand Up @@ -35,9 +35,12 @@
#import "InboxSampleViewController.h"
#import "InboxDelegate.h"
#import "PushNotificationDelegate.h"
#import "UACommon.h"

#define kSimulatorWarningDisabledKey @"ua-simulator-warning-disabled"

UA_SUPPRESS_UI_DEPRECATION_WARNINGS

@interface InboxSampleAppDelegate()
@property (nonatomic, strong) InboxDelegate *inboxDelegate;
@property (nonatomic, strong) PushNotificationDelegate *pushDelegate;
Expand Down
3 changes: 3 additions & 0 deletions InboxSample/Classes/Shared/InboxSamplePopoverUserInterface.m
Expand Up @@ -24,6 +24,9 @@
*/

#import "InboxSamplePopoverUserInterface.h"
#import "UACommon.h"

UA_SUPPRESS_UI_DEPRECATION_WARNINGS

@interface InboxSamplePopoverUserInterface ()
@property(nonatomic, strong) UINavigationController *navigationController;
Expand Down
2 changes: 2 additions & 0 deletions InboxSample/Classes/Shared/InboxSampleViewController.m
Expand Up @@ -38,6 +38,8 @@
#import "InboxSamplePopoverUserInterface.h"
#import "InboxSampleNavigationUserInterface.h"

UA_SUPPRESS_UI_DEPRECATION_WARNINGS

typedef NS_ENUM(NSInteger, InboxStyle) {
InboxStyleModal,
InboxStyleNavigation
Expand Down
4 changes: 4 additions & 0 deletions InboxSample/Classes/Shared/PushNotificationDelegate.m
Expand Up @@ -29,9 +29,13 @@
#import "AirshipLib.h"
#endif

#import "UACommon.h"

#import "PushNotificationDelegate.h"
#import "UAInboxLocalization.h"

UA_SUPPRESS_UI_DEPRECATION_WARNINGS

@implementation PushNotificationDelegate

- (void)receivedForegroundNotification:(NSDictionary *)notification fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
Expand Down

0 comments on commit 10acdfa

Please sign in to comment.