64 Commits

Author SHA1 Message Date
featherless
bedd1134ce Merge branch 'release-candidate' into develop 2019-04-23 20:07:11 +03:00
Andrew Overton
bf5d5e1c1d
[Dialogs] Graduate Dialogs theming extensions to ready (#7190)
This PR updates the dialogs theming extensions to ready.

Closes #7163.
2019-04-23 11:28:02 -04:00
featherless
e4f8320695 Bump the release number to 83.0.0. 2019-04-22 22:49:19 +03:00
Cody Weaver
bb61b24567
[AppBar] Graduate theming extension to ready (#7182)
## Context
As part of our work to move away from themer objects and onto theming extension we need to graduate all of our components theming extensions to the MaterialComponents pod.

## The fix
This PR updates the AppBar theming extension to the MaterialComponents pod, as well as updating examples and unit test.
2019-04-22 14:13:45 -04:00
Cody Weaver
9696880a71
[ActionSheet] Graduate theming extension to ready (#7181)
## Context
As part of our work to move away from _themer_ objects and onto _theming extension_ we need to graduate all of our components theming extensions to the MaterialComponents pod. 

## The fix
This PR updates the ActionSheet theming extension to the MaterialComponents pod, as well as updating examples and unit test. Additionally this removes the documentation for _themers_ since they were never out of the MaterialComponentsBeta podspec. The documentation for _themers_ is replaced with documentation for the _theming extension_.

## Bug
Closes #7160
2019-04-22 07:40:39 -04:00
Andrew Overton
94e5a978d7
[Buttons] Graduate Buttons+Theming to ready (#7187)
This PR graduates the buttons theming extension to ready.

Closes #7158.
2019-04-19 13:57:00 -04:00
Andrew Overton
a81878c263
[TextFields] Graduate TextFields theming extension to ready (#7184)
This PR graduates the textfields theming extensions to ready.

Closes #7161.
2019-04-19 12:47:43 -04:00
Wenyu Zhang
cb4ffbc580
[Chips] Move Chips Theming to Ready. (#7179)
closes https://github.com/material-components/material-components-ios/issues/7164
2019-04-19 12:00:55 -04:00
Wenyu Zhang
9aa1d72bc7
[Cards] Move Cards theming extension to ready. (#7178)
closes https://github.com/material-components/material-components-ios/issues/7165
2019-04-19 11:36:20 -04:00
Wenyu Zhang
ebb9b84be8
Move Tabs theming extension to ready. (#7176)
closes https://github.com/material-components/material-components-ios/issues/7162
2019-04-18 23:24:10 -04:00
Yarden Eitan
5bed3961e6
[ContainerScheme] Graduate ContainerScheme to ready. (#7170)
This PR graduates ContainerScheme to ready.

This includes updating the podspecs, podfile, all the import statements related to ContainerScheme, updating .kokoro rewrite rules, and finally the readme to not have ContainerScheme regarded to as being in beta.

Ran locally kokoro with -b bazel successfully.

Resolves #6732
2019-04-18 09:25:02 -04:00
Wenyu Zhang
998cdda22e Bumped version number to 82.0.0. 2019-04-16 18:03:15 -04:00
Wenyu Zhang
d506ec4088 Revert "Bumped version number to 81.2.0."
This reverts commit de8eee65d9af4420cf96bed5697a8f31daafc300.
2019-04-16 18:02:46 -04:00
Wenyu Zhang
de8eee65d9 Bumped version number to 81.2.0. 2019-04-16 16:25:15 -04:00
featherless
a3e215daa7
[ios8]! Drop support for iOS 8 in all components. (#7135)
Closes https://github.com/material-components/material-components-ios/issues/4656

I used the following `grep` to find references to iOS 8:

    grep -rI "8\.0" .
2019-04-12 23:08:35 +03:00
Wenyu Zhang
4eeeb90a93
Add theming extension for Tabs (#7089)
Add theming extension for Tabs for primary and surface themes.

Closes https://github.com/material-components/material-components-ios/issues/6966.
2019-04-11 13:02:41 -04:00
Yarden Eitan
8d750dc979 Bumped version number to 81.1.0. 2019-04-09 12:59:57 -04:00
Wenyu Zhang
0c9e8b427d
[Banner] Elevate Banner component to Beta. (#7065)
closes https://github.com/material-components/material-components-ios/issues/5241.
2019-04-04 16:56:43 -04:00
Robert Moore
62ffa6fb17 Bumped version number to 81.0.0. 2019-04-01 21:41:40 -04:00
Yarden Eitan
ba8269c13e
[Ripple] Graduate Ripple to Ready. (#7000)
Following updating the docs in #6996 and adding additional tests #6992 for the Ripple:

In this PR I am officially graduating Ripple to ready.

These are the steps taken to do so:
1. Update docs to not show Beta anymore.
2. Move Ripple from the Beta podspec to the main podspec.
3. Removal of MDCCard+Private, MDCCard+Ripple, MDCCardCollectionCell+Private, MDCCardCollectionCell+Ripple, as they were used as connectors between Ripple being a beta component and Card being a ready component.
4. Moving the relevant code in the above files into the Card implementation.
5. Modifying the property `enableBetaBehavior` for Cards to `enableRippleBehavior` as it is no longer a beta behavior.

Tested to see all the examples work well for Cards and CardCollectionCells.

Closes #6941
2019-03-27 16:58:01 -04:00
Robert Moore
0b4d9ebf5f Bumped version number to 80.0.0. 2019-03-25 16:26:00 -04:00
Robert Moore
4848c0c9e0 Bumped version number to 79.3.0. 2019-03-20 10:45:30 -04:00
Robert Moore
8ae3da1336 Correcting release version to 79.2.0 2019-03-19 09:26:41 -04:00
Robert Moore
a8901c95aa Bumped version number to 79.2.1. 2019-03-18 21:55:39 -04:00
featherless
b6a18f128b [TextFields] Add a Theming extension for MDCTextInputControllerFilled. (#6870)
Includes support for theming MDCTextInputControllerFilled and tests of the behavior.

Part of https://github.com/material-components/material-components-ios/issues/6836
2019-03-16 11:46:56 -04:00
Robert Moore
61e6c07f6a
[AppBar] Add theming extension for MDCAppBarViewController (#6903)
Creates a Theming Extension for MDCAppBarViewController for both Primary and Surface variants.

Closes #6866
2019-03-14 21:15:01 -04:00
featherless
5340e44671 Bump the release. 2019-03-13 15:52:35 -04:00
featherless
24224024a7 Bump the release. 2019-03-12 16:58:08 -04:00
featherless
a017a19158 Merge branch 'release-candidate' into develop 2019-03-08 17:05:34 -05:00
featherless
4e7a1f6e65 Bump the release. 2019-03-08 13:52:41 -05:00
featherless
d4d9dc3ac7 Merge branch 'release-candidate' into develop 2019-03-07 12:48:11 -05:00
Robert Moore
fbcf524161
[ActionSheet] Fixes broken action sheet tests. (#6743)
Looks like the ActionSheet changes weren't completely reverted during the last release.
2019-03-05 12:57:32 -05:00
featherless
bb251cb263 Bump the release. 2019-03-05 09:52:52 -05:00
Yarden Eitan
fa7bc44bbf reverting 2019-02-26 11:57:14 -05:00
Yarden Eitan
8076d9fea9 Bumped version number to 78.0.1. 2019-02-26 10:24:29 -05:00
Yarden Eitan
992822c764 Merge branch 'release-candidate' into develop 2019-02-21 14:47:54 -05:00
Robert Moore
ef9e18ea7f
{Testing} Create mechanism for test fakes and test data (#6673)
Sets up MDC iOS to allow each component to export "Test fakes" and test data for use by other components when performing tests.  The initial commit includes "test data" for MDCTypographyScheme that uses non-default values for each UIFont.

Contributors writing tests, particularly those that use shared components like schemes, can do so more quickly by accessing test data and test fakes directly from the component rather than having to write custom objects for each test.

**Bonus**
The new typography data has already confirmed the Dialogs bug #6637, which would have been discovered sooner if we didn't rely on the typographic defaults that already matched component defaults.

## Typical Usage

### Build/dependency management systems

**bazel BUILD files:**
```
deps = [
        "//components/schemes/Typography:TestingSupport",
],
```

**CocoaPods Podspec files:**
```ruby
  component.dependency "MaterialComponentsTestingSupport/schemes/Typography"
```

### Source includes

**Swift**
```swift
import MaterialComponentsTestingSupport.MaterialTypographyScheme_TestingSupport
```

**Objective-C**
```objc
#import <MaterialComponentsTestingSupporrt/MaterialTypographyScheme+TestingSupport.h>
```
2019-02-21 13:50:29 -05:00
Cody Weaver
96c8a5f6e8
[ActionSheet] Remove Beta test from Ready component (#6677)
## Related links
* Component: [ActionSheet](https://github.com/material-components/material-components-ios/tree/develop/components/ActionSheet)

## Introduction
When I moved `MDCActionSheet` to ready I didn't properly update the cocoapods tests. The test were relying on the `MaterialComponentsBeta` podspec. This change fixes their reliance on the `Beta` pod and the test weren't being run.

## The fix
This fixes the issue where the test weren't part of the scheme and relying on beta things.
2019-02-21 13:49:26 -05:00
Yarden Eitan
7aaa270f19 Bumped version number to 78.0.0. 2019-02-20 13:57:48 -05:00
Yarden Eitan
136273636d
[Cards] [Ripple] Integrate the new ripple and states into the Cards component (#6621)
**Overview**
This PR integrates the new Ripple component and its state support into our existing Cards and CardCells components. It does so in an opt in form, where you must have MaterialComponentsBeta installed for one to have Cards use the new behavior. The PR also includes 2 examples showcasing the new behavior with MDCCard and MDCCardCollectionCell.

**Resolves**: #6463

**Acceptance Criteria:**
* The Cards have an opt in property (as ripple is in beta) to be able to activate the ripple and its states support in Cards. It will fallback to the existing (legacy) implementation by default.
* An MDC example that showcases the work for Cards.
* Interaction and animation with the card should follow the guidelines from the updated cards design doc.

**Implementation Explained**
This is a pioneer PR, trying to converge a beta component into a ready component. To do so we had to have our Card component not be aware of the existence of the beta component Ripple, but we needed the Ripple component to be able to plug in to the Card component.

To achieve this I created a few different things:
1. A ripple delegate that plugs into MDCCard and MDCCardCollectionCell that consists of methods that should be invoked in the component where the Ripple work needs to be inserted. A check for the existence of the delegate and the corresponding delegate method is checked in the Card component before invoked. This allows us to identify if Ripple should be used or not.

2. A MDCCard+Private and MDCCardCollectionCell+Private categories that expose the RippleView property in the implementation files of the Card component, and also exposing other methods that the Ripple integration needs to invoke but aren't exposed in the original Card header files.

3. An MDCCard+Ripple and MDCCardCollectionCell+Ripple categories under beta, that implement the delegate introduced in 1. and have knowledge and access to the beta component Ripple. This is where the actual implementation of the ripple integration sits.

4. Lastly, we need a way to set card.rippleDelegate = self for the +Ripple categories. However, there are a few issues in achieving this. If we create a BOOL property like `shouldIntegrateRipple`, we would need to be able to switch the state from `YES` to `NO` and back correctly. The state is very complicated when you have states, ripple vs ink, etc. Therefore the best way to do this is not to allow users to trigger a BOOL, but to have a separate initializer for `initWithRipple`. However, CardCollectionCells are reused and the dequeue method calls `initWithFrame` and we can't ask it to invoke `initWithRippleandFrame` instead. Therefore, I added performSelector logic in the init methods of the Card component that checks to see if the Cards+Ripple category is apparent (meaning Beta is integrated in the framework), and if so initializes the Ripple. Happy to find alternatives if better ones are offered.

**GIFs before and after**

Before:
![oldtop9card](https://user-images.githubusercontent.com/4066863/53095318-8501f380-34ea-11e9-8b79-328af61e0fc1.gif)

After:
![newtop9card](https://user-images.githubusercontent.com/4066863/53095334-8c290180-34ea-11e9-9767-73d74e8fefd8.gif)
2019-02-20 11:32:19 -05:00
Randall Li
7b73a03e14 Merge branch 'release-candidate' into develop 2019-02-15 00:18:41 -05:00
Randall Li
85d3f991c8 Bumped version number to 77.0.0. 2019-02-13 13:38:03 -05:00
Cody Weaver
7614c80c26
[ActionSheet] Promote to Ready (#6613)
## Related links
* Component: [ActionSheet](https://github.com/material-components/material-components-ios/tree/develop/components/ActionSheet)
* Component readiness: [beta-components](https://github.com/material-components/material-components-ios/blob/develop/contributing/beta_components.md)

## Introduction
MDCActionSheet has been in the beta program [since last August](https://github.com/material-components/material-components-ios/pull/4830). I don't foresee any major API changes. 

## Motivation
This will allow clients to use MDCActionSheet through CocoaPods instead of having to clone our repo.

## Proposed solution
Update the Podspec to reflect the `MDCActionSheet` component as a _Ready_ component.
2019-02-13 12:34:35 -05:00
Ian Gordon
ac78d824a9 Bumped version number to 76.1.2. 2019-02-08 14:54:24 -05:00
Ian Gordon
fa686995c7 Bump Version 2019-02-07 13:11:55 -05:00
Ian Gordon
e650856240 Bumped version number to 76.1.0. 2019-02-06 17:49:09 -05:00
Robert Moore
68794ae90a Bumped version number to 76.0.0. 2019-01-30 13:17:41 -05:00
Robert Moore
1b98e1ea21
[BottomNavigation] Move controller out of /beta. (#6501)
Instead of having separate `/beta` file paths for beta code, the beta files
can be excluded from CocoaPods. Also adding targets to bazel since it was trying to compile all of the source files (and failing).

Part of #4160
2019-01-29 11:33:51 -05:00
Eric Lee
d8fed59535 [BottomNavigation] Elevates the BottomNavigationBarController to beta status and re-adds its unit tests. (#6311)
Contributes to #4160
2019-01-24 07:47:40 -05:00
Rob Moore
a7cb1d6a2e Bumped version number to 75.0.1. 2019-01-23 15:33:37 -05:00