Skip to content

Commit

Permalink
Use @import instead #import.
Browse files Browse the repository at this point in the history
Now really include the warning suppression code.
  • Loading branch information
arashpayan authored and Matthew Sun committed Jan 11, 2017
1 parent 2191c1d commit 04048d5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
11 changes: 8 additions & 3 deletions Appirater.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
* Copyright 2012 Arash Payan. All rights reserved.
*/

#import <Foundation/Foundation.h>
@import Foundation;
@import StoreKit;
#import "AppiraterDelegate.h"
#import <StoreKit/StoreKit.h>

extern NSString *const kAppiraterFirstUseDate;
extern NSString *const kAppiraterUseCount;
Expand Down Expand Up @@ -99,11 +99,16 @@ extern NSString *const kAppiraterReminderRequestDate;
#define APPIRATER_RATE_LATER NSLocalizedStringFromTableInBundle(@"Remind me later", @"AppiraterLocalizable", [Appirater bundle], nil)

@interface Appirater : NSObject <UIAlertViewDelegate, SKStoreProductViewControllerDelegate> {

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
UIAlertView *ratingAlert;
#pragma clang diagnostic pop
}

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@property(nonatomic, strong) UIAlertView *ratingAlert;
#pragma clan diagnostic pop
@property(nonatomic) BOOL openInAppStore;
#if __has_feature(objc_arc_weak)
@property(nonatomic, weak) NSObject <AppiraterDelegate> *delegate;
Expand Down
3 changes: 2 additions & 1 deletion Appirater.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@
* Copyright 2012 Arash Payan. All rights reserved.
*/

@import SystemConfiguration;
@import CFNetwork;
#import "Appirater.h"
#import <SystemConfiguration/SCNetworkReachability.h>
#include <netinet/in.h>

#if ! __has_feature(objc_arc)
Expand Down
2 changes: 1 addition & 1 deletion AppiraterDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright (c) 2012 News.me. All rights reserved.
//

#import <Foundation/Foundation.h>
@import Foundation;

@class Appirater;

Expand Down

0 comments on commit 04048d5

Please sign in to comment.