mirror of
https://github.com/material-components/material-components-ios.git
synced 2026-02-20 08:27:32 +08:00
Adding the navigation drawer component that adds a presentation controller for showing UIViewControllers as a bottom drawer. History of the component (last CL submitted for it): cl/209765207 Design doc: go/mdc-ios-navigation-drawer This component will be the first alpha component in this repo, this means that it can still change and will not be included as part of the podspec at first.
37 lines
1.6 KiB
Ruby
37 lines
1.6 KiB
Ruby
Pod::Spec.new do |mdc|
|
|
mdc.name = "MaterialComponentsAlpha"
|
|
mdc.version = "60.2.0"
|
|
mdc.authors = "The Material Components authors."
|
|
mdc.summary = "A collection of stand-alone alpha UI libraries that are not yet guaranteed to be ready for general production use. Use with caution."
|
|
mdc.homepage = "https://github.com/material-components/material-components-ios"
|
|
mdc.license = "Apache 2.0"
|
|
mdc.source = { :git => "https://github.com/material-components/material-components-ios.git", :tag => "v#{mdc.version}" }
|
|
mdc.platform = :ios
|
|
mdc.requires_arc = true
|
|
mdc.ios.deployment_target = '8.0'
|
|
|
|
# See MaterialComponents.podspec for the subspec structure and template.
|
|
|
|
# NavigationDrawer
|
|
|
|
mdc.subspec "NavigationDrawer" do |component|
|
|
component.ios.deployment_target = '8.0'
|
|
component.public_header_files = "components/#{component.base_name}/src/*.h"
|
|
component.source_files = "components/#{component.base_name}/src/*.{h,m}", "components/#{component.base_name}/src/private/*.{h,m}"
|
|
|
|
component.dependency "MaterialComponents/ShadowLayer"
|
|
component.dependency "MaterialComponents/private/UIMetrics"
|
|
end
|
|
|
|
mdc.subspec "private" do |private_spec|
|
|
# CocoaPods requires at least one file to show up in a subspec, so we depend on the fake
|
|
# "Alpha" component as a baseline.
|
|
private_spec.subspec "Alpha" do |component|
|
|
component.ios.deployment_target = '8.0'
|
|
component.public_header_files = "components/private/#{component.base_name}/src/*.h"
|
|
component.source_files = "components/private/#{component.base_name}/src/*.{h,m}"
|
|
end
|
|
end
|
|
|
|
end
|