forked from sbugert/react-native-admob
-
Notifications
You must be signed in to change notification settings - Fork 0
/
react-native-admob.podspec
28 lines (24 loc) · 1.24 KB
/
react-native-admob.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
version = package['version']
Pod::Spec.new do |s|
s.name = 'react-native-admob'
s.version = version
s.summary = 'A react-native component for Google AdMob banners'
s.homepage = 'https://github.com/sbugert/react-native-admob'
s.license = package['license']
s.author = 'Simon Bugert <[email protected]>, Koen Punt <[email protected]>'
s.platforms = { :ios => '9.0', :tvos => '9.2' }
s.source = { :git => 'https://github.com/sbugert/react-native-admob.git', :tag => "v#{version}" }
s.source_files = 'ios/*.{h,m}'
# We can't add the Google-Mobile-Ads-SDK as a dependency, as it would prevent
# this library to be used with `use_frameworks!`.
# So instead we add the default location of the framework to the framework
# search paths, and we rely on consumers of this library to add
# Google-Mobile-Ads-SDK as a direct dependency.
s.weak_frameworks = 'GoogleMobileAds'
s.pod_target_xcconfig = {
'FRAMEWORK_SEARCH_PATHS' => '"$(PODS_ROOT)/Google-Mobile-Ads-SDK/Frameworks/**"',
}
s.dependency 'React'
end