Skip to content

Commit

Permalink
List all FlipperKit transitive dependencies to exclude them from Rele…
Browse files Browse the repository at this point in the history
…ase build

The `:configuration` option from `pod` only affects the specified pod and not its dependencies [1]. Therefore in order to avoid all transitive dependencies being linked in the resulting Release IPA we need to list them in the `Podfile`.

[1] https://guides.cocoapods.org/syntax/podfile.html#pod
  • Loading branch information
Javier Cuevas authored Apr 3, 2020
1 parent 3ed1b1f commit 1c007d5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions scripts/react_native_pods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,23 @@ def use_flipper!(version = '~> 0.33.1')
pod 'FlipperKit/SKIOSNetworkPlugin', version, :configuration => 'Debug'
pod 'FlipperKit/FlipperKitUserDefaultsPlugin', version, :configuration => 'Debug'
pod 'FlipperKit/FlipperKitReactPlugin', version, :configuration => 'Debug'

# List all transitive dependencies for FlipperKit pods
# to avoid them being linked in Release builds
pod 'Flipper', version, :configuration => 'Debug'
pod 'Flipper-DoubleConversion', '1.1.7', :configuration => 'Debug'
pod 'Flipper-Folly', '~> 2.1', :configuration => 'Debug'
pod 'Flipper-Glog', '0.3.6', :configuration => 'Debug'
pod 'Flipper-PeerTalk', '~> 0.0.4', :configuration => 'Debug'
pod 'Flipper-RSocket', '~> 1.0', :configuration => 'Debug'
pod 'FlipperKit/Core', version, :configuration => 'Debug'
pod 'FlipperKit/CppBridge', version, :configuration => 'Debug'
pod 'FlipperKit/FBCxxFollyDynamicConvert', version, :configuration => 'Debug'
pod 'FlipperKit/FBDefines', version, :configuration => 'Debug'
pod 'FlipperKit/FKPortForwarding', version, :configuration => 'Debug'
pod 'FlipperKit/FlipperKitHighlightOverlay', version, :configuration => 'Debug'
pod 'FlipperKit/FlipperKitLayoutTextSearchable', version, :configuration => 'Debug'
pod 'FlipperKit/FlipperKitNetworkPlugin', version, :configuration => 'Debug'
end

# Post Install processing for Flipper
Expand Down

0 comments on commit 1c007d5

Please sign in to comment.