Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Alternate way to specify different source files for each platform

  • Loading branch information...
commit e39f292c248564b486a232bf291da81fbf883a7d 1 parent 8fe89cb
Russ Egan ansel1 authored

Showing 1 changed file with 4 additions and 9 deletions. Show diff stats Hide diff stats

  1. +4 9 pubnub-api/3.4/pubnub-api.podspec
13 pubnub-api/3.4/pubnub-api.podspec
... ... @@ -1,23 +1,18 @@
1 1 Pod::Spec.new do |s|
2 2 s.name = 'pubnub-api'
3   - s.osx.deployment_target = '10.7'
4   - s.ios.deployment_target = '5.0'
5 3 s.version = '3.4'
6 4 s.summary = 'PubNub makes Real-time Real Easy with a Simple Communications API.'
7 5 s.homepage = 'https://github.com/pubnub/objective-c'
8 6 s.author = { 'PubNub' => 'hello@pubnub.com' }
9 7 s.source = { :git => 'https://github.com/safe-net/objective-c.git', :commit => 'd5519a6a9f7c49bdc3981c11175920cd5c0f34af' }
10 8 s.license = 'MIT'
11   - s.source_files = FileList.new('iOS/3.4/pubnub/libs/PubNub/**/*.{h,m}') do |fl|
12   - fl.exclude('**/UIDevice+PNAdditions*')
13   - end
14 9 s.requires_arc = true
15 10 s.frameworks = 'CFNetwork','SystemConfiguration'
  11 + s.osx.deployment_target = '10.7'
  12 + s.osx.source_files = FileList.new('iOS/3.4/pubnub/libs/PubNub/**/*.{h,m}').exclude('**/UIDevice+PNAdditions*')
  13 + s.ios.deployment_target = '5.0'
  14 + s.ios.source_files = 'iOS/3.4/pubnub/libs/PubNub/**/*.{h,m}'
16 15 s.prefix_header_contents = '#import "PNImports.h"'
17 16 s.dependency 'JSONKit', '~> 1.4.0'
18   - s.subspec 'UIAdditions' do |ui|
19   - s.platform = :ios, '5.0'
20   - ui.source_files = '**/UIDevice+PNAdditions*'
21   - end
22 17 end
23 18

0 comments on commit e39f292

Please sign in to comment.
Something went wrong with that request. Please try again.