From a70f47cb0e3042c42e5f3bf37e2aa7a7367f8081 Mon Sep 17 00:00:00 2001 From: David McRae Date: Thu, 24 Jan 2019 03:30:06 -0800 Subject: [PATCH] Document using Flipper with use_frameworks! (#347) Summary: Add Podfile documentation so that projects that use `use_frameworks!` have a way to import Flipper into their project Pull Request resolved: https://github.com/facebook/flipper/pull/347 Reviewed By: passy Differential Revision: D13761700 Pulled By: priteshrnandgaonkar fbshipit-source-id: 36d8a5d590b96203ac30fd5d0ca32cae4f194024 --- docs/getting-started.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/getting-started.md b/docs/getting-started.md index d91b8f161..c1d9f6ea1 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -189,6 +189,25 @@ target 'MyApp' do pod 'FlipperKit/SKIOSNetworkPlugin', '~>' + flipperkit_version pod 'FlipperKit/FlipperKitUserDefaultsPlugin', '~>' + flipperkit_version + # If you use `use_frameworks!` in your Podfile, + # uncomment the below $static_framework array and also + # the pre_install section. This will cause Flipper and + # it's dependencies to be static and all other pods to + # be dynamic. + + # $static_framework = ['FlipperKit', 'Flipper', 'Folly', + # 'CocoaAsyncSocket', 'ComponentKit', 'DoubleConversion', + # 'glog', 'PeerTalk', 'RSocket', 'Yoga', 'YogaKit', + # 'CocoaLibEvent', 'OpenSSL-Static', 'boost-for-react-native'] + + # pre_install do |installer| + # installer.pod_targets.each do |pod| + # if $static_framework.include?(pod.name) + # pod.host_requires_frameworks = false + # end + # end + # end + # This post_install script adds -DFB_SONARKIT_ENABLED flag to OTHER_SWIFT_FLAGS, necessary to build swift target post_install do |installer| file_name = Dir.glob("*.xcodeproj")[0]