Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

Commit e796821

Browse files
committed
Merge branch 'release-2.0.0'
# Conflicts: # CHANGELOG.md # MaterialComponents.podspec # MaterialComponentsCatalog.podspec # MaterialComponentsUnitTests.podspec # build_tests/CocoapodsObjCApp/Podfile.lock # build_tests/CocoapodsSwiftApp/Podfile.lock # catalog/Podfile.lock # demos/Pesto/Podfile.lock # demos/Shrine/Podfile.lock
2 parents ef50b77 + b17afdc commit e796821

File tree

206 files changed

+1976
-6184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+1976
-6184
lines changed

.arclint

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"include": "(\\.(m|h|mm|md|swift)$)",
1111
"exclude": "(/Pods/)",
1212
"severity": {
13-
"3": "disabled",
1413
"5": "disabled"
15-
}
14+
},
15+
"text.max-line-length": 100
1616
},
1717
"chmod": {
1818
"type": "chmod",

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,6 @@ Carthage/Build
5959

6060
fastlane/report.xml
6161
fastlane/screenshots
62+
63+
# material component site
64+
/gh-pages

CHANGELOG.md

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,79 @@
1-
## In progress since last release
1+
## 2.0.0
22

33
##### Breaking
44
##### Enhancements
55
##### Bug Fixes
66

7+
## 2.0.0
8+
9+
##### Breaking
10+
* [FlexibleHeader] Removed `-[MDCFlexibleHeaderViewController addFlexibleHeaderViewToParentViewControllerView]`,
11+
`MDCFlexibleHeaderParentViewController`, and `+[MDCFlexibleHeaderViewController addToParent:]`. These methods
12+
were marked deprecated in 1.0.0. [Jeff Verkoeyen](https://github.com/jverkoey)
13+
14+
##### Enhancements
15+
* Components
16+
* [Slider] default color updated to nicer blue.
17+
* [Ink] Replace rand() with arc4random() to avoid a static analyzer warning. [Ian Gordon](https://github.com/ianegordon)
18+
* [FlexibleHeader] Removed redundant APIs from MDCFlexibleHeaderContainerViewController. [Jeff Verkoeyen](https://github.com/jverkoey)
19+
* Rename Private directories to private. (Jeff Verkoeyen)
20+
21+
* Documentation
22+
* [Button] Readme copy edits
23+
* [Conventions] Moved all docs assets into a `docs/assets` directory per component by
24+
convention. Issue [#130](https://github.com/google/material-components-ios/issues/130) filed by
25+
[peterfriese](https://github.com/peterfriese). Closed by [Jeff Verkoeyen](https://github.com/jverkoey)
26+
* [CONTRIBUTING] Document our file system conventions in CONTRIBUTING.md. [Jeff Verkoeyen](https://github.com/jverkoey)
27+
* [CONTRIBUTING] Document our pull request expectations in CONTRIBUTING.md. [Jeff Verkoeyen](https://github.com/jverkoey)
28+
* [Switch] Removed internal docs that were pretending to be public docs. [Jeff Verkoeyen](https://github.com/jverkoey)
29+
30+
* Catalog
31+
* Use single asset for component icons. [Junius Gunaratne](https://github.com/jgunaratne)
32+
* Style catalog component screen and change to collection view. [Junius Gunaratne](https://github.com/jgunaratne)
33+
* Sorts titles alphabetically. Also fixes title typo in sliders. [Chris Cox](https://github.com/chriscox)
34+
* Catalog by convention grabs storyboard resources. [Randall Li](https://github.com/randallli)
35+
* Increasing our warnings coverage. [Jeff Verkoeyen](https://github.com/jverkoey)
36+
* Support duplicate hierarchy entries. [Randall Li](https://github.com/randallli)
37+
* Add support for Swift examples and unit tests [Jeff Verkoeyen](https://github.com/jverkoey)
38+
* Added Swift sample for buttons. [Peter Friese](https://github.com/peterfriese)
39+
* Refactored Button example to be compatibile with catalog by convention [Randall Li](https://github.com/randallli)
40+
* Refactored Slider example to be compatibile with catalog by convention [Randall Li](https://github.com/randallli)
41+
* Refactored ShadowLayer example to be compatible with catalog by convention
42+
[Randall Li](https://github.com/randallli)
43+
* Refactored Switch example to be compatible with catalog by convention
44+
[Randall Li](https://github.com/randallli)
45+
* Added Swift example for Typography. [Peter Friese](https://github.com/peterfriese)
46+
47+
* Demos
48+
* Shrine
49+
* Adding PageControl to demo app for scrolling through products. [Junius Gunaratne](https://github.com/jgunaratne)
50+
* Fix crash when trying to load images when network is down. [Junius Gunaratne](http://github.com/jgunaratne)
51+
* Misc
52+
* [Jazzy] scripts/gendocs.sh now infers Jazzy arguments by convention. [Jeff Verkoeyen](https://github.com/jverkoey)
53+
* [gh-pages] Minor tiding of the preview script for gh-pages. [Jeff Verkoeyen](https://github.com/jverkoey)
54+
Enforced lint with `arc lint --everything`.
55+
* Enable line length warnings in arc lint. [Jeff Verkoeyen](https://github.com/jverkoey)
56+
* Added script to run pod install on all pods. [Randall Li](https://github.com/randallli)
57+
* Fix build breakage in MDCCatalog.
58+
* [FlexibleHeader] Removed redundant APIs from MDCFlexibleHeaderContainerViewController. [Jeff Verkoeyen](https://github.com/jverkoey)
59+
* Increasing our warnings coverage. [Jeff Verkoeyen](https://github.com/jverkoey)
60+
61+
62+
##### Bug Fixes
63+
64+
* [scripts/gendocs.sh] Ensure that doc assets show up in jazzy output. [peterfriese](https://github.com/peterfriese)
65+
* [MDCSlider] Fixed to [issue](https://github.com/google/material-components-ios/issues/128) that
66+
was causing the slider to disappear when disabled. [Randall Li](https://github.com/randallli)
67+
* Ensure that all private directory references are lower-cased. [Jeff Verkoeyen](https://github.com/jverkoey)
68+
* [MDCSlider] fixed disabled state so it has the mask around the thumb.
69+
[Randall Li](https://github.com/randallli)
70+
* MaterialComponentsUnitTests.podspec depends on MaterialComponents. [Jeff Verkoeyen](https://github.com/jverkoey)
71+
* [PageControl] Add missing ss.resource_bundles to the podspec.
72+
* [Various] Fixed floating-point conversion warnings with Xcode 6 release mode.
73+
[ajsecord](https://github.com/ajsecord)
74+
* [Typography] Add CoreText dependency.
75+
76+
777
## 1.0.1
878

979
##### Enhancements

CONTRIBUTING.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,55 @@
11
Want to contribute? Great! First, read this page (including the small print at the end).
22

3+
## Pull requests
4+
5+
Pull requests can be hard to review if they try to tackle too many things
6+
at once. Phabricator's "[Writing Reviewable Code](https://secure.phabricator.com/book/phabflavor/article/writing_reviewable_code/)"
7+
provides a set of guidelines that help increase the likelihood of your
8+
pull request getting merged.
9+
10+
In short (slightly modified from the original article):
11+
12+
- A pull request should be as small as possible, but no smaller.
13+
- The smallest a pull request can be is a single cohesive idea: don't
14+
make pull requests so small that they are meaningless on their own.
15+
- Turn large pull requests into small pull requests by dividing large
16+
problems into smaller problems and solving the small problems one at
17+
a time.
18+
- Write sensible pull request descriptions.
19+
20+
Our additions:
21+
22+
- A pull request should affect as few components as possible.
23+
- Pull requests must include a modification to the CHANGELOG.md summarizing the
24+
change.
25+
26+
### Conventions
27+
28+
This repository follows a file layout convention that ensures consistency and
29+
predictability across all of our components. The convention for a given
30+
component is as follows:
31+
32+
components/ComponentName/
33+
README.md
34+
docs/ <- In-depth technical documentation.
35+
TechnicalDoc1.md <- Docs are written in Markdown.
36+
assets/ <- All documentation assets live here.
37+
image.png <- Pngs, movs, gifs, etc...
38+
examples/ <- Examples added here show up in the [Catalog](catalog/README.md).
39+
Example.swift <- Examples can be Swift,
40+
Example.m <- or Objective-C
41+
src/ <- All component source lives here
42+
MaterialComponent.h <- Every component must have an umbrella header
43+
MDCObject.h <- Component source must be written in Objective-C.
44+
MDCObject.m
45+
tests/ <- All tests here will show up in the [Catalog](catalog/README.md).
46+
unit/ <- All unit tests must go here.
47+
SomeAPITest.swift <- Unit tests can be Swift,
48+
AnotherTest.m <- or Objective-C.
49+
50+
Note that all directories are **lower-cased** except the component's root
51+
directory.
52+
353
### Before you contribute
454

555
Before we can use your code, you must sign the

Catalog.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MaterialComponents.podspec

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "MaterialComponents"
3-
s.version = "1.0.1"
3+
s.version = "2.0.0"
44
s.authors = { 'Apple platform engineering at Google' => 'appleplatforms@google.com' }
55
s.summary = "A collection of stand-alone production-ready UI libraries focused on design details."
66
s.homepage = "https://github.com/google/material-components-ios"
@@ -70,6 +70,9 @@ Pod::Spec.new do |s|
7070
ss.public_header_files = 'components/PageControl/src/*.h'
7171
ss.source_files = 'components/PageControl/src/*.{h,m}', 'components/PageControl/src/private/*.{h,m}'
7272
ss.header_mappings_dir = 'components/PageControl/src/*'
73+
ss.resource_bundles = {
74+
'MaterialPageControl' => ['components/PageControl/src/MaterialPageControl.bundle/*']
75+
}
7376
end
7477

7578
s.subspec 'ScrollViewDelegateMultiplexer' do |ss|
@@ -117,6 +120,7 @@ Pod::Spec.new do |s|
117120
ss.public_header_files = 'components/Typography/src/*.h'
118121
ss.source_files = 'components/Typography/src/*.{h,m}', 'components/Typography/src/Private/*.{h,m}'
119122
ss.header_mappings_dir = 'components/Typography/src/*'
123+
ss.framework = 'CoreText'
120124

121125
ss.resource_bundles = {
122126
'MaterialTypography' => ['components/Typography/src/MaterialTypography.bundle/*']
@@ -139,7 +143,7 @@ Pod::Spec.new do |s|
139143
ss.dependency 'MaterialComponents/ShadowLayer'
140144
ss.dependency 'MaterialComponents/private/Color'
141145
end
142-
146+
143147
end
144148

145149
end

MaterialComponentsCatalog.podspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "MaterialComponentsCatalog"
3-
s.version = "1.0.1"
3+
s.version = "2.0.0"
44
s.authors = { 'Apple platform engineering at Google' => 'appleplatforms@google.com' }
55
s.summary = "A collection of stand-alone production-ready UI libraries focused on design details."
66
s.homepage = "https://github.com/google/material-components-ios"
@@ -9,4 +9,6 @@ Pod::Spec.new do |s|
99
s.platform = :ios, '7.0'
1010
s.requires_arc = true
1111
s.source_files = 'components/*/examples/*.{h,m,swift}'
12+
s.resources = ["components/*/examples/*.storyboard"]
13+
s.dependency 'MaterialComponents'
1214
end

MaterialComponentsUnitTests.podspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "MaterialComponentsUnitTests"
3-
s.version = "1.0.1"
3+
s.version = "2.0.0"
44
s.authors = { 'Apple platform engineering at Google' => 'appleplatforms@google.com' }
55
s.summary = "A collection of stand-alone production-ready UI libraries focused on design details."
66
s.homepage = "https://github.com/google/material-components-ios"
@@ -10,4 +10,5 @@ Pod::Spec.new do |s|
1010
s.requires_arc = true
1111
s.source_files = 'components/*/tests/unit/*.{h,m,swift}'
1212
s.framework = 'XCTest'
13+
s.dependency 'MaterialComponents'
1314
end

0 commit comments

Comments
 (0)