Skip to content

Commit

Permalink
Cleaned up imports and added errors when compiled with non-ARC compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
MugunthKumar committed Apr 1, 2012
1 parent d4c439a commit ff82f3b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
3 changes: 1 addition & 2 deletions MKNetworkKit/Categories/NSDictionary+RequestEncoding.m
Expand Up @@ -23,8 +23,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

#import "NSDictionary+RequestEncoding.h"
#import "NSString+MKNetworkKitAdditions.h"
#import "MKNetworkKit.h"

@implementation NSDictionary (RequestEncoding)

Expand Down
2 changes: 1 addition & 1 deletion MKNetworkKit/MKNetworkEngine.h
Expand Up @@ -24,7 +24,7 @@
// THE SOFTWARE.

#import "MKNetworkOperation.h"

#import "Reachability.h"
/*!
@header MKNetworkEngine.h
@abstract Represents a subclassable Network Engine for your app
Expand Down
11 changes: 9 additions & 2 deletions MKNetworkKit/MKNetworkEngine.m
Expand Up @@ -23,10 +23,17 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

#import "MKNetworkEngine.h"
#import "Reachability.h"
#import "MKNetworkKit.h"
#define kFreezableOperationExtension @"mknetworkkitfrozenoperation"

#ifdef __OBJC_GC__
#error MKNetworkKit does not support Objective-C Garbage Collection
#endif

#if ! __has_feature(objc_arc)
#error MKNetworkKit is ARC only. Either turn on ARC for the project or use -fobjc-arc flag
#endif

@interface MKNetworkEngine (/*Private Methods*/)

@property (strong, nonatomic) NSString *hostName;
Expand Down
2 changes: 1 addition & 1 deletion MKNetworkKit/MKNetworkKit.h
Expand Up @@ -27,7 +27,7 @@
#define MKNetworkKit_MKNetworkKit_h

#ifndef __IPHONE_4_0
#warning "MKNetworkKit uses features only available in iOS SDK 4.0 and later."
#error "MKNetworkKit uses features only available in iOS SDK 4.0 and later."
#endif

#if TARGET_OS_IPHONE
Expand Down
11 changes: 8 additions & 3 deletions MKNetworkKit/MKNetworkOperation.m
Expand Up @@ -23,10 +23,15 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

#import "MKNetworkOperation.h"
#import "NSDictionary+RequestEncoding.h"
#import "NSString+MKNetworkKitAdditions.h"
#import "MKNetworkKit.h"

#ifdef __OBJC_GC__
#error MKNetworkKit does not support Objective-C Garbage Collection
#endif

#if ! __has_feature(objc_arc)
#error MKNetworkKit is ARC only. Either turn on ARC for the project or use -fobjc-arc flag
#endif

@interface MKNetworkOperation (/*Private Methods*/)
@property (strong, nonatomic) NSURLConnection *connection;
Expand Down

0 comments on commit ff82f3b

Please sign in to comment.