273 Commits

Author SHA1 Message Date
Adrian Secord
8954c5d71b Remove unused leftover submodules. 2016-12-15 14:05:52 -05:00
Adrian Secord
d2c05179f6 Renamed master to stable in docs and scripts.
Closes #161.
2016-12-15 08:24:14 -05:00
Adrian Secord
11a973dea7 Removed unused scripts/release/next. 2016-12-15 08:13:39 -05:00
Adrian Secord
fa9d64a9b2 Update README.md 2016-12-14 14:59:57 -05:00
Adrian Secord
5965ca908b Added scripts/README.md. (#1072) 2016-12-14 14:57:11 -05:00
Adrian Secord
f3de3e061b Removed site sources and references. (#1062) 2016-12-14 11:54:38 -05:00
Adrian Secord
120ab517f7 Renamed scripts/naming_convention to convert_name. (#1026) 2016-12-13 19:38:53 -05:00
Adrian Secord
b1273dad9b Moved install scripts into their own dir. (#1011)
* WIP

* WIP

* Simplified build script and fixed it to build all schemes.

* WIP

* Renamed script to build_all and added better output.

* Add scripts/list_xcode_workspaces.

* Filtered out the CocoaPods schemes.

* Added Xcode workspace helpers.

Switched build_all to a whitelist approach instead of a blacklist.

* Moved install scripts into their own dir.
2016-12-13 10:48:00 -05:00
Adrian Secord
ab2037afc6 Update scripts/test_all to run all test targets (#1004)
* WIP

* WIP

* Simplified build script and fixed it to build all schemes.

* WIP

* Renamed script to build_all and added better output.

* Add scripts/list_xcode_workspaces.

* Filtered out the CocoaPods schemes.

* Added Xcode workspace helpers.

Switched build_all to a whitelist approach instead of a blacklist.

* Refactored scripts/test_all to find all test schemes.

* Fixed test_all log filename.

* Add comment to scripts/test_all.
2016-12-12 11:55:10 -05:00
Adrian Secord
4842a362f5 Convert component examples to Swift 3 (#1002)
* WIP

* WIP

* Simplified build script and fixed it to build all schemes.

* WIP

* Renamed script to build_all and added better output.

* Add scripts/list_xcode_workspaces.

* Filtered out the CocoaPods schemes.

* Use Xcode to update Swift to v3.

* Updated tracked touches map from NSNumber to Int.

* Fixed button sorting that was not actually sorting.

* targetContentOffset no longer allowed to be nil.

* "Fixed" failing test by reducing random number range?

* Swift 3 syntax change.

* Swift 3 syntax change.

* Removed invalid center-aligning tests.

Fixed default nav bar alignment test.
2016-12-12 09:55:36 -05:00
Louis Romero
c822d3c2e0 Remove the dependency on the earlgrey gem. (#952)
* Remove the dependency on the earlgrey gem.

This commit adds EarlGrey as a submodule. It brings the script traditionally
used via the gem. It also init-updates the submodules prior to using the
script in the post_install hook.

This concerns
https://github.com/material-components/material-components-ios/issues/867

* Remove EarlGrey

* Add it again

* Update script path

* Fix issue where the Podfile was valid only from the root of the repo.

* Only update the EarlGrey submodule
2016-12-09 07:47:45 -05:00
Adrian Secord
0ae7c903ea Merge branch 'release-candidate' 2016-12-08 15:16:06 -05:00
Will Larche
104052d371 Swift first in readmes and its script (#982)
* [Scripts] Checklist check for Swift first in readme.

* [Checklist] Swift before Objc.
2016-12-08 13:38:01 -05:00
Adrian Secord
f526af0a2c Fixed bump usage of manage_pods. 2016-12-08 09:04:17 -05:00
Adrian Secord
be375e60e9 Fixed scripts/release/diff. 2016-12-08 08:51:55 -05:00
Adrian Secord
989caa912e Added a "test_all" script. 2016-12-08 08:32:25 -05:00
Adrian Secord
b54f2fbec0 Removed pod install and build cleaning from the build-all script. 2016-12-08 08:13:29 -05:00
Louis Romero
f8c9aa9a38 Fix typo in manage_pods.py (#976)
s/site-sourec/site-source.
2016-12-08 08:03:42 -05:00
Adrian Secord
f6e65556bc Add directory blacklist to manage_pods.py. (#962)
* Add directory blacklist to manage_pods.py.

`manage_pods.py` will now ignore Podfiles found in any path that has either "external" or "third_party" in their path.

Add `list` command to list Podfile directories.

* Improved blacklist handling to not recurse blacklisted directories.
2016-12-07 15:21:40 -05:00
Will Larche
95d4300e8c [Scripts] Checklist example_languages less greedy (#964) 2016-12-07 13:16:34 -05:00
Adrian Secord
8d658a333a Increasing verbosity of scripts/check_components (#943)
* Add README.md to scripts/check.

* Generalized the check_components script.

* Renamed `missing_readme` to `readme`.
* Added documentation to the `scripts/check` directory.
* Disabled the `scripts/check/missing_example_language` script.

* Cleanup verbose echoing in check_components script.

* Added more verbosity options.

* Added check for accessible URLs.

* Added option parsing.

* Added left-nav checks.

* Added license stanza check.

* Added reporting of failed components to check_components script.

* Added a script to convert between naming conventions.

* Added script to check for videos.

* Added check for video still.

* Added script to check for site icon.

* Added DO NOT SUBMIT check.

* Properly quoted output file paths.

* Added check for examples.

* Updated checklist docs for new script setup.

* Added check for example languages in README.md files.

Deleted old PHP code.

* Added missing exit(-1) from example_languages.

* Added uniform error output to example_languages.

* Fixed verbosity of scripts/check_components.
2016-12-05 15:01:21 -05:00
Adrian Secord
6733f7c44b Build out our scripted component checks (#940)
* Add README.md to scripts/check.

* Generalized the check_components script.

* Renamed `missing_readme` to `readme`.
* Added documentation to the `scripts/check` directory.
* Disabled the `scripts/check/missing_example_language` script.

* Cleanup verbose echoing in check_components script.

* Added more verbosity options.

* Added check for accessible URLs.

* Added option parsing.

* Added left-nav checks.

* Added license stanza check.

* Added reporting of failed components to check_components script.

* Added a script to convert between naming conventions.

* Added script to check for videos.

* Added check for video still.

* Added script to check for site icon.

* Added DO NOT SUBMIT check.

* Properly quoted output file paths.

* Added check for examples.

* Updated checklist docs for new script setup.

* Added check for example languages in README.md files.

Deleted old PHP code.

* Added missing exit(-1) from example_languages.

* Added uniform error output to example_languages.
2016-12-05 11:26:17 -05:00
Louis Romero
b6dfed73bf Use --project-directory with pod install (#927)
There was a blocking bug in EarlGrey that prevented us to do that:
https://github.com/google/EarlGrey/issues/287

Note: this might require to update the earlgrey gem for people that
installed it before the fix went live circa October 2016.

This is related to https://github.com/material-components/material-components-ios/issues/708.
2016-12-02 11:52:39 -05:00
Adrian Secord
2997e50c4c Updated refs to GitHub repo with new location. (#885)
* Updated refs to GitHub repo with new location.

* Reverted chagnes to JSON files.
2016-11-22 14:32:50 -05:00
Justin Shephard
26819f760d Updates to API Diff Process (#848)
* release-candidate - Updated indentation for api_diff script

* API_Diff - Removed references to obj_diff, added source kitten install script

* API_Diff - Added material motion api_diff submodule

* API_Diff - Added conditional for Ink and Snackbar to be diff'd manually

* API_DIff - Updated api diff tool sha
2016-11-09 17:08:48 -05:00
Justin Shephard
ae1a8725fb build_site_rename - Renamed site build script (#830) 2016-11-02 15:36:06 -04:00
Justin Shephard
8ec86acf43 Bumped version number to 16.1.0. 2016-10-26 15:35:01 -04:00
randallli
6dbf3d8125 [Release] Modify arc diff to accept an argument to use difftool instead if you have that setup
Reviewers: O1 Material components iOS, ajsecord

Reviewed By: O1 Material components iOS, ajsecord

Subscribers: ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1640
2016-09-22 10:26:36 -04:00
Adrian Secord
7b255e2217 [Scripts] Add EarlGrey to the suite of tools for installation.
Reviewers: O1 Material components iOS, randallli

Reviewed By: O1 Material components iOS, randallli

Subscribers: randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1654
2016-09-21 15:43:33 -04:00
Adrian Secord
ac903cf1cd [Release] Work around https://github.com/google/EarlGrey/issues/287 in manage_pods.py.
Reviewers: O1 Material components iOS, randallli

Reviewed By: O1 Material components iOS, randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1657
2016-09-21 15:42:11 -04:00
randallli
72162dce8a [Release] Merge script checks for synced develop and master branches before attempting to merge them.
Reviewers: O1 Material components iOS, ajsecord

Reviewed By: O1 Material components iOS, ajsecord

Subscribers: ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1638
2016-09-20 16:23:47 -04:00
Adrian Secord
327a905853 [Release] Set the tracking branch correctly on release-candidate.
Reviewers: O1 Material components iOS, samnm

Reviewed By: O1 Material components iOS, samnm

Subscribers: samnm

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1565
2016-09-02 15:31:10 -04:00
Adrian Secord
8c3af252be Adding AUTHORS and removing CONTRIBUTORS.txt.
We can credit any contributor who would like to be credited this way, by adding them on request to the AUTHORS file. The copyright statement changes are required for this to work. Note that this has...

Summary:

We can credit any contributor who would like to be credited this way, by adding them on request to the AUTHORS file. The copyright statement changes are required for this to work. Note that this has no legal change, since the contributors always retained their copyright despite the copyright notice, but it's a nice acknowledgement.

Changed copyright statement to include non-Google authors.

Command run:

find * \( -name '*\.m' -or -name '*\.h' -or -name '*\.swift' \) -and -not \( -path 'scripts/external*' -name Pods  \) -print0 | xargs -0 sed -i '' 's/Copyright \(.*\) Google Inc/Copyright \1 the Material Components for iOS authors/'

Added non-source files.

Command run:

grep -Rl 'Copyright .* Google Inc' * --exclude-dir scripts/external --null | xargs -0 sed -i '' 's/Copyright \(.*\) Google Inc/Copyright \1 the Material Components for iOS authors/'

Reviewers: featherless, O1 Material components iOS, randallli

Reviewed By: O1 Material components iOS, randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1415
2016-08-08 08:16:37 -07:00
Jeff Verkoeyen
0678c3360b Update arc-xcode-test-engine to v3.0.7.
Summary: Release notes: https://github.com/google/arc-xcode-test-engine/releases/tag/v3.0.7

Reviewers: O1 Material components iOS, randallli

Reviewed By: O1 Material components iOS, randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1326
2016-07-26 11:54:26 -04:00
randallli
bacd5fd0e5 [Contributing] Moved readme files up a directory.
Summary:
The contributing readmes are nested in two folders. Moving them out of the inner folder.
Fixed references to releasing.md

We should land cl/128400669 after this lands.

Reviewers: O1 Material components iOS, ajsecord

Reviewed By: O1 Material components iOS, ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1329
2016-07-26 09:24:24 -04:00
randallli
ff8e274e0c [Release checklist] Minor copy edits to checklist
Summary:
Removed space inside []
Clarified some of the steps.

Reviewers: ajsecord, O1 Material components iOS

Reviewed By: ajsecord, O1 Material components iOS

Subscribers: ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1311
2016-07-25 14:14:09 -04:00
Ian Gordon
d72fcf24ff Fix bump script.
Reviewers: randallli, O1 Material components iOS!, featherless

Reviewed By: featherless

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1305
2016-07-22 12:52:31 -04:00
Jeff Verkoeyen
7d10b7a56a Update arc-jazzy-linter to v1.1.0.
Summary: Release notes: https://github.com/google/arc-jazzy-linter/releases/tag/v1.1.0.

Reviewers: O1 Material components iOS, ajsecord

Reviewed By: O1 Material components iOS, ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1261
2016-07-19 13:04:18 -04:00
randallli
24b824e761 [Release checklist] Added instructions to get the diff approved
Summary: reverse edit to merge command

Reviewers: O1 Material components iOS, ajsecord

Reviewed By: O1 Material components iOS, ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1253
2016-07-18 14:19:19 -04:00
randallli
46684ed0eb [manage_pods] Added update command to manage_pods script so users can update all their pod files.
Reviewers: ajsecord, O1 Material components iOS

Reviewed By: ajsecord, O1 Material components iOS

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1252
2016-07-18 14:16:55 -04:00
Jeff Verkoeyen
3149989194 Update arc-xcode-test-engine to v3.0.6.
Summary: Release notes: https://github.com/google/arc-xcode-test-engine/releases/tag/v3.0.6

Reviewers: O1 Material components iOS, ajsecord

Reviewed By: O1 Material components iOS, ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1251
2016-07-18 13:55:10 -04:00
Jeff Verkoeyen
6aae667f13 Update arc-xcode-test-engine to v3.0.5.
Summary: Release notes: https://github.com/google/arc-xcode-test-engine/releases/tag/v3.0.5

Reviewers: O1 Material components iOS, randallli

Reviewed By: O1 Material components iOS, randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1165
2016-07-08 14:38:53 -04:00
Jeff Verkoeyen
ff214a8b62 Update jazzy-linter to v1.0.1.
Summary: Release notes: https://github.com/google/arc-jazzy-linter/releases/tag/v1.0.1

Reviewers: O1 Material components iOS, randallli

Reviewed By: O1 Material components iOS, randallli

Subscribers: randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1137
2016-07-07 15:05:00 -04:00
Jeff Verkoeyen
53122b29e8 Update arc-xcode-test-engine to v3.0.4.
Summary: Release notes: https://github.com/google/arc-xcode-test-engine/releases/tag/v3.0.4

Reviewers: O1 Material components iOS, ajsecord

Reviewed By: O1 Material components iOS, ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1095
2016-07-01 13:47:11 -04:00
Adrian Secord
a045b07bcc Fix internal builds.
Summary:
- Adds missing dependencies to the podspec.
- Fixes private import paths.
- Adds dummy variable to "empty" static library targets to suppress build warnings.
- Suppresses string concatenation warnings in valid contexts.
- Lint changes.

Reviewers: iangordon, O1 Material components iOS

Reviewed By: iangordon, O1 Material components iOS

Subscribers: junius

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1074
2016-06-30 13:19:16 -04:00
Adrian Secord
1e15fcfb1c Update install scripts for clang-format
Summary:
Many and various fixes—the scripts still need a lot of work.

  - Fixed the brew install script
  - Fixed the clang-format install script to update clang-format if an update exists.
  - Fixed `if [ ! `some_command` ]; then` invocations, which doesn't do what the original authors seemed to have thought it does.
  - Removed all `set -e` from bash scripts... there's no need to echo everything under the sun.
  - Added `set -o errexit` for simple scripts so the script would just bail if any one command failed.
  - Lowered general verbosity in some places.

Reviewers: O1 Material components iOS, junius, featherless

Reviewed By: O1 Material components iOS, junius

Subscribers: ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1035
2016-06-24 14:22:55 -04:00
randallli
7bb35f6476 [Releasing] Release cut script has a flag to cutting a hotfix. If it is a hot fix it will branch off master instead of develop
Summary:
use:
./scripts/release/cut --hotfix
to create a hotfix off master

Reviewers: ajsecord, O1 Material components iOS

Reviewed By: ajsecord, O1 Material components iOS

Subscribers: featherless, ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D961
2016-06-21 17:37:49 -04:00
Jeff Verkoeyen
9674a8fe22 Update arc-proselint to v1.0.1.
Summary: See release notes: https://github.com/google/arc-proselint/releases/tag/v1.0.1

Reviewers: O1 Material components iOS, randallli

Reviewed By: O1 Material components iOS, randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D996
2016-06-20 13:33:48 -04: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
Yiran Mao
2773ea381e Add document about how to update the content and update the script for site development.
Closes https://github.com/google/material-components-ios/issues/295
2016-05-23 18:13:42 -04:00