Skip to content

Commit

Permalink
Updated podspec to include adSupport target as well (aksonov#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptomasroos authored and cbrevik committed Jan 18, 2017
1 parent bd71e6f commit 10d10dd
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions react-native-google-analytics-bridge.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,24 @@ Pod::Spec.new do |s|
s.platform = :ios, "7.0"

s.source = { :git => "https://github.com/idehub/react-native-google-analytics-bridge", :tag => "#{s.version}" }

s.dependency "React"

s.frameworks = 'CoreData', 'SystemConfiguration'
s.libraries = 'z', 'sqlite3.0','GoogleAnalyticsServices','AdIdAccess'

s.vendored_libraries =
galib_root+'/libGoogleAnalyticsServices.a',
galib_root+'/libAdIdAccess.a'

s.source_files =
galib_root+'/*.{h}',
ios_root+'/RCTGoogleAnalyticsBridge/*.{h,m}'

s.default_subspec = 'Core'

s.subspec 'Core' do |ss|
ss.dependency 'React'
ss.frameworks = 'CoreData', 'SystemConfiguration'
ss.libraries = 'z', 'sqlite3.0','GoogleAnalyticsServices','AdIdAccess'

ss.vendored_libraries =
galib_root+'/libGoogleAnalyticsServices.a',
galib_root+'/libAdIdAccess.a'

ss.source_files =
galib_root+'/*.{h}',
ios_root+'/RCTGoogleAnalyticsBridge/*.{h,m}'
end

s.subspec 'adSupport' do |ss|
ss.dependency 'react-native-google-analytics-bridge/Core'
ss.frameworks = 'AdSupport'
end
end

0 comments on commit 10d10dd

Please sign in to comment.