Skip to content

Commit

Permalink
Optimizing imports
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 356851164
  • Loading branch information
Jeff Verkoeyen authored and material-automation committed Feb 11, 2021
1 parent 9f9b452 commit 1437067
Show file tree
Hide file tree
Showing 14 changed files with 47 additions and 11 deletions.
3 changes: 3 additions & 0 deletions components/AppBar/examples/AppBarImageryExample.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

#import "MaterialAppBar+ColorThemer.h"
#import "MaterialAppBar.h"
#import "MaterialFlexibleHeader.h"
#import "MaterialNavigationBar.h"
#import "MaterialColorScheme.h"

@interface AppBarImageryExample : UITableViewController
@property(nonatomic, strong) MDCAppBarViewController *appBarViewController;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#import "MaterialAppBar+ColorThemer.h"
#import "MaterialAppBar.h"
#import "MaterialFlexibleHeader.h"
#import "MaterialColorScheme.h"

@interface AppBarInterfaceBuilderExample : UIViewController <UIScrollViewDelegate>

Expand Down
2 changes: 2 additions & 0 deletions components/AppBar/examples/AppBarModalPresentationExample.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#import "MaterialAppBar+ColorThemer.h"
#import "MaterialAppBar.h"
#import "MaterialFlexibleHeader.h"
#import "MaterialColorScheme.h"

@interface AppBarModalPresentationExamplePresented : UITableViewController
@property(strong, nonatomic) MDCAppBarViewController *appBarViewController;
Expand Down
2 changes: 0 additions & 2 deletions components/AppBar/examples/AppBarPresentedExample.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
#import <UIKit/UIKit.h>

#import "AppBarSampleViewController.h"
#import "MaterialAppBar.h"
#import "MaterialAppBar+Theming.h"
#import "MaterialButtons.h"
#import "MaterialButtons+Theming.h"
#import "MaterialContainerScheme.h"
Expand Down
2 changes: 1 addition & 1 deletion components/AppBar/examples/AppBarPresentedHiddenExample.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

#import "AppBarSampleViewController.h"
#import "MaterialAppBar.h"
#import "MaterialAppBar+Theming.h"
#import "MaterialAvailability.h"
#import "MaterialButtons.h"
#import "MaterialButtons+Theming.h"
#import "MaterialFlexibleHeader.h"
#import "MaterialContainerScheme.h"

// This example demonstrates a view controller being presented with the AppBar initially hidden.
Expand Down
2 changes: 2 additions & 0 deletions components/AppBar/examples/AppBarSectionHeadersExample.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#import "MaterialAppBar+ColorThemer.h"
#import "MaterialAppBar.h"
#import "MaterialFlexibleHeader.h"
#import "MaterialColorScheme.h"

@interface AppBarSectionHeadersExample : UITableViewController

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
#import <UIKit/UIKit.h>

#import "MaterialAppBar+ColorThemer.h"
#import "MaterialAppBar+TypographyThemer.h"
#import "MaterialAppBar.h"
#import "MaterialAppBar+TypographyThemer.h"
#import "MaterialFlexibleHeader.h"
#import "MaterialColorScheme.h"
#import "MaterialTypographyScheme.h"

@interface AppBarTypicalCollectionViewExample : UICollectionViewController

Expand Down
6 changes: 5 additions & 1 deletion components/AppBar/examples/AppBarTypicalUseExample.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@
#import <UIKit/UIKit.h>

#import "MaterialAppBar+ColorThemer.h"
#import "MaterialAppBar+TypographyThemer.h"
#import "MaterialAppBar.h"
#import "MaterialAppBar+TypographyThemer.h"
#import "MaterialFlexibleHeader.h"
#import "MaterialNavigationBar.h"
#import "MaterialColorScheme.h"
#import "MaterialTypographyScheme.h"

@interface AppBarTypicalUseExample : UITableViewController

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@
#import <WebKit/WebKit.h>

#import "MaterialAppBar+ColorThemer.h"
#import "MaterialAppBar+TypographyThemer.h"
#import "MaterialAppBar.h"
#import "MaterialAppBar+TypographyThemer.h"
#import "MaterialFlexibleHeader.h"
#import "MaterialNavigationBar.h"
#import "MaterialColorScheme.h"
#import "MaterialTypographyScheme.h"

// This demonstrates that a WKWebView with large content as the tracking scroll view is able to
// scroll as expected, even with the useAdditionalSafeAreaInsetsForWebKitScrollViews flag enabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@
#import <WebKit/WebKit.h>

#import "MaterialAppBar+ColorThemer.h"
#import "MaterialAppBar+TypographyThemer.h"
#import "MaterialAppBar.h"
#import "MaterialAppBar+TypographyThemer.h"
#import "MaterialFlexibleHeader.h"
#import "MaterialNavigationBar.h"
#import "MaterialColorScheme.h"
#import "MaterialTypographyScheme.h"

// This demonstrates that a WKWebView with large content as the tracking scroll view is able to
// scroll as expected, even without the useAdditionalSafeAreaInsetsForWebKitScrollViews flag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@
#import <WebKit/WebKit.h>

#import "MaterialAppBar+ColorThemer.h"
#import "MaterialAppBar+TypographyThemer.h"
#import "MaterialAppBar.h"
#import "MaterialAppBar+TypographyThemer.h"
#import "MaterialFlexibleHeader.h"
#import "MaterialNavigationBar.h"
#import "MaterialColorScheme.h"
#import "MaterialTypographyScheme.h"

// This demonstrates a bug when WKWebView's scroll view is the tracking scroll view and the web
// view's content is smaller than the screen. Note that the content is scrollable because the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@
#import <WebKit/WebKit.h>

#import "MaterialAppBar+ColorThemer.h"
#import "MaterialAppBar+TypographyThemer.h"
#import "MaterialAppBar.h"
#import "MaterialAppBar+TypographyThemer.h"
#import "MaterialFlexibleHeader.h"
#import "MaterialNavigationBar.h"
#import "MaterialColorScheme.h"
#import "MaterialTypographyScheme.h"

// This demonstrates that a WKWebView with minimal content as the tracking scroll view is not able
// to scroll as expected. This requires enabling useAdditionalSafeAreaInsetsForWebKitScrollViews
Expand Down
5 changes: 4 additions & 1 deletion components/AppBar/examples/AppBarWrappedExample.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
#import <UIKit/UIKit.h>

#import "MaterialAppBar+ColorThemer.h"
#import "MaterialAppBar+TypographyThemer.h"
#import "MaterialAppBar.h"
#import "MaterialAppBar+TypographyThemer.h"
#import "MaterialFlexibleHeader.h"
#import "MaterialColorScheme.h"
#import "MaterialTypographyScheme.h"

@interface WrappedDemoViewController : UIViewController
@end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
#import <UIKit/UIKit.h>

#import "MaterialAppBar+ColorThemer.h"
#import "MaterialAppBar+TypographyThemer.h"
#import "MaterialAppBar.h"
#import "MaterialAppBar+TypographyThemer.h"
#import "MaterialFlexibleHeader.h"
#import "MaterialColorScheme.h"
#import "MaterialTypographyScheme.h"

@interface AppBarWrappingUITableViewControllerExample : UIViewController <UITableViewDataSource>

Expand Down

0 comments on commit 1437067

Please sign in to comment.