Sha256: 5423e70bc1c61c0a3da900444f1fe5185d4fa17762119fae97069dc28eea244f

Contents?: true

Size: 797 Bytes

Versions: 4

Compression:

Stored size: 797 Bytes

Contents

require 'cocoapods-fix-react-native/version_resolver'

Pod::HooksManager.register('cocoapods-fix-react-native', :post_install) do |context|
  
  # Check that the min version of iOS has been set right for CocoaPods
  # This happens when a pod has a lower than iOS 6 deployment target.
  all_pods_targets = context.pods_project.targets
  all_pods_targets.each do |t|
    deployment_target = t.build_configurations.first.build_settings['IPHONEOS_DEPLOYMENT_TARGET']
    if deployment_target == '4.3'
      raise 'You have a Pod who has a deployment target of 4.3.' + 
            "\nIn order for React Native to compile you need to give the Podspec for #{t.name} a version like `s.platform = :ios, '9.0'`.\n"
    end
  end

  fixer = CocoaPodsFixReactNative.new
  fixer.fix_with_context(context)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cocoapods-fix-react-native-2018.04.12.11 lib/cocoapods_plugin.rb
cocoapods-fix-react-native-2018.04.10.11 lib/cocoapods_plugin.rb
cocoapods-fix-react-native-2018.04.09.10 lib/cocoapods_plugin.rb
cocoapods-fix-react-native-2018.04.07.18 lib/cocoapods_plugin.rb