Files
flipper/react-native/react-native-flipper/react-native-flipper.podspec
Michel Weststrate 2de3c69950 Lower requirement of flipper-react-native to iOS 9.0
Summary:
In line with, https://github.com/facebook/flipper/pull/874/files, the package should promote itself as iOS 9.0 compatibe, to prevent errors and warnings like:

```
mweststrate-mbp:ios mweststrate$ pod install
Detected React Native module pod for react-native-flipper
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `Folly` from `../node_modules/react-native/third-party-podspecs/Folly.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
[!] CocoaPods could not find compatible versions for pod "react-native-flipper":
  In Podfile:
    react-native-flipper (from `../node_modules/react-native-flipper`)

Specs satisfying the `react-native-flipper (from `../node_modules/react-native-flipper`)` dependency were found, but they required a higher minimum deployment target.
```

```
mweststrate-mbp:ios mweststrate$ pod install
Detected React Native module pod for react-native-flipper
Analyzing dependencies
Downloading dependencies
Installing react-native-flipper 0.33.1
Generating Pods project
Integrating client project
Pod installation complete! There are 34 dependencies from the Podfile and 38 total pods installed.

[!] The platform of the target `ReactNativeFlipperExample` (iOS 9.0) may not be compatible with `react-native-flipper (0.33.1)` which has a minimum requirement of iOS 10.0.

[!] The platform of the target `ReactNativeFlipperExampleTests` (iOS 9.0) may not be compatible with `react-native-flipper (0.33.1)` which has a minimum requirement of iOS 10.0.
mweststrate-mbp:ios mweststrate$ cd ..
mweststrate-mbp:ReactNativeFlipperExample
```

Reviewed By: passy

Differential Revision: D20362156

fbshipit-source-id: 766d033f2ea2e5559a72a3473115bc4a470a284f
2020-03-10 09:02:29 -07: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"
end