Files
flipper/react-native/react-native-flipper/react-native-flipper.podspec
Artem Mysik 446206a0ce fix: react-native Xcode 12 compatibility (#1847)
Summary:
Latest Xcode 12 fails to build while without a module to depend on React-Core directly hence this change is necessary for all native modules on iOS. For more details please check: https://github.com/facebook/react-native/issues/29633#issuecomment-694187116

## Changelog

React Native Xcode 12 compatibility

Pull Request resolved: https://github.com/facebook/flipper/pull/1847

Test Plan: Use this branch to install with an app running on Xcode 12.

Reviewed By: mweststrate

Differential Revision: D25963723

Pulled By: priteshrnandgaonkar

fbshipit-source-id: a9642e242b5605f0f748f8f3b962af8455756ff4
2021-01-20 04:42:57 -08:00

31 lines
1.1 KiB
Ruby

# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
compiler_flags = '-DFB_SONARKIT_ENABLED=1'
Pod::Spec.new do |s|
s.name = "react-native-flipper"
s.version = package["version"]
s.summary = package["description"]
s.description = <<-DESC
react-native-flipper
DESC
s.homepage = "https://fbflipper.com/"
s.license = "MIT"
s.license = { :type => "MIT", :file => "LICENSE" }
s.authors = { "Michel Weststrate" => "mweststrate@fb.com" }
s.platforms = { :ios => "9.0" }
s.source = { :git => "https://github.com/facebook/flipper.git", :tag => "#{s.version}" }
s.source_files = "ios/**/*.{h,m,swift}"
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"${PODS_ROOT}/Headers/Public/FlipperKit\"" }
s.requires_arc = true
s.compiler_flags = compiler_flags
s.dependency "React-Core"
end