2024-01-31 22:10:51 +01:00
|
|
|
# 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
|
2021-12-31 15:04:37 +01:00
|
|
|
|
2023-04-30 23:36:32 +02:00
|
|
|
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
|
2020-06-16 17:51:51 +02:00
|
|
|
|
2022-06-09 22:32:05 +02:00
|
|
|
target 'Fintunes' do
|
2020-07-26 12:54:52 +02:00
|
|
|
config = use_native_modules!
|
2021-12-31 15:04:37 +01:00
|
|
|
|
|
|
|
|
use_react_native!(
|
|
|
|
|
:path => config[:reactNativePath],
|
2022-05-04 18:28:00 +02:00
|
|
|
# An absolute path to your application root.
|
|
|
|
|
:app_path => "#{Pod::Config.instance.installation_root}/.."
|
2021-12-31 15:04:37 +01:00
|
|
|
)
|
2020-06-16 17:51:51 +02:00
|
|
|
|
2022-06-09 22:32:05 +02:00
|
|
|
target 'FintunesTests' do
|
2020-06-16 17:51:51 +02:00
|
|
|
inherit! :complete
|
|
|
|
|
# Pods for testing
|
|
|
|
|
end
|
2021-12-31 15:04:37 +01:00
|
|
|
|
2020-06-16 17:51:51 +02:00
|
|
|
post_install do |installer|
|
2024-01-31 22:10:51 +01:00
|
|
|
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
|
2022-11-12 16:22:39 +01:00
|
|
|
react_native_post_install(
|
|
|
|
|
installer,
|
2024-01-31 22:10:51 +01:00
|
|
|
config[:reactNativePath],
|
2024-07-25 13:55:00 +02:00
|
|
|
:mac_catalyst_enabled => false,
|
|
|
|
|
# :ccache_enabled => true
|
2022-11-12 16:22:39 +01:00
|
|
|
)
|
2020-06-16 17:51:51 +02:00
|
|
|
end
|
2024-01-31 22:10:51 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# Fix for libwebpCVE-2023-4863
|
|
|
|
|
# Dependency chain: RNFastImage -> SDWebImageWebPCoder -> libwebp
|
|
|
|
|
pod 'libwebp', '1.3.2', :source => 'https://cdn.cocoapods.org/'
|