Skip to content

Commit

Permalink
Merge branch 'release-candidate' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
randallli committed Dec 6, 2019
2 parents 44a33e5 + 08d371b commit 482a9a8
Show file tree
Hide file tree
Showing 78 changed files with 437 additions and 1,483 deletions.
154 changes: 154 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,157 @@
# 95.0.0

In this major release we deleted a bunch of APIs already marked deprecated in the Button Bar,
Button, Ink, Chip componnts.

## Breaking changes

### Button

`MDCButton` removed `cornerRadius`.

#### Chips

We removed a bunch of themer classes and protocols that are not part of our latest theming offering.

## New deprecations

### Navigation Bar

We deprecated the color themer in preperation of deleting it. Use theming instead.

### Outlined Button

We deprecated the color themer in preperation of deleting it. Use theming instead.

### Text Button

We deprecated the color themer in preperation of deleting it. Use theming instead.

### Cards

We deprecated the color themer in preperation of deleting it. Use theming instead.

### Tab Bar

We deprecated the color themer in preperation of deleting it. Use theming instead.


### Text Field

We deprecated the color themer in preperation of deleting it. Use theming instead.

### Thumb Track

We deprecated the private thumbtrack component's `thumbMaxRippleRadius`.

## API changes

#### MDCButton

*removed* property: `cornerRadius` in `MDCButton`

#### Chips

*removed* protocol: `MDCChipViewScheming`. Use Chips+Theming instead.

*removed* class: `MDCChipViewThemer`. Use Chips+Theming instead.

*removed* class: `MDCChipViewColorThemer`. Use Chips+Theming instead.

*removed* class: `MDCChipViewFontThemer`. Use Chips+Theming instead.

*removed* class: `MDCChipViewShapeThemer`. Use Chips+Theming instead.

*removed* class: `MDCChipViewTypographyThemer`. Use Chips+Theming instead.

#### Navigation Bar

*deprecated* class: MDCBottomNavigationBarColorThemer. Use MaterialBottomNavigation+Theming instead.

#### Outlined Button

*deprecated* class: MDCOutlinedButtonColorThemer. Please use
[MDCButton applyOutlinedThemeWithScheme:] instead. (Note: Color theming is no longer available as an
independent API.

#### Text Button

*deprecated* class: MDCTextButtonColorThemer. Please use [MDCButton applyTextThemeWithScheme:]
instead. (Note: Color theming is no longer available as an independent API.)")

#### Cards

*deprecated* class: MDCCardsColorThemer. Please use MaterialCards+Theming instead.

#### Tab Bar

*deprecated* class: MDCTabBarFontThemer. Please use the theming extension instead.

#### Text Field

*deprecated* class: MDCTextFieldColorThemer. Please use the MaterialTextFields+Theming instead.

#### Thumb Track

*deprecated* property: `thumbMaxRippleRadius` in `MDCThumbTrack`. Opt-in to Ripple by setting
enableRippleBehavior to YES, and then use thumbRippleMaximumRadius instead. Learn more at
https://github.com/material-components/material-components-ios/tree/develop/components/Ink#migration-guide-ink-to-ripple

## Component changes

## Changes

### Banner

* [Add unit test to test background color change when user interface changes. (#9073)](https://github.com/material-components/material-components-ios/commit/8a2650d5c31cddd73f3ca497a8a9e5f64bb6bdb4) (Wenyu Zhang)
* [Implement UIAccessibilityContainer informal protocol to correct accessibility order. (#9116)](https://github.com/material-components/material-components-ios/commit/8a9a81a74811112de32c92215819dada5cd4672e) (Wenyu Zhang)
* [Post accessibility notification when Banner shows on the screen in examples. (#9111)](https://github.com/material-components/material-components-ios/commit/0fcef85a440e108745cdf74d1e698fd47563881c) (Wenyu Zhang)

### BottomNavigation

* [Deprecate MDCBottomNavigationBarColorThemer (#9126)](https://github.com/material-components/material-components-ios/commit/352a110b81ca1f8b562ad7d150715b7448d4e6e2) (Bryan Oltman)

### ButtonBar

* [delete-MDCButtonBarTypographyThemer (#9117)](https://github.com/material-components/material-components-ios/commit/7ece2c118751771fab24fbf27642e0066ef826cc) (Andrew Overton)

### Buttons

* [Delete MDCButton cornerRadius (#9121)](https://github.com/material-components/material-components-ios/commit/c0464f44da0a4c460f6fc28daef5f4b00f18295a) (Bryan Oltman)
* [Deprecate MDCOutlinedButtonColorThemer (#9048)](https://github.com/material-components/material-components-ios/commit/92ac86ec863564cfad5e618c8d17ca63f2ade3c7) (Galia Kaufman)
* [Deprecating MDCTextButtonColorThemer (#9049)](https://github.com/material-components/material-components-ios/commit/705dfd7788ba8f9ef03ca6d9cbeb2d2c7d56a63c) (Galia Kaufman)

### Cards

* [Deprecate MDCCardsColorThemer (#9078)](https://github.com/material-components/material-components-ios/commit/285c8898c094ed314b6b38cfe63f2f1bdb50232c) (Bryan Oltman)

### Chips

* [Move themer code to MDCChipView+MaterialTheming (#9110)](https://github.com/material-components/material-components-ios/commit/322d162c5ef3035f3447f51adc206aedb8ed995e) (Bryan Oltman)

### Ink

* [Delete deprecated MDCInkTouchControllerLegacyDelegate (#9077)](https://github.com/material-components/material-components-ios/commit/0aa91cca0a1cacdb11c327413f119c41a7e611dd) (Bryan Oltman)

### Tabs

* [Deprecate MDCTabbarFontThemer (#9114)](https://github.com/material-components/material-components-ios/commit/23ddfe27155f4eef619a8291ec8f38c14419cb39) (Andrew Overton)
* [Don't use MDCTabBarColorThemer in examples (#9125)](https://github.com/material-components/material-components-ios/commit/38840677fff750814bf31d4ac5ae15eb4d9f0882) (Andrew Overton)

### TextFields

* [Mark MDCTextFieldColorThemer as deprecated (#9076)](https://github.com/material-components/material-components-ios/commit/9adc054ce046bb5f938f229f32f62f63697923b6) (Bryan Oltman)

### private/ThumbTrack

* [deprecate-MDCThumbTrack-thumbMaxRippleRadius (#9120)](https://github.com/material-components/material-components-ios/commit/8e1dae7e3ec64ed08864eb3c3616499d4270a593) (Andrew Overton)

## Multi-component changes

* [Delete Themers (#9028)](https://github.com/material-components/material-components-ios/commit/f848eaf5eed5a242fc02b0a7b815541e11041979) (Bryan Oltman)

---

# 94.5.0

This minor release introduces new APIs to AppBar, FlexibleHeader and Dialogs. AppBar and
Expand Down
91 changes: 3 additions & 88 deletions MaterialComponents.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ load 'scripts/generated/icons.rb'

Pod::Spec.new do |mdc|
mdc.name = "MaterialComponents"
mdc.version = "94.5.0"
mdc.version = "95.0.0"
mdc.authors = "The Material Components authors."
mdc.summary = "A collection of stand-alone production-ready UI libraries focused on design details."
mdc.homepage = "https://github.com/material-components/material-components-ios"
Expand Down Expand Up @@ -260,6 +260,8 @@ Pod::Spec.new do |mdc|
"components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/*.{h,m,swift}"
]
unit_tests.dependency "MaterialComponents/schemes/Container"
unit_tests.dependency "MaterialComponents/private/Color"
unit_tests.dependency "MaterialComponents/private/Math"
end
end

Expand Down Expand Up @@ -575,7 +577,6 @@ Pod::Spec.new do |mdc|
"components/#{component.base_name}/tests/unit/supplemental/*.{h,m,swift}"
]
unit_tests.resources = "components/#{component.base_name}/tests/unit/resources/*"
unit_tests.dependency "MaterialComponents/ButtonBar+TypographyThemer"
end
end

Expand All @@ -592,21 +593,6 @@ Pod::Spec.new do |mdc|
extension.dependency "MaterialComponents/Themes"
end

# ButtonBar is not intended to be themed as a standalone component.
# Please theme it via the AppBar component's Theming extension instead.
mdc.subspec "ButtonBar+TypographyThemer" do |extension|
extension.ios.deployment_target = '9.0'
extension.public_header_files = [
"components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/*.h"
]
extension.source_files = [
"components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/*.{h,m}"
]

extension.dependency "MaterialComponents/#{extension.base_name.split('+')[0]}"
extension.dependency "MaterialComponents/schemes/Typography"
end

# Cards

mdc.subspec "Cards" do |component|
Expand Down Expand Up @@ -723,79 +709,10 @@ Pod::Spec.new do |mdc|
"components/#{component.base_name}/tests/unit/supplemental/*.{h,m,swift}"
]
unit_tests.resources = "components/#{component.base_name}/tests/unit/resources/*"
unit_tests.dependency "MaterialComponents/Chips+ChipThemer"
unit_tests.dependency "MaterialComponents/Chips+FontThemer"
unit_tests.dependency "MaterialComponents/Themes"
end
end

mdc.subspec "Chips+ChipThemer" do |extension|
extension.ios.deployment_target = '9.0'
extension.public_header_files = [
"components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/*.h"
]
extension.source_files = [
"components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/*.{h,m}"
]

extension.dependency "MaterialComponents/#{extension.base_name.split('+')[0]}"
extension.dependency "MaterialComponents/Chips+ColorThemer"
extension.dependency "MaterialComponents/Chips+ShapeThemer"
extension.dependency "MaterialComponents/Chips+TypographyThemer"
end

mdc.subspec "Chips+ColorThemer" do |extension|
extension.ios.deployment_target = '9.0'
extension.public_header_files = [
"components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/*.h"
]
extension.source_files = [
"components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/*.{h,m}"
]

extension.dependency "MaterialComponents/#{extension.base_name.split('+')[0]}"
extension.dependency "MaterialComponents/schemes/Color"
end

mdc.subspec "Chips+FontThemer" do |extension|
extension.ios.deployment_target = '9.0'
extension.public_header_files = [
"components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/*.h"
]
extension.source_files = [
"components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/*.{h,m}"
]

extension.dependency "MaterialComponents/#{extension.base_name.split('+')[0]}"
extension.dependency "MaterialComponents/Themes"
end

mdc.subspec "Chips+ShapeThemer" do |extension|
extension.ios.deployment_target = '9.0'
extension.public_header_files = [
"components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/*.h"
]
extension.source_files = [
"components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/*.{h,m}"
]

extension.dependency "MaterialComponents/#{extension.base_name.split('+')[0]}"
extension.dependency "MaterialComponents/schemes/Shape"
end

mdc.subspec "Chips+TypographyThemer" do |extension|
extension.ios.deployment_target = '9.0'
extension.public_header_files = [
"components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/*.h"
]
extension.source_files = [
"components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/*.{h,m}"
]

extension.dependency "MaterialComponents/#{extension.base_name.split('+')[0]}"
extension.dependency "MaterialComponents/schemes/Typography"
end

mdc.subspec "Chips+Theming" do |extension|
extension.ios.deployment_target = '9.0'
extension.public_header_files = "components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/*.h"
Expand All @@ -804,8 +721,6 @@ Pod::Spec.new do |mdc|
"components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/private/*.{h,m}"
]
extension.dependency "MaterialComponents/#{extension.base_name.split('+')[0]}"
extension.dependency "MaterialComponents/#{extension.base_name.split('+')[0]}+ColorThemer"
extension.dependency "MaterialComponents/#{extension.base_name.split('+')[0]}+ShapeThemer"
extension.dependency "MaterialComponents/schemes/Container"
extension.dependency "MaterialComponents/Typography"

Expand Down
2 changes: 1 addition & 1 deletion MaterialComponentsBeta.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |mdc|
mdc.name = "MaterialComponentsBeta"
mdc.version = "94.5.0"
mdc.version = "95.0.0"
mdc.authors = "The Material Components authors."
mdc.summary = "A collection of stand-alone alpha UI libraries that are not yet guaranteed to be ready for general production use. Use with caution."
mdc.homepage = "https://github.com/material-components/material-components-ios"
Expand Down
2 changes: 1 addition & 1 deletion MaterialComponentsEarlGreyTests.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "MaterialComponentsEarlGreyTests"
s.version = "94.5.0"
s.version = "95.0.0"
s.authors = "The Material Components authors."
s.summary = "This spec is an aggregate of all the Material Components EarlGrey tests."
s.description = "This spec is made for use in the MDC Catalog."
Expand Down
2 changes: 1 addition & 1 deletion MaterialComponentsExamples.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "MaterialComponentsExamples"
s.version = "94.5.0"
s.version = "95.0.0"
s.authors = "The Material Components authors."
s.summary = "This spec is an aggregate of all the Material Components examples."
s.description = "This spec is made for use in the MDC Catalog. Used in conjunction with CatalogByConvention we create our Material Catalog."
Expand Down
2 changes: 1 addition & 1 deletion MaterialComponentsSnapshotTests.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ end

Pod::Spec.new do |s|
s.name = "MaterialComponentsSnapshotTests"
s.version = "94.5.0"
s.version = "95.0.0"
s.authors = "The Material Components authors."
s.summary = "This spec is an aggregate of all the Material Components snapshot tests."
s.homepage = "https://github.com/material-components/material-components-ios"
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
94.5.0
95.0.0
4 changes: 2 additions & 2 deletions catalog/MDCCatalog/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>94.5.0</string>
<string>95.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>94.5.0</string>
<string>95.0.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIAppFonts</key>
Expand Down
4 changes: 2 additions & 2 deletions catalog/MDCDragons/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>94.5.0</string>
<string>95.0.0</string>
<key>CFBundleVersion</key>
<string>94.5.0</string>
<string>95.0.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
Expand Down
2 changes: 1 addition & 1 deletion catalog/MaterialCatalog/MaterialCatalog.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "MaterialCatalog"
s.version = "94.5.0"
s.version = "95.0.0"
s.summary = "Helper Objective-C classes for the MDC catalog."
s.description = "This spec is made for use in the MDC Catalog."
s.homepage = "https://github.com/material-components/material-components-ios"
Expand Down
2 changes: 2 additions & 0 deletions components/Banner/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ mdc_unit_test_objc_library(
":Banner",
":Theming",
"//components/Buttons",
"//components/private/Color",
"//components/private/Math",
"//components/Typography",
],
)
Expand Down
2 changes: 2 additions & 0 deletions components/Banner/examples/AppBarBannerExample.m
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ - (void)showBanner {
forControlEvents:UIControlEventTouchUpInside];
self.banner.trailingButton.hidden = YES;
self.appBarViewController.headerStackView.bottomBar = self.banner;

UIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification, self.banner);
}

@end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ - (void)viewDidLoad {

- (void)didTapButton {
self.bannerView.hidden = NO;
UIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification, self.bannerView);
}

- (void)didTapDismissOnBannerView {
Expand Down
Loading

0 comments on commit 482a9a8

Please sign in to comment.