Skip to content

Commit 60e2a6e

Browse files
committed
Merge branch 'release-candidate' into stable
2 parents 672a406 + 01d5029 commit 60e2a6e

22 files changed

+99
-98
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
# 121.0.1
2+
3+
In this patch release we made some internal improvements to our imports and refined our deprecation policy.
4+
5+
## Component changes
6+
7+
### BottomNavigation
8+
9+
* [Fix imports for MDCBottomNavigationItemView.](https://github.com/material-components/material-components-ios/commit/afe4105debedd8c7b3376b5a37e9beeafb9b368e) (Alyssa Weiss)
10+
* [Remove unused 'kOfAnnouncement' and fix imports.](https://github.com/material-components/material-components-ios/commit/3a4270e82053fec7c215a7a766fdfe6c7f153bae) (Alyssa Weiss)
11+
12+
### Ripple
13+
14+
* [Declare parameter type NSArray in the Ripple implementation.](https://github.com/material-components/material-components-ios/commit/73fb0330a6e1b0d6f70a0e50037b255cac1cafba) (Yarden Eitan)
15+
16+
### TextControls
17+
18+
* [Fix imports for clang tidy](https://github.com/material-components/material-components-ios/commit/ee7f2fce52de27f59a209cca2f43f7609e6e0172) (Andrew Overton)
19+
20+
### Typography
21+
22+
* [UIFont MDC simple equality: updated class docs.](https://github.com/material-components/material-components-ios/commit/274ba189abfb3d8065585b64a67f4d4179996e38) (Randall Li)
23+
24+
---
25+
126
# 121.0.0
227

328
In this major release, we added a `scrollViewBounce` property and a `adjustHeightForSafeAreaInsets` property to BottomSheets, added a `shouldAutorotateOverride` property, a `preferredInterfaceOrientationForPresentationOverride` property, a `supportedInterfaceOrientationsOverride` property, and a `modalTransitionStyleOverride` property to MDCAlertController, and converted `progressTintColors` property on MDCProgressView to use light weight generics.

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 = "121.0.0"
5+
mdc.version = "121.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 = "121.0.0"
3+
s.version = "121.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 = "121.0.0"
3+
s.version = "121.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 = "121.0.0"
56+
s.version = "121.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-
121.0.0
1+
121.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>121.0.0</string>
18+
<string>121.0.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>121.0.0</string>
22+
<string>121.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>121.0.0</string>
18+
<string>121.0.1</string>
1919
<key>CFBundleVersion</key>
20-
<string>121.0.0</string>
20+
<string>121.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 = "121.0.0"
3+
s.version = "121.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/MDCBottomNavigationBar.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
#import "MDCBottomNavigationBar.h"
1818

19+
#import "MaterialElevation.h"
20+
#import "MaterialInk.h"
1921
#import <MDFInternationalization/MDFInternationalization.h>
2022

2123
#import "private/MDCBottomNavigationBar+Private.h"
@@ -41,8 +43,6 @@
4143
static const CGFloat kBarHeightAdjacentTitle = 40;
4244
static const CGFloat kItemsHorizontalMargin = 12;
4345

44-
static NSString *const kOfAnnouncement = @"of";
45-
4646
@interface MDCBottomNavigationBar () <MDCInkTouchControllerDelegate,
4747
MDCRippleTouchControllerDelegate>
4848

components/BottomNavigation/src/private/MDCBottomNavigationItemView.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515

1616
#import "MDCBottomNavigationItemView.h"
1717

18+
#import "MaterialInk.h"
19+
#import "MaterialRipple.h"
1820
#import <MDFInternationalization/MDFInternationalization.h>
1921

20-
#import "MaterialAvailability.h"
2122
#import "MDCBottomNavigationBar.h"
2223
#import "MDCBottomNavigationItemBadge.h"
2324

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 = @"121.0.0";
22+
static NSString* const kMDCLibraryInfoVersionString = @"121.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: "121.0.0", etc.
29+
// Accept: "121.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

components/Ripple/src/MDCRippleView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ - (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection {
8888
- (void)layoutSublayersOfLayer:(CALayer *)layer {
8989
[super layoutSublayersOfLayer:layer];
9090

91-
NSArray *sublayers = self.layer.sublayers;
91+
NSArray<CALayer *> *sublayers = self.layer.sublayers;
9292
if (sublayers.count > 0) {
9393
[self updateRippleStyle];
9494
}

components/TextControls/src/BaseTextFields/MDCBaseTextField.m

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

1717
#import <Foundation/Foundation.h>
1818

19+
#import "MaterialTextControls+Enums.h"
20+
#import "MDCTextControlAssistiveLabelDrawPriority.h"
1921
#import <MDFInternationalization/MDFInternationalization.h>
2022

2123
#import "MDCBaseTextFieldDelegate.h"

components/TextControls/tests/snapshot/MDCBaseTextFieldSnapshotTests.m

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

1717
#import <UIKit/UIKit.h>
1818

19-
#import "MaterialTextControls+FilledTextFieldsTheming.h"
20-
#import "MaterialTextControls+OutlinedTextFieldsTheming.h"
2119
#import "supplemental/MDCBaseTextFieldTestsSnapshotTestHelpers.h"
2220
#import "supplemental/MDCTextControlSnapshotTestHelpers.h"
2321

components/TextControls/tests/snapshot/MDCFilledTextFieldSnapshotTests.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
#import "supplemental/MDCBaseTextFieldTestsSnapshotTestHelpers.h"
2020
#import "supplemental/MDCTextControlSnapshotTestHelpers.h"
2121
#import "MaterialTextControls+FilledTextFields.h"
22-
#import "MaterialTextControls+FilledTextFieldsTheming.h"
23-
#import "MaterialTextControls+OutlinedTextFieldsTheming.h"
2422

2523
@interface MDCFilledTextFieldTestsSnapshotTests : MDCSnapshotTestCase
2624
@property(strong, nonatomic) MDCFilledTextField *textField;

components/TextControls/tests/snapshot/MDCOutlinedTextFieldSnapshotTests.m

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

1919
#import "supplemental/MDCBaseTextFieldTestsSnapshotTestHelpers.h"
2020
#import "supplemental/MDCTextControlSnapshotTestHelpers.h"
21-
#import "MaterialTextControls+FilledTextFieldsTheming.h"
2221
#import "MaterialTextControls+OutlinedTextFields.h"
23-
#import "MaterialTextControls+OutlinedTextFieldsTheming.h"
2422

2523
@interface MDCOutlinedTextFieldTestsSnapshotTests : MDCSnapshotTestCase
2624
@property(strong, nonatomic) MDCOutlinedTextField *textField;

components/TextControls/tests/snapshot/supplemental/MDCBaseTextFieldTestsSnapshotTestHelpers.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717
#import <UIKit/UIKit.h>
1818

1919
#import "MaterialTextControls+BaseTextFields.h"
20+
#import "MaterialTextControls+Enums.h"
21+
#import "MaterialTextControls+FilledTextFields.h"
22+
#import "MaterialTextControls+OutlinedTextFields.h"
23+
#import "MaterialTextControls+UnderlinedTextFields.h"
2024
#import "MDCTextControlSnapshotTestHelpers.h"
21-
#import "MaterialSnapshot.h"
2225

2326
@interface MDCBaseTextField (AnimationDuration)
2427
@property(nonatomic, assign) NSTimeInterval animationDuration;

components/Typography/src/UIFont+MaterialSimpleEquality.h

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

15-
/**
16-
The Typography component provides methods for getting sized fonts and opacities following Material
17-
style guidelines.
18-
19-
This header is the umbrella header for the component and should be imported by consumers of the
20-
Typography component. Please do not directly import other headers. This will allow the componet to
21-
expand or contract the header file space without consumer modifications.
22-
*/
23-
2415
#import <UIKit/UIKit.h>
2516

17+
/**
18+
This UIFont category provides a shallow equality check. http://www.openradar.appspot.com/28406766
19+
*/
2620
@interface UIFont (MaterialSimpleEquality)
2721

2822
/*

contributing/deprecation_policy.md

Lines changed: 47 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -25,40 +25,22 @@ the deprecation process below.
2525
## Our deprecation process (Googlers)
2626

2727
1. Measure internal usage of the API.
28-
2. Create a GitHub issue.
29-
3. Write a migration guide.
30-
4. Add a comment to the API indicating that it will be deprecated.
31-
5. Determine a schedule for the API deletion.
32-
6. Announce that the API will be deprecated
33-
7. After the deprecation date, annotate the API as deprecated.
34-
8. After the deletion date, re-evaluate usage of the API.
35-
9. Delete the API and migration guide.
28+
2. Write a migration guide.
29+
3. Determine a schedule for the API deprecation and deletion.
30+
4. Mark the API as To Be Deprecated.
31+
5. Announce that the API will be deprecated.
32+
6. After the deprecation date, annotate the API as deprecated.
33+
7. After the deletion date, re-evaluate usage of the API.
34+
8. Delete the API and migration guide.
3635

3736
### Step 1: Measure internal usage of the API
3837

3938
Read [go/mdc-ios-measuring-api-usage](http://go/mdc-ios-measuring-api-usage) to learn how to measure
4039
API usage internally.
4140

4241
If there is zero API usage beyond our own library: skip to step 7 (Deprecate the API).
43-
Otherwise, proceed to step 2.
4442

45-
### Step 2: Create a GitHub issue
46-
47-
Create a GitHub issue with the following template:
48-
49-
```
50-
- [x] Measure internal usage of the API.
51-
- [x] Create a GitHub issue.
52-
- [ ] Write a migration guide.
53-
- [ ] Add a comment to the API indicating that it will be deprecated.
54-
- [ ] Determine a schedule for the API deletion.
55-
- [ ] Announce that the API will be deprecated
56-
- [ ] After the deprecation date, annotate the API as deprecated.
57-
- [ ] After the deletion date, re-evaluate usage of the API.
58-
- [ ] Delete the API and migration guide.
59-
```
60-
61-
### Step 3: Write a migration guide
43+
### Step 2: Write a migration guide
6244

6345
This guide should be placed in the component's docs/ folder and have a prefix `migration-guide-`.
6446

@@ -67,41 +49,7 @@ MDCAppBarViewController.
6749

6850
Send this migration guide out for review as a standalone pull request.
6951

70-
### Step 4: Add a comment to the API indicating that it will be deprecated.
71-
72-
Add a `@warning` annotation to the API's public documentation indicating the intent for this API to
73-
eventually be deprecated. This warning should also provide a short suggested alternative, if one
74-
exists, and a link to the migration guide.
75-
76-
For example:
77-
78-
```objc
79-
@warning This method will soon be deprecated. Consider using
80-
@c +applySemanticColorScheme:toFlexibleHeaderView: instead. Learn more at
81-
components/schemes/Color/docs/migration-guide-semantic-color-scheme.md
82-
```
83-
84-
If the API to be deprecated is a method or property of a class, also move the API to a category
85-
named `ToBeDeprecated`. This will cause the API to show up in our release notes automatically as
86-
a to-be-deprecated API.
87-
88-
For example:
89-
90-
```objc
91-
@interface MDCAppBarContainerViewController (ToBeDeprecated)
92-
93-
/**
94-
The App Bar views that will be presented in front of the contentViewController's view.
95-
96-
@warning This API will eventually be deprecated. Use appBarViewController instead. Learn more at
97-
components/AppBar/docs/migration-guide-appbar-appbarviewcontroller.md
98-
*/
99-
@property(nonatomic, strong, nonnull, readonly) MDCAppBar *appBar;
100-
101-
@end
102-
```
103-
104-
### Step 5: Determine a schedule for the API deletion
52+
### Step 3: Determine a schedule for the API deprecation and deletion
10553

10654
Generally speaking deprecations take a long time unless you take an active part in migrating
10755
clients. Calculate your estimates with this in mind. A rough guideline:
@@ -135,7 +83,41 @@ Map this schedule onto reality:
13583

13684
**Once you have determined a schedule, add the schedule to the migration guide**.
13785

138-
### Step 6: Announce that the API will be deprecated
86+
### Step 4: Mark the API as To Be Deprecated
87+
88+
Add a `@warning` annotation to the API's public documentation indicating the intent for this API to
89+
eventually be deprecated. This warning should also provide a short suggested alternative, if one
90+
exists, and a link to the migration guide.
91+
92+
For example:
93+
94+
```objc
95+
@warning This method will soon be deprecated. Consider using
96+
@c +applySemanticColorScheme:toFlexibleHeaderView: instead. Learn more at
97+
components/schemes/Color/docs/migration-guide-semantic-color-scheme.md
98+
```
99+
100+
If the API to be deprecated is a method or property of a class, also move the API to a category
101+
named `ToBeDeprecated`. This will cause the API to show up in our release notes automatically as
102+
a to-be-deprecated API.
103+
104+
For example:
105+
106+
```objc
107+
@interface MDCAppBarContainerViewController (ToBeDeprecated)
108+
109+
/**
110+
The App Bar views that will be presented in front of the contentViewController's view.
111+
112+
@warning This API will eventually be deprecated. Use appBarViewController instead. Learn more at
113+
components/AppBar/docs/migration-guide-appbar-appbarviewcontroller.md
114+
*/
115+
@property(nonatomic, strong, nonnull, readonly) MDCAppBar *appBar;
116+
117+
@end
118+
```
119+
120+
### Step 5: Announce that the API will be deprecated
139121

140122
Inform internal clients of the impending deprecation by sending an email with the following
141123
format:
@@ -152,12 +134,12 @@ The timeline for this deprecation is as follows:
152134
- <Deletion date>: The API will be deleted.
153135
```
154136

155-
### Step 7: After the deprecation date, annotate the API as deprecated
137+
### Step 6: After the deprecation date, annotate the API as deprecated
156138

157139
Send a pull request annotating the API as deprecated. Use `__deprecated_msg("")` and provide a
158140
concise message with a recommendation for an alternative API, if any is available.
159141

160-
### Step 8: After the deletion date, re-evaluate usage of the API
142+
### Step 7: After the deletion date, re-evaluate usage of the API
161143

162144
Once the deletion date has passed and at least one release has been cut since the API was marked as
163145
deprecated, you can now consider deleting the API. But first: you must evaluate whether the API is
@@ -170,7 +152,7 @@ If the API is still being used by clients, you have a few options:
170152

171153
Proceed to step 9 once you've confirmed that there are zero internal usages of the API.
172154

173-
### Step 9: Delete the API and migration guide
155+
### Step 8: Delete the API and migration guide
174156

175157
Once you have confirmed that there is no internal usage of the API, you can safely delete it and the migration guide.
176158

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 = "121.0.0"
3+
s.version = "121.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)