require 'json'

Pod::Spec.new do |s|
  # NPM package specification
  package = JSON.parse(File.read(File.join(File.dirname(__FILE__), 'package.json')))

  s.name           = 'SentryReactNative'
  s.version        = package['version']
  s.license        = 'MIT'
  s.summary        = 'Official Sentry client for react-native'
  s.author         = 'Sentry'
  s.homepage       = "https://github.com/getsentry/react-native-sentry"
  s.source         = { :git => 'https://github.com/getsentry/react-native-sentry.git', :tag => "#{s.version}"}

  s.ios.deployment_target = "8.0"
  s.tvos.deployment_target = "9.0"

  s.preserve_paths = '*.js'

  s.dependency 'React'
  s.dependency 'Sentry', '~> 3.0.1'
  s.dependency 'KSCrash', '~> 1.15.8'

  s.source_files = 'ios/RNSentry*.{h,m}'
  s.public_header_files = 'ios/RNSentry.h'
end

require 'json'

Pod::Spec.new do |s|
  # NPM package specification
  package = JSON.parse(File.read(File.join(File.dirname(__FILE__), 'package.json')))

  s.name           = 'SentryReactNative'
  s.version        = package['version']
  s.license        = 'MIT'
  s.summary        = 'Official Sentry client for react-native'
  s.author         = 'Sentry'
  s.homepage       = "https://github.com/getsentry/react-native-sentry"
  s.source         = { :git => 'https://github.com/getsentry/react-native-sentry.git', :tag => "#{s.version}"}

  s.ios.deployment_target = "8.0"
  s.tvos.deployment_target = "9.0"

  s.preserve_paths = '*.js'

  s.dependency 'React'
  s.dependency 'Sentry/KSCrash', '~> 3.0.4'

  s.source_files = 'ios/RNSentry*.{h,m}'
  s.public_header_files = 'ios/RNSentry.h'
end

Update podspec to use subspec of KSCrash
Update podspec to use subspec of KSCrash
