7 Commits

Author SHA1 Message Date
Yarden Eitan
e114499adc
[Shapes] Added full support for intaking percentage values in the internal shape generation (#5100)
* merge MDCShapeCorner and MDCCornerTreatment into one

* update tests

* add initial percentage API to MDCCornerTreatment

* update

* clang update

* added percentage support for corner treatments

* clang update

* working on fix

* clang

* update

* clang

* pass CI

* pass CI
2018-09-12 00:59:01 -04:00
Yarden Eitan
a52dc18590
[Shapes] Added copy support for the new percentage API support (#5099)
* merge MDCShapeCorner and MDCCornerTreatment into one

* update tests

* add initial percentage API to MDCCornerTreatment

* update

* clang update

* added copy support for the new API

* added tests
2018-09-11 19:54:15 -04:00
Yarden Eitan
78510eb89f
[Shapes] Add percentage API to MDCCornerTreatment (#5091)
This is a follow up PR to #5090 and contains all of its changes as well until that PR is merged.

We are adding a percentage API to MDCCornerTreatment by adding the removed value type from MDCShapeCorner and moving it into MDCCornerTreatment. This allows us to provide percentage values to corners on a component level and let it be set in the right time in the lifecycle.

Percentage support for each component will be added as follow up PRs once this is landed.
2018-09-11 17:40:53 -04:00
Yarden Eitan
c01cd70170
[ShapeLibrary] Make the new CornerTreatment initializers use concrete types (#5076)
This PR changes the recent addition of convenience initializers of MDCCornerTreatments to become a certain instance subclass to use concrete types rather than a generic NSNumber with parsing. This resolves #5063
2018-09-10 15:41:50 -04:00
Yarden Eitan
7b9583cc12
[Shape] Add isEqual support to our corner treatments (#5030)
This will make it easier to compare between corner treatments for testing purposes among other things.
2018-09-07 11:00:36 -04:00
featherless
2181084272
[automated] Standardize our open source license stanza to what Xcode generates. (#4985)
Removes the need to copy-paste stanzas from other files anymore as we'll rely on #4478 to generate the correct stanza for us instead.

This was an automated change generated by running a find-and-replace regular expression:

```
/\*
 Copyright ([0-9]+)-present the Material Components for iOS authors\. All Rights Reserved\.

 Licensed under the Apache License, Version 2\.0 \(the "License"\);
 you may not use this file except in compliance with the License\.
 You may obtain a copy of the License at

 http://www\.apache\.org/licenses/LICENSE-2\.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.
 See the License for the specific language governing permissions and
 limitations under the License\.
 \*/
```

```
/\*
Copyright ([0-9]+)-present the Material Components for iOS authors\. All Rights Reserved\.

Licensed under the Apache License, Version 2\.0 \(the "License"\);
you may not use this file except in compliance with the License\.
You may obtain a copy of the License at

http://www\.apache\.org/licenses/LICENSE-2\.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.
See the License for the specific language governing permissions and
limitations under the License\.
\*/
```

```
/\*
 Copyright ([0-9]+)-present the Material Components for iOS authors\. All Rights Reserved\.
 Licensed under the Apache License, Version 2\.0 \(the "License"\);
 you may not use this file except in compliance with the License\.
 You may obtain a copy of the License at
 http://www\.apache\.org/licenses/LICENSE-2\.0
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.
 See the License for the specific language governing permissions and
 limitations under the License\.
 \*/
```

```
// Copyright $1-present the Material Components for iOS authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
```
2018-08-31 12:13:07 -04:00
Robert Moore
d3e30ec933
[ShapeLibrary] Add BUILD file and no-op tests (#2710)
There is no umbrella header, so the tests just import all the things and init their main classes.
2017-12-14 05:40:03 -05:00