| workspace 'MDCCatalog.xcworkspace' |
| project 'MDCCatalog.xcodeproj' |
| |
| target "MDCCatalog" do |
| platform :ios, '8.0' |
| project 'MDCCatalog.xcodeproj' |
| pod 'MaterialComponentsExamples', :path => '../' |
| pod 'MaterialComponents', :path => '../' |
| pod 'CatalogByConvention', "~> 2.5" |
| pod 'MaterialCatalog', :path => 'MaterialCatalog/' |
| |
| use_frameworks! |
| end |
| |
| target "MDCUnitTests" do |
| platform :ios, '8.0' |
| project 'MDCUnitTests.xcodeproj' |
| pod 'MaterialComponentsUnitTests', :path => '../' |
| pod 'MaterialComponents', :path => '../' |
| pod 'CatalogByConvention', "~> 2.5" |
| pod 'MaterialCatalog', :path => 'MaterialCatalog/' |
| |
| use_frameworks! |
| end |
| |
| target "MDCActionExtension" do |
| platform :ios, '8.0' |
| project 'MDCCatalog.xcodeproj' |
| pod 'MaterialComponentsExamples', :path => '../' |
| pod 'MaterialComponents', :path => '../' |
| pod 'CatalogByConvention', "~> 2.5" |
| pod 'MaterialCatalog', :path => 'MaterialCatalog/' |
| |
| use_frameworks! |
| end |
| |
| target "MDCDragons" do |
| platform :ios, '8.0' |
| project 'MDCDragons.xcodeproj' |
| pod 'CatalogByConvention', "~> 2.5" |
| pod 'MaterialComponents', :path => '../' |
| pod 'MaterialComponentsExamples', :path => '../' |
| use_frameworks! |
| end |
| |
| post_install do |installer| |
| pod_dir = File.dirname(installer.pods_project.path) |
| |
| # Inject our specific warning flags into the .xcconfig files. |
| mdc_xcconfigs = [ |
| "#{pod_dir}/Target Support Files/MaterialComponents/MaterialComponents.xcconfig", |
| "#{pod_dir}/Target Support Files//MaterialComponentsExamples/MaterialComponentsExamples.xcconfig", |
| "#{pod_dir}/Target Support Files/Pods-MDCCatalog/Pods-MDCCatalog.debug.xcconfig", |
| "#{pod_dir}/Target Support Files/Pods-MDCCatalog/Pods-MDCCatalog.release.xcconfig", |
| "#{pod_dir}/Target Support Files/Pods-MDCUnitTests/Pods-MDCUnitTests.debug.xcconfig", |
| "#{pod_dir}/Target Support Files/Pods-MDCUnitTests/Pods-MDCUnitTests.release.xcconfig", |
| ] |
| |
| # Note the path is relative to the xcconfig file being modified. |
| # https://pewpewthespells.com/blog/xcconfig_guide.html |
| mdc_xcconfigs.each do |mdc_xcconfig| |
| new_xcconfig = File.read(mdc_xcconfig) |
| new_xcconfig << "\n#include \"../../../MaterialComponentsWarnings.xcconfig\"" |
| File.write(mdc_xcconfig, new_xcconfig) |
| end |
| end |