TheRealKerni/HockeyKit — Issue #97: The HockeyKitlib xcodeproj could be more convient
Author: sprhawk
Created: 2011-10-30 06:38:26+00:00
State: open

I moved some #import header from .h to .m, then I can just include BWHockeyManager.h only,

my diffs

diff --git a/client/iOS/BWHockeyManager.h b/client/iOS/BWHockeyManager.h
index 4fd9ac7..e37b619 100644
--- a/client/iOS/BWHockeyManager.h
+++ b/client/iOS/BWHockeyManager.h
@@ -24,9 +24,9 @@

#import
-#import "BWGlobal.h"
-#import "BWApp.h"
-#import "BWHockeyViewController.h"
+
+@class BWApp;
+@class BWHockeyViewController;

typedef enum {
HockeyComparisonResultDifferent,
diff --git a/client/iOS/BWHockeyManager.m b/client/iOS/BWHockeyManager.m
index 85601c6..2f2ea54 100644
--- a/client/iOS/BWHockeyManager.m
+++ b/client/iOS/BWHockeyManager.m
@@ -27,6 +27,9 @@
#import "UIImage+HockeyAdditions.h"
#import
#import
+#import "BWHockeyViewController.h"
+#import "BWApp.h"
+#import "BWGlobal.h"

// API defines - do not change
#define BETA_DOWNLOAD_TYPE_PROFILE	@"profile"
diff --git a/client/iOS/BWHockeySettingsViewController.m b/client/iOS/BWHockeySettingsViewController.m
index 86619cb..4615b24 100644
--- a/client/iOS/BWHockeySettingsViewController.m
+++ b/client/iOS/BWHockeySettingsViewController.m
@@ -8,6 +8,7 @@

#import "BWHockeySettingsViewController.h"
#import "BWHockeyManager.h"
+#import "BWGlobal.h"

#define BW_RGBCOLOR(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]