-
Notifications
You must be signed in to change notification settings - Fork 946
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
2,723 additions
and
814 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ load 'scripts/generated/icons.rb' | |
|
||
Pod::Spec.new do |s| | ||
s.name = "MaterialComponents" | ||
s.version = "16.1.0" | ||
s.version = "16.2.0" | ||
s.authors = { 'Apple platform engineering at Google' => '[email protected]' } | ||
s.summary = "A collection of stand-alone production-ready UI libraries focused on design details." | ||
s.homepage = "https://github.com/google/material-components-ios" | ||
s.license = "Apache 2.0" | ||
s.source = { :git => "https://github.com/google/material-components-ios.git", :tag => s.version.to_s } | ||
s.source = { :git => "https://github.com/google/material-components-ios.git", :tag => "v#{s.version}" } | ||
s.platform = :ios | ||
s.requires_arc = true | ||
|
||
|
@@ -21,8 +21,8 @@ Pod::Spec.new do |s| | |
# | ||
# ## Optional properties | ||
# | ||
# resource_bundles => If your component has a bundle, add a dictionary mapping from the bundle | ||
# name to the bundle path. | ||
# resources => If your component has a bundle, add a dictionary mapping from the bundle | ||
# name to the bundle path. NOTE: Do not use resource_bundle property. | ||
# | ||
# # Template subspec | ||
# | ||
|
@@ -32,9 +32,8 @@ Pod::Spec.new do |s| | |
# ss.header_mappings_dir = "components/#{ss.base_name}/src" | ||
# | ||
# # Only if you have a resource bundle | ||
# ss.resource_bundles = { | ||
# "Material#{ss.base_name}" => ["components/#{ss.base_name}/Material#{ss.base_name}.bundle/*"] | ||
# } | ||
# ss.resources = ["components/#{ss.base_name}/Material#{ss.base_name}.bundle"] | ||
# | ||
# end | ||
# | ||
|
||
|
@@ -128,9 +127,7 @@ Pod::Spec.new do |s| | |
ss.public_header_files = "components/#{ss.base_name}/src/*.h" | ||
ss.source_files = "components/#{ss.base_name}/src/*.{h,m}", "components/#{ss.base_name}/src/private/*.{h,m}" | ||
ss.header_mappings_dir = "components/#{ss.base_name}/src" | ||
ss.resource_bundles = { | ||
"Material#{ss.base_name}" => ["components/#{ss.base_name}/src/Material#{ss.base_name}.bundle/*"] | ||
} | ||
ss.resources = ["components/#{ss.base_name}/src/Material#{ss.base_name}.bundle"] | ||
|
||
ss.framework = "CoreGraphics", "QuartzCore" | ||
|
||
|
@@ -154,6 +151,15 @@ Pod::Spec.new do |s| | |
ss.dependency "MaterialComponents/private/KeyboardWatcher" | ||
end | ||
|
||
s.subspec "FeatureHighlight" do |ss| | ||
ss.ios.deployment_target = '7.0' | ||
ss.public_header_files = "components/#{ss.base_name}/src/*.h" | ||
ss.source_files = "components/#{ss.base_name}/src/*.{h,m}", "components/#{ss.base_name}/src/private/*.{h,m}" | ||
ss.header_mappings_dir = "components/#{ss.base_name}/src" | ||
ss.dependency "MaterialComponents/Typography" | ||
ss.dependency "MDFTextAccessibility" | ||
end | ||
|
||
s.subspec "FlexibleHeader" do |ss| | ||
ss.ios.deployment_target = '7.0' | ||
ss.public_header_files = "components/#{ss.base_name}/src/*.h" | ||
|
@@ -208,9 +214,7 @@ Pod::Spec.new do |s| | |
ss.public_header_files = "components/#{ss.base_name}/src/*.h" | ||
ss.source_files = "components/#{ss.base_name}/src/*.{h,m}", "components/#{ss.base_name}/src/private/*.{h,m}" | ||
ss.header_mappings_dir = "components/#{ss.base_name}/src" | ||
ss.resource_bundles = { | ||
"Material#{ss.base_name}" => ["components/#{ss.base_name}/src/Material#{ss.base_name}.bundle/*"] | ||
} | ||
ss.resources = ["components/#{ss.base_name}/src/Material#{ss.base_name}.bundle"] | ||
end | ||
|
||
s.subspec "Palettes" do |ss| | ||
|
@@ -236,9 +240,7 @@ Pod::Spec.new do |s| | |
ss.header_mappings_dir = "components/#{ss.base_name}/src" | ||
|
||
# Only if you have a resource bundle | ||
ss.resource_bundles = { | ||
"Material#{ss.base_name}" => ["components/#{ss.base_name}/src/Material#{ss.base_name}.bundle/*"] | ||
} | ||
ss.resources = ["components/#{ss.base_name}/src/Material#{ss.base_name}.bundle"] | ||
|
||
ss.dependency "MaterialComponents/FontDiskLoader" | ||
ss.dependency "MaterialComponents/Typography" | ||
|
@@ -292,9 +294,7 @@ Pod::Spec.new do |s| | |
ss.public_header_files = "components/#{ss.base_name}/src/*.h" | ||
ss.source_files = "components/#{ss.base_name}/src/*.{h,m}" | ||
ss.header_mappings_dir = "components/#{ss.base_name}/src" | ||
ss.resource_bundles = { | ||
"Material#{ss.base_name}" => ["components/#{ss.base_name}/src/Material#{ss.base_name}.bundle/*"] | ||
} | ||
ss.resources = ["components/#{ss.base_name}/src/Material#{ss.base_name}.bundle"] | ||
|
||
ss.dependency "MaterialComponents/private/ThumbTrack" | ||
ss.dependency "MaterialComponents/private/RTL" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Pod::Spec.new do |s| | ||
s.name = "MaterialComponentsCatalog" | ||
s.version = "16.1.0" | ||
s.version = "16.2.0" | ||
s.authors = { 'Apple platform engineering at Google' => '[email protected]' } | ||
s.summary = "A collection of stand-alone production-ready UI libraries focused on design details." | ||
s.homepage = "https://github.com/google/material-components-ios" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Pod::Spec.new do |s| | ||
s.name = "MaterialComponentsUnitTests" | ||
s.version = "16.1.0" | ||
s.version = "16.2.0" | ||
s.authors = { 'Apple platform engineering at Google' => '[email protected]' } | ||
s.summary = "A collection of stand-alone production-ready UI libraries focused on design details." | ||
s.homepage = "https://github.com/google/material-components-ios" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
Copyright 2016-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. | ||
*/ | ||
|
||
#import "MDCCatalogTileData.h" | ||
|
||
@interface MDCCatalogTileDataFeatureHighlight : MDCCatalogTileData | ||
|
||
+ (UIImage *)drawTileImage:(CGRect)frame; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
Copyright 2016-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. | ||
*/ | ||
|
||
#import "MDCCatalogTileDataFeatureHighlight.h" | ||
|
||
@implementation MDCCatalogTileDataFeatureHighlight | ||
|
||
+ (UIImage *)drawTileImage:(CGRect)frame { | ||
return [self drawImageWithFrame:frame drawBlock:^(CGRect blockFrame) { | ||
}]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.