Skip to content

Commit

Permalink
Optimizing imports
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 357185900
  • Loading branch information
jverkoey authored and material-automation committed Feb 12, 2021
1 parent 8ce743c commit 4c86b13
Show file tree
Hide file tree
Showing 23 changed files with 54 additions and 25 deletions.
3 changes: 2 additions & 1 deletion components/Buttons/src/MDCFlatButton.m
Expand Up @@ -14,8 +14,9 @@

#import "MDCFlatButton.h"

#import "MaterialShadowElevations.h"
#import "private/MDCButton+Subclassing.h"
#import "MDCButton.h"
#import "MaterialShadowElevations.h"

@interface MDCFlatButton ()
@property(nonatomic) BOOL hasOpaqueBackground;
Expand Down
2 changes: 1 addition & 1 deletion components/Buttons/src/MDCFloatingButton.m
Expand Up @@ -14,9 +14,9 @@

#import "MDCFloatingButton.h"

#import "private/MDCButton+Subclassing.h"
#import "private/MDCFloatingButtonModeAnimator.h"
#import "private/MDCFloatingButtonModeAnimatorDelegate.h"
#import "MDCButton.h"
#import "MaterialShadowElevations.h"

#import <MDFInternationalization/MDFInternationalization.h>
Expand Down
1 change: 0 additions & 1 deletion components/Buttons/src/MDCRaisedButton.m
Expand Up @@ -15,7 +15,6 @@
#import "MDCRaisedButton.h"

#import "MaterialShadowElevations.h"
#import "private/MDCButton+Subclassing.h"

@implementation MDCRaisedButton

Expand Down
3 changes: 2 additions & 1 deletion components/Chips/tests/unit/ChipsDelegateTests.m
Expand Up @@ -15,8 +15,9 @@
#import <UIKit/UIKit.h>
#import <XCTest/XCTest.h>

#import "MDCTextField+Testing.h"
#import "MaterialChips.h"
#import "MaterialTextFields.h"
#import "MDCTextField+Testing.h"

@interface ChipsDelegateTests : XCTestCase <MDCChipFieldDelegate>

Expand Down
3 changes: 2 additions & 1 deletion components/Chips/tests/unit/ChipsTests.m
Expand Up @@ -16,7 +16,8 @@

#import <XCTest/XCTest.h>

#import "../../src/MDCChipField.h"
#import "MaterialElevation.h"
#import "MaterialTextFields.h"
#import "MaterialTypography.h"

// Expose internal methods for testing
Expand Down
2 changes: 2 additions & 0 deletions components/Chips/tests/unit/MDCChipFieldDelegateTests.m
Expand Up @@ -16,6 +16,8 @@

#import "MDCChipField.h"
#import "MDCChipFieldDelegate.h"
#import "MDCChipView.h"
#import "MaterialTextFields.h"

/**
A class to record messages from MDCChipField.
Expand Down
1 change: 1 addition & 0 deletions components/Chips/tests/unit/MDCChipViewTests.m
Expand Up @@ -15,6 +15,7 @@
#import <XCTest/XCTest.h>

#import "MDCChipView.h"
#import "MaterialShadowElevations.h"

static inline UIImage *TestImage(CGSize size) {
CGFloat scale = [UIScreen mainScreen].scale;
Expand Down
Expand Up @@ -12,8 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import "MaterialFeatureHighlight.h"
#import "supplemental/FeatureHighlightExampleSupplemental.h"
#import "MaterialCollections.h"
#import "MaterialFeatureHighlight.h"

@implementation FeatureHighlightColorExample

Expand Down
Expand Up @@ -16,7 +16,6 @@

#import "MaterialButtons.h"
#import "MaterialFeatureHighlight.h"
#import "MaterialTypographyScheme.h"

@implementation FeatureHighlightScalableDynamicTypeController

Expand Down
Expand Up @@ -12,11 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import "MaterialButtons+Theming.h"
#import "supplemental/FeatureHighlightExampleSupplemental.h"
#import "MaterialButtons.h"
#import "MaterialButtons+Theming.h"
#import "MaterialFeatureHighlight+ColorThemer.h"
#import "MaterialFeatureHighlight.h"
#import "supplemental/FeatureHighlightExampleSupplemental.h"
#import "MaterialColorScheme.h"
#import "MaterialContainerScheme.h"
#import "MaterialTypographyScheme.h"

@implementation FeatureHighlightShownViewExample

Expand Down
Expand Up @@ -12,9 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import "supplemental/FeatureHighlightExampleSupplemental.h"
#import "MaterialFeatureHighlight+ColorThemer.h"
#import "MaterialFeatureHighlight.h"
#import "supplemental/FeatureHighlightExampleSupplemental.h"
#import "MaterialColorScheme.h"
#import "MaterialTypographyScheme.h"

@implementation FeatureHighlightTypicalUseViewController

Expand Down
Expand Up @@ -14,7 +14,6 @@

#import <UIKit/UIKit.h>

#import "MaterialPalettes.h"
#import "MaterialSnackbar.h"

@interface SnackbarInputAccessoryViewController : UIViewController
Expand Down
8 changes: 6 additions & 2 deletions components/Snackbar/examples/SnackbarOverlayViewExample.m
Expand Up @@ -14,9 +14,13 @@

#import <UIKit/UIKit.h>

#import "MaterialOverlay.h"
#import "MaterialSnackbar.h"
#import "supplemental/SnackbarExampleSupplemental.h"
#import "MaterialButtons.h"
#import "MaterialCollections.h"
#import "MaterialSnackbar.h"
#import "MaterialOverlay.h"
#import "MaterialColorScheme.h"
#import "MaterialTypographyScheme.h"

static const CGFloat kFABBottomOffset = 24;
static const CGFloat kFABSideOffset = 24;
Expand Down
6 changes: 5 additions & 1 deletion components/Snackbar/examples/SnackbarSimpleExample.m
Expand Up @@ -14,9 +14,13 @@

#import <UIKit/UIKit.h>

#import "supplemental/SnackbarExampleSupplemental.h"
#import "MaterialButtons.h"
#import "MaterialCollections.h"
#import "MaterialPalettes.h"
#import "MaterialSnackbar.h"
#import "supplemental/SnackbarExampleSupplemental.h"
#import "MaterialColorScheme.h"
#import "MaterialTypographyScheme.h"

@interface SnackbarSimpleExample : SnackbarExample <MDCSnackbarManagerDelegate>
@end
Expand Down
5 changes: 4 additions & 1 deletion components/Snackbar/examples/SnackbarSuspensionExample.m
Expand Up @@ -14,8 +14,11 @@

#import <UIKit/UIKit.h>

#import "MaterialSnackbar.h"
#import "supplemental/SnackbarExampleSupplemental.h"
#import "MaterialCollections.h"
#import "MaterialSnackbar.h"
#import "MaterialColorScheme.h"
#import "MaterialTypographyScheme.h"

static NSString *const kCategoryA = @"CategoryA";
static NSString *const kCategoryB = @"CategoryB";
Expand Down
Expand Up @@ -17,12 +17,15 @@
#import "MaterialActionSheet.h" // ComponentImport
#import "MaterialActionSheet+Theming.h" // SubtargetImport
#import "MaterialAnimationTiming.h" // ComponentImport
#import "MaterialButtons.h"
#import "MaterialButtons+Theming.h" // ComponentImport
#import "MaterialTabs+TabBarView.h"
#import "MaterialIcons+ic_check.h" // PrivateSubtargetImport
#import "MaterialIcons+ic_settings.h" // PrivateSubtargetImport
#import "MaterialMath.h" // PrivateImport
#import "MaterialColorScheme.h"
#import "MaterialContainerScheme.h" // SchemeImport
#import "MaterialTypographyScheme+Scheming.h"

static NSString *const kExampleTitle = @"TabBarView";

Expand Down
3 changes: 3 additions & 0 deletions components/Tabs/examples/TabBarIconExample.m
Expand Up @@ -16,8 +16,11 @@

#import "MaterialAppBar+ColorThemer.h"
#import "MaterialAppBar.h"
#import "MaterialButtons.h"
#import "MaterialHeaderStackView.h"
#import "MaterialTabs.h"
#import "MaterialTabs+Theming.h"
#import "MaterialColorScheme.h"
#import "MaterialContainerScheme.h"

@interface TabBarIconExample ()
Expand Down
10 changes: 5 additions & 5 deletions components/Tabs/examples/TabBarTextOnlyExample.m
Expand Up @@ -14,14 +14,14 @@

#import <UIKit/UIKit.h>

#import "MDCTabBarDisplayDelegate.h"
#import "supplemental/TabBarTextOnlyExampleSupplemental.h"
#import "MaterialAppBar.h"
#import "MaterialButtons.h"
#import "MaterialCollections.h"
#import "MaterialContainerScheme.h"
#import "MaterialTabs+Theming.h"
#import "MaterialHeaderStackView.h"
#import "MDCTabBarDisplayDelegate.h"
#import "MaterialTabs.h"
#import "supplemental/TabBarTextOnlyExampleSupplemental.h"
#import "MaterialTabs+Theming.h"
#import "MaterialContainerScheme.h"

@implementation TabBarTextOnlyExample

Expand Down
7 changes: 3 additions & 4 deletions components/Tabs/examples/TabBarViewControllerExample.m
Expand Up @@ -14,11 +14,10 @@

#import <UIKit/UIKit.h>

#import "MaterialColorScheme.h"
#import "MaterialSlider.h"
#import "MaterialTabs+Theming.h"
#import "MaterialTabs.h"
#import "supplemental/TabBarViewControllerExampleSupplemental.h"
#import "MaterialTabs.h"
#import "MaterialTabs+Theming.h"
#import "MaterialContainerScheme.h"

@implementation TabBarViewControllerExample

Expand Down
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import "MaterialFlexibleHeader.h"
#import "MaterialNavigationBar.h"
#import "MaterialSnapshot.h"

#import "MDCTabBarView.h"
Expand Down
Expand Up @@ -17,7 +17,7 @@
#import <CoreGraphics/CoreGraphics.h>
#import "../../../src/TabBarView/MDCTabBarView.h"
#import "../../../src/TabBarView/private/MDCTabBarViewItemView.h"
#import "../../../src/TabBarView/private/MDCTabBarViewItemViewDelegate.h"
#import "MaterialRipple.h"
#import "MaterialSnapshot.h"

/** Minimum width of an item view for proper layout. */
Expand Down
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import "MaterialRipple.h"
#import "MaterialSnapshot.h"

#import "../../../src/TabBarView/private/MDCTabBarViewItemView.h"
Expand Down
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import "MaterialRipple.h"
#import "MaterialSnapshot.h"

#import "../../../src/TabBarView/private/MDCTabBarViewItemView.h"
Expand Down

0 comments on commit 4c86b13

Please sign in to comment.