-
-
Notifications
You must be signed in to change notification settings - Fork 140
/
react-native-admob-native-ads.podspec
executable file
·31 lines (27 loc) · 1.52 KB
/
react-native-admob-native-ads.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
29
30
31
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-native-ads'
s.version = version
s.summary = 'A simple and robust library for creating & displaying Admob Native Ads in your React Native App using Native Views!'
s.homepage = 'https://github.com/ammarahm-ed/react-native-admob-native-ads'
s.license = package['license']
s.author = 'Ammar Ahmed <[email protected]>'
s.platforms = { :ios => '9.0', :tvos => '9.2' }
s.source = { :git => 'https://github.com/ammarahm-ed/react-native-admob-native-ads.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/**" '\
'"$(PODS_ROOT)/FBAudienceNetwork/**" '\
'"$(PODS_ROOT)/GoogleMobileAdsMediationFacebook/**" '
}
s.dependency 'React-Core'
s.dependency 'Google-Mobile-Ads-SDK'
end