Sha256: 94d1ef95103e49435684bd5d97e8e2d71c1348770d74826b3ce1c269d357532a

Contents?: true

Size: 642 Bytes

Versions: 20

Compression:

Stored size: 642 Bytes

Contents

class ReactDependencyVersion
  def fix_with_context(context)
    all_pods_targets = context.pods_project.targets
    all_pods_targets.each do |t|
      deployment_target = t.build_configurations.first.build_settings['IPHONEOS_DEPLOYMENT_TARGET']
      has_react_dep =  t.dependencies.find { |dep| dep.name == 'React' }

      if has_react_dep && deployment_target == '4.3'
        raise 'You have a Pod which has a deployment target of 4.3, and a dependency on React.' \
              "\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
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
cocoapods-fix-react-native-2019.09.17.15 lib/cocoapods-fix-react-native/issues/react_dependency_version.rb
cocoapods-fix-react-native-2019.03.19.11 lib/cocoapods-fix-react-native/issues/react_dependency_version.rb
cocoapods-fix-react-native-2019.02.11.19 lib/cocoapods-fix-react-native/issues/react_dependency_version.rb
cocoapods-fix-react-native-2019.01.26.16 lib/cocoapods-fix-react-native/issues/react_dependency_version.rb
cocoapods-fix-react-native-2019.01.16.18 lib/cocoapods-fix-react-native/issues/react_dependency_version.rb
cocoapods-fix-react-native-2018.12.08.00 lib/cocoapods-fix-react-native/issues/react_dependency_version.rb
cocoapods-fix-react-native-2018.12.02.17 lib/cocoapods-fix-react-native/issues/react_dependency_version.rb
cocoapods-fix-react-native-2018.11.13.19 lib/cocoapods-fix-react-native/issues/react_dependency_version.rb
cocoapods-fix-react-native-2018.10.31.23 lib/cocoapods-fix-react-native/issues/react_dependency_version.rb
cocoapods-fix-react-native-2018.10.13.14 lib/cocoapods-fix-react-native/issues/react_dependency_version.rb
cocoapods-fix-react-native-2018.10.12.20 lib/cocoapods-fix-react-native/issues/react_dependency_version.rb
cocoapods-fix-react-native-2018.09.18.17 lib/cocoapods-fix-react-native/issues/react_dependency_version.rb
cocoapods-fix-react-native-2018.09.11.01 lib/cocoapods-fix-react-native/issues/react_dependency_version.rb
cocoapods-fix-react-native-2018.08.29.00 lib/cocoapods-fix-react-native/issues/react_dependency_version.rb
cocoapods-fix-react-native-2018.07.04.16 lib/cocoapods-fix-react-native/issues/react_dependency_version.rb
cocoapods-fix-react-native-2018.05.17.19 lib/cocoapods-fix-react-native/issues/react_dependency_version.rb
cocoapods-fix-react-native-2018.05.15.11 lib/cocoapods-fix-react-native/issues/react_dependency_version.rb
cocoapods-fix-react-native-2018.05.08.12 lib/cocoapods-fix-react-native/issues/react_dependency_version.rb
cocoapods-fix-react-native-2018.05.03.12 lib/cocoapods-fix-react-native/issues/react_dependency_version.rb
cocoapods-fix-react-native-2018.05.03.10 lib/cocoapods-fix-react-native/issues/react_dependency_version.rb