Yarden Eitan 5dafdbaa86
graduate navigation drawer from Beta to Ready (#5470)
This PR is the last step in graduating the Navigation Drawer component from Beta to Ready.

We have resolved all the outstanding issues in the Navigation Drawer Project here: https://github.com/material-components/material-components-ios/projects/85 and hotlist: 1230549 .
The only outstanding issue is the unit tests ( #5466 , #5465 ) which were approved and are pending due to GitHub issues causing CI not to run.

We are essentially migrating here the NavigationDrawer component from the MaterialComponentsAlpha podspec to the MaterialComponents podspec so it can be used publicly using the normal means of installing our Pod.

This PR is blocked and can land once #5466 and #5465 land.

Closes #5333
2018-10-23 01:26:46 -04:00

108 lines
3.6 KiB
Ruby

workspace 'MDCCatalog.xcworkspace'
project 'MDCCatalog.xcodeproj'
target "MDCCatalog" do
platform :ios, '8.0'
project 'MDCCatalog.xcodeproj'
pod 'MaterialComponentsExamples', :path => '../'
pod 'MaterialComponents', :path => '../', :testspecs => [
'ActivityIndicator/tests/unit',
'AnimationTiming/tests/unit',
'AppBar/tests/unit',
'BottomAppBar/tests/unit',
'BottomNavigation/tests/unit',
'BottomSheet/tests/unit',
'Buttons/tests/unit',
'Cards/tests/unit',
'Chips/tests/unit',
'CollectionCells/tests/unit',
'CollectionLayoutAttributes/tests/unit',
'Collections/tests/unit',
'Dialogs/tests/unit',
'FeatureHighlight/tests/unit',
'FlexibleHeader/tests/unit',
'HeaderStackView/tests/unit',
'Ink/tests/unit',
'LibraryInfo/tests/unit',
'List/tests/unit',
'MaskedTransition/tests/unit',
'NavigationBar/tests/unit',
'NavigationDrawer/tests/unit',
'OverlayWindow/tests/unit',
'PageControl/tests/unit',
'Palettes/tests/unit',
'private/Application/tests/unit',
'private/KeyboardWatcher/tests/unit',
'private/Math/tests/unit',
'private/Overlay/tests/unit',
'private/ShapeLibrary/tests/unit',
'private/Shapes/tests/unit',
'private/ThumbTrack/tests/unit',
'private/UIMetrics/tests/unit',
'ProgressView/tests/unit',
'schemes/Color/tests/unit',
'schemes/Shape/tests/unit',
'schemes/Typography/tests/unit',
'ShadowElevations/tests/unit',
'ShadowLayer/tests/unit',
'Slider/tests/unit',
'Snackbar/tests/unit',
'Tabs/tests/unit',
'TextFields/tests/unit',
'Themes/tests/unit',
'Typography/tests/unit',
]
pod 'MaterialComponentsAlpha', :path => '../', :testspecs => [
'ActionSheet/tests/unit',
]
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 'MaterialComponentsAlpha', :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 'MaterialComponentsAlpha', :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/MaterialComponents/MaterialComponents.unit.xcconfig",
"#{pod_dir}/Target Support Files/MaterialComponentsAlpha/MaterialComponentsAlpha.xcconfig",
"#{pod_dir}/Target Support Files/MaterialComponentsAlpha/MaterialComponentsAlpha.unit.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",
]
# 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