-
Notifications
You must be signed in to change notification settings - Fork 166
/
react-native-fbsdk-next.podspec
34 lines (29 loc) · 1.15 KB
/
react-native-fbsdk-next.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
32
33
34
require 'json'
package = JSON.parse(File.read(File.join(__dir__, './', 'package.json')))
FBSDKVersion = "17.4"
Pod::Spec.new do |s|
s.name = package['name']
s.version = package['version']
s.summary = package['description']
s.requires_arc = true
s.author = { 'thebergamo' => '[email protected]' }
s.license = package['license']
s.homepage = package['homepage']
s.source = { :git => 'https://github.com/thebergamo/react-native-fbsdk-next.git', :tag => "v#{package['version']}" }
s.platforms = { :ios => "12.0", :tvos => "12.0" }
s.dependency 'React-Core'
s.cocoapods_version = '>= 1.12.0'
s.subspec 'Core' do |ss|
ss.dependency 'FBSDKCoreKit', "~> #{FBSDKVersion}"
ss.source_files = 'ios/RCTFBSDK/core/*.{h,m}'
end
s.subspec 'Login' do |ss|
ss.dependency 'FBSDKLoginKit', "~> #{FBSDKVersion}"
ss.source_files = 'ios/RCTFBSDK/login/*.{h,m}'
end
s.subspec 'Share' do |ss|
ss.dependency 'FBSDKShareKit', "~> #{FBSDKVersion}"
ss.dependency 'FBSDKGamingServicesKit', "~> #{FBSDKVersion}"
ss.source_files = 'ios/RCTFBSDK/share/*.{h,m}'
end
end