Summary: Currently user’s are being told to add a definition of the `FB_SONARKIT_ENABLED` macro and examples, including those in stock React Native templates, set this for the user by making use of a `post_install` hook in the user’s `Podfile`. This leads to confusion, fragile code [when a user’s project dir structure deviates from vanilla], and is ultimately not necessary as CocoaPods already has dedicated mechanisms to: * specify build settings (through the `xcconfig` property); * and selectively include certain pods only in certain build configurations (e.g. debug). Finally, this PR also includes a commit [to fix the current builds](https://github.com/facebook/flipper/pull/1086/files#r418526812). ## Changelog > Entirely control Flipper being enabled through inclusion in Podfile and optionally limiting to certain build configurations using the `:configuration` directive. Pull Request resolved: https://github.com/facebook/flipper/pull/1086 Test Plan: I have built and ran the Sample application, as well as used this version of Flipper with a new RN app built from `master`. Reviewed By: passy Differential Revision: D21381828 Pulled By: priteshrnandgaonkar fbshipit-source-id: edf6dae28eb02336a49e8230654d6186360ea8d6
26 lines
1.3 KiB
Ruby
26 lines
1.3 KiB
Ruby
project 'Sample.xcodeproj'
|
|
source 'https://github.com/facebook/Sonar.git'
|
|
source 'https://github.com/CocoaPods/Specs'
|
|
|
|
target 'Sample' do
|
|
platform :ios, '9.0'
|
|
|
|
# See docs/getting-started/ios-native.mdx
|
|
pod 'FlipperKit', :path => '../../FlipperKit.podspec', :configuration => 'Debug'
|
|
pod 'FlipperKit/FlipperKitLayoutComponentKitSupport', :path => '../../FlipperKit.podspec', :configuration => 'Debug'
|
|
pod 'FlipperKit/SKIOSNetworkPlugin', :path => '../../FlipperKit.podspec', :configuration => 'Debug'
|
|
pod 'FlipperKit/FlipperKitUserDefaultsPlugin', :path => '../../FlipperKit.podspec', :configuration => 'Debug'
|
|
pod 'FlipperKit/FlipperKitExamplePlugin', :path => '../../FlipperKit.podspec', :configuration => 'Debug'
|
|
pod 'FlipperKit/FlipperKitReactPlugin', :path => '../../FlipperKit.podspec', :configuration => 'Debug'
|
|
pod 'Flipper', :path => '../../Flipper.podspec', :configuration => 'Debug'
|
|
pod 'Flipper-DoubleConversion', :configuration => 'Debug'
|
|
pod 'Flipper-Folly', :configuration => 'Debug'
|
|
pod 'Flipper-Glog', :configuration => 'Debug'
|
|
pod 'Flipper-PeerTalk', :configuration => 'Debug'
|
|
pod 'CocoaLibEvent', :configuration => 'Debug'
|
|
pod 'boost-for-react-native', :configuration => 'Debug'
|
|
pod 'OpenSSL-Universal', :configuration => 'Debug'
|
|
pod 'CocoaAsyncSocket', :configuration => 'Debug'
|
|
pod 'ComponentKit', '~> 0.30'
|
|
end
|