generated from Real-Dev-Squad/website-template
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
1,468 additions
and
428 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export NODE_BINARY=$(command -v node) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,40 @@ | ||
require_relative '../node_modules/react-native/scripts/react_native_pods' | ||
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' | ||
# Resolve react_native_pods.rb with node to allow for hoisting | ||
require Pod::Executable.execute_command('node', ['-p', | ||
'require.resolve( | ||
"react-native/scripts/react_native_pods.rb", | ||
{paths: [process.argv[1]]}, | ||
)', __dir__]).strip | ||
|
||
platform :ios, '11.0' | ||
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 'RDSApp' do | ||
config = use_native_modules! | ||
|
||
use_react_native!( | ||
:path => config[:reactNativePath], | ||
# to enable hermes on iOS, change `false` to `true` and then install pods | ||
:hermes_enabled => false | ||
# An absolute path to your application root. | ||
:app_path => "#{Pod::Config.instance.installation_root}/.." | ||
) | ||
|
||
target 'RDSAppTests' do | ||
inherit! :complete | ||
# Pods for testing | ||
end | ||
|
||
# Enables Flipper. | ||
# | ||
# Note that if you have use_frameworks! enabled, Flipper will not work and | ||
# you should disable the next line. | ||
use_flipper!() | ||
|
||
post_install do |installer| | ||
react_native_post_install(installer) | ||
__apply_Xcode_12_5_M1_post_install_workaround(installer) | ||
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202 | ||
react_native_post_install( | ||
installer, | ||
config[:reactNativePath], | ||
:mac_catalyst_enabled => false, | ||
# :ccache_enabled => true | ||
) | ||
end | ||
end |
Oops, something went wrong.