Skip to content

Commit

Permalink
Remove install_modules_dependencies_legacy in RNReanimated.podspec (#…
Browse files Browse the repository at this point in the history
…7032)

## Summary

This PR removes the definition of `install_modules_dependencies_legacy`
method in RNReanimated.podspec which is unused since React Native 0.72.

## Test plan

* ✅ Build fabric-example on iOS
* ✅ Build fabric-example on iOS with `ENV['USE_FRAMEWORKS'] = 'static'`
in Podfile
* ✅ Build fabric-example on iOS with `ENV['USE_FRAMEWORKS'] = 'dynamic'`
in Podfile
  • Loading branch information
tomekzaw authored Feb 17, 2025
1 parent ceee78e commit 290fcf8
Showing 1 changed file with 3 additions and 48 deletions.
51 changes: 3 additions & 48 deletions packages/react-native-reanimated/RNReanimated.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,48 +21,6 @@ compilation_metadata_dir = "CompilationDatabase"
# We want generate the metadata only within the monorepo of Reanimated.
compilation_metadata_generation_flag = $config[:is_reanimated_example_app] ? "-gen-cdb-fragment-path #{compilation_metadata_dir}" : ''

def self.install_modules_dependencies_legacy(s)
using_hermes = ENV['USE_HERMES'] == nil || ENV['USE_HERMES'] == '1'
s.dependency "React-Core"
if $new_arch_enabled
s.dependency "React-RCTFabric"
s.dependency "ReactCodegen"
end
s.dependency "RCT-Folly"
s.dependency "RCTRequired"
s.dependency "RCTTypeSafety"
s.dependency 'FBLazyVector'
s.dependency 'React-Core'
s.dependency 'React-CoreModules'
s.dependency 'React-Core/DevSupport'
if !$config[:is_tvos_target]
s.dependency 'React-RCTActionSheet'
end
s.dependency 'React-RCTNetwork'
s.dependency 'React-RCTAnimation'
s.dependency 'React-RCTLinking'
s.dependency 'React-RCTBlob'
s.dependency 'React-RCTSettings'
s.dependency 'React-RCTText'
s.dependency 'React-RCTImage'
s.dependency 'React-Core/RCTWebSocket'
s.dependency 'React-cxxreact'
s.dependency 'React-jsi'
s.dependency 'React-jsiexecutor'
s.dependency 'React-jsinspector'
s.dependency 'Yoga'
s.dependency 'DoubleConversion'
s.dependency 'glog'
if using_hermes && !$config[:is_tvos_target]
s.dependency 'React-hermes'
s.dependency 'hermes-engine'
end
s.dependency 'React-callinvoker'
if !$new_arch_enabled
s.dependency 'React-RCTAppDelegate'
end
end

Pod::Spec.new do |s|

s.name = "RNReanimated"
Expand Down Expand Up @@ -147,12 +105,9 @@ Pod::Spec.new do |s|
"OTHER_CFLAGS" => "$(inherited) #{folly_flags} #{fabric_flags} #{example_flag} #{version_flags} #{debug_flag} #{compilation_metadata_generation_flag}"
}
s.requires_arc = true
s.dependency "ReactCommon/turbomodule/core"
if defined?(install_modules_dependencies()) != nil
install_modules_dependencies(s)
else
install_modules_dependencies_legacy(s)
end

install_modules_dependencies(s)

s.dependency 'React-jsi'
using_hermes = ENV['USE_HERMES'] == nil || ENV['USE_HERMES'] == '1'
if using_hermes && !$config[:is_tvos_target]
Expand Down

0 comments on commit 290fcf8

Please sign in to comment.