Skip to content

Commit

Permalink
Optimizing imports
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 356966165
  • Loading branch information
Jeff Verkoeyen authored and material-automation committed Feb 11, 2021
1 parent 6171ea2 commit 63988b3
Show file tree
Hide file tree
Showing 21 changed files with 50 additions and 20 deletions.
2 changes: 1 addition & 1 deletion catalog/MaterialCatalog/MDCCatalogTiles.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#import <UIKit/UIKit.h>

#import "MDCCatalogTiles.h"
#import "MaterialThemes.h"
#import "MaterialColorScheme.h"

UIImage* _Nullable MDCDrawImage(CGRect frame,
MDCDrawFunc drawFunc,
Expand Down
1 change: 1 addition & 0 deletions components/AppBar/src/MDCAppBarContainerViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#import "MDCAppBarViewController.h"
#import "MaterialFlexibleHeader.h"
#import "MaterialNavigationBar.h"

@interface MDCAppBarContainerViewController ()

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

#import "MDCAppBarNavigationControllerToBeDeprecatedDelegate.h"
#import "MDCAppBarViewController.h"
#import "MaterialFlexibleHeader.h"
#import "MaterialHeaderStackView.h"

#import <objc/runtime.h>

Expand Down
7 changes: 3 additions & 4 deletions components/AppBar/src/MDCAppBarViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,21 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import "MDCAppBar.h"
#import "MDCAppBarViewController.h"

#import "MDCAppBarContainerViewController.h"

#import "private/MaterialAppBarStrings.h"
#import "private/MaterialAppBarStrings_table.h"
#import "MDCAppBarViewControllerAccessibilityPerformEscapeDelegate.h"
#import "MaterialFlexibleHeader.h"
#import "MaterialHeaderStackView.h"
#import "MaterialNavigationBar.h"
#import "MaterialShadowElevations.h"
#import "MaterialShadowLayer.h"
#import "MaterialTypography.h"
#import "MaterialApplication.h"
#import "MaterialIcons+ic_arrow_back.h"
#import "MaterialUIMetrics.h"
#import <MDFInternationalization/MDFInternationalization.h>
#import <MDFTextAccessibility/MDFTextAccessibility.h>

static NSString *const kBarStackKey = @"barStack";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
#import <UIKit/UIKit.h>

#import "MaterialButtonBar.h"
#import "MaterialColorScheme.h"
#import "MaterialContainerScheme.h"
#import "MaterialTypographyScheme.h"

@interface ButtonBarCustomizedFontExample : UIViewController
@property(nonatomic, strong) MDCSemanticColorScheme *colorScheme;
Expand Down
2 changes: 2 additions & 0 deletions components/ButtonBar/examples/ButtonBarMenuExample.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

#import "MaterialAvailability.h"
#import "MaterialButtonBar.h"
#import "MaterialColorScheme.h"
#import "MaterialContainerScheme.h"
#import "MaterialTypographyScheme.h"

@interface ButtonBarMenuExample : UIViewController
@property(nonatomic, strong) MDCSemanticColorScheme *colorScheme;
Expand Down
2 changes: 2 additions & 0 deletions components/ButtonBar/examples/ButtonBarTypicalUseExample.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
#import <UIKit/UIKit.h>

#import "MaterialButtonBar.h"
#import "MaterialColorScheme.h"
#import "MaterialContainerScheme.h"
#import "MaterialTypographyScheme.h"

@interface ButtonBarTypicalUseExample : UIViewController
@property(nonatomic, strong) MDCSemanticColorScheme *colorScheme;
Expand Down
6 changes: 6 additions & 0 deletions components/Buttons/src/ButtonThemer/MDCButtonScheme.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

#import "MDCButtonScheme.h"

#import "MaterialColorScheme.h"

#import "MaterialShapeScheme.h"

#import "MaterialTypographyScheme.h"

@implementation MDCButtonScheme

- (instancetype)init {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

#import "MDCContainedButtonThemer.h"

#import "MDCButtonScheme.h"
#import "MaterialButtons+ColorThemer.h"
#import "MaterialButtons.h"
#import "MaterialButtons+ShapeThemer.h"
#import "MaterialButtons+TypographyThemer.h"

Expand Down
2 changes: 2 additions & 0 deletions components/Buttons/src/ButtonThemer/MDCTextButtonThemer.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

#import "MDCTextButtonThemer.h"

#import "MDCButtonScheme.h"
#import "MaterialButtons+ColorThemer.h"
#import "MaterialButtons.h"
#import "MaterialButtons+ShapeThemer.h"
#import "MaterialButtons+TypographyThemer.h"

Expand Down
7 changes: 6 additions & 1 deletion components/Cards/src/MDCCard.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@

#import "MDCCard.h"

#import "MaterialMath.h"
#import "MaterialElevation.h"
#import "MaterialInk.h"
#import "MaterialRipple.h"
#import "MaterialShadowElevations.h"
#import "MaterialShadowLayer.h"
#import "MaterialShapes.h"
#import "MaterialMath.h"

static const CGFloat MDCCardShadowElevationNormal = 1;
static const CGFloat MDCCardShadowElevationHighlighted = 8;
Expand Down
7 changes: 6 additions & 1 deletion components/Cards/src/MDCCardCollectionCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@

#import "MDCCardCollectionCell.h"

#import "MaterialElevation.h"
#import "MaterialInk.h"
#import "MaterialRipple.h"
#import "MaterialShadowElevations.h"
#import "MaterialShadowLayer.h"
#import "MaterialShapes.h"
#import "MaterialIcons+ic_check_circle.h"
#import "MaterialMath.h"
#import "MaterialShapes.h"

static const CGFloat MDCCardCellCornerRadiusDefault = 4;
static const CGFloat MDCCardCellSelectedImagePadding = 8;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

#import "UICollectionViewController+MDCCardReordering.h"

#import "MDCCardCollectionCell.h"
#import "MaterialInk.h"

@implementation UICollectionViewController (MDCCardReordering)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#import "MaterialTextFields.h"

#import "supplemental/TextFieldControllerStylesExampleSupplemental.h"
#import "MaterialColorScheme.h"
#import "MaterialContainerScheme.h"

@interface TextFieldControllerStylesExample ()

Expand Down
4 changes: 3 additions & 1 deletion components/TextFields/examples/TextFieldOutlinedExample.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import "MaterialTextFields+Theming.h"
#import "MaterialTextFields.h"
#import "MaterialTextFields+Theming.h"
#import "MaterialColorScheme.h"
#import "MaterialContainerScheme.h"

@interface TextFieldOutlinedObjectiveCExample
: UIViewController <UITextFieldDelegate, UITextViewDelegate>
Expand Down
1 change: 0 additions & 1 deletion components/Typography/src/MDCFontScaler.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#import <objc/runtime.h>

#import "UIFont+MaterialScalable.h"
#import "private/MDCFontTraits.h"
#import "private/MDCTypographyUtilities.h"

MDCTextStyle const MDCTextStyleHeadline1 = @"MDC.TextStyle.Headline1";
Expand Down
1 change: 0 additions & 1 deletion components/Typography/src/UIFont+MaterialScalable.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#import "MaterialApplication.h"

#import "MDCTypography.h"
#import "private/MDCTypographyUtilities.h"

static char MDCFontScaleObjectKey;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@
#import "supplemental/MDCShapeExamplesDummyCollectionViewController.h"

#import "MaterialAppBar+ColorThemer.h"
#import "MaterialAppBar+TypographyThemer.h"
#import "MaterialAppBar.h"
#import "MaterialBottomSheet+ShapeThemer.h"
#import "MaterialAppBar+TypographyThemer.h"
#import "MaterialBottomSheet.h"
#import "MaterialButtons+ButtonThemer.h"
#import "MaterialBottomSheet+ShapeThemer.h"
#import "MaterialButtons.h"
#import "MaterialButtons+ShapeThemer.h"
#import "MaterialButtons+Theming.h"
#import "MaterialButtons.h"
#import "MaterialCards+Theming.h"
#import "MaterialCards.h"
#import "MaterialChips+Theming.h"
#import "MaterialCards+Theming.h"
#import "MaterialChips.h"
#import "MaterialChips+Theming.h"
#import "MaterialFlexibleHeader.h"
#import "MaterialShapes.h"
#import "MaterialColorScheme.h"
#import "MaterialContainerScheme.h"
#import "MaterialShapeLibrary.h"
#import "MaterialShapeScheme.h"
#import "MaterialTypographyScheme.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

#import "MaterialCards.h"
#import "MaterialCards+Theming.h"
#import "MaterialShapeLibrary.h"
#import "MaterialShapes.h"

Expand Down
1 change: 1 addition & 0 deletions components/schemes/Shape/src/MDCShapeCategory.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#import "MDCShapeCategory.h"
#import "MaterialShapeLibrary.h"
#import "MaterialShapes.h"

@implementation MDCShapeCategory

Expand Down
2 changes: 2 additions & 0 deletions components/schemes/Shape/src/MDCShapeScheme.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

#import "MDCShapeScheme.h"

#import "MDCShapeCategory.h"

@implementation MDCShapeScheme

- (instancetype)init {
Expand Down

0 comments on commit 63988b3

Please sign in to comment.