Skip to content

Commit

Permalink
Optimizing imports
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 357185618
  • Loading branch information
jverkoey authored and material-automation committed Feb 12, 2021
1 parent 2980352 commit c53f443
Show file tree
Hide file tree
Showing 22 changed files with 60 additions and 9 deletions.
Expand Up @@ -15,6 +15,7 @@
#import <XCTest/XCTest.h>

#import "MaterialAppBar.h"
#import "MaterialFlexibleHeader.h"

@interface AppBarNavigationControllerNavigationBarHiddenTests : XCTestCase
@property(nonatomic, strong) MDCAppBarNavigationController *appBarNavigationController;
Expand Down
Expand Up @@ -15,6 +15,7 @@
#import <XCTest/XCTest.h>

#import "MaterialAppBar.h"
#import "MaterialFlexibleHeader.h"

@interface AppBarNavigationControllerNavigationBarHiddenWhenNavigationBarHiddenHidesAppBarTests
: XCTestCase
Expand Down
Expand Up @@ -15,6 +15,7 @@
#import <XCTest/XCTest.h>

#import "MaterialAppBar.h"
#import "MaterialFlexibleHeader.h"

@interface AppBarNavigationControllerTests : XCTestCase

Expand Down
3 changes: 3 additions & 0 deletions components/AppBar/tests/unit/AppBarViewControllerTests.m
Expand Up @@ -15,6 +15,9 @@
#import <XCTest/XCTest.h>

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

@interface AppBarViewControllerTests : XCTestCase

Expand Down
Expand Up @@ -20,7 +20,6 @@
#import "MaterialBottomNavigation.h"
#import "MaterialInk.h"
#import "MaterialSnapshot.h"
#import "supplemental/MDCBottomNavigationSnapshotTestMutableTraitCollection.h"
#import "supplemental/MDCBottomNavigationSnapshotTestUtilities.h"
#import "supplemental/MDCFakeBottomNavigationBar.h"

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

#import "MaterialBottomNavigation.h"
#import "MaterialSnapshot.h"

#import "MDCBottomNavigationBarController.h"
Expand Down
Expand Up @@ -25,6 +25,9 @@
#import "MDCBottomNavigationBar+MaterialTheming.h"
#import "MaterialInk.h"
#import "MaterialSnapshot.h"
#import "MaterialColorScheme.h"
#import "MaterialContainerScheme.h"
#import "MaterialTypographyScheme.h"

static const CGFloat kWidthWide = 1600;
static const CGFloat kWidthNarrow = 240;
Expand Down
Expand Up @@ -12,12 +12,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import "MaterialBottomNavigation.h"
#import "MaterialBottomNavigation+Theming.h"

#import <XCTest/XCTest.h>

#import "../../src/private/MDCBottomNavigationItemView.h"
#import "MaterialInk.h"
#import "MaterialSnapshot.h"
#import "MaterialColorScheme.h"
#import "MaterialContainerScheme.h"
#import "MaterialTypographyScheme.h"

static const CGFloat kFakeWidth = 500;
static const CGFloat kFakeHeight = 75;
Expand Down
Expand Up @@ -16,7 +16,6 @@
#import <XCTest/XCTest.h>

#import "../../src/private/MDCBottomNavigationItemBadge.h"
#import "MaterialBottomNavigation.h"

@interface BottomNavigationItemBadgeTests : XCTestCase
@property(nonatomic, strong) MDCBottomNavigationItemBadge *badge;
Expand Down
Expand Up @@ -16,6 +16,7 @@

#import "../../src/private/MDCBottomNavigationItemBadge.h"
#import "../../src/private/MDCBottomNavigationItemView.h"
#import "MDCBottomNavigationBar.h"
#import "MDCBottomNavigationItemView+Testing.h"

#import "MaterialInk.h"
Expand Down
Expand Up @@ -15,6 +15,7 @@
#import <XCTest/XCTest.h>

#import "MaterialBottomNavigation+BottomNavigationController.h"
#import "MaterialBottomNavigation.h"

/** Delegate that implements no optional APIs. */
@interface MDCBottomNavigationBarControllerDelegateWithNoOptionals
Expand Down
Expand Up @@ -16,6 +16,7 @@
#import <XCTest/XCTest.h>

#import "MaterialBottomNavigation+BottomNavigationController.h"
#import "MaterialBottomNavigation.h"

static CGFloat const kDefaultExpectationTimeout = 15;

Expand Down
Expand Up @@ -14,8 +14,9 @@

#import <UIKit/UIKit.h>

#import "MaterialButtons+Theming.h"
#import "MaterialButtons.h"
#import "MaterialButtons+Theming.h"
#import "MaterialInk.h"
#import "MaterialContainerScheme.h"

@interface ButtonsContentEdgeInsetsExample : UIViewController
Expand Down
8 changes: 5 additions & 3 deletions components/Buttons/examples/ButtonsShapesExample.m
Expand Up @@ -12,14 +12,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import "MaterialButtons+Theming.h"
#import "MaterialButtons.h"
#import "MaterialContainerScheme.h"
#import "MaterialButtons+Theming.h"
#import "MaterialShapeLibrary.h"
#import "MaterialShapes.h"
#import "MaterialTypography.h"
#import "MaterialColorScheme.h"
#import "MaterialContainerScheme.h"

#import "supplemental/ButtonsTypicalUseSupplemental.h"
#import "MaterialShapeScheme.h"
#import "MaterialTypographyScheme.h"

@interface ButtonsShapesExample ()
@property(nonatomic, strong) MDCFloatingButton *floatingButton;
Expand Down
4 changes: 3 additions & 1 deletion components/Buttons/examples/ButtonsTypicalUseExample.m
Expand Up @@ -14,10 +14,12 @@

#import "MaterialButtons.h"
#import "MaterialButtons+Theming.h"
#import "MaterialTypography.h"
#import "MaterialColorScheme.h"
#import "MaterialContainerScheme.h"

#import "supplemental/ButtonsTypicalUseSupplemental.h"
#import "MaterialShapeScheme.h"
#import "MaterialTypographyScheme.h"

static const CGSize kMinimumAccessibleButtonSize = {64.0, 48.0};

Expand Down
Expand Up @@ -14,9 +14,11 @@

#import <UIKit/UIKit.h>

#import "MaterialButtons+Theming.h"
#import "MaterialButtons.h"
#import "MaterialButtons+Theming.h"
#import "MaterialColorScheme.h"
#import "MaterialContainerScheme.h"
#import "MaterialShapeScheme.h"

static NSString *const kButtonLabel = @"Create";
static NSString *const kMiniButtonLabel = @"Add";
Expand Down
Expand Up @@ -15,6 +15,10 @@
#import "MDCTextInputControllerFilled+MaterialTheming.h"

#import <MaterialComponents/MaterialTextFields+ColorThemer.h>
#import "MDCTextInputControllerFloatingPlaceholder.h"
#import "MaterialTextFields.h"
#import "MaterialContainerScheme.h"
#import "MaterialTypographyScheme+Scheming.h"

@implementation MDCTextInputControllerFilled (MaterialTheming)

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

#import "MDCTextInputControllerOutlined+MaterialTheming.h"

#import "MDCTextInputControllerFloatingPlaceholder.h"

#import "MaterialTextFields.h"

#import "MaterialColorScheme.h"

#import "MaterialContainerScheme.h"

#import "MaterialTypographyScheme+Scheming.h"

static CGFloat const kOutlinedTextFieldActiveAlpha = (CGFloat)0.87;
static CGFloat const kOutlinedTextFieldOnSurfaceAlpha = (CGFloat)0.6;
static CGFloat const kOutlinedTextFieldDisabledAlpha = (CGFloat)0.38;
Expand Down
Expand Up @@ -14,6 +14,16 @@

#import "MDCTextInputControllerUnderline+MaterialTheming.h"

#import "MDCTextInputControllerFloatingPlaceholder.h"

#import "MaterialTextFields.h"

#import "MaterialColorScheme.h"

#import "MaterialContainerScheme.h"

#import "MaterialTypographyScheme+Scheming.h"

@implementation MDCTextInputControllerUnderline (MaterialTheming)

- (void)applyThemeWithScheme:(id<MDCContainerScheming>)scheme {
Expand Down
Expand Up @@ -14,6 +14,8 @@

#import "MDCTextControlAssistiveLabelView.h"

#import "MDCTextControlAssistiveLabelViewLayout.h"

@interface MDCTextControlAssistiveLabelView ()
@property(nonatomic, strong) UILabel *leadingAssistiveLabel;
@property(nonatomic, strong) UILabel *trailingAssistiveLabel;
Expand Down
Expand Up @@ -14,6 +14,8 @@

#import "MDCTextControlAssistiveLabelViewLayout.h"

#import "MDCTextControlAssistiveLabelDrawPriority.h"

@interface MDCTextControlAssistiveLabelViewLayout ()

@property(nonatomic, assign) CGRect leadingAssistiveLabelFrame;
Expand Down
Expand Up @@ -14,8 +14,8 @@

#import "MDCTextControlLabelAnimation.h"

#import "MDCTextControl.h"
#import "MaterialAnimationTiming.h"
#import "MDCTextControlLabelPosition.h"

@implementation MDCTextControlLabelAnimation

Expand Down

0 comments on commit c53f443

Please sign in to comment.