require "json"

package = JSON.parse(File.read(File.join(__dir__, "package.json")))
version = package['version']
source = { :git => 'https://github.com/okta/okta-react-native.git' }
source[:tag] = "@okta/okta-react-native@#{version}"

Pod::Spec.new do |s|
  s.name         = package['podname']
  s.version      = version
  s.summary      = package['description']
  s.license      = package['license']

  s.authors      = package['author']
  s.homepage     = package['homepage']
  s.platform     = :ios, '11.0'
  s.swift_version = '5.0'

  s.source          = source
  s.source_files  = 'ios/**/*.{h,m,swift}',  'packages/okta-react-native/ios/**/*.{h,m,swift}'

  s.dependency 'React'
  s.dependency 'OktaOidc', '3.10.2'
end
