Skip to content

Commit

Permalink
Optimizing imports
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 357185734
  • Loading branch information
jverkoey authored and material-automation committed Feb 12, 2021
1 parent c53f443 commit 2a8a6ac
Show file tree
Hide file tree
Showing 25 changed files with 36 additions and 31 deletions.
Expand Up @@ -12,8 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import "MaterialChips+Theming.h"
#import "MaterialChips.h"
#import "MaterialChips+Theming.h"
#import "MaterialContainerScheme.h"

@interface ChipsCollectionExampleViewController : UICollectionViewController
@property(nonatomic, strong) NSArray<NSString *> *titles;
Expand Down
Expand Up @@ -16,6 +16,7 @@
#import "MaterialChips.h"

#import "supplemental/ChipsExampleAssets.h"
#import "MaterialContainerScheme.h"

@interface ChipsCustomizedExampleViewController
: UIViewController <UICollectionViewDelegate, UICollectionViewDataSource>
Expand Down
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

#import "MaterialChips.h"
#import "MaterialColorScheme.h"
#import "MaterialContainerScheme.h"

/*
Expand Down
3 changes: 2 additions & 1 deletion components/Chips/examples/ChipsFilterExampleViewController.m
Expand Up @@ -12,8 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

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

#import "supplemental/ChipsExampleAssets.h"
Expand Down
5 changes: 3 additions & 2 deletions components/Chips/examples/ChipsInputExampleViewController.m
Expand Up @@ -12,10 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.

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

@interface ChipsInputExampleViewController : UIViewController <MDCChipFieldDelegate>
@property(nonatomic, strong) id<MDCContainerScheming> containerScheme;
Expand Down
5 changes: 3 additions & 2 deletions components/Chips/examples/ChipsShapingExampleViewController.m
Expand Up @@ -12,13 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import "MaterialChips+Theming.h"
#import "MaterialChips.h"
#import "MaterialContainerScheme.h"
#import "MaterialChips+Theming.h"
#import "MaterialShapeLibrary.h"
#import "MaterialShapes.h"
#import "MaterialSlider+ColorThemer.h"
#import "MaterialSlider.h"
#import "MaterialColorScheme.h"
#import "MaterialContainerScheme.h"

#import "supplemental/ChipsExampleAssets.h"

Expand Down
Expand Up @@ -17,6 +17,7 @@
#import "MaterialSlider.h"

#import "supplemental/ChipsExampleAssets.h"
#import "MaterialContainerScheme.h"

@interface ChipsSizingExampleViewController : UIViewController <MDCSliderDelegate>
@property(nonatomic, strong) id<MDCContainerScheming> containerScheme;
Expand Down
1 change: 1 addition & 0 deletions components/Chips/examples/ChipsTypicalUseViewController.m
Expand Up @@ -16,6 +16,7 @@
#import "MaterialChips.h"

#import "supplemental/ChipsExampleAssets.h"
#import "MaterialContainerScheme.h"

@interface ChipModel : NSObject
@property(nonatomic, strong) NSString *title;
Expand Down
Expand Up @@ -14,6 +14,12 @@

#import "MDCCornerTreatment+CornerTypeInitalizer.h"

#import "MDCCurvedCornerTreatment.h"

#import "MDCCutCornerTreatment.h"

#import "MDCRoundedCornerTreatment.h"

@implementation MDCCornerTreatment (CornerTypeInitalizer)

+ (MDCRoundedCornerTreatment *)cornerWithRadius:(CGFloat)value {
Expand Down
2 changes: 2 additions & 0 deletions components/ShapeLibrary/src/MDCCurvedCornerTreatment.m
Expand Up @@ -14,6 +14,8 @@

#import "MDCCurvedCornerTreatment.h"

#import "MaterialShapes.h"

@implementation MDCCurvedCornerTreatment

- (instancetype)init {
Expand Down
1 change: 1 addition & 0 deletions components/ShapeLibrary/src/MDCCurvedRectShapeGenerator.m
Expand Up @@ -15,6 +15,7 @@
#import "MDCCurvedRectShapeGenerator.h"

#import "MDCCurvedCornerTreatment.h"
#import "MaterialShapes.h"

@implementation MDCCurvedRectShapeGenerator {
MDCRectangleShapeGenerator *_rectGenerator;
Expand Down
2 changes: 2 additions & 0 deletions components/ShapeLibrary/src/MDCCutCornerTreatment.m
Expand Up @@ -14,6 +14,8 @@

#import "MDCCutCornerTreatment.h"

#import "MaterialShapes.h"

static NSString *const MDCCutCornerTreatmentCutKey = @"MDCCutCornerTreatmentCutKey";

@implementation MDCCutCornerTreatment
Expand Down
1 change: 1 addition & 0 deletions components/ShapeLibrary/src/MDCPillShapeGenerator.m
Expand Up @@ -17,6 +17,7 @@
#import "MDCPillShapeGenerator.h"

#import "MDCRoundedCornerTreatment.h"
#import "MaterialShapes.h"

@implementation MDCPillShapeGenerator {
MDCRectangleShapeGenerator *_rectangleGenerator;
Expand Down
1 change: 1 addition & 0 deletions components/ShapeLibrary/src/MDCRoundedCornerTreatment.m
Expand Up @@ -14,6 +14,7 @@

#import "MDCRoundedCornerTreatment.h"

#import "MaterialShapes.h"

@implementation MDCRoundedCornerTreatment

Expand Down
2 changes: 2 additions & 0 deletions components/ShapeLibrary/src/MDCSlantedRectShapeGenerator.m
Expand Up @@ -14,6 +14,8 @@

#import "MDCSlantedRectShapeGenerator.h"

#import "MaterialShapes.h"

@implementation MDCSlantedRectShapeGenerator {
MDCRectangleShapeGenerator *_rectangleGenerator;
}
Expand Down
2 changes: 2 additions & 0 deletions components/ShapeLibrary/src/MDCTriangleEdgeTreatment.m
Expand Up @@ -14,6 +14,8 @@

#import "MDCTriangleEdgeTreatment.h"

#import "MaterialShapes.h"

@implementation MDCTriangleEdgeTreatment

- (instancetype)initWithSize:(CGFloat)size style:(MDCTriangleEdgeStyle)style {
Expand Down
2 changes: 0 additions & 2 deletions components/TextFields/src/MDCMultilineTextField.m
Expand Up @@ -20,8 +20,6 @@
#import "MDCTextField.h"
#import "MDCTextFieldPositioningDelegate.h"
#import "MDCTextInputBorderView.h"
#import "MDCTextInputCharacterCounter.h"
#import "MDCTextInputController.h"
#import "MDCTextInputUnderlineView.h"

#import "MaterialMath.h"
Expand Down
2 changes: 0 additions & 2 deletions components/TextFields/src/MDCTextField.m
Expand Up @@ -17,9 +17,7 @@
#import <MDFInternationalization/MDFInternationalization.h>

#import "MDCTextFieldPositioningDelegate.h"
#import "MDCTextInput.h"
#import "MDCTextInputBorderView.h"
#import "MDCTextInputCharacterCounter.h"
#import "MDCTextInputUnderlineView.h"
#import "private/MDCTextField+Testing.h"
#import "private/MDCTextInputCommonFundament.h"
Expand Down
3 changes: 0 additions & 3 deletions components/TextFields/src/MDCTextInputControllerFilled.m
Expand Up @@ -18,10 +18,7 @@

#import "MDCMultilineTextField.h"
#import "MDCTextInput.h"
#import "MDCTextInputBorderView.h"
#import "MDCTextInputController.h"
#import "MDCTextInputControllerBase.h"
#import "MDCTextInputControllerFloatingPlaceholder.h"
#import "private/MDCTextInputArt.h"
#import "private/MDCTextInputControllerBase+Subclassing.h"

Expand Down
Expand Up @@ -19,9 +19,9 @@
#import "MDCTextField.h"
#import "MDCTextInput.h"
#import "MDCTextInputCharacterCounter.h"
#import "MDCTextInputController.h"
#import "MDCTextInputUnderlineView.h"

#import "MaterialAnimationTiming.h"
#import "MaterialPalettes.h"
#import "MaterialTypography.h"

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

#import "MDCTextInputControllerLegacyDefault.h"

#import "MDCMultilineTextField.h"
#import "MDCTextInput.h"
#import "MDCTextInputUnderlineView.h"
#import "private/MDCTextInputArt.h"
#import "MDCTextInput.h"
#import "MDCTextInputControllerBase.h"

#import "MaterialTypography.h"

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

#import "MDCTextInputControllerLegacyFullWidth.h"

#import "MDCIntrinsicHeightTextView.h"
#import "MDCMultilineTextField.h"
#import "MDCTextField.h"
#import "MDCTextInput.h"
#import "MDCTextInputCharacterCounter.h"
#import "MDCTextInputUnderlineView.h"
#import "private/MDCTextInputArt.h"
#import "MDCTextInput.h"
#import "MDCTextInputControllerFullWidth.h"

#import "MaterialAnimationTiming.h"
#import "MaterialPalettes.h"
#import "MaterialTypography.h"

static const CGFloat MDCTextInputControllerLegacyFullWidthClearButtonImageSquareWidthHeight = 24;
Expand Down
3 changes: 0 additions & 3 deletions components/TextFields/src/MDCTextInputControllerOutlined.m
Expand Up @@ -18,9 +18,6 @@

#import "MDCTextInput.h"
#import "MDCTextInputBorderView.h"
#import "MDCTextInputController.h"
#import "MDCTextInputControllerBase.h"
#import "MDCTextInputControllerFloatingPlaceholder.h"
#import "MDCTextInputUnderlineView.h"
#import "private/MDCTextInputControllerBase+Subclassing.h"

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

#import "MDCTextInput.h"
#import "MDCTextInputBorderView.h"
#import "MDCTextInputController.h"
#import "MDCTextInputControllerBase.h"
#import "MDCTextInputControllerFloatingPlaceholder.h"
#import "MDCTextInputUnderlineView.h"
#import "private/MDCTextInputControllerBase+Subclassing.h"

Expand Down
1 change: 0 additions & 1 deletion components/TextFields/src/MDCTextInputUnderlineView.m
Expand Up @@ -14,7 +14,6 @@

#import "MDCTextInputUnderlineView.h"

#import "MaterialPalettes.h"

static const CGFloat MDCTextInputUnderlineDefaultHeight = 1;

Expand Down

0 comments on commit 2a8a6ac

Please sign in to comment.