jiuyiUniapp/service/node_modules/react-native/scripts/cocoapods/runtime.rb

19 lines
879 B
Ruby
Raw Normal View History

2025-02-13 09:59:20 +08:00
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# Set up Bridgeless dependencies
#
# @parameter react_native_path: relative path to react-native
def setup_bridgeless!(react_native_path: "../node_modules/react-native", use_hermes: true)
pod "React-jsitracing", :path => "#{react_native_path}/ReactCommon/hermes/executor/"
pod "React-runtimescheduler", :path => "#{react_native_path}/ReactCommon/react/renderer/runtimescheduler"
pod 'React-RuntimeCore', :path => "#{react_native_path}/ReactCommon/react/runtime"
pod 'React-RuntimeApple', :path => "#{react_native_path}/ReactCommon/react/runtime/platform/ios"
if use_hermes
pod 'React-RuntimeHermes', :path => "#{react_native_path}/ReactCommon/react/runtime"
end
end