Skip to content

Commit 2c73e2d

Browse files
author
Jeff Verkoeyen
committed
Merge branch 'release-candidate' into stable
2 parents cf50992 + 47cd790 commit 2c73e2d

File tree

161 files changed

+453
-136
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+453
-136
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
# 122.0.1
2+
3+
This patch release fixes a bug and generally cleans up import statements.
4+
5+
## Component changes
6+
7+
### BottomNavigation
8+
9+
* [Honor the `animated` param when changing the hidden state of the bottom navigation bar.](https://github.com/material-components/material-components-ios/commit/cdf7ffccc2a4ab366b630eae460099ce977ea2c7) (Nobody)
10+
11+
### NavigationDrawer
12+
13+
* [Increase code coverage by adding more tests.](https://github.com/material-components/material-components-ios/commit/1e8dcc273e9c37d8cd4aad4167ec415ccc13b9be) (Yarden Eitan)
14+
15+
## Multi-component changes
16+
17+
* [Optimizing imports](https://github.com/material-components/material-components-ios/commit/1abdf167609ad6283cef7dd687a6e8e5b399a1e5) (Jeff Verkoeyen)
18+
* [Optimizing imports](https://github.com/material-components/material-components-ios/commit/29803522c60f81168bc4fcf881b2d14bae554f42) (Jeff Verkoeyen)
19+
* [Optimizing imports](https://github.com/material-components/material-components-ios/commit/2a8a6ac1c911ad256dfd5a2cc4762c7b46338d8e) (Jeff Verkoeyen)
20+
* [Optimizing imports](https://github.com/material-components/material-components-ios/commit/4c86b139e41fc1dd5688f7d2fdfbb90d511ff3c4) (Jeff Verkoeyen)
21+
* [Optimizing imports](https://github.com/material-components/material-components-ios/commit/8ce743ce8a43529d4b8c2dfe42dd64c5b608c050) (Jeff Verkoeyen)
22+
* [Optimizing imports](https://github.com/material-components/material-components-ios/commit/c53f44398e9605b38643a5ddcceefed71928cf25) (Jeff Verkoeyen)
23+
24+
---
25+
126
# 122.0.0
227

328
In this major release, we have made some API-breaking changes and landed some bug fixes and test improvements.

MaterialComponents.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ load 'scripts/generated/icons.rb'
22

33
Pod::Spec.new do |mdc|
44
mdc.name = "MaterialComponents"
5-
mdc.version = "122.0.0"
5+
mdc.version = "122.0.1"
66
mdc.authors = "The Material Components authors."
77
mdc.summary = "A collection of stand-alone production-ready UI libraries focused on design details."
88
mdc.homepage = "https://github.com/material-components/material-components-ios"

MaterialComponentsEarlGreyTests.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "MaterialComponentsEarlGreyTests"
3-
s.version = "122.0.0"
3+
s.version = "122.0.1"
44
s.authors = "The Material Components authors."
55
s.summary = "This spec is an aggregate of all the Material Components EarlGrey tests."
66
s.description = "This spec is made for use in the MDC Catalog."

MaterialComponentsExamples.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "MaterialComponentsExamples"
3-
s.version = "122.0.0"
3+
s.version = "122.0.1"
44
s.authors = "The Material Components authors."
55
s.summary = "This spec is an aggregate of all the Material Components examples."
66
s.description = "This spec is made for use in the MDC Catalog. Used in conjunction with CatalogByConvention we create our Material Catalog."

MaterialComponentsSnapshotTests.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ end
5353

5454
Pod::Spec.new do |s|
5555
s.name = "MaterialComponentsSnapshotTests"
56-
s.version = "122.0.0"
56+
s.version = "122.0.1"
5757
s.authors = "The Material Components authors."
5858
s.summary = "This spec is an aggregate of all the Material Components snapshot tests."
5959
s.homepage = "https://github.com/material-components/material-components-ios"

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
122.0.0
1+
122.0.1

catalog/MDCCatalog/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>122.0.0</string>
18+
<string>122.0.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>122.0.0</string>
22+
<string>122.0.1</string>
2323
<key>LSRequiresIPhoneOS</key>
2424
<true/>
2525
<key>UIAppFonts</key>

catalog/MDCDragons/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>122.0.0</string>
18+
<string>122.0.1</string>
1919
<key>CFBundleVersion</key>
20-
<string>122.0.0</string>
20+
<string>122.0.1</string>
2121
<key>LSRequiresIPhoneOS</key>
2222
<true/>
2323
<key>UILaunchStoryboardName</key>

catalog/MaterialCatalog/MaterialCatalog.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "MaterialCatalog"
3-
s.version = "122.0.0"
3+
s.version = "122.0.1"
44
s.summary = "Helper Objective-C classes for the MDC catalog."
55
s.description = "This spec is made for use in the MDC Catalog."
66
s.homepage = "https://github.com/material-components/material-components-ios"

components/ActionSheet/examples/ActionSheetComparisonExample.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#import "MaterialButtons.h"
2121
#import "MaterialColorScheme.h"
2222
#import "MaterialContainerScheme.h"
23-
#import "MaterialTypographyScheme.h"
2423

2524
@interface ActionSheetComparisonExample : UIViewController
2625

components/ActionSheet/examples/ActionSheetTypicalUseExample.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#import "MaterialButtons.h"
2121
#import "MaterialColorScheme.h"
2222
#import "MaterialContainerScheme.h"
23-
#import "MaterialTypographyScheme.h"
2423

2524
@interface ActionSheetTypicalUseExample : UIViewController <MDCActionSheetControllerDelegate>
2625

components/ActionSheet/tests/unit/ActionSheetTestHelpers.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
#import <CoreImage/CoreImage.h>
1818

19-
#import "../../src/private/MDCActionSheetHeaderView.h"
2019
#import "../../src/private/MDCActionSheetItemTableViewCell.h"
20+
#import "MaterialActionSheet.h"
2121

2222
@implementation ActionSheetTestHelpers
2323

components/ActionSheet/tests/unit/MDCActionSheetControllerDelegateTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#import "MDCActionSheetController.h"
1818
#import "MDCActionSheetControllerDelegate.h"
19-
#import "MDCBottomSheetPresentationController.h"
19+
#import "MaterialBottomSheet.h"
2020

2121
@interface ActionSheetControllerDelegate : NSObject <MDCActionSheetControllerDelegate>
2222
@property(nonatomic, readonly) MDCActionSheetController *dismissedActionSheetController;

components/ActionSheet/tests/unit/MDCActionSheetControllerRippleTests.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#import "../../src/private/MDCActionSheetItemTableViewCell.h"
1818
#import "MaterialActionSheet.h"
1919
#import "ActionSheetTestHelpers.h"
20-
#import "MaterialInk.h"
2120
#import "MaterialRipple.h"
2221

2322
@interface MDCActionSheetController (TestingRipple)

components/ActionSheet/tests/unit/MDCActionSheetControllerThemingTests.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@
1616

1717
#import "../../src/private/MDCActionSheetHeaderView.h"
1818
#import "../../src/private/MDCActionSheetItemTableViewCell.h"
19+
#import "MaterialActionSheet.h"
1920
#import "MaterialActionSheet+Theming.h"
2021
#import "MaterialAvailability.h"
2122
#import "MaterialShadowElevations.h"
23+
#import "MaterialColorScheme.h"
24+
#import "MaterialContainerScheme.h"
25+
#import "MaterialTypographyScheme.h"
2226

2327
static const CGFloat kHighAlpha = (CGFloat)0.87;
2428
static const CGFloat kMediumAlpha = (CGFloat)0.6;

components/ActionSheet/tests/unit/MDCActionSheetItemTableViewCellTests.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#import <XCTest/XCTest.h>
1616

1717
#import "../../src/private/MDCActionSheetItemTableViewCell.h"
18+
#import "MaterialActionSheet.h"
1819
#import "ActionSheetTestHelpers.h"
1920

2021
@interface MDCActionSheetItemTableViewCell (Testing)

components/AppBar/tests/snapshot/Theming/MDCAppBarViewController_MaterialThemingSnapshotTests.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#import "MaterialAppBar.h"
16+
#import "MaterialFlexibleHeader.h"
17+
#import "MaterialNavigationBar.h"
1518
#import "MaterialSnapshot.h"
1619

1720
#import "MaterialAppBar+Theming.h"

components/AppBar/tests/snapshot/Theming/MDCAppBarViewController_MaterialThemingWhenScrolledSnapshotTests.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#import "MaterialAppBar.h"
16+
#import "MaterialFlexibleHeader.h"
17+
#import "MaterialNavigationBar.h"
1518
#import "MaterialSnapshot.h"
1619

1720
#import "MaterialAppBar+Theming.h"

components/AppBar/tests/unit/AppBarNavigationControllerNavigationBarHiddenTests.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#import <XCTest/XCTest.h>
1616

1717
#import "MaterialAppBar.h"
18+
#import "MaterialFlexibleHeader.h"
1819

1920
@interface AppBarNavigationControllerNavigationBarHiddenTests : XCTestCase
2021
@property(nonatomic, strong) MDCAppBarNavigationController *appBarNavigationController;

components/AppBar/tests/unit/AppBarNavigationControllerNavigationBarHiddenWhenNavigationBarHiddenHidesAppBarTests.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#import <XCTest/XCTest.h>
1616

1717
#import "MaterialAppBar.h"
18+
#import "MaterialFlexibleHeader.h"
1819

1920
@interface AppBarNavigationControllerNavigationBarHiddenWhenNavigationBarHiddenHidesAppBarTests
2021
: XCTestCase

components/AppBar/tests/unit/AppBarNavigationControllerTests.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#import <XCTest/XCTest.h>
1616

1717
#import "MaterialAppBar.h"
18+
#import "MaterialFlexibleHeader.h"
1819

1920
@interface AppBarNavigationControllerTests : XCTestCase
2021

components/AppBar/tests/unit/AppBarViewControllerTests.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
#import <XCTest/XCTest.h>
1616

1717
#import "MDCAppBarViewController.h"
18+
#import "MaterialFlexibleHeader.h"
19+
#import "MaterialHeaderStackView.h"
20+
#import "MaterialNavigationBar.h"
1821

1922
@interface AppBarViewControllerTests : XCTestCase
2023

components/Banner/examples/AppBarBannerExample.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@
1414

1515
#import <UIKit/UIKit.h>
1616

17-
#import "MaterialAppBar+Theming.h"
1817
#import "MaterialAppBar.h"
19-
#import "MaterialBanner+Theming.h"
18+
#import "MaterialAppBar+Theming.h"
2019
#import "MaterialBanner.h"
20+
#import "MaterialBanner+Theming.h"
21+
#import "MaterialButtons.h"
22+
#import "MaterialFlexibleHeader.h"
23+
#import "MaterialHeaderStackView.h"
2124
#import "MaterialContainerScheme.h"
2225

2326
@interface AppBarBannerExample : UITableViewController

components/Banner/examples/BannerTypicalUseExampleViewController.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#import "MaterialBanner.h"
1616
#import "MaterialBanner+Theming.h"
1717
#import "MaterialButtons.h"
18-
#import "MaterialTypography.h"
1918
#import "MaterialColorScheme.h"
2019
#import "MaterialContainerScheme.h"
2120
#import "MaterialTypographyScheme.h"

components/BottomAppBar/examples/supplemental/BottomAppBarTypicalUseSupplemental.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@
1515
#import "BottomAppBarTypicalUseSupplemental.h"
1616

1717
#import "MaterialAppBar+ColorThemer.h"
18-
#import "MaterialAppBar+TypographyThemer.h"
1918
#import "MaterialAppBar.h"
19+
#import "MaterialAppBar+TypographyThemer.h"
20+
#import "MaterialBottomAppBar.h"
21+
#import "MaterialFlexibleHeader.h"
22+
#import "MaterialColorScheme.h"
23+
#import "MaterialTypographyScheme.h"
2024

2125
static NSString *const kCellIdentifier = @"cell";
2226

components/BottomAppBar/examples/supplemental/BottomAppBarTypicalUseViewController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#import "BottomAppBarTypicalUseViewController.h"
1616

17+
#import "MaterialBottomAppBar.h"
18+
1719
@interface BottomAppBarTypicalUseViewController ()
1820

1921
@end

components/BottomNavigation/examples/BottomNavigationBlurExample.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414

1515
#import <UIKit/UIKit.h>
1616

17-
#import "MDCBottomNavigationBar+MaterialTheming.h"
1817
#import "MaterialBottomNavigation.h"
18+
#import "MDCBottomNavigationBar+MaterialTheming.h"
1919
#import "MaterialColorScheme.h"
20-
#import "MaterialTypographyScheme.h"
20+
#import "MaterialContainerScheme.h"
2121

2222
@interface BottomNavigationBlurExample : UIViewController <UICollectionViewDataSource>
2323

components/BottomNavigation/examples/BottomNavigationTypicalUseExample.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414

1515
#import <UIKit/UIKit.h>
1616

17-
#import "MaterialAvailability.h"
1817
#import "MaterialBottomNavigation.h"
1918
#import "MDCBottomNavigationBar+MaterialTheming.h"
2019
#import "MaterialPalettes.h"
20+
#import "MaterialColorScheme.h"
21+
#import "MaterialContainerScheme.h"
2122

2223
@interface BottomNavigationTypicalUseExample : UIViewController <MDCBottomNavigationBarDelegate>
2324

components/BottomNavigation/src/MDCBottomNavigationBarController.m

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818

1919
#import "private/MDCBottomNavigationBar+Private.h"
2020
#import "private/MDCBottomNavigationLargeItemDialogView.h"
21-
#import "MDCBottomNavigationBarControllerDelegate.h"
2221
#import "MaterialBottomNavigation.h"
23-
#import "MaterialApplication.h"
2422

2523
// A context for Key Value Observing
2624
static void *const kObservationContext = (void *)&kObservationContext;
@@ -263,16 +261,35 @@ - (void)setNavigationBarHidden:(BOOL)hidden animated:(BOOL)animated {
263261

264262
_navigationBarHidden = hidden;
265263

264+
MDCBottomNavigationBar *navigationBar = self.navigationBar;
266265
self.navigationBarItemsBottomAnchorConstraint.active = !hidden;
267266
self.navigationBarBottomAnchorConstraint.constant =
268-
hidden ? CGRectGetHeight(self.navigationBar.frame) : 0;
267+
hidden ? CGRectGetHeight(navigationBar.frame) : 0;
269268

270-
[UIView animateWithDuration:kNavigationBarHideShowAnimationDuration
269+
void (^completionBlock)(BOOL) = nil;
270+
271+
if (hidden && animated) {
272+
// For animated hides we deffer updating the nav-bar hidden state until the animation finishes.
273+
completionBlock = ^(BOOL finished) {
274+
if (finished) {
275+
// Hide the view to avoid visual artifacts on rotations.
276+
navigationBar.hidden = hidden;
277+
}
278+
};
279+
} else {
280+
// Update `hidden` state immediately for unhide or non-animated transitions to ensure it gets
281+
// applied in the same run loop.
282+
navigationBar.hidden = hidden;
283+
}
284+
285+
NSTimeInterval duration = animated ? kNavigationBarHideShowAnimationDuration : 0;
286+
[UIView animateWithDuration:duration
271287
animations:^{
272288
[self.view setNeedsLayout];
273289
[self.view layoutIfNeeded];
274290
[self updateNavigationBarInsets];
275-
}];
291+
}
292+
completion:completionBlock];
276293
}
277294

278295
#pragma mark - MDCBottomNavigationBarDelegate

components/BottomNavigation/tests/snapshot/MDCBottomNavigationBarBlurEffectSnapshotTests.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#import "MaterialBottomNavigation.h"
2121
#import "MaterialInk.h"
2222
#import "MaterialSnapshot.h"
23-
#import "supplemental/MDCBottomNavigationSnapshotTestMutableTraitCollection.h"
2423
#import "supplemental/MDCBottomNavigationSnapshotTestUtilities.h"
2524
#import "supplemental/MDCFakeBottomNavigationBar.h"
2625

components/BottomNavigation/tests/snapshot/MDCBottomNavigationBarControllerSnapshotTests.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#import "MaterialBottomNavigation.h"
1516
#import "MaterialSnapshot.h"
1617

1718
#import "MDCBottomNavigationBarController.h"

components/BottomNavigation/tests/snapshot/MDCBottomNavigationBarSnapshotTests.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
#import "MDCBottomNavigationBar+MaterialTheming.h"
2626
#import "MaterialInk.h"
2727
#import "MaterialSnapshot.h"
28+
#import "MaterialColorScheme.h"
29+
#import "MaterialContainerScheme.h"
30+
#import "MaterialTypographyScheme.h"
2831

2932
static const CGFloat kWidthWide = 1600;
3033
static const CGFloat kWidthNarrow = 240;

components/BottomNavigation/tests/snapshot/MDCBottomNavigationBarThemingSnapshotTests.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#import "MaterialBottomNavigation.h"
1516
#import "MaterialBottomNavigation+Theming.h"
1617

1718
#import <XCTest/XCTest.h>
1819

1920
#import "../../src/private/MDCBottomNavigationItemView.h"
21+
#import "MaterialInk.h"
2022
#import "MaterialSnapshot.h"
23+
#import "MaterialColorScheme.h"
24+
#import "MaterialContainerScheme.h"
25+
#import "MaterialTypographyScheme.h"
2126

2227
static const CGFloat kFakeWidth = 500;
2328
static const CGFloat kFakeHeight = 75;

components/BottomNavigation/tests/unit/BottomNavigationItemBadgeTests.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#import <XCTest/XCTest.h>
1717

1818
#import "../../src/private/MDCBottomNavigationItemBadge.h"
19-
#import "MaterialBottomNavigation.h"
2019

2120
@interface BottomNavigationItemBadgeTests : XCTestCase
2221
@property(nonatomic, strong) MDCBottomNavigationItemBadge *badge;

0 commit comments

Comments
 (0)