Skip to content

Commit 7341a00

Browse files
committed
Merge branch 'release-2.2.0'
2 parents 8d9725c + f2fc9c6 commit 7341a00

File tree

92 files changed

+1979
-736
lines changed

Some content is hidden

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

92 files changed

+1979
-736
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/docs
44
build_tests/CocoapodsObjCApp/CocoapodsObjCApp.xcworkspace
55
build_tests/CocoapodsSwiftApp/CocoapodsSwiftApp.xcworkspace
6+
scripts/external/material-design-icons/
67

78
# Xcode
89
#

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,39 @@
66

77
##### Bug Fixes
88

9+
## 2.2.0
10+
11+
##### Deprecations
12+
13+
* [Typography] Marked FontResource deprecated. Use the renamed component as FontDiskLoader. (randallli)
14+
15+
##### Enhancements
16+
17+
* [AppBar Example] Addressing code style feedback from D326. (Jeff Verkoeyen)
18+
* [AppBar] Add typical Swift usage example. (Jeff Verkoeyen)
19+
* [AppBar] Add UINavigatonItem section. (Jeff Verkoeyen)
20+
* [AppBar] readme updates. (Jeff Verkoeyen)
21+
* [AppBar] Remove unnecessary code from the ObjC example. (Jeff Verkoeyen)
22+
* [AppBar] Standardize and document the examples in preparation for upcoming examples. (Jeff Verkoeyen)
23+
* [AppBar] Use the catalog's blue color in the examples. (Jeff Verkoeyen)
24+
* [Button] Change ink color on buttons to improve visibility of ink (Junius Gunaratne)
25+
* [Catalog] Miscellaneous cleanup and fixes to the Catalog. (Jeff Verkoeyen)
26+
* [Catalog] Update catalog home screen to new light themed design (Junius Gunaratne)
27+
* [Docs] Navigationbar initial markdown formatting. (Jason Striegel)
28+
* [FlexibleHeader] Assert that the tracking scroll view has a delegate. (Jeff Verkoeyen)
29+
* [FlexibleHeader] Only call sizeToFit on the flexible header view when it does not have a tracking scroll view. (Jeff Verkoeyen)
30+
* [FlexibleHeader] Poke the header into laying out its content when the view controller has been fully registered. (Jeff Verkoeyen)
31+
* [FontDiskLoader] Revived old class, MDCFontResource, and marked it deprecated. (randallli)
32+
* [Icons] Add private/ directory to Icons target. (Jeff Verkoeyen)
33+
* [Icons] Added component (Jeff Verkoeyen)
34+
* [Icons] Bundles can't have plusses in their names. (Jeff Verkoeyen)
35+
* [Ink] markdown formatting. (Jason Striegel)
36+
* [Ink] Minor tweaks to ink for more consistency with other platforms (Junius Gunaratne)
37+
* [Site] Remove alternate remotes from build-site remote determination. (Jeff Verkoeyen)
38+
* [Site] Updates to top links and markdown formatting. (Jason Striegel)
39+
* [Site] Using HTML markup for lists to avoid github comment issue. (Jason Striegel)
40+
* [Typography] Moved the FontLoader and FontResource into their own components. (randallli)
41+
942
## 2.1.1
1043

1144
##### Enhancements

MaterialComponents.podspec

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
load 'scripts/generated/icons.rb'
2+
13
Pod::Spec.new do |s|
24
s.name = "MaterialComponents"
3-
s.version = "2.1.1"
5+
s.version = "2.2.0"
46
s.authors = { 'Apple platform engineering at Google' => '[email protected]' }
57
s.summary = "A collection of stand-alone production-ready UI libraries focused on design details."
68
s.homepage = "https://github.com/google/material-components-ios"
@@ -41,20 +43,18 @@ Pod::Spec.new do |s|
4143
ss.source_files = "components/#{ss.base_name}/src/*.{h,m}", "components/#{ss.base_name}/src/private/*.{h,m}"
4244
ss.header_mappings_dir = "components/#{ss.base_name}/src/*"
4345

44-
ss.resource_bundles = {
45-
"Material#{ss.base_name}" => ["components/#{ss.base_name}/src/Material#{ss.base_name}.bundle/Images.xcassets/*/*.png"]
46-
}
47-
4846
# Navigation bar contents
4947
ss.dependency "MaterialComponents/Buttons"
5048
ss.dependency "MaterialComponents/HeaderStackView"
5149
ss.dependency "MaterialComponents/NavigationBar"
5250
ss.dependency "MaterialComponents/Typography"
53-
51+
5452
# Flexible header + shadow
5553
ss.dependency "MaterialComponents/FlexibleHeader"
5654
ss.dependency "MaterialComponents/ShadowElevations"
5755
ss.dependency "MaterialComponents/ShadowLayer"
56+
57+
ss.dependency "MaterialComponents/private/Icons/ic_arrow_back"
5858
end
5959

6060
s.subspec "Buttons" do |ss|
@@ -80,6 +80,14 @@ Pod::Spec.new do |s|
8080
ss.header_mappings_dir = "components/#{ss.base_name}/src/*"
8181
end
8282

83+
s.subspec "FontDiskLoader" do |ss|
84+
ss.public_header_files = "components/#{ss.base_name}/src/*.h"
85+
ss.source_files = "components/#{ss.base_name}/src/*.{h,m}", "components/#{ss.base_name}/src/private/*.{h,m}"
86+
ss.header_mappings_dir = "components/#{ss.base_name}/src/*"
87+
88+
ss.framework = "CoreText"
89+
end
90+
8391
s.subspec "HeaderStackView" do |ss|
8492
ss.public_header_files = "components/#{ss.base_name}/src/*.h"
8593
ss.source_files = "components/#{ss.base_name}/src/*.{h,m}"
@@ -110,6 +118,22 @@ Pod::Spec.new do |s|
110118
}
111119
end
112120

121+
s.subspec "RobotoFontLoader" do |ss|
122+
ss.public_header_files = "components/#{ss.base_name}/src/*.h"
123+
ss.source_files = "components/#{ss.base_name}/src/*.{h,m}", "components/#{ss.base_name}/src/private/*.{h,m}"
124+
ss.header_mappings_dir = "components/#{ss.base_name}/src/*"
125+
126+
# Only if you have a resource bundle
127+
ss.resource_bundles = {
128+
"Material#{ss.base_name}" => ["components/#{ss.base_name}/src/Material#{ss.base_name}.bundle/*"]
129+
}
130+
131+
ss.dependency "MaterialComponents/FontDiskLoader"
132+
# TODO: Make MDCRobotoFontLoader conform to the <MDCTypographyFontLoading>. This was intended to be a
133+
# strong dependancy but is weak during the deprecation period.
134+
# ss.dependency "MaterialComponents/Typography"
135+
end
136+
113137
s.subspec "ScrollViewDelegateMultiplexer" do |ss|
114138
ss.public_header_files = "components/#{ss.base_name}/src/*.h"
115139
ss.source_files = "components/#{ss.base_name}/src/*.{h,m}"
@@ -157,15 +181,14 @@ Pod::Spec.new do |s|
157181
ss.public_header_files = "components/#{ss.base_name}/src/*.h"
158182
ss.source_files = "components/#{ss.base_name}/src/*.{h,m}", "components/#{ss.base_name}/src/private/*.{h,m}"
159183
ss.header_mappings_dir = "components/#{ss.base_name}/src/*"
160-
ss.framework = "CoreText"
161184

162-
ss.resource_bundles = {
163-
"Material#{ss.base_name}" => ["components/#{ss.base_name}/src/Material#{ss.base_name}.bundle/*"]
164-
}
165-
ss.framework = "CoreText"
185+
ss.dependency "MaterialComponents/RobotoFontLoader" # This dependancy is part of a deprecation.
166186
end
167187

168188
s.subspec "private" do |pss|
189+
190+
# The implementation of this method is generated by running scripts/sync_icons.sh
191+
registerIcons(pss)
169192

170193
pss.subspec "Color" do |ss|
171194
ss.public_header_files = "components/private/#{ss.base_name}/src/*.h"

MaterialComponentsCatalog.podspec

Lines changed: 1 addition & 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 = "2.1.1"
3+
s.version = "2.2.0"
44
s.authors = { 'Apple platform engineering at Google' => '[email protected]' }
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"

MaterialComponentsUnitTests.podspec

Lines changed: 1 addition & 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 = "2.1.1"
3+
s.version = "2.2.0"
44
s.authors = { 'Apple platform engineering at Google' => '[email protected]' }
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"

catalog/MDCCatalog.xcodeproj/project.pbxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
665A34E01C6BDB4600962055 /* Runtime.swift in Sources */ = {isa = PBXBuildFile; fileRef = 665A34DF1C6BDB4600962055 /* Runtime.swift */; };
1818
DE309CF31C8DEB8400E73247 /* MDCCatalogComponentsController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE309CF21C8DEB8400E73247 /* MDCCatalogComponentsController.swift */; };
1919
DEF64EA41C8DEE83007C4EA0 /* MDCCatalogCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEF64EA31C8DEE83007C4EA0 /* MDCCatalogCollectionViewCell.swift */; };
20-
DEF64EA61C8DEFC7007C4EA0 /* MDCCatalogHeaderContainerController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEF64EA51C8DEFC7007C4EA0 /* MDCCatalogHeaderContainerController.swift */; };
2120
/* End PBXBuildFile section */
2221

2322
/* Begin PBXFileReference section */
@@ -80,7 +79,6 @@
8079
BFBFBC9BA56EED442714E5F3 /* Pods-MDCCatalog.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MDCCatalog.debug.xcconfig"; path = "Pods/Target Support Files/Pods-MDCCatalog/Pods-MDCCatalog.debug.xcconfig"; sourceTree = "<group>"; };
8180
DE309CF21C8DEB8400E73247 /* MDCCatalogComponentsController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MDCCatalogComponentsController.swift; sourceTree = "<group>"; };
8281
DEF64EA31C8DEE83007C4EA0 /* MDCCatalogCollectionViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MDCCatalogCollectionViewCell.swift; sourceTree = "<group>"; };
83-
DEF64EA51C8DEFC7007C4EA0 /* MDCCatalogHeaderContainerController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MDCCatalogHeaderContainerController.swift; sourceTree = "<group>"; };
8482
DEFF1C057348FFB1866CD023 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
8583
FBDDFF6A49F084B665BA398A /* Pods-MDCCatalog-MDCCatalog.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MDCCatalog-MDCCatalog.release.xcconfig"; path = "Pods/Target Support Files/Pods-MDCCatalog-MDCCatalog/Pods-MDCCatalog-MDCCatalog.release.xcconfig"; sourceTree = "<group>"; };
8684
/* End PBXFileReference section */
@@ -130,7 +128,6 @@
130128
665A34D91C6BD01900962055 /* MDCCatalog-Bridging-Header.h */,
131129
DEF64EA31C8DEE83007C4EA0 /* MDCCatalogCollectionViewCell.swift */,
132130
DE309CF21C8DEB8400E73247 /* MDCCatalogComponentsController.swift */,
133-
DEF64EA51C8DEFC7007C4EA0 /* MDCCatalogHeaderContainerController.swift */,
134131
664524B81C6BA62A001ADBF8 /* NodeViewController.swift */,
135132
665A34DD1C6BDADA00962055 /* Reflection */,
136133
665A34DE1C6BDAE700962055 /* Resources */,
@@ -349,7 +346,6 @@
349346
664524B91C6BA62A001ADBF8 /* NodeViewController.swift in Sources */,
350347
664524B71C6BA62A001ADBF8 /* AppDelegate.swift in Sources */,
351348
DEF64EA41C8DEE83007C4EA0 /* MDCCatalogCollectionViewCell.swift in Sources */,
352-
DEF64EA61C8DEFC7007C4EA0 /* MDCCatalogHeaderContainerController.swift in Sources */,
353349
);
354350
runOnlyForDeploymentPostprocessing = 0;
355351
};

catalog/MDCCatalog/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
5050
node.viewController = c
5151
}
5252

53-
let rootNodeViewController = MDCCatalogHeaderContainerController(node: tree)
53+
let rootNodeViewController = MDCCatalogComponentsController(node: tree)
5454
let navigationController = UINavigationController(rootViewController: rootNodeViewController)
5555

5656
// In the event that an example view controller hides the navigation bar we generally want to
Binary file not shown.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"filename" : "AppBar.pdf"
6+
}
7+
],
8+
"info" : {
9+
"version" : 1,
10+
"author" : "xcode"
11+
}
12+
}
Binary file not shown.

0 commit comments

Comments
 (0)