From 4e7d9cd26ee5cb7908ed54fbc77006414721ffba Mon Sep 17 00:00:00 2001 From: TravelC Date: Tue, 18 Feb 2020 10:50:08 +0800 Subject: [PATCH] Support App Extension https://github.com/SVProgressHUD/SVProgressHUD/pull/991 https://github.com/tobihagemann/SVProgressHUD/blob/2.2.x/SVProgressHUD.podspec --- SVProgressHUD.podspec | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/SVProgressHUD.podspec b/SVProgressHUD.podspec index 09226b22..fdb52011 100644 --- a/SVProgressHUD.podspec +++ b/SVProgressHUD.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'SVProgressHUD' - s.version = '2.2.6' - s.ios.deployment_target = '8.3' + s.version = '2.2.5' + s.ios.deployment_target = '8.0' s.tvos.deployment_target = '9.0' s.license = { :type => 'MIT', :file => 'LICENSE' } s.summary = 'A clean and lightweight progress HUD for your iOS and tvOS app.' @@ -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