Skip to content

Commit

Permalink
[Dependencies] Complete dependency teardown.
Browse files Browse the repository at this point in the history
All files now pull in the minimum number of header files. This leads to
cleaner dependencies and fewer files being pulled in on average. Hacking
on Three20 files should now be much faster and not involve building a large
tree of dependencies.
  • Loading branch information
jverkoey committed Dec 11, 2009
1 parent 46e07bc commit 06f4b4e
Show file tree
Hide file tree
Showing 100 changed files with 354 additions and 112 deletions.
3 changes: 3 additions & 0 deletions src/TTActionSheetController.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
//

#import "Three20/TTActionSheetController.h"

#import "Three20/TTGlobalCore.h"

#import "Three20/TTNavigator.h"

///////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 4 additions & 0 deletions src/TTActivityLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
//

#import "Three20/TTActivityLabel.h"

#import "Three20/TTGlobalUI.h"
#import "Three20/TTGlobalUINavigator.h"

#import "Three20/TTView.h"
#import "Three20/TTDefaultStyleSheet.h"
#import "Three20/TTButton.h"
Expand Down
3 changes: 3 additions & 0 deletions src/TTAlertViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
//

#import "Three20/TTAlertViewController.h"

#import "Three20/TTGlobalCore.h"

#import "Three20/TTNavigator.h"

///////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
14 changes: 9 additions & 5 deletions src/TTButton.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@
// limitations under the License.
//

#include "Three20/TTButton.h"
#include "Three20/TTDefaultStyleSheet.h"
#include "Three20/TTURLRequest.h"
#include "Three20/TTURLResponse.h"
#include "Three20/TTURLCache.h"
#import "Three20/TTButton.h"

#import "Three20/TTGlobalCore.h"
#import "Three20/TTGlobalUI.h"

#import "Three20/TTDefaultStyleSheet.h"
#import "Three20/TTURLRequest.h"
#import "Three20/TTURLResponse.h"
#import "Three20/TTURLCache.h"

///////////////////////////////////////////////////////////////////////////////////////////////////
// global
Expand Down
3 changes: 3 additions & 0 deletions src/TTButtonBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
//

#import "Three20/TTButtonBar.h"

#import "Three20/TTGlobalCore.h"
#import "Three20/TTGlobalUI.h"
#import "Three20/TTButton.h"

///////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 2 additions & 2 deletions src/TTDebug.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

#if TARGET_IPHONE_SIMULATOR

#include <unistd.h>
#include <sys/sysctl.h>
#import <unistd.h>
#import <sys/sysctl.h>

// From: http://developer.apple.com/mac/library/qa/qa2004/qa1361.html
int TTIsInDebugger(void) {
Expand Down
2 changes: 2 additions & 0 deletions src/TTDefaultStyleSheet.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#import "Three20/TTDefaultStyleSheet.h"

#import "Three20/TTGlobalUI.h"

#import "Three20/TTStyle.h"
#import "Three20/TTShape.h"
#import "Three20/TTURLCache.h"
Expand Down
5 changes: 5 additions & 0 deletions src/TTErrorView.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
//

#import "Three20/TTErrorView.h"

#import "Three20/TTGlobalCore.h"
#import "Three20/TTGlobalUI.h"
#import "Three20/TTGlobalStyle.h"

#import "Three20/TTDefaultStyleSheet.h"

///////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
7 changes: 6 additions & 1 deletion src/TTImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@
//

#import "Three20/TTImageView.h"

#import "Three20/TTGlobalCore.h"
#import "Three20/TTGlobalUI.h"

#import "Three20/TTURLCache.h"
#import "Three20/TTURLResponse.h"
#import "Three20/TTShape.h"
#import "QuartzCore/CALayer.h"

#import <QuartzCore/QuartzCore.h>

//////////////////////////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 2 additions & 0 deletions src/TTLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
//

#import "Three20/TTLabel.h"

#import "Three20/TTGlobalCore.h"
#import "Three20/TTDefaultStyleSheet.h"

///////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
7 changes: 5 additions & 2 deletions src/TTLauncherButton.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@
// Copyright 2004-2009 Facebook. All Rights Reserved.

#import "Three20/TTLauncherButton.h"

#import "Three20/TTGlobalCore.h"
#import "Three20/TTGlobalUI.h"

#import "Three20/TTLauncherItem.h"
#import "Three20/TTLauncherView.h"
#import "Three20/TTLabel.h"
#import "Three20/TTDefaultStyleSheet.h"
#import "Three20/TTStyleSheet.h"

///////////////////////////////////////////////////////////////////////////////////////////////////
// global
Expand Down
4 changes: 2 additions & 2 deletions src/TTLauncherItem.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
// limitations under the License.
//

// Copyright 2004-2009 Facebook. All Rights Reserved.

#import "Three20/TTLauncherItem.h"

#import "Three20/TTGlobalCore.h"

///////////////////////////////////////////////////////////////////////////////////////////////////

@implementation TTLauncherItem
Expand Down
4 changes: 4 additions & 0 deletions src/TTLauncherView.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
//

#import "Three20/TTLauncherView.h"

#import "Three20/TTGlobalUI.h"

#import "Three20/TTURLRequest.h"
#import "Three20/TTLauncherItem.h"
#import "Three20/TTLauncherButton.h"
#import "Three20/TTPageControl.h"
Expand Down
2 changes: 2 additions & 0 deletions src/TTLayout.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#import "Three20/TTLayout.h"

#import "Three20/TTGlobalUI.h"

///////////////////////////////////////////////////////////////////////////////////////////////////

@implementation TTLayout
Expand Down
13 changes: 8 additions & 5 deletions src/TTLink.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@
// limitations under the License.
//

#include "Three20/TTLink.h"
#include "Three20/TTNavigator.h"
#include "Three20/TTShape.h"
#include "Three20/TTView.h"
#include "Three20/TTDefaultStyleSheet.h"
#import "Three20/TTLink.h"

#import "Three20/TTGlobalCore.h"

#import "Three20/TTNavigator.h"
#import "Three20/TTShape.h"
#import "Three20/TTView.h"
#import "Three20/TTStyleSheet.h"

///////////////////////////////////////////////////////////////////////////////////////////////////

Expand Down
3 changes: 3 additions & 0 deletions src/TTListDataSource.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
//

#import "Three20/TTListDataSource.h"

#import "Three20/TTGlobalCore.h"

#import "Three20/TTTableItem.h"

///////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
8 changes: 7 additions & 1 deletion src/TTMessageController.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@
//

#import "Three20/TTMessageController.h"

#import "Three20/TTGlobalCore.h"
#import "Three20/TTGlobalCoreLocale.h"
#import "Three20/TTGlobalUI.h"
#import "Three20/TTGlobalUINavigator.h"

#import "Three20/TTTableViewDataSource.h"
#import "Three20/TTDefaultStyleSheet.h"
#import "Three20/TTPickerTextField.h"
#import "Three20/TTTextEditor.h"
#import "Three20/TTActivityLabel.h"

///////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
9 changes: 6 additions & 3 deletions src/TTModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@
// limitations under the License.
//

#import "TTModel.h"
#import "TTURLCache.h"
#import "TTURLRequestQueue.h"
#import "Three20/TTModel.h"

#import "Three20/TTGlobalCore.h"

#import "Three20/TTURLCache.h"
#import "Three20/TTURLRequestQueue.h"

///////////////////////////////////////////////////////////////////////////////////////////////////

Expand Down
4 changes: 4 additions & 0 deletions src/TTModelViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
//

#import "Three20/TTModelViewController.h"

#import "Three20/TTGlobalCore.h"
#import "Three20/TTGlobalUI.h"

#import "Three20/TTNavigator.h"

///////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
1 change: 1 addition & 0 deletions src/TTNavigator.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#import "Three20/TTNavigator.h"

#import "Three20/TTGlobalUI.h"
#import "Three20/TTGlobalUINavigator.h"

#import "Three20/TTURLMap.h"
#import "Three20/TTURLPattern.h"
Expand Down
10 changes: 7 additions & 3 deletions src/TTPageControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@
// limitations under the License.
//

#include "Three20/TTPageControl.h"
#include "Three20/TTStyleSheet.h"
#include "Three20/TTStyle.h"
#import "Three20/TTPageControl.h"

#import "Three20/TTGlobalCore.h"
#import "Three20/TTGlobalUI.h"

#import "Three20/TTStyleSheet.h"
#import "Three20/TTStyle.h"

///////////////////////////////////////////////////////////////////////////////////////////////////

Expand Down
10 changes: 7 additions & 3 deletions src/TTPhotoView.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@
//

#import "Three20/TTPhotoView.h"
#import "Three20/TTDefaultStyleSheet.h"
#import "Three20/TTImageView.h"

#import "Three20/TTGlobalCore.h"
#import "Three20/TTGlobalCoreLocale.h"
#import "Three20/TTGlobalUI.h"
#import "Three20/TTGlobalUINavigator.h"

#import "Three20/TTLabel.h"
#import "Three20/TTActivityLabel.h"
#import "Three20/TTURLCache.h"
#import "Three20/TTURLRequestQueue.h"
#import "Three20/TTStyleSheet.h"

//////////////////////////////////////////////////////////////////////////////////////////////////

Expand Down
6 changes: 5 additions & 1 deletion src/TTPhotoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@
//

#import "Three20/TTPhotoViewController.h"

#import "Three20/TTGlobalCore.h"
#import "Three20/TTGlobalCoreLocale.h"
#import "Three20/TTGlobalUI.h"

#import "Three20/TTURLCache.h"
#import "Three20/TTURLRequest.h"
#import "Three20/TTPhotoView.h"
#import "Three20/TTActivityLabel.h"
#import "Three20/TTNavigator.h"
Expand Down
8 changes: 7 additions & 1 deletion src/TTPickerTextField.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@
//

#import "Three20/TTPickerTextField.h"
#import "TTPickerViewCell.h"

#import "Three20/TTGlobalCore.h"
#import "Three20/TTGlobalUI.h"
#import "Three20/TTGlobalUINavigator.h"

#import "Three20/TTTableViewDataSource.h"
#import "Three20/TTPickerViewCell.h"

///////////////////////////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 2 additions & 0 deletions src/TTPickerViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
//

#import "Three20/TTPickerViewCell.h"

#import "Three20/TTGlobalCore.h"
#import "Three20/TTDefaultStyleSheet.h"

///////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 2 additions & 0 deletions src/TTPopupViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#import "Three20/TTPopupViewController.h"

#import "Three20/TTGlobalUI.h"

///////////////////////////////////////////////////////////////////////////////////////////////////

@implementation TTPopupViewController
Expand Down
7 changes: 6 additions & 1 deletion src/TTPostController.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
//

#import "Three20/TTPostController.h"
#import "Three20/TTStyle.h"

#import "Three20/TTGlobalCore.h"
#import "Three20/TTGlobalCoreLocale.h"
#import "Three20/TTGlobalUI.h"
#import "Three20/TTGlobalUINavigator.h"

#import "Three20/TTStyleSheet.h"
#import "Three20/TTNavigator.h"
#import "Three20/TTActivityLabel.h"
Expand Down
3 changes: 3 additions & 0 deletions src/TTScrollView.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

#import "Three20/TTScrollView.h"

#import "Three20/TTGlobalCore.h"
#import "Three20/TTGlobalUI.h"

///////////////////////////////////////////////////////////////////////////////////////////////////

static const NSInteger kOffscreenPages = 1;
Expand Down
5 changes: 4 additions & 1 deletion src/TTSearchBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
//

#import "Three20/TTSearchBar.h"

#import "Three20/TTGlobalCoreLocale.h"
#import "Three20/TTGlobalUI.h"

#import "Three20/TTSearchTextField.h"
#import "Three20/TTView.h"
#import "Three20/TTDefaultStyleSheet.h"
#import "Three20/TTButton.h"

Expand Down
4 changes: 4 additions & 0 deletions src/TTSearchDisplayController.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
//

#import "Three20/TTSearchDisplayController.h"

#import "Three20/TTGlobalCore.h"
#import "Three20/TTGlobalUI.h"

#import "Three20/TTTableViewController.h"
#import "Three20/TTTableViewDataSource.h"

Expand Down
Loading

0 comments on commit 06f4b4e

Please sign in to comment.