17 Commits

Author SHA1 Message Date
featherless
7532dfd71e Add ic_feedback icon to the podspec.
This fixes a build failure due to `MaterialComponents.MaterialIcons_ic_feedback` not being importable.

Closes https://github.com/material-components/material-components-ios/pull/10058

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-components-ios/pull/10058 from jverkoey:feedback e957b77baa9e4d657c0d8b5701befcc7e5ac13c3
PiperOrigin-RevId: 326035097
2020-08-11 09:22:36 -07:00
Wenyu Zhang
b1287f07dc [Icons] Update podspec to include asset catalogs in bundle.
PiperOrigin-RevId: 301952649
2020-03-19 20:45:43 -07:00
Robert Moore
c3ad8fb9f5
[Icons] Correct icons scripts and integration. (#8501)
Icons were not fully integrated into the catalog project and the relevant
scripts were out of date. This PR addressed the following issues:

*   The Icons source files had been hand-modified and did not match the
    script outputs.
*   The Icons unit tests were not included in the Catalog or Dragons
    projects.

It addresses these issues through the following:

*   Updates `scripts/sync_icons.sh` to:
    -   Match the copyright header format used by the project.
    -   Run clang-format on each generated source file.
    -   Add Icons unit tests to the MaterialComponents podspec.
    -   Remove duplicate import of `MaterialIcons.h` in the source
        implementation files.
*   Adds the Icons unit test targets to the Catalog and Dragons Xcode schemes.

Discovered while working on #8498
2019-09-25 12:21:04 -04:00
Yarden Eitan
23a752db2c
[Catalog] One more icon needed for the menu in our catalog (#3492)
pivotal: https://www.pivotaltracker.com/story/show/156997977
2018-04-25 15:43:18 -04:00
Yarden Eitan
9a64164bed
[Catalog] Addition of Icons for our Catalog app settings menu (#3487)
pivotal: https://www.pivotaltracker.com/story/show/156997977
2018-04-25 15:02:29 -04:00
Adrian Secord
db3c563ad3 Fixed mysterious CocoaPods header_mapping_dir issue that was blocking CocoaPods linting. 2016-12-15 17:05:40 -05:00
Ian Gordon
13c8cf72b8 Add support for Cocoapods 1.0.0.
Summary:
DO NOT LAND until after we have finalized our May 25 2016 release.

Cocoapods 1.0.0 was used to generate Pod* and xcode* files.

These changes are NOT compatible with 0.39.0.
These changes may NOT be compatible with version of Xcode 7.2 and earlier.

pod lib lint generates a list of issues that should be addressed.

--OLD INFO--

Cocoapods 0.39 was used to generate the Podfile.locks.

MaterialComponents - Build properly
MaterialUnitTests - Test properly
MaterialCatalog - Fails to Build

The errors (cut after the first 20) are similar to:
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/MaterialComponentsCatalog-umbrella.h"
        ^
/Users/iangordon/projects/material-components-ios/catalog/Pods/Target Support Files/MaterialComponentsCatalog/MaterialComponentsCatalog-umbrella.h:10:9: note: in file included from /Users/iangordon/projects/material-components-ios/catalog/Pods/Target Support Files/MaterialComponentsCatalog/MaterialComponentsCatalog-umbrella.h:10:
#import "CollectionCellsLayoutExample.h"
....

Reviewers: featherless, randallli, ajsecord, #material_components_ios

Reviewed By: featherless, randallli, ajsecord, #material_components_ios

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D873
2016-05-31 11:17:53 -04:00
Louis Romero
8c046ad42c Remove icons' assets catalog.
Summary:
Assets catalogs require to use imageNamed:. Since we want Icons to let clients
handle the caching, we only provide the path for the resource in our bundle.

Closes https://github.com/google/material-components-ios/issues/467.

Test Plan:
Build the catalog and verify that CollectionCells' accessory images are
displayed correctly for all resolutions and configurations.

Reviewers: ajsecord, #mdc_ios_owners

Reviewed By: ajsecord, #mdc_ios_owners

Subscribers: featherless

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D793
2016-04-29 18:49:30 +02:00
Chris Cox
7598638db3 [CollectionCells] Updates cells to depend on MDCIcons for editing and accessory icons.
Summary:
- Updates podspec to use these new dependancies.
- Removes private cell resource class.

Reviewers: cjcox, #mdc_ios_owners, featherless

Reviewed By: #mdc_ios_owners, featherless

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D751
2016-04-25 12:38:09 -04:00
Jeff Verkoeyen
63c3dc6ac5 Icons bundles use _ instead of +.
Summary: Closes https://github.com/google/material-components-ios/pull/293.

Reviewers: ajsecord, #mdc_ios_owners

Reviewed By: ajsecord, #mdc_ios_owners

Subscribers: ajsecord

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D513
2016-04-07 13:15:48 -04:00
Jeff Verkoeyen
f804e66ec3 [Icons] MDCIcons+BundleLoader.h must be a protected header.
Summary: In order for Icon targets to import this header the header can't be truly private.

Reviewers: #mdc_ios_owners, randallli

Reviewed By: #mdc_ios_owners, randallli

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D340
2016-03-24 18:37:13 -04:00
Jeff Verkoeyen
0697f063a9 [Icons] Base source needs its own explicit target.
Summary: This allows icon targets to correctly identify their dependency on the root Icons code.

Reviewers: #mdc_ios_owners, randallli

Reviewed By: #mdc_ios_owners, randallli

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D339
2016-03-24 17:44:35 -04:00
Jeff Verkoeyen
8d72cc0217 [Icons] Add missing header search paths in pod specs.
Reviewers: #mdc_ios_owners, randallli

Reviewed By: #mdc_ios_owners, randallli

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D338
2016-03-24 16:47:27 -04:00
Jeff Verkoeyen
93bc9fca2a Bundles must live within the src/ directory of a component.
Reviewers: #mdc_ios_owners, randallli

Reviewed By: #mdc_ios_owners, randallli

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D336
2016-03-24 16:15:53 -04:00
Jeff Verkoeyen
21001552dc Bundles can't have plusses in their names.
Summary:
Otherwise you get errors like this:

```
link_stat "Build/Products/Debug-iphonesimulator/MaterialIcon\+ic_arrow_back.bundle" failed: No such file or directory (2)
```

Reviewers: #mdc_ios_owners, randallli, junius

Reviewed By: #mdc_ios_owners, randallli, junius

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D323
2016-03-23 17:54:34 -04:00
Jeff Verkoeyen
4ad6efb6a0 Add private/ directory to Icons target.
Reviewers: #mdc_ios_owners, junius

Reviewed By: #mdc_ios_owners, junius

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D315
2016-03-23 13:22:34 -04:00
Jeff Verkoeyen
57558b2dbd Icons component
Summary: Closes https://github.com/google/material-components-ios/issues/168

Reviewers: randallli, #mdc_ios_owners, ajsecord

Reviewed By: randallli, #mdc_ios_owners, ajsecord

Subscribers: iangordon, ajsecord, randallli

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D295
2016-03-23 12:20:51 -04:00