Skip to content

Commit

Permalink
Merge branch 'release-candidate' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jverkoey committed Oct 23, 2018
2 parents dd79e5c + 5455a4f commit 30fe5bb
Show file tree
Hide file tree
Showing 11 changed files with 104 additions and 10 deletions.
94 changes: 94 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,97 @@
# 67.2.0

This minor release introduces new functionality for theming individual buttons of an
MDCAlertController.

## New features

It is now possible to theme MDCAlertController buttons individually using the new `emphasis`
property on `MDCAlertAction` in conjunction with the `MDCAlertControllerThemer`.

```swift
let alert = MDCAlertController(title: "Button Theming", message: "High, Medium & Low Emphasis")

alert.addAction(MDCAlertAction(title:"High", emphasis: .high, handler: <#handler#>))
alert.addAction(MDCAlertAction(title:"Medium", emphasis: .medium, handler: <#handler#>))
alert.addAction(MDCAlertAction(title:"Low", emphasis: .low, handler: <#handler#>))

MDCAlertControllerThemer.applyScheme(<#alertScheme#>, to: alert)

self.present(alert, animated: true, completion: nil)
```

## API changes

### Dialogs+DialogThemer

#### MDCAlertScheming

*new* property: `buttonScheme` in `MDCAlertScheming`

#### MDCAlertScheme

*new* property: `buttonScheme` in `MDCAlertScheme`

### Dialogs

#### MDCAlertController

*modified* property: `elevation` in `MDCAlertController`

| Type of change: | Swift declaration |
|---|---|
| From: | `var elevation: CGFloat { get set }` |
| To: | `var elevation: Int32 { get set }` |

*modified* property: `elevation` in `MDCAlertController`

| Type of change: | Declaration |
|---|---|
| From: | `@property (assign, readwrite, nonatomic) CGFloat elevation;` |
| To: | `@property (assign, readwrite, nonatomic) int elevation;` |

#### MDCActionEmphasis

*new* enum: `MDCActionEmphasis`

*new* enum value: `MDCActionEmphasisLow` in `MDCActionEmphasis`

*new* enum value: `MDCActionEmphasisMedium` in `MDCActionEmphasis`

*new* enum value: `MDCActionEmphasisHigh` in `MDCActionEmphasis`

#### MDCDialogPresentationController

*modified* property: `dialogElevation` in `MDCDialogPresentationController`

| Type of change: | Swift declaration |
|---|---|
| From: | `var dialogElevation: CGFloat { get set }` |
| To: | `var dialogElevation: Int32 { get set }` |

*modified* property: `dialogElevation` in `MDCDialogPresentationController`

| Type of change: | Declaration |
|---|---|
| From: | `@property (assign, readwrite, nonatomic) CGFloat dialogElevation;` |
| To: | `@property (assign, readwrite, nonatomic) int dialogElevation;` |

#### MDCAlertAction

*new* property: `emphasis` in `MDCAlertAction`

*new* class method: `+actionWithTitle:emphasis:handler:` in `MDCAlertAction`

## Component changes

### Dialogs

* [Fix elevation to use MDCShadowElevation](https://github.com/material-components/material-components-ios/commit/c7d4f27d0c8ee7027519196480ae3e7c0f65d8c5) (Cody Weaver)
* [Theming action buttons in DialogThemer (#5416)](https://github.com/material-components/material-components-ios/commit/325772ba5e40ce8c27cadab5f0da727dea3d05a9) (Galia Kaufman)
* [Upgrade buttons class to MDCButton (b/117543195) (#5401)](https://github.com/material-components/material-components-ios/commit/9122fc2fcba1d7464d66edc761ce9ab07db318f2) (Galia Kaufman)

---

# 67.1.0

In this minor release we provide a shadow opacity reset toggle for Flexible Header, VoiceOver and rounded corners support for the Navigation Drawer, along with bug fixes and unit tests improvements.
Expand Down
2 changes: 1 addition & 1 deletion 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 = "67.1.0"
mdc.version = "67.2.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
2 changes: 1 addition & 1 deletion MaterialComponentsAlpha.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |mdc|
mdc.name = "MaterialComponentsAlpha"
mdc.version = "67.1.0"
mdc.version = "67.2.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 = "67.1.0"
s.version = "67.2.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 = "67.1.0"
s.version = "67.2.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 VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
67.1.0
67.2.0
2 changes: 1 addition & 1 deletion catalog/MDCCatalog/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>67.1.0</string>
<string>67.2.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</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 = "67.1.0"
s.version = "67.2.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: 1 addition & 1 deletion components/LibraryInfo/src/MDCLibraryInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// This string is updated automatically as a part of the release process and should not be edited
// manually. Do not rename this constant or change the formatting without updating the release
// scripts.
static NSString const *MDCLibraryInfoVersionString = @"67.1.0";
static NSString const *MDCLibraryInfoVersionString = @"67.2.0";

@implementation MDCLibraryInfo

Expand Down
2 changes: 1 addition & 1 deletion components/LibraryInfo/tests/unit/LibraryInfoTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class LibraryInfoTests: XCTestCase {
// Given

// This regex pattern does the following:
// Accept: "67.1.0", etc.
// Accept: "67.2.0", etc.
// 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.
//
// Note the major version must be >= 1 since "0.0.0" is used as the version when something goes
Expand Down
2 changes: 1 addition & 1 deletion demos/supplemental/RemoteImageServiceForMDCDemos.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "RemoteImageServiceForMDCDemos"
s.version = "67.1.0"
s.version = "67.2.0"
s.summary = "A helper image class for the MDC demos."
s.description = "This spec is made for use in the MDC demos. It gets images via url."
s.homepage = "https://github.com/material-components/material-components-ios"
Expand Down

0 comments on commit 30fe5bb

Please sign in to comment.