Skip to content

Commit

Permalink
[Examples/Tests] Convert @imports to imports (material-components#2761)
Browse files Browse the repository at this point in the history
In order to make the internal build systems happier, @import statements should not be used.
  • Loading branch information
Robert Moore committed Dec 22, 2017
1 parent 88a9324 commit e031865
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
*/

@import UIKit;
#import <UIKit/UIKit.h>

#import "MaterialCollections.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
limitations under the License.
*/

@import XCTest;
@import EarlGrey;
#import <XCTest/XCTest.h>
#import <EarlGrey/EarlGrey.h>

@interface MDCCollectionViewControllerTests : XCTestCase
@end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#import <UIKit/UIKit.h>

@import MaterialComponents.MaterialCollections;
#import "MaterialCollections.h"

@interface DialogsAlertViewController : MDCCollectionViewController
@property(nonatomic, strong, nullable) NSArray *modes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#import <UIKit/UIKit.h>

@import MaterialComponents.MaterialCollections;
#import "MaterialCollections.h"

@interface DialogsKeyboardViewController : MDCCollectionViewController
@end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#import <UIKit/UIKit.h>

@import MaterialComponents.MaterialCollections;
#import "MaterialCollections.h"

//@class DialogsTypicalUseViewController;

Expand Down
4 changes: 2 additions & 2 deletions components/Snackbar/tests/earlgrey/SnackbarInteractionTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
limitations under the License.
*/

@import XCTest;
@import EarlGrey;
#import <XCTest/XCTest.h>
#import <EarlGrey/EarlGrey.h>

@interface SnackbarEarlGreyTests : XCTestCase

Expand Down
2 changes: 1 addition & 1 deletion components/Tabs/examples/BottomNavigationBarExample.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
*/

@import MaterialComponents.MaterialTabs;
#import "MaterialTabs.h"

@interface BottomNavigationBarExample : UIViewController <MDCTabBarDelegate>
@end
Expand Down
6 changes: 3 additions & 3 deletions components/Tabs/examples/TabBarIconExample.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

#import "supplemental/TabBarIconExampleSupplemental.h"

@import MaterialComponents.MaterialAppBar;
@import MaterialComponents.MaterialPalettes;
@import MaterialComponents.MaterialTabs;
#import "MaterialAppBar.h"
#import "MaterialPalettes.h"
#import "MaterialTabs.h"

@implementation TabBarIconExample

Expand Down
6 changes: 3 additions & 3 deletions components/Tabs/examples/TabBarInterfaceBuilderExample.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
limitations under the License.
*/

@import UIKit;
#import <UIKit/UIKit.h>

@import MaterialComponents.MaterialPalettes;
@import MaterialComponents.MaterialTabs;
#import "MaterialPalettes.h"
#import "MaterialTabs.h"

@interface TabBarInterfaceBuilderExample : UIViewController <MDCTabBarDelegate>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
limitations under the License.
*/

@import UIKit;
#import <UIKit/UIKit.h>

@import MaterialComponents.MaterialPalettes;
@import MaterialComponents.MaterialTabs;
#import "MaterialPalettes.h"
#import "MaterialTabs.h"

@interface TabBarViewControllerInterfaceBuilderExample : MDCTabBarViewController

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
instructions. It is not necessary to import this file to use Material Components for iOS.
*/

@import UIKit;
#import <UIKit/UIKit.h>

@import MaterialComponents.MaterialAppBar;
@import MaterialComponents.MaterialButtons;
@import MaterialComponents.MaterialTabs;
#import "MaterialAppBar.h"
#import "MaterialButtons.h"
#import "MaterialTabs.h"

@interface TabBarIconExample : UIViewController <MDCTabBarDelegate>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#import "TabBarIconExampleSupplemental.h"

@import MaterialComponents.MaterialPalettes;
#import "MaterialPalettes.h"

// Exposing selectors defined in the main example class
@interface TabBarIconExample ()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

#import <UIKit/UIKit.h>

@import MaterialComponents.MaterialAppBar;
@import MaterialComponents.MaterialCollections;
@import MaterialComponents.MaterialTabs;
#import "MaterialAppBar.h"
#import "MaterialCollections.h"
#import "MaterialTabs.h"

@interface TabBarTextOnlyExample : MDCCollectionViewController

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

#import "TabBarViewControllerExampleSupplemental.h"

@import MaterialComponents.MaterialAppBar;
@import MaterialComponents.MaterialPalettes;
#import "MaterialAppBar.h"
#import "MaterialPalettes.h"

@interface TBVCSampleView : UIView
@end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#import "MaterialThemes.h"
#import "supplemental/ThemerTypicalUseSupplemental.h"

@import MaterialComponents.MaterialCollections;
#import "MaterialCollections.h"

static NSString *const kReusableIdentifierItem = @"cell";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#import "MaterialPalettes.h"
#import "supplemental/ThemerTypicalUseSupplemental.h"

@import MaterialComponents.MaterialCollections;
#import "MaterialCollections.h"

static NSString *const kReusableIdentifierItem = @"cell";

Expand Down

0 comments on commit e031865

Please sign in to comment.