Skip to content

Commit 8dbffc6

Browse files
committed
Merge branch 'release-candidate' into stable
2 parents 2c2005f + 6450a78 commit 8dbffc6

File tree

48 files changed

+621
-166
lines changed

Some content is hidden

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

48 files changed

+621
-166
lines changed

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,44 @@
1+
# 115.0.0
2+
3+
In this major release, we deprecated the Ink component in favor of Ripple and deleted the
4+
deprecated `fontSize` property from the ThumbTrack component.
5+
6+
## Breaking changes
7+
8+
The `fontSize` property of ThumbTrack is now deleted. Please use the `font` property instead.
9+
10+
## New deprecations
11+
12+
The Ink component has been deprecated. Please use Ripple instead.
13+
14+
## Component changes
15+
16+
### BottomNavigation
17+
18+
* [Remove pre-iOS 10 handling for voiceover now that components support iOS 10+](https://github.com/material-components/material-components-ios/commit/01b1cbaa6621bafda648716f0e9074315cfcc0f3) (Alyssa Weiss)
19+
20+
### Collections
21+
22+
* [Silence warnings when including a header with a method that uses deprecated declarations.](https://github.com/material-components/material-components-ios/commit/21d67fef12496fa026e32d1b203e15464b7e5378) (Nobody)
23+
24+
### Dialogs
25+
26+
* [Issue:- We currently disable tap for message text view.](https://github.com/material-components/material-components-ios/commit/6e42102550f3ca3aff560951b037d3fe8a30cf7c) (Nobody)
27+
28+
### TextControls
29+
30+
* [Improve TextControls test coverage](https://github.com/material-components/material-components-ios/commit/9d12dc1f981b317877bf713b1ed906b9363cfb19) (Andrew Overton)
31+
32+
### private/ThumbTrack
33+
34+
* [Delete deprecated fontSize property.](https://github.com/material-components/material-components-ios/commit/959e66d5aea00e0aa124b5ac604c29856b6c4905) (Wenyu Zhang)
35+
36+
## Multi-component changes
37+
38+
* [Official deprecation of Ink.](https://github.com/material-components/material-components-ios/commit/8d7bc88a110d1c0ad0e2a14c6c4f106d5fd91d3e) (Yarden Eitan)
39+
40+
---
41+
142
# 114.0.0
243

344
In this major release we have updated BottomNavigation safe area calculations and removed the deprecated `sizeThatFitsIncludesSafeArea` API, including a minor bug fix for Dialogs.

MaterialComponents.podspec

Lines changed: 1 addition & 4 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 = "114.0.0"
5+
mdc.version = "115.0.0"
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"
@@ -313,9 +313,6 @@ Pod::Spec.new do |mdc|
313313
"components/#{component.base_name}/src/MDCBottomNavigationBarController.*",
314314
"components/#{component.base_name}/src/MaterialBottomNavigation+BottomNavigationController.h"
315315
]
316-
component.resources = [
317-
"components/#{component.base_name}/src/Material#{component.base_name}.bundle"
318-
]
319316

320317
component.dependency "MDFInternationalization"
321318
component.dependency "MaterialComponents/Availability"

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 = "114.0.0"
3+
s.version = "115.0.0"
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 = "114.0.0"
3+
s.version = "115.0.0"
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 = "114.0.0"
56+
s.version = "115.0.0"
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-
114.0.0
1+
115.0.0

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>114.0.0</string>
18+
<string>115.0.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>114.0.0</string>
22+
<string>115.0.0</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>114.0.0</string>
18+
<string>115.0.0</string>
1919
<key>CFBundleVersion</key>
20-
<string>114.0.0</string>
20+
<string>115.0.0</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 = "114.0.0"
3+
s.version = "115.0.0"
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/MDCBottomNavigationBar.m

Lines changed: 7 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
#import "private/MDCBottomNavigationBar+Private.h"
2222
#import "private/MDCBottomNavigationItemView.h"
23-
#import "private/MaterialBottomNavigationStrings.h"
24-
#import "private/MaterialBottomNavigationStrings_table.h"
2523
#import "MaterialAvailability.h"
2624
#import "MDCBottomNavigationBarDelegate.h"
2725
#import "MaterialPalettes.h"
@@ -61,7 +59,6 @@ @interface MDCBottomNavigationBar () <MDCInkTouchControllerDelegate,
6159
@property(nonatomic, strong) UIVisualEffectView *blurEffectView;
6260
@property(nonatomic, strong) UIView *itemsLayoutView;
6361
@property(nonatomic, strong) NSMutableArray *inkControllers;
64-
@property(nonatomic) BOOL shouldPretendToBeATabBar;
6562
@property(nonatomic, strong) UILayoutGuide *barItemsLayoutGuide NS_AVAILABLE_IOS(9_0);
6663
@property(nonatomic, assign) BOOL enableRippleBehavior;
6764

@@ -146,19 +143,7 @@ - (void)commonMDCBottomNavigationBarInit {
146143
_itemsLayoutView.clipsToBounds = NO;
147144
[_barView addSubview:_itemsLayoutView];
148145

149-
#if MDC_AVAILABLE_SDK_IOS(10_0)
150-
#pragma clang diagnostic push
151-
#pragma clang diagnostic ignored "-Wunguarded-availability"
152-
#pragma clang diagnostic ignored "-Wtautological-pointer-compare"
153-
if (&UIAccessibilityTraitTabBar != NULL) {
154-
_itemsLayoutView.accessibilityTraits = UIAccessibilityTraitTabBar;
155-
} else {
156-
_shouldPretendToBeATabBar = YES;
157-
}
158-
#pragma clang diagnostic pop
159-
#else
160-
_shouldPretendToBeATabBar = YES;
161-
#endif // MDC_AVAILABLE_SDK_IOS(10_0)
146+
_itemsLayoutView.accessibilityTraits = UIAccessibilityTraitTabBar;
162147
_elevation = MDCShadowElevationBottomNavigationBar;
163148
[(MDCShadowLayer *)self.layer setElevation:_elevation];
164149
UIColor *defaultShadowColor = UIColor.blackColor;
@@ -582,26 +567,14 @@ - (void)setItems:(NSArray<UITabBarItem *> *)items {
582567
itemView.titlePositionAdjustment = item.titlePositionAdjustment;
583568
itemView.badgeColor = self.itemBadgeBackgroundColor;
584569
itemView.badgeTextColor = self.itemBadgeTextColor;
570+
#pragma clang diagnostic push
571+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
585572
MDCInkTouchController *controller = [[MDCInkTouchController alloc] initWithView:itemView];
573+
#pragma clang diagnostic pop
586574
controller.delegate = self;
587575
[self.inkControllers addObject:controller];
588576
itemView.rippleTouchController.delegate = self;
589577

590-
if (self.shouldPretendToBeATabBar) {
591-
NSString *key = kMaterialBottomNavigationStringTable
592-
[kStr_MaterialBottomNavigationItemCountAccessibilityHint];
593-
NSString *itemOfTotalString = NSLocalizedStringFromTableInBundle(
594-
key, kMaterialBottomNavigationStringsTableName, [[self class] bundle], kOfString);
595-
NSString *localizedPosition =
596-
[NSString localizedStringWithFormat:itemOfTotalString, (i + 1), (int)items.count];
597-
// Allow a custom `accessibilityHint` to be assigned even if "faking" a tab bar is enabled.
598-
if (itemView.button.accessibilityHint.length) {
599-
itemView.button.accessibilityHint =
600-
[NSString stringWithFormat:@"%@. %@", localizedPosition, itemView.accessibilityHint];
601-
} else {
602-
itemView.button.accessibilityHint = localizedPosition;
603-
}
604-
}
605578
if (item.image) {
606579
itemView.image = item.image;
607580
}
@@ -852,6 +825,8 @@ + (NSString *)bundlePathWithName:(NSString *)bundleName {
852825

853826
#pragma mark - MDCInkTouchControllerDelegate methods
854827

828+
#pragma clang diagnostic push
829+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
855830
- (MDCInkView *)inkTouchController:(MDCInkTouchController *)inkTouchController
856831
inkViewAtTouchLocation:(CGPoint)location {
857832
if ([inkTouchController.view isKindOfClass:[MDCBottomNavigationItemView class]]) {
@@ -867,6 +842,7 @@ - (BOOL)inkTouchController:(MDCInkTouchController *)inkTouchController
867842
}
868843
return YES;
869844
}
845+
#pragma clang diagnostic pop
870846

871847
#pragma mark - MDCRippleTouchControllerDelegate methods
872848

0 commit comments

Comments
 (0)