Skip to content

Commit 39c20e1

Browse files
Jeff Verkoeyenmaterial-automation
Jeff Verkoeyen
authored andcommitted
Optimizing imports
PiperOrigin-RevId: 356967514
1 parent b3fa420 commit 39c20e1

23 files changed

+52
-19
lines changed

components/Cards/tests/snapshot/MDCCardCustomTraitCollectionSnapshotTests.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
#import "MaterialSnapshot.h"
1616

1717
#import "MaterialAvailability.h"
18-
#import "MaterialCards+Theming.h"
1918
#import "MaterialCards.h"
19+
#import "MaterialColorScheme.h"
20+
#import "MaterialContainerScheme.h"
2021

2122
/**
2223
An MDCCard subclass that allows the user to override the @c traitCollection property.

components/Cards/tests/snapshot/MDCCardSnapshotTests.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#import "MaterialCards+Theming.h"
1615
#import "MaterialCards.h"
16+
#import "MaterialCards+Theming.h"
1717
#import "MaterialSnapshot.h"
18+
#import "MaterialColorScheme.h"
19+
#import "MaterialContainerScheme.h"
1820

1921
@interface MDCCardSnapshotTests : MDCSnapshotTestCase
2022

components/Chips/src/MDCChipField.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#import "MDCChipField.h"
1616

17+
#import "MDCChipView.h"
1718
#import <MDFInternationalization/MDFInternationalization.h>
1819

1920
#import "MDCChipFieldDelegate.h"

components/Chips/src/MDCChipView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
#import "MDCChipView.h"
1616
#import "private/MDCChipView+Private.h"
1717

18+
#import "MaterialElevation.h"
1819
#import <MDFInternationalization/MDFInternationalization.h>
1920

2021
#import "MaterialInk.h"
2122
#import "MaterialRipple.h"
2223
#import "MaterialShadowElevations.h"
23-
#import "MaterialShadowLayer.h"
2424
#import "MaterialShapeLibrary.h"
2525
#import "MaterialShapes.h"
2626
#import "MaterialTypography.h"

components/Collections/examples/supplemental/CollectionsEditingManyCellsExampleSupplemental.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#import "CollectionsEditingManyCellsExampleSupplemental.h"
1616

17+
#import "MaterialCollections.h"
18+
1719
@implementation CollectionsEditingManyCellsExample (Supplemental)
1820

1921
#pragma mark - CatalogByConvention

components/Collections/examples/supplemental/CollectionsSectionInsetsExampleSupplemental.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#import "CollectionsSectionInsetsExampleSupplemental.h"
1616

17+
#import "MaterialCollections.h"
18+
1719
@implementation CollectionsSectionInsetsExample (Supplemental)
1820

1921
- (void)viewDidLoad {

components/Collections/src/MDCCollectionViewController.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@
1919
#import "private/MDCCollectionViewEditor.h"
2020
#import "private/MDCCollectionViewStyler.h"
2121
#import "MaterialCollectionCells.h"
22+
#import "MDCCollectionViewEditing.h"
23+
#import "MDCCollectionViewEditingDelegate.h"
2224
#import "MDCCollectionViewFlowLayout.h"
23-
#import "MaterialInk.h"
24-
#import "MaterialRipple.h"
25+
#import "MDCCollectionInfoBarViewDelegate.h"
2526

2627
#include <tgmath.h>
2728

components/Collections/src/MDCCollectionViewFlowLayout.m

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@
1414

1515
#import "MDCCollectionViewFlowLayout.h"
1616

17-
#import "MDCCollectionViewController.h"
18-
#import "MDCCollectionViewEditingDelegate.h"
19-
#import "MDCCollectionViewStyling.h"
20-
#import "MaterialCollectionLayoutAttributes.h"
2117
#import "private/MDCCollectionGridBackgroundView.h"
2218
#import "private/MDCCollectionInfoBarView.h"
23-
#import "private/MDCCollectionViewEditor.h"
19+
#import "MaterialCollectionLayoutAttributes.h"
20+
#import "MDCCollectionViewController.h"
21+
#import "MDCCollectionViewEditing.h"
22+
#import "MDCCollectionViewEditingDelegate.h"
2423

2524
#include <tgmath.h>
2625

components/Dialogs/src/MDCDialogPresentationController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#import "private/MDCDialogShadowedView.h"
1818
#import "MDCDialogPresentationControllerDelegate.h"
19-
#import "MaterialShadowLayer.h"
19+
#import "MaterialShadowElevations.h"
2020
#import "MaterialKeyboardWatcher.h"
2121

2222
static const CGFloat MDCDialogMinimumWidth = 280;

components/Dialogs/src/Theming/MDCAlertController+MaterialTheming.m

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#import <MaterialComponents/MDCAlertController+ButtonForAction.h>
16-
#import <MaterialComponents/MaterialDialogs+ColorThemer.h>
17-
#import <MaterialComponents/MaterialDialogs+TypographyThemer.h>
18-
#import <MaterialComponents/MaterialShadowElevations.h>
15+
#import "MaterialButtons.h"
1916
#import "MaterialButtons+Theming.h"
17+
#import "MDCAlertController+ButtonForAction.h" // TODO(b/126884296): One-off transformation needs fixing in copy.bara.sky
18+
#import "MaterialDialogs.h"
19+
#import "MaterialShadowElevations.h" // ComponentImport
20+
#import "MaterialColorScheme.h"
21+
#import "MaterialContainerScheme.h"
22+
#import "MaterialTypographyScheme.h"
23+
#import "MaterialTypographyScheme+Scheming.h"
2024

2125
static const CGFloat kCornerRadius = 4;
2226

components/Dialogs/src/Theming/MDCDialogPresentationController+MaterialTheming.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414

1515
#import "MDCDialogPresentationController+MaterialTheming.h"
1616

17+
#import "MaterialDialogs.h"
18+
19+
#import "MaterialShadowElevations.h"
20+
21+
#import "MaterialColorScheme.h"
22+
23+
#import "MaterialContainerScheme.h"
24+
1725
static const CGFloat kCornerRadius = 4;
1826

1927
@implementation MDCDialogPresentationController (MaterialTheming)

components/Dialogs/src/private/MDCAlertActionManager.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#import "MDCAlertActionManager.h"
1616
#import "MaterialButtons.h"
17+
#import "MaterialDialogs.h"
1718

1819
@interface MDCAlertActionManager ()
1920

components/Dialogs/src/private/MDCAlertControllerView+Private.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#import "MDCAlertControllerView.h"
1615
#import "MDCAlertActionManager.h"
1716
#import "MDCAlertControllerView+Private.h"
1817

18+
#import "MaterialShadowElevations.h"
1919
#import <MDFInternationalization/MDFInternationalization.h>
2020

2121
#import "MaterialButtons.h"

components/FeatureHighlight/tests/unit/FeatureHighlightAccessibilityTests.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
#import <XCTest/XCTest.h>
1616

17-
#import "MDCFeatureHighlightView+Private.h"
1817
#import "MaterialFeatureHighlight.h"
1918

2019
@interface MDCFeatureHighlightViewController (Testing)

components/FeatureHighlight/tests/unit/FeatureHighlightColorThemerTests.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#import "MaterialFeatureHighlight+ColorThemer.h"
1616
#import "MaterialFeatureHighlight.h"
17+
#import "MaterialColorScheme.h"
1718

1819
#import <XCTest/XCTest.h>
1920

components/FlexibleHeader/src/MDCFlexibleHeaderView.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,15 @@
1919
#import "private/MDCFlexibleHeaderTopSafeArea.h"
2020
#import "private/MDCFlexibleHeaderView+Private.h"
2121
#import "private/MDCStatusBarShifter.h"
22+
#import "MaterialElevation.h"
2223
#import "MDCFlexibleHeaderView+ShiftBehavior.h"
2324
#import "MDCFlexibleHeaderViewAnimationDelegate.h"
2425
#import "MDCFlexibleHeaderViewDelegate.h"
26+
#import "MaterialFlexibleHeader+ShiftBehavior.h"
2527
#import "MaterialFlexibleHeader+ShiftBehaviorEnabledWithStatusBar.h"
28+
#import "MDCFlexibleHeaderMinMaxHeightDelegate.h"
29+
#import "MDCFlexibleHeaderTopSafeAreaDelegate.h"
30+
#import "MDCStatusBarShifterDelegate.h"
2631
#import "MaterialShadowElevations.h"
2732
#import "MaterialApplication.h"
2833
#import "MaterialMath.h"

components/FlexibleHeader/src/MDCFlexibleHeaderViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#import "MDCFlexibleHeaderSafeAreaDelegate.h"
2222
#import "MDCFlexibleHeaderView+ShiftBehavior.h"
2323
#import "MDCFlexibleHeaderView.h"
24+
#import "MDCFlexibleHeaderViewDelegate.h"
2425
#import "MDCFlexibleHeaderViewLayoutDelegate.h"
2526
#import "MaterialFlexibleHeader+ShiftBehaviorEnabledWithStatusBar.h"
2627
#import "MaterialApplication.h"

components/FlexibleHeader/src/private/MDCFlexibleHeaderShifter.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// limitations under the License.
1414

1515
#import "MDCFlexibleHeaderShifter.h"
16+
#import "MDCFlexibleHeaderView+ShiftBehavior.h"
17+
#import "MaterialFlexibleHeader+ShiftBehavior.h"
1618
#import "MaterialFlexibleHeader+ShiftBehaviorEnabledWithStatusBar.h"
1719

1820
// The suffix for an app extension bundle path.

components/FlexibleHeader/src/private/MDCFlexibleHeaderTopSafeArea.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
#import "MDCFlexibleHeaderTopSafeArea.h"
1818

19-
#import "MDCFlexibleHeaderView.h"
2019
#import "MDCFlexibleHeaderTopSafeAreaDelegate.h"
2120

2221
// The default status bar height for non-X devices.

components/Ink/tests/unit/MDCInkLayerTests.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#import <XCTest/XCTest.h>
1616

1717
#import "../../src/private/MDCInkLayer.h"
18+
#import "MDCInkLayerDelegate.h"
1819

1920
#pragma mark - Fake classes
2021

components/Ink/tests/unit/MDCLegacyInkLayerTests.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
#import <XCTest/XCTest.h>
1616
#import "../../src/private/MDCLegacyInkLayer+Private.h"
17-
#import "MaterialInk.h"
17+
#import "MDCLegacyInkLayer.h"
18+
#import "MDCLegacyInkLayerRippleDelegate.h"
1819

1920
#pragma mark - Property exposure
2021

components/List/examples/MDCBaseCellExample.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#import "MDCBaseCellExample.h"
1616

1717
#import "MaterialList.h"
18+
#import "MaterialColorScheme.h"
19+
#import "MaterialContainerScheme.h"
1820

1921
@implementation MDCBaseCellExample
2022

components/List/examples/MDCSelfSizingStereoCellExample.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#import "MDCSelfSizingStereoCellExample.h"
1616

17+
#import "MaterialContainerScheme.h"
1718
#import <MDFInternationalization/MDFInternationalization.h>
1819

1920
#import "MaterialList+Theming.h"

0 commit comments

Comments
 (0)