mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
d6e8c061cd
Summary: Use the hard-coded config for Helloworld instead of assuming the community cli is there to generate a config, which we can no longer assume. Changelog: [Internal] Pull Request resolved: https://github.com/facebook/react-native/pull/45221 Test Plan: This works in my local environment: ``` bundle exec pod install ``` and ``` ./gradlew generateAutolinkingPackageList ``` Changelog: [Internal] Reviewed By: javache Differential Revision: D59162715 Pulled By: blakef fbshipit-source-id: 95ff2c3929f12ee0ecf468cb80d2df1281eb746e
36 lines
887 B
Ruby
36 lines
887 B
Ruby
require "../../react-native/scripts/cocoapods/autolinking.rb"
|
|
|
|
platform :ios, min_ios_version_supported
|
|
prepare_react_native_project!
|
|
|
|
linkage = ENV['USE_FRAMEWORKS']
|
|
if linkage != nil
|
|
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
|
|
use_frameworks! :linkage => linkage.to_sym
|
|
end
|
|
|
|
target 'HelloWorld' do
|
|
config = use_native_modules!(['sh', '../scripts/config.sh'])
|
|
|
|
use_react_native!(
|
|
:path => "../../react-native",
|
|
# An absolute path to your application root.
|
|
:app_path => "#{Pod::Config.instance.installation_root}/.."
|
|
)
|
|
|
|
target 'HelloWorldTests' do
|
|
inherit! :complete
|
|
# Pods for testing
|
|
end
|
|
|
|
post_install do |installer|
|
|
# scripts/react_native_pods.rb
|
|
react_native_post_install(
|
|
installer,
|
|
config[:reactNativePath],
|
|
:mac_catalyst_enabled => false,
|
|
# :ccache_enabled => true
|
|
)
|
|
end
|
|
end
|