Skip to content

Commit

Permalink
Optimizing imports
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 356966407
  • Loading branch information
Jeff Verkoeyen authored and material-automation committed Feb 11, 2021
1 parent 63988b3 commit b3fa420
Show file tree
Hide file tree
Showing 23 changed files with 46 additions and 14 deletions.
6 changes: 6 additions & 0 deletions components/List/src/Theming/MDCBaseCell+MaterialTheming.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

#import "MDCBaseCell+MaterialTheming.h"

#import "MaterialList.h"

#import "MaterialColorScheme.h"

#import "MaterialContainerScheme.h"

static const CGFloat kInkAlpha = (CGFloat)0.16;

@implementation MDCBaseCell (MaterialTheming)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@

#import "MDCSelfSizingStereoCell+MaterialTheming.h"

#import "MaterialList.h"
#import "MaterialTypography.h"
#import "MaterialColorScheme.h"
#import "MaterialContainerScheme.h"
#import "MaterialTypographyScheme.h"
#import "MaterialTypographyScheme+Scheming.h"

static const CGFloat kHighAlpha = (CGFloat)0.87;
static const CGFloat kInkAlpha = (CGFloat)0.16;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
#import <XCTest/XCTest.h>

#import "MaterialButtonBar.h"
#import "MaterialInk.h"
#import "MaterialNavigationBar.h"
#import "MaterialRipple.h"

@interface MDCNavigationBar (Testing)
- (MDCButtonBar *)leadingButtonBar;
Expand Down
3 changes: 2 additions & 1 deletion components/NavigationBar/tests/unit/NavigationBarTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
#import <XCTest/XCTest.h>

#import "MaterialButtonBar.h"
#import "MaterialNavigationBar+TypographyThemer.h"
#import "MaterialNavigationBar.h"
#import "MaterialNavigationBar+TypographyThemer.h"
#import "MaterialTypographyScheme.h"

static const CGFloat kEpsilonAccuracy = (CGFloat)0.001;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#import "../../src/private/MDCBottomDrawerContainerViewController.h"
#import "../../src/private/MDCBottomDrawerHeaderMask.h"
#import "../../src/private/MDCBottomDrawerShadowedView.h"
#import "MDCBottomDrawerState.h"
#import "MaterialNavigationDrawer.h"
#import "MDCBottomDrawerContainerViewControllerDelegate.h"
#import "MDCNavigationDrawerFakes.h"
#import "MaterialShadowLayer.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@

#import <XCTest/XCTest.h>

#import "MDCNavigationDrawerFakes.h"
#import "MaterialNavigationDrawer+ColorThemer.h"
#import "MaterialNavigationDrawer.h"
#import "MDCNavigationDrawerFakes.h"
#import "MaterialColorScheme.h"

static const CGFloat kScimAlpha = (CGFloat)0.32;

Expand Down
1 change: 1 addition & 0 deletions components/Ripple/tests/unit/MDCRippleLayerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#import <XCTest/XCTest.h>

#import "../../src/private/MDCRippleLayer.h"
#import "MDCRippleLayerDelegate.h"

#pragma mark - Fake classes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#import "ShadowElevationsPointsLabel.h"

#import "MaterialShadowElevations.h"
#import "MaterialShadowLayer.h"

@implementation ShadowElevationsPointsLabel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#import "MaterialMath.h"
#import "MaterialShadowElevations.h"
#import "MaterialShadowLayer.h"
#import "MaterialSlider.h"

static NSString *const kDefaultShadowElevationLabelString = @"";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#import <UIKit/UIKit.h>

#import "MaterialShadowLayer.h"
#import "MaterialSlider.h"
#import "ShadowRadiusLabel.h"

Expand Down
1 change: 1 addition & 0 deletions components/ShadowLayer/examples/ShadowRadiusLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#import "ShadowRadiusLabel.h"

#import "MaterialShadowElevations.h"
#import "MaterialShadowLayer.h"

@implementation ShadowRadiusLabel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#import "MaterialSlider+ColorThemer.h"
#import "MaterialSlider.h"
#import "MaterialColorScheme.h"
#import "MaterialTypographyScheme.h"

@interface SliderAutolayoutExampleViewController ()
@property(weak, nonatomic) IBOutlet UISlider *vanillaSlider;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import "MaterialCollections.h"
#import "MaterialColorScheme.h"
#import "MaterialPalettes.h"
#import "MaterialSlider+ColorThemer.h"
Expand Down
2 changes: 2 additions & 0 deletions components/Snackbar/src/MDCSnackbarManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

#import "MDCSnackbarManager.h"

#import "MaterialButtons.h"
#import "MaterialOverlayWindow.h"
#import "MaterialShadowElevations.h"
#import "MDCSnackbarManagerDelegate.h"
#import "MDCSnackbarMessage.h"
#import "MDCSnackbarMessageView.h"
Expand Down
3 changes: 3 additions & 0 deletions components/Snackbar/src/MDCSnackbarMessageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

#import <QuartzCore/QuartzCore.h>

#import "MaterialButtons.h"
#import "MaterialElevation.h"
#import "MaterialShadowElevations.h"
#import "MDCSnackbarManager.h"
#import "MDCSnackbarMessage.h"
#import "MDCSnackbarMessageView.h"
Expand Down
2 changes: 2 additions & 0 deletions components/Snackbar/tests/unit/MDCSnackbarRippleTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

#import <XCTest/XCTest.h>

#import "MaterialButtons.h"
#import "MaterialInk.h"
#import "MaterialSnackbar.h"

#import "../../src/private/MDCSnackbarManagerInternal.h"
Expand Down
1 change: 1 addition & 0 deletions components/Snackbar/tests/unit/SnackbarManagerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#import <XCTest/XCTest.h>
#import "../../src/private/MDCSnackbarManagerInternal.h"
#import "MaterialShadowElevations.h"
#import "MaterialSnackbar.h"

@interface MDCSnackbarManagerInternal (SnackbarManagerTesting)
Expand Down
12 changes: 7 additions & 5 deletions components/Tabs/src/MDCTabBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

#import "MDCTabBar.h"

#import "MDCTabBarAlignment.h"
#import "MDCTabBarItemAppearance.h"
#import "MDCTabBarTextTransform.h"
#import "MDCItemBarDelegate.h"
#import <MDFInternationalization/MDFInternationalization.h>

#import "private/MDCItemBar.h"
Expand All @@ -23,8 +27,6 @@
#import "MaterialRipple.h"
#import "MDCTabBarExtendedAlignment.h"
#import "MDCTabBarDelegate.h"
#import "MDCTabBarDisplayDelegate.h"
#import "MDCTabBarIndicatorTemplate.h"
#import "MDCTabBarUnderlineIndicatorTemplate.h"
#import "MDCTabBarSizeClassDelegate.h"
#import "MaterialTypography.h"
Expand Down Expand Up @@ -85,11 +87,11 @@ static MDCItemBarAlignment MDCItemBarAlignmentForTabBarAlignment(
return [UIColor colorWithWhite:1 alpha:(CGFloat)0.7];
}

@interface MDCTabBar ()
@property(nonatomic, weak, nullable) id<MDCTabBarSizeClassDelegate> sizeClassDelegate;
@end
@protocol MDCTabBarSizeClassDelegate;
@protocol MDCTabBarDisplayDelegate;

@interface MDCTabBar ()
@property(nonatomic, weak, nullable) id<MDCTabBarSizeClassDelegate> sizeClassDelegate;
@property(nonatomic, weak, nullable) id<MDCTabBarDisplayDelegate> displayDelegate;
@end

Expand Down
3 changes: 3 additions & 0 deletions components/Tabs/src/MDCTabBarViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@

#import "MaterialShadowElevations.h"
#import "MaterialShadowLayer.h"
#import "MDCTabBar.h"
#import "MDCTabBarAlignment.h"
#import "MDCTabBarControllerDelegate.h"
#import "MDCTabBarItemAppearance.h"

const CGFloat MDCTabBarViewControllerAnimationDuration = (CGFloat)0.3;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#import <CoreGraphics/CoreGraphics.h>

#import "MaterialRipple.h"
#import "MDCTabBarViewItemViewDelegate.h"
#import "MaterialMath.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import "MDCTabBarViewIndicatorContext.h"

#import "MDCTabBarViewPrivateIndicatorContext.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
#import "MaterialSnapshot.h"

#import "MaterialAvailability.h"
#import "MaterialTabs+Theming.h"
#import "MaterialTabs.h"
#import "MaterialTabs+Theming.h"
#import "MaterialColorScheme.h"
#import "MaterialContainerScheme.h"

/**
An MDCTabBar subclass that allows the user to override the @c traitCollection property.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#import "MDCTabBarExtendedAlignment.h"
#import "MaterialTabs.h"
#import "MaterialTabs+Theming.h"
#import "MaterialContainerScheme.h"

static NSString *const kItemTitleShort1Latin = @"Quando";
static NSString *const kItemTitleShort2Latin = @"No";
Expand Down

0 comments on commit b3fa420

Please sign in to comment.