Skip to content

Commit 574447a

Browse files
elicwhitegrabbou
authored andcommittedApr 29, 2020
Revert D21064653: Remove the post install step
Differential Revision: D21064653 Original commit changeset: da56d0754d91 fbshipit-source-id: 1086cfdeca9aa3830370ea115ba7b5f05d3fb124
1 parent 5e51e54 commit 574447a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
 

‎scripts/react_native_pods.rb

+11
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,14 @@ def use_flipper!(versions = {})
8888
pod 'FlipperKit/FlipperKitLayoutTextSearchable', versions['Flipper'], :configuration => 'Debug'
8989
pod 'FlipperKit/FlipperKitNetworkPlugin', versions['Flipper'], :configuration => 'Debug'
9090
end
91+
92+
# Post Install processing for Flipper
93+
def flipper_post_install(installer)
94+
installer.pods_project.targets.each do |target|
95+
if target.name == 'YogaKit'
96+
target.build_configurations.each do |config|
97+
config.build_settings['SWIFT_VERSION'] = '4.1'
98+
end
99+
end
100+
end
101+
end

‎template/ios/Podfile

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ target 'HelloWorld' do
1818
# Note that if you have use_frameworks! enabled, Flipper will not work and
1919
# you should disable these next few lines.
2020
use_flipper!
21+
post_install do |installer|
22+
flipper_post_install(installer)
23+
end
2124
end
2225

2326
target 'HelloWorld-tvOS' do

0 commit comments

Comments
 (0)
Please sign in to comment.