2024-09-26 02:50:54 +03:00
|
|
|
# Constants
|
|
|
|
ios_root = 'Sources/FluentUI_iOS'
|
|
|
|
macos_root = 'Sources/FluentUI_macOS'
|
|
|
|
|
|
|
|
components_dir = 'Components'
|
|
|
|
core_dir = 'Core'
|
|
|
|
resources_dir = 'Resources'
|
|
|
|
|
2020-04-10 05:05:07 +03:00
|
|
|
Pod::Spec.new do |s|
|
2020-04-15 20:18:25 +03:00
|
|
|
s.name = 'MicrosoftFluentUI'
|
2024-10-18 01:53:36 +03:00
|
|
|
s.version = '0.31.0'
|
2020-04-10 05:05:07 +03:00
|
|
|
s.summary = 'Fluent UI is a set of reusable UI controls and tools'
|
|
|
|
s.homepage = "https://www.microsoft.com/design/fluent/#/"
|
|
|
|
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
|
|
|
s.author = { "Microsoft" => "fluentuinativeowners@microsoft.com"}
|
|
|
|
s.source = { :git => "https://github.com/microsoft/fluentui-apple.git", :tag => "#{s.version}" }
|
2023-11-14 21:04:22 +03:00
|
|
|
s.swift_version = "5.9"
|
2020-04-15 20:18:25 +03:00
|
|
|
s.module_name = 'FluentUI'
|
2020-10-19 18:27:40 +03:00
|
|
|
|
|
|
|
|
|
|
|
# iOS
|
|
|
|
|
2024-06-08 01:19:40 +03:00
|
|
|
s.ios.deployment_target = "16.0"
|
2020-10-13 01:13:28 +03:00
|
|
|
|
2021-03-04 02:42:51 +03:00
|
|
|
s.subspec 'Avatar_ios' do |avatar_ios|
|
|
|
|
avatar_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
avatar_ios.dependency "#{s.name}/Core_ios"
|
|
|
|
avatar_ios.preserve_paths = ["#{ios_root}/#{components_dir}/Avatar/Avatar.resources.xcfilelist"]
|
|
|
|
avatar_ios.source_files = ["#{ios_root}/#{components_dir}/Avatar/**/*.{swift,h}"]
|
2021-03-04 02:42:51 +03:00
|
|
|
end
|
|
|
|
|
2021-08-03 01:26:18 +03:00
|
|
|
s.subspec 'AvatarGroup_ios' do |avatargroup_ios|
|
|
|
|
avatargroup_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
avatargroup_ios.dependency "#{s.name}/Avatar_ios"
|
|
|
|
avatargroup_ios.source_files = ["#{ios_root}/#{components_dir}/AvatarGroup/**/*.{swift,h}"]
|
2021-08-03 01:26:18 +03:00
|
|
|
end
|
|
|
|
|
2021-03-04 00:37:47 +03:00
|
|
|
s.subspec 'ActivityIndicator_ios' do |activityindicator_ios|
|
|
|
|
activityindicator_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
activityindicator_ios.dependency "#{s.name}/Core_ios"
|
|
|
|
activityindicator_ios.source_files = ["#{ios_root}/#{components_dir}/ActivityIndicator/**/*.{swift,h}"]
|
2021-03-04 00:37:47 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'BadgeField_ios' do |badgefield_ios|
|
|
|
|
badgefield_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
badgefield_ios.dependency "#{s.name}/Label_ios"
|
|
|
|
badgefield_ios.source_files = ["#{ios_root}/#{components_dir}/Badge Field/**/*.{swift,h}"]
|
2021-03-04 00:37:47 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'BarButtonItems_ios' do |barbuttonitems_ios|
|
|
|
|
barbuttonitems_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
barbuttonitems_ios.dependency "#{s.name}/Core_ios"
|
|
|
|
barbuttonitems_ios.preserve_paths = ["#{ios_root}/#{components_dir}/BarButtonItems/BarButtonItems.resources.xcfilelist"]
|
|
|
|
barbuttonitems_ios.source_files = ["#{ios_root}/#{components_dir}/BarButtonItems/**/*.{swift,h}"]
|
2021-03-04 00:37:47 +03:00
|
|
|
end
|
|
|
|
|
2021-05-19 03:32:10 +03:00
|
|
|
s.subspec 'BottomCommanding_ios' do |bottomcommanding_ios|
|
|
|
|
bottomcommanding_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
bottomcommanding_ios.dependency "#{s.name}/BottomSheet_ios"
|
|
|
|
bottomcommanding_ios.dependency "#{s.name}/OtherCells_ios"
|
|
|
|
bottomcommanding_ios.dependency "#{s.name}/Separator_ios"
|
|
|
|
bottomcommanding_ios.dependency "#{s.name}/TabBar_ios"
|
|
|
|
bottomcommanding_ios.dependency "#{s.name}/TableView_ios"
|
|
|
|
bottomcommanding_ios.preserve_paths = ["#{ios_root}/#{components_dir}/Bottom Commanding/BottomCommanding.resources.xcfilelist"]
|
|
|
|
bottomcommanding_ios.source_files = ["#{ios_root}/#{components_dir}/Bottom Commanding/**/*.{swift,h}"]
|
2021-05-19 03:32:10 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'BottomSheet_ios' do |bottomsheet_ios|
|
|
|
|
bottomsheet_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
bottomsheet_ios.dependency "#{s.name}/Obscurable_ios"
|
|
|
|
bottomsheet_ios.dependency "#{s.name}/ResizingHandleView_ios"
|
|
|
|
bottomsheet_ios.source_files = ["#{ios_root}/#{components_dir}/Bottom Sheet/**/*.{swift,h}"]
|
2021-05-19 03:32:10 +03:00
|
|
|
end
|
|
|
|
|
2021-03-04 00:37:47 +03:00
|
|
|
s.subspec 'Button_ios' do |button_ios|
|
|
|
|
button_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
button_ios.dependency "#{s.name}/Core_ios"
|
|
|
|
button_ios.source_files = ["#{ios_root}/#{components_dir}/Button/**/*.{swift,h}"]
|
2021-03-04 00:37:47 +03:00
|
|
|
end
|
|
|
|
|
2020-10-19 18:27:40 +03:00
|
|
|
s.subspec 'Calendar_ios' do |calendar_ios|
|
|
|
|
calendar_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
calendar_ios.dependency "#{s.name}/BarButtonItems_ios"
|
|
|
|
calendar_ios.dependency "#{s.name}/DotView_ios"
|
|
|
|
calendar_ios.dependency "#{s.name}/Label_ios"
|
|
|
|
calendar_ios.dependency "#{s.name}/Presenters_ios"
|
|
|
|
calendar_ios.dependency "#{s.name}/SegmentedControl_ios"
|
|
|
|
calendar_ios.dependency "#{s.name}/Separator_ios"
|
|
|
|
calendar_ios.dependency "#{s.name}/TwoLineTitleView_ios"
|
|
|
|
calendar_ios.source_files = ["#{ios_root}/#{components_dir}/Calendar/**/*.{swift,h}",
|
|
|
|
"#{ios_root}/#{components_dir}/Date Time Pickers/**/*.{swift,h}"]
|
2020-10-19 18:27:40 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'Card_ios' do |card_ios|
|
|
|
|
card_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
card_ios.dependency "#{s.name}/Label_ios"
|
|
|
|
card_ios.source_files = ["#{ios_root}/#{components_dir}/Card/**/*.{swift,h}"]
|
2020-10-19 18:27:40 +03:00
|
|
|
end
|
|
|
|
|
2021-08-05 19:01:50 +03:00
|
|
|
s.subspec 'CardNudge_ios' do |cardnudge_ios|
|
|
|
|
cardnudge_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
cardnudge_ios.dependency "#{s.name}/Core_ios"
|
|
|
|
cardnudge_ios.source_files = ["#{ios_root}/#{components_dir}/Card Nudge/**/*.{swift,h}"]
|
2021-08-05 19:01:50 +03:00
|
|
|
end
|
|
|
|
|
2021-02-11 00:35:18 +03:00
|
|
|
s.subspec 'CommandBar_ios' do |commandbar_ios|
|
|
|
|
commandbar_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
commandbar_ios.dependency "#{s.name}/Core_ios"
|
|
|
|
commandbar_ios.source_files = ["#{ios_root}/#{components_dir}/Command Bar/**/*.{swift,h}"]
|
2021-02-11 00:35:18 +03:00
|
|
|
end
|
|
|
|
|
2020-10-19 18:27:40 +03:00
|
|
|
s.subspec 'Core_ios' do |core_ios|
|
|
|
|
core_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
core_ios.resource_bundle = { 'FluentUIResources-ios' => ["#{ios_root}/#{resources_dir}/**/*.{storyboard,xib,xcassets,strings,stringsdict}"] }
|
2021-03-30 21:04:51 +03:00
|
|
|
core_ios.script_phase = { :name => 'Optimize resource bundle',
|
2021-10-26 21:58:29 +03:00
|
|
|
:script => 'REMOVE_UNUSED_RESOURCES_SCRIPT_PATH=${PODS_TARGET_SRCROOT}/scripts/removeUnusedResourcesFromAssets.swift
|
2021-03-30 21:04:51 +03:00
|
|
|
|
2021-10-26 21:58:29 +03:00
|
|
|
# Executes only once per "pod install" (if the script file exists)
|
|
|
|
if [ -f ${REMOVE_UNUSED_RESOURCES_SCRIPT_PATH} ]; then
|
|
|
|
echo "=== Removing unused resources from FluentUI-ios.xcassets ==="
|
2021-03-30 21:04:51 +03:00
|
|
|
|
2021-10-26 21:58:29 +03:00
|
|
|
XCODEBUILDPARAMS="-quiet "
|
2021-03-30 21:04:51 +03:00
|
|
|
|
2021-10-26 21:58:29 +03:00
|
|
|
if [ "${CONFIGURATION}" = "Debug" ]; then
|
|
|
|
CONDITIONALCOMPILATIONFLAGS="-D VERBOSE_OUTPUT"
|
|
|
|
XCODEBUILDPARAMS=""
|
|
|
|
fi
|
2021-03-30 21:04:51 +03:00
|
|
|
|
2024-09-26 02:50:54 +03:00
|
|
|
xcrun --sdk macosx swift ${CONDITIONALCOMPILATIONFLAGS} ${REMOVE_UNUSED_RESOURCES_SCRIPT_PATH} ${LOCROOT}/MicrosoftFluentUI/Sources/FluentUI_iOS/Resources/FluentUI-ios.xcassets ${LOCROOT}/MicrosoftFluentUI/Sources/FluentUI_iOS
|
2021-10-26 21:58:29 +03:00
|
|
|
|
|
|
|
echo "=== Rebuilding resource bundle target ==="
|
2024-09-26 02:50:54 +03:00
|
|
|
xcodebuild ${XCODEBUILDPARAMS} DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING=1 -project ${PROJECT_FILE_PATH} -target "MicrosoftFluentUI-FluentUIResources-ios" -sdk ${PLATFORM_NAME} -configuration ${CONFIGURATION} ARCHS="${ARCHS}" CONFIGURATION_BUILD_DIR="${CONFIGURATION_BUILD_dir}/" BUILD_ROOT="${BUILD_ROOT}" BUILT_PRODUCTS_DIR="${BUILT_PRODUCTS_dir}/" ${ACTION}
|
2021-10-26 21:58:29 +03:00
|
|
|
|
|
|
|
# Deletes the script to ensure it will not be needlessly executed more than once after each "pod install"
|
|
|
|
rm ${REMOVE_UNUSED_RESOURCES_SCRIPT_PATH}
|
|
|
|
|
|
|
|
fi', :execution_position => :before_compile }
|
2024-09-26 02:50:54 +03:00
|
|
|
core_ios.preserve_paths = ["#{ios_root}/#{core_dir}/Core.resources.xcfilelist",
|
2021-03-30 21:04:51 +03:00
|
|
|
"scripts/removeUnusedResourcesFromAssets.swift"]
|
2024-09-26 02:50:54 +03:00
|
|
|
core_ios.source_files = ["#{ios_root}/#{core_dir}/**/*.{swift,h}"]
|
2020-10-19 18:27:40 +03:00
|
|
|
end
|
|
|
|
|
2021-03-04 00:37:47 +03:00
|
|
|
s.subspec 'DotView_ios' do |dotview_ios|
|
|
|
|
dotview_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
dotview_ios.dependency "#{s.name}/Core_ios"
|
|
|
|
dotview_ios.source_files = ["#{ios_root}/#{components_dir}/DotView/**/*.{swift,h}"]
|
2021-03-04 00:37:47 +03:00
|
|
|
end
|
|
|
|
|
2020-10-19 18:27:40 +03:00
|
|
|
s.subspec 'Drawer_ios' do |drawer_ios|
|
|
|
|
drawer_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
drawer_ios.dependency "#{s.name}/Obscurable_ios"
|
|
|
|
drawer_ios.dependency "#{s.name}/ResizingHandleView_ios"
|
|
|
|
drawer_ios.dependency "#{s.name}/Separator_ios"
|
|
|
|
drawer_ios.dependency "#{s.name}/TouchForwardingView_ios"
|
|
|
|
drawer_ios.source_files = ["#{ios_root}/#{components_dir}/Drawer/**/*.{swift,h}"]
|
2020-10-19 18:27:40 +03:00
|
|
|
end
|
|
|
|
|
2021-03-04 00:37:47 +03:00
|
|
|
s.subspec 'EasyTapButton_ios' do |easytapbutton_ios|
|
|
|
|
easytapbutton_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
easytapbutton_ios.dependency "#{s.name}/Core_ios"
|
|
|
|
easytapbutton_ios.source_files = ["#{ios_root}/#{components_dir}/EasyTapButton/**/*.{swift,h}"]
|
2021-03-04 00:37:47 +03:00
|
|
|
end
|
|
|
|
|
2020-10-19 18:27:40 +03:00
|
|
|
s.subspec 'HUD_ios' do |hud_ios|
|
|
|
|
hud_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
hud_ios.dependency "#{s.name}/ActivityIndicator_ios"
|
|
|
|
hud_ios.dependency "#{s.name}/Label_ios"
|
|
|
|
hud_ios.dependency "#{s.name}/TouchForwardingView_ios"
|
|
|
|
hud_ios.preserve_paths = ["#{ios_root}/#{components_dir}/HUD/HUD.resources.xcfilelist"]
|
|
|
|
hud_ios.source_files = ["#{ios_root}/#{components_dir}/HUD/**/*.{swift,h}"]
|
2020-10-19 18:27:40 +03:00
|
|
|
end
|
|
|
|
|
2021-03-04 00:37:47 +03:00
|
|
|
s.subspec 'IndeterminateProgressBar_ios' do |indeterminateprogressbar_ios|
|
|
|
|
indeterminateprogressbar_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
indeterminateprogressbar_ios.dependency "#{s.name}/Core_ios"
|
|
|
|
indeterminateprogressbar_ios.source_files = ["#{ios_root}/#{components_dir}/IndeterminateProgressBar/**/*.{swift,h}"]
|
2021-03-04 00:37:47 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'Label_ios' do |label_ios|
|
|
|
|
label_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
label_ios.dependency "#{s.name}/Core_ios"
|
|
|
|
label_ios.source_files = ["#{ios_root}/#{components_dir}/Label/**/*.{swift,h}"]
|
2021-03-04 00:37:47 +03:00
|
|
|
end
|
|
|
|
|
2024-06-21 23:10:22 +03:00
|
|
|
s.subspec 'ListItem_ios' do |listitem_ios|
|
|
|
|
listitem_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
listitem_ios.dependency "#{s.name}/OtherCells_ios"
|
|
|
|
listitem_ios.dependency "#{s.name}/Separator_ios"
|
|
|
|
listitem_ios.dependency "#{s.name}/TableViewListShared_ios"
|
|
|
|
listitem_ios.source_files = ["#{ios_root}/#{components_dir}/List/**/*.swift"]
|
2024-06-21 23:10:22 +03:00
|
|
|
end
|
|
|
|
|
2023-04-07 23:31:09 +03:00
|
|
|
s.subspec 'MultilineCommandBar_ios' do |multilinecommandbar_ios|
|
|
|
|
multilinecommandbar_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
multilinecommandbar_ios.dependency "#{s.name}/BottomSheet_ios"
|
|
|
|
multilinecommandbar_ios.dependency "#{s.name}/CommandBar_ios"
|
|
|
|
multilinecommandbar_ios.dependency "#{s.name}/Core_ios"
|
|
|
|
multilinecommandbar_ios.source_files = ["#{ios_root}/#{components_dir}/MultilineCommandBar/**/*.{swift,h}"]
|
2023-04-07 23:31:09 +03:00
|
|
|
end
|
|
|
|
|
2021-03-04 00:37:47 +03:00
|
|
|
s.subspec 'Navigation_ios' do |navigation_ios|
|
|
|
|
navigation_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
navigation_ios.dependency "#{s.name}/ActivityIndicator_ios"
|
|
|
|
navigation_ios.dependency "#{s.name}/Avatar_ios"
|
|
|
|
navigation_ios.dependency "#{s.name}/Separator_ios"
|
|
|
|
navigation_ios.dependency "#{s.name}/TwoLineTitleView_ios"
|
|
|
|
navigation_ios.preserve_paths = ["#{ios_root}/#{components_dir}/Navigation/Navigation.resources.xcfilelist"]
|
|
|
|
navigation_ios.source_files = ["#{ios_root}/#{components_dir}/Navigation/**/*.{swift,h}"]
|
2021-03-04 00:37:47 +03:00
|
|
|
end
|
|
|
|
|
2020-10-19 18:27:40 +03:00
|
|
|
s.subspec 'Notification_ios' do |notification_ios|
|
|
|
|
notification_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
notification_ios.dependency "#{s.name}/Obscurable_ios"
|
|
|
|
notification_ios.dependency "#{s.name}/Label_ios"
|
|
|
|
notification_ios.preserve_paths = ["#{ios_root}/#{components_dir}/Notification/Notification.resources.xcfilelist"]
|
|
|
|
notification_ios.source_files = ["#{ios_root}/#{components_dir}/Notification/**/*.{swift,h}"]
|
2020-10-19 18:27:40 +03:00
|
|
|
end
|
|
|
|
|
2021-03-04 00:37:47 +03:00
|
|
|
s.subspec 'Obscurable_ios' do |obscurable_ios|
|
|
|
|
obscurable_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
obscurable_ios.dependency "#{s.name}/Core_ios"
|
|
|
|
obscurable_ios.source_files = ["#{ios_root}/#{components_dir}/Obscurable/**/*.{swift,h}"]
|
2021-03-04 00:37:47 +03:00
|
|
|
end
|
|
|
|
|
2021-03-04 02:42:51 +03:00
|
|
|
s.subspec 'OtherCells_ios' do |othercells_ios|
|
|
|
|
othercells_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
othercells_ios.dependency "#{s.name}/ActivityIndicator_ios"
|
|
|
|
othercells_ios.dependency "#{s.name}/TableView_ios"
|
|
|
|
othercells_ios.preserve_paths = ["#{ios_root}/#{components_dir}/Other Cells/OtherCells.resources.xcfilelist"]
|
|
|
|
othercells_ios.source_files = ["#{ios_root}/#{components_dir}/Other Cells/**/*.{swift,h}"]
|
2021-03-04 02:42:51 +03:00
|
|
|
end
|
|
|
|
|
2021-03-04 00:37:47 +03:00
|
|
|
s.subspec 'PeoplePicker_ios' do |peoplepicker_ios|
|
|
|
|
peoplepicker_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
peoplepicker_ios.dependency "#{s.name}/Avatar_ios"
|
|
|
|
peoplepicker_ios.dependency "#{s.name}/BadgeField_ios"
|
|
|
|
peoplepicker_ios.dependency "#{s.name}/Separator_ios"
|
|
|
|
peoplepicker_ios.dependency "#{s.name}/OtherCells_ios"
|
|
|
|
peoplepicker_ios.source_files = ["#{ios_root}/#{components_dir}/People Picker/**/*.{swift,h}"]
|
2021-03-04 00:37:47 +03:00
|
|
|
end
|
|
|
|
|
2021-08-20 07:19:08 +03:00
|
|
|
s.subspec 'PersonaButton_ios' do |personaButton_ios|
|
|
|
|
personaButton_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
personaButton_ios.dependency "#{s.name}/Avatar_ios"
|
|
|
|
personaButton_ios.source_files = ["#{ios_root}/#{components_dir}/PersonaButton/**/*.{swift,h}"]
|
2021-08-20 07:19:08 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'PersonaButtonCarousel_ios' do |personaButtonCarousel_ios|
|
|
|
|
personaButtonCarousel_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
personaButtonCarousel_ios.dependency "#{s.name}/PersonaButton_ios"
|
|
|
|
personaButtonCarousel_ios.source_files = ["#{ios_root}/#{components_dir}/PersonaButtonCarousel/**/*.{swift,h}"]
|
2021-08-20 07:19:08 +03:00
|
|
|
end
|
|
|
|
|
2020-10-19 18:27:40 +03:00
|
|
|
s.subspec 'PillButtonBar_ios' do |pillbuttonbar_ios|
|
|
|
|
pillbuttonbar_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
pillbuttonbar_ios.dependency "#{s.name}/Core_ios"
|
|
|
|
pillbuttonbar_ios.source_files = ["#{ios_root}/#{components_dir}/Pill Button Bar/**/*.{swift,h}"]
|
2020-10-19 18:27:40 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'PopupMenu_ios' do |popupmenu_ios|
|
|
|
|
popupmenu_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
popupmenu_ios.dependency "#{s.name}/Drawer_ios"
|
|
|
|
popupmenu_ios.dependency "#{s.name}/Label_ios"
|
|
|
|
popupmenu_ios.dependency "#{s.name}/Separator_ios"
|
|
|
|
popupmenu_ios.dependency "#{s.name}/TableView_ios"
|
|
|
|
popupmenu_ios.source_files = ["#{ios_root}/#{components_dir}/Popup Menu/**/*.{swift,h}"]
|
2020-10-19 18:27:40 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'Presenters_ios' do |presenters_ios|
|
|
|
|
presenters_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
presenters_ios.dependency "#{s.name}/Obscurable_ios"
|
|
|
|
presenters_ios.source_files = ["#{ios_root}/#{components_dir}/Presenters/**/*.{swift,h}"]
|
2020-10-19 18:27:40 +03:00
|
|
|
end
|
2021-03-03 01:13:49 +03:00
|
|
|
|
2021-03-04 00:37:47 +03:00
|
|
|
s.subspec 'ResizingHandleView_ios' do |resizinghandleview_ios|
|
|
|
|
resizinghandleview_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
resizinghandleview_ios.dependency "#{s.name}/Core_ios"
|
|
|
|
resizinghandleview_ios.source_files = ["#{ios_root}/#{components_dir}/ResizingHandleView/**/*.{swift,h}"]
|
2021-03-04 00:37:47 +03:00
|
|
|
end
|
|
|
|
|
2021-03-02 22:58:13 +03:00
|
|
|
s.subspec 'SegmentedControl_ios' do |segmentedcontrol_ios|
|
2021-03-03 01:13:49 +03:00
|
|
|
segmentedcontrol_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
segmentedcontrol_ios.dependency "#{s.name}/Separator_ios"
|
|
|
|
segmentedcontrol_ios.source_files = ["#{ios_root}/#{components_dir}/SegmentedControl/**/*.{swift,h}"]
|
2021-03-02 22:58:13 +03:00
|
|
|
end
|
2020-10-19 18:27:40 +03:00
|
|
|
|
2022-12-08 02:02:53 +03:00
|
|
|
s.subspec 'Separator_ios' do |separator_ios|
|
|
|
|
separator_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
separator_ios.dependency "#{s.name}/Core_ios"
|
|
|
|
separator_ios.source_files = ["#{ios_root}/#{components_dir}/Separator/**/*.{swift,h}"]
|
2022-12-08 02:02:53 +03:00
|
|
|
end
|
|
|
|
|
2020-10-19 18:27:40 +03:00
|
|
|
s.subspec 'Shimmer_ios' do |shimmer_ios|
|
|
|
|
shimmer_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
shimmer_ios.dependency "#{s.name}/Core_ios"
|
|
|
|
shimmer_ios.source_files = ["#{ios_root}/#{components_dir}/Shimmer/**/*.{swift,h}"]
|
2020-10-19 18:27:40 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'TabBar_ios' do |tabbar_ios|
|
|
|
|
tabbar_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
tabbar_ios.dependency "#{s.name}/Avatar_ios"
|
|
|
|
tabbar_ios.dependency "#{s.name}/Label_ios"
|
|
|
|
tabbar_ios.dependency "#{s.name}/Separator_ios"
|
|
|
|
tabbar_ios.source_files = ["#{ios_root}/#{components_dir}/Tab Bar/**/*.{swift,h}"]
|
2020-10-19 18:27:40 +03:00
|
|
|
end
|
|
|
|
|
2021-03-04 00:37:47 +03:00
|
|
|
s.subspec 'TableView_ios' do |tableview_ios|
|
|
|
|
tableview_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
tableview_ios.dependency "#{s.name}/Label_ios"
|
|
|
|
tableview_ios.dependency "#{s.name}/Separator_ios"
|
|
|
|
tableview_ios.dependency "#{s.name}/TableViewListShared_ios"
|
|
|
|
tableview_ios.preserve_paths = ["#{ios_root}/#{components_dir}/Table View/TableView.resources.xcfilelist"]
|
|
|
|
tableview_ios.source_files = ["#{ios_root}/#{components_dir}/Table View/**/*.{swift,h}"]
|
2021-03-04 00:37:47 +03:00
|
|
|
end
|
|
|
|
|
2024-06-21 23:10:22 +03:00
|
|
|
s.subspec 'TableViewListShared_ios' do |tableviewlistshared_ios|
|
|
|
|
tableviewlistshared_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
tableviewlistshared_ios.dependency "#{s.name}/Core_ios"
|
|
|
|
tableviewlistshared_ios.preserve_paths = ["#{ios_root}/#{components_dir}/TableViewListShared/TableViewListShared.resources.xcfilelist"]
|
|
|
|
tableviewlistshared_ios.source_files = ["#{ios_root}/#{components_dir}/TableViewListShared/**/*.{swift,h}"]
|
2024-06-21 23:10:22 +03:00
|
|
|
end
|
|
|
|
|
2023-02-24 03:32:44 +03:00
|
|
|
s.subspec 'TextField_ios' do |textfield_ios|
|
|
|
|
textfield_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
textfield_ios.dependency "#{s.name}/Button_ios"
|
|
|
|
textfield_ios.dependency "#{s.name}/Label_ios"
|
|
|
|
textfield_ios.dependency "#{s.name}/Separator_ios"
|
|
|
|
textfield_ios.preserve_paths = ["#{ios_root}/#{components_dir}/TextField/TextField.resources.xcfilelist"]
|
|
|
|
textfield_ios.source_files = ["#{ios_root}/#{components_dir}/TextField/**/*.{swift,h}"]
|
2023-02-24 03:32:44 +03:00
|
|
|
end
|
|
|
|
|
2020-10-19 18:27:40 +03:00
|
|
|
s.subspec 'Tooltip_ios' do |tooltip_ios|
|
|
|
|
tooltip_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
tooltip_ios.dependency "#{s.name}/Label_ios"
|
|
|
|
tooltip_ios.dependency "#{s.name}/TouchForwardingView_ios"
|
|
|
|
tooltip_ios.preserve_paths = ["#{ios_root}/#{components_dir}/Tooltip/Tooltip.resources.xcfilelist"]
|
|
|
|
tooltip_ios.source_files = ["#{ios_root}/#{components_dir}/Tooltip/**/*.{swift,h}"]
|
2020-10-19 18:27:40 +03:00
|
|
|
end
|
|
|
|
|
2021-03-04 00:37:47 +03:00
|
|
|
s.subspec 'TouchForwardingView_ios' do |touchforwardingview_ios|
|
|
|
|
touchforwardingview_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
touchforwardingview_ios.dependency "#{s.name}/Core_ios"
|
|
|
|
touchforwardingview_ios.source_files = ["#{ios_root}/#{components_dir}/TouchForwardingView/**/*.{swift,h}"]
|
2021-03-04 00:37:47 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'TwoLineTitleView_ios' do |twoLinetitleview_ios|
|
|
|
|
twoLinetitleview_ios.platform = :ios
|
2024-09-26 02:50:54 +03:00
|
|
|
twoLinetitleview_ios.dependency "#{s.name}/EasyTapButton_ios"
|
|
|
|
twoLinetitleview_ios.dependency "#{s.name}/Label_ios"
|
|
|
|
twoLinetitleview_ios.preserve_paths = ["#{ios_root}/#{components_dir}/TwoLineTitleView/TwoLineTitleView.resources.xcfilelist"]
|
|
|
|
twoLinetitleview_ios.source_files = ["#{ios_root}/#{components_dir}/TwoLineTitleView/**/*.{swift,h}"]
|
2020-10-19 18:27:40 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
# Mac
|
|
|
|
|
2023-11-14 21:04:22 +03:00
|
|
|
s.osx.deployment_target = "12"
|
2020-10-19 18:27:40 +03:00
|
|
|
|
2021-03-06 05:32:52 +03:00
|
|
|
s.subspec 'Appearance_mac' do |appearance_mac|
|
|
|
|
appearance_mac.platform = :osx
|
2024-09-26 02:50:54 +03:00
|
|
|
appearance_mac.source_files = ["#{macos_root}/#{components_dir}/Appearance/**/*.{swift,h}"]
|
2021-03-06 05:32:52 +03:00
|
|
|
end
|
|
|
|
|
2020-10-19 18:27:40 +03:00
|
|
|
s.subspec 'AvatarView_mac' do |avatarview_mac|
|
|
|
|
avatarview_mac.platform = :osx
|
2024-09-26 02:50:54 +03:00
|
|
|
avatarview_mac.dependency "#{s.name}/Core_mac"
|
|
|
|
avatarview_mac.dependency "#{s.name}/DynamicColor_mac"
|
|
|
|
avatarview_mac.source_files = ["#{macos_root}/#{components_dir}/AvatarView/**/*.{swift,h}"]
|
2020-10-19 18:27:40 +03:00
|
|
|
end
|
|
|
|
|
2021-08-13 02:33:02 +03:00
|
|
|
s.subspec 'BadgeView_mac' do |badgeview_mac|
|
|
|
|
badgeview_mac.platform = :osx
|
2024-09-26 02:50:54 +03:00
|
|
|
badgeview_mac.dependency "#{s.name}/Core_mac"
|
|
|
|
badgeview_mac.dependency "#{s.name}/DynamicColor_mac"
|
|
|
|
badgeview_mac.source_files = ["#{macos_root}/#{components_dir}/Badge/**/*.{swift,h}"]
|
2021-08-13 02:33:02 +03:00
|
|
|
end
|
|
|
|
|
2020-10-19 18:27:40 +03:00
|
|
|
s.subspec 'Button_mac' do |button_mac|
|
|
|
|
button_mac.platform = :osx
|
2024-09-26 02:50:54 +03:00
|
|
|
button_mac.dependency "#{s.name}/Core_mac"
|
|
|
|
button_mac.source_files = ["#{macos_root}/#{components_dir}/Button/**/*.{swift,h}"]
|
2020-10-19 18:27:40 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'Core_mac' do |core_mac|
|
|
|
|
core_mac.platform = :osx
|
2024-09-26 02:50:54 +03:00
|
|
|
core_mac.resource_bundle = { 'FluentUIResources-macos' => ["#{macos_root}/#{resources_dir}/**/*.{storyboard,xib,xcassets,strings,stringsdict}"] }
|
|
|
|
core_mac.source_files = ["#{macos_root}/#{core_dir}/**/*.{swift,h}"]
|
2020-10-19 18:27:40 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'DatePicker_mac' do |datepicker_mac|
|
|
|
|
datepicker_mac.platform = :osx
|
2024-09-26 02:50:54 +03:00
|
|
|
datepicker_mac.dependency "#{s.name}/Core_mac"
|
|
|
|
datepicker_mac.dependency "#{s.name}/Appearance_mac"
|
|
|
|
datepicker_mac.source_files = ["#{macos_root}/#{components_dir}/DatePicker/**/*.{swift,h}"]
|
2020-10-19 18:27:40 +03:00
|
|
|
end
|
|
|
|
|
2021-03-06 05:32:52 +03:00
|
|
|
s.subspec 'DynamicColor_mac' do |dynamiccolor_mac|
|
|
|
|
dynamiccolor_mac.platform = :osx
|
2024-09-26 02:50:54 +03:00
|
|
|
dynamiccolor_mac.dependency "#{s.name}/Appearance_mac"
|
|
|
|
dynamiccolor_mac.source_files = ["#{macos_root}/#{components_dir}/DynamicColor/**/*.{swift,h}"]
|
2021-03-06 05:32:52 +03:00
|
|
|
end
|
|
|
|
|
2020-10-19 18:27:40 +03:00
|
|
|
s.subspec 'Link_mac' do |link_mac|
|
|
|
|
link_mac.platform = :osx
|
2024-09-26 02:50:54 +03:00
|
|
|
link_mac.dependency "#{s.name}/Core_mac"
|
|
|
|
link_mac.source_files = ["#{macos_root}/#{components_dir}/Link/**/*.{swift,h}"]
|
2020-10-19 18:27:40 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'Separator_mac' do |separator_mac|
|
|
|
|
separator_mac.platform = :osx
|
2024-09-26 02:50:54 +03:00
|
|
|
separator_mac.dependency "#{s.name}/Core_mac"
|
|
|
|
separator_mac.source_files = ["#{macos_root}/#{components_dir}/Separator/**/*.{swift,h}"]
|
2020-10-19 18:27:40 +03:00
|
|
|
end
|
2020-10-13 01:13:28 +03:00
|
|
|
|
2020-04-10 05:05:07 +03:00
|
|
|
end
|