Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Extension compatibility in Podspec #991

Merged
merged 1 commit into from Mar 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 13 additions & 2 deletions SVProgressHUD.podspec
Expand Up @@ -11,8 +11,19 @@ Pod::Spec.new do |s|

s.description = 'SVProgressHUD is a clean and easy-to-use HUD meant to display the progress of an ongoing task on iOS and tvOS. The success and error icons are from Freepik from Flaticon and are licensed under Creative Commons BY 3.0.'

s.source_files = 'SVProgressHUD/*.{h,m}'
s.framework = 'QuartzCore'
s.resources = 'SVProgressHUD/SVProgressHUD.bundle'
s.requires_arc = true

s.default_subspec = 'Core'

s.subspec 'Core' do |core|
core.source_files = 'SVProgressHUD/*.{h,m}'
core.resources = 'SVProgressHUD/SVProgressHUD.bundle'
end

s.subspec 'AppExtension' do |ext|
ext.source_files = 'SVProgressHUD/*.{h,m}'
ext.resources = 'SVProgressHUD/SVProgressHUD.bundle'
ext.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'SV_APP_EXTENSIONS=1' }
end
end