require "json"
package = JSON.parse(File.read('package.json'))

Pod::Spec.new do |s|
  s.name          = package['name']
  s.version       = package['version']
  s.summary       = package['description']
  s.author        = package['author']['name']
  s.license       = package['license']
  s.requires_arc  = true
  s.homepage      = "https://github.com/wonday/react-native-pdf"
  s.source        = { :git => 'https://github.com/wonday/react-native-pdf.git' }
  s.platform      = :ios, '8.0'
  s.source_files  = "ios/**/*.{h,m}"
end

require "json"
package = JSON.parse(File.read('package.json'))

Pod::Spec.new do |s|
  s.name          = package['name']
  s.version       = package['version']
  s.summary       = package['description']
  s.author        = package['author']['name']
  s.license       = package['license']
  s.requires_arc  = true
  s.homepage      = "https://github.com/wonday/react-native-pdf"
  s.source        = { :git => 'https://github.com/wonday/react-native-pdf.git' }
  s.platform      = :ios, '8.0'
  s.source_files  = "ios/**/*.{h,m}"
  s.dependency 'React'
end

Add React dependency to podspec
Add React dependency to podspec

Add React dependency to podspec to support CocoaPods 1.5.0

CocoaPods 1.5.0 does no longer add all header search paths for each xcconfig generated and instead, it only adds the header search paths for the dependencies of the pod as stated in http://blog.cocoapods.org/CocoaPods-1.5.0/

As a result, implicit dependencies are no longer working.