Skip to content

Commit beea7e6

Browse files
committed
Merge branch 'release-candidate' into stable
2 parents d1e70a4 + 9d8eb7b commit beea7e6

13 files changed

+37
-27
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# 124.0.1
2+
3+
This patch release fixes a bug in BottomNavigation.
4+
5+
## Component changes
6+
7+
### BottomNavigation
8+
9+
* [Update hidden state logic to address a race condition occurring when showing/hiding the navigation bar multiple times before the animation ends.](https://github.com/material-components/material-components-ios/commit/4f12b7da7121408e46a4ffbe09204e7a5575eabb) (German Rodriguez)
10+
11+
---
12+
113
# 124.0.0
214

315
In this release `MDCTextField` and its associated classes and protocols are deprecated. We also deleted the Pesto example application and cleaned up pre iOS 12 checks in the library.

MaterialComponents.podspec

Lines changed: 2 additions & 2 deletions
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 = "124.0.0"
5+
mdc.version = "124.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"
@@ -106,7 +106,7 @@ Pod::Spec.new do |mdc|
106106
component.dependency "MDFInternationalization"
107107
component.dependency "MaterialComponents/Palettes"
108108
component.dependency "MaterialComponents/private/Application"
109-
component.dependency "MotionAnimator", "~> 2.0"
109+
component.dependency "MotionAnimator", "~> 4.0"
110110

111111
component.test_spec 'UnitTests' do |unit_tests|
112112
unit_tests.source_files = [

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 = "124.0.0"
3+
s.version = "124.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 = "124.0.0"
3+
s.version = "124.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 = "124.0.0"
56+
s.version = "124.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-
124.0.0
1+
124.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>124.0.0</string>
18+
<string>124.0.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>124.0.0</string>
22+
<string>124.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>124.0.0</string>
18+
<string>124.0.1</string>
1919
<key>CFBundleVersion</key>
20-
<string>124.0.0</string>
20+
<string>124.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 = "124.0.0"
3+
s.version = "124.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/BottomNavigation/src/MDCBottomNavigationBarController.m

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -266,19 +266,17 @@ - (void)setNavigationBarHidden:(BOOL)hidden animated:(BOOL)animated {
266266
self.navigationBarBottomAnchorConstraint.constant =
267267
hidden ? CGRectGetHeight(navigationBar.frame) : 0;
268268

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.
269+
void (^completionBlock)(BOOL) = ^(BOOL finished) {
270+
// Update the end hidden state of the navigation bar if it was not interrupted (the end state
271+
// matches the current state). Otherwise an already scheduled animation will take care of this.
272+
if (finished && !hidden != !self.navigationBarItemsBottomAnchorConstraint.active) {
273+
navigationBar.hidden = hidden;
274+
}
275+
};
276+
277+
// Immediatelly update the navigation bar's hidden state when it is going to become visible to be
278+
// able to see the animation).
279+
if (!hidden) {
282280
navigationBar.hidden = hidden;
283281
}
284282

components/LibraryInfo/src/MDCLibraryInfo.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// This string is updated automatically as a part of the release process and should not be edited
2020
// manually. Do not rename this constant or change the formatting without updating the release
2121
// scripts.
22-
static NSString* const kMDCLibraryInfoVersionString = @"124.0.0";
22+
static NSString* const kMDCLibraryInfoVersionString = @"124.0.1";
2323

2424
@implementation MDCLibraryInfo
2525

components/LibraryInfo/tests/unit/LibraryInfoTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ - (void)testVersionFormat {
2626
// Given
2727

2828
// This regex pattern does the following:
29-
// Accept: "124.0.0", etc.
29+
// Accept: "124.0.1", etc.
3030
// Reject: "0.0.0", "1.2", "1", "-1.2.3", "Hi, I'm a version 1.2.3", "1.2.3 is my version", etc.
3131
//
3232
// Note the major version must be >= 1 since "0.0.0" is used as the version when something goes

demos/supplemental/RemoteImageServiceForMDCDemos.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 = "RemoteImageServiceForMDCDemos"
3-
s.version = "124.0.0"
3+
s.version = "124.0.1"
44
s.summary = "A helper image class for the MDC demos."
55
s.description = "This spec is made for use in the MDC demos. It gets images via url."
66
s.homepage = "https://github.com/material-components/material-components-ios"

0 commit comments

Comments
 (0)