|
| 1 | +require 'json' |
| 2 | +pkgFile = File.expand_path('../package.json', File.dirname(__FILE__)) |
| 3 | +package = JSON.parse(File.read(pkgFile)) |
| 4 | + |
| 5 | +Pod::Spec.new do |s| |
| 6 | + |
| 7 | + s.name = 'Firestack' #package['name'] |
| 8 | + s.version = package['version'] |
| 9 | + s.homepage = "https://github.com/fullstackreact/react-native-firestack" |
| 10 | + s.summary = "A Firebase v3 implementation for react-native" |
| 11 | + # s.license = { :type => package['license'], :file => 'LICENSE' }, |
| 12 | + s.license = { :type => 'MIT', :file => '../LICENSE' } |
| 13 | + s.author = package['author'] |
| 14 | + s.platform = :ios, "8.0" |
| 15 | + s.source = { :git => package['repository']['url'], :tag => 'master' } |
| 16 | + # s.source = { :git => 'https://github.com/fullstackreact/react-native-firestack.git', :tag => s.version.to_s } |
| 17 | + # s.public_header_files = 'Firestack/**/*.h' |
| 18 | + |
| 19 | + s.public_header_files = 'Firestack/**/*.h' |
| 20 | + s.source_files = 'Firestack', 'Firestack/**/*.{h,m}' |
| 21 | + |
| 22 | + s.description = <<-DESC |
| 23 | +Make it easy to work with the new Firebase and React-Native. |
| 24 | +Currently, this is best installed through npm: |
| 25 | +
|
| 26 | + npm install --save react-native-firestack |
| 27 | + DESC |
| 28 | + |
| 29 | + # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' |
| 30 | + |
| 31 | + s.social_media_url = 'https://twitter.com/fullstackreact' |
| 32 | + s.ios.deployment_target = '8.0' |
| 33 | + |
| 34 | +# s.pod_target_xcconfig = { |
| 35 | +# # 'ENABLE_BITCODE' => 'NO', |
| 36 | +# # 'CLANG_MODULES_AUTOLINK' |
| 37 | +# 'HEADER_SEARCH_PATHS' => [ |
| 38 | +# '$(inherited)', |
| 39 | +# '$(SRCROOT)/../react/**', |
| 40 | +# '$(SRCROOT)/../react-native/React/**', |
| 41 | +# '$(PODS_ROOT)/**' |
| 42 | +# ].join(' '), |
| 43 | +# 'OTHER_LDFLAGS' => '$(inherited) -ObjC' # -undefined dynamic_lookup |
| 44 | +# } |
| 45 | +# |
| 46 | + s.frameworks = 'UIKit' |
| 47 | + |
| 48 | + [ 'Firebase/Core', |
| 49 | + 'Firebase/Analytics', |
| 50 | + 'Firebase/Auth', |
| 51 | + 'Firebase/Database', |
| 52 | + 'Firebase/Storage' |
| 53 | + ].each do |lib| |
| 54 | + s.dependency lib |
| 55 | + end |
| 56 | + |
| 57 | + s.subspec 'Lib' do |ss| |
| 58 | + ## Don't install Firebase, i.e.: |
| 59 | + # s.dependency 'React' ## For pod lib lint purposes |
| 60 | + end |
| 61 | +end |
0 commit comments