ecency-mobile/ios/Podfile

61 lines
2.1 KiB
Plaintext
Raw Normal View History

2021-07-31 10:29:44 +03:00
require_relative '../node_modules/react-native/scripts/react_native_pods'
2019-09-11 22:42:49 +03:00
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
2022-10-25 14:03:45 +03:00
platform :ios, '12.4'
2022-10-20 15:46:58 +03:00
install! 'cocoapods', :deterministic_uuids => false
2021-07-31 10:29:44 +03:00
2020-07-17 14:22:06 +03:00
target 'Ecency' do
2021-07-31 10:29:44 +03:00
config = use_native_modules!
2022-10-20 15:46:58 +03:00
# Flags change depending on the env values.
flags = get_default_flags()
2022-02-25 07:55:27 +03:00
permissions_path = '../node_modules/react-native-permissions/ios'
pod 'Permission-Camera', :path => "#{permissions_path}/Camera"
2020-07-17 14:22:06 +03:00
# Pods for Ecency
2021-07-31 11:32:42 +03:00
2022-10-17 11:56:16 +03:00
use_react_native!(
:path => config[:reactNativePath],
2022-10-20 15:46:58 +03:00
# Hermes is now enabled by default. Disable by setting this flag to false.
# Upcoming versions of React Native may rely on get_default_flags(), but
# we make it explicit here to aid in the React Native upgrade process.
:hermes_enabled => true,
:fabric_enabled => flags[:fabric_enabled],
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
2022-10-28 00:22:39 +03:00
:flipper_configuration => FlipperConfiguration.disabled,
2022-10-20 15:46:58 +03:00
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
2022-10-17 11:56:16 +03:00
)
2019-12-17 05:26:06 +03:00
2020-07-17 14:22:06 +03:00
target 'EcencyTests' do
2021-07-29 13:40:20 +03:00
inherit! :complete
# Pods for testing
end
2021-07-30 11:21:48 +03:00
2022-10-17 11:56:16 +03:00
2021-08-25 10:57:06 +03:00
post_install do |installer|
2022-10-20 15:46:58 +03:00
react_native_post_install(
installer,
# Set `mac_catalyst_enabled` to `true` in order to apply patches
# necessary for Mac Catalyst builds
:mac_catalyst_enabled => false
)
2022-10-17 11:56:16 +03:00
__apply_Xcode_12_5_M1_post_install_workaround(installer)
2021-08-25 10:57:06 +03:00
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings["ONLY_ACTIVE_ARCH"] = "NO"
end
if target.name == 'TcpSockets'
source_files = target.source_build_phase.files
gcd_async_socket = source_files[0] #First file in build phases is GCDAsyncSocket.m, chage index if not the case
puts "Deleting source file #{gcd_async_socket.inspect} from target #{target.inspect}."
source_files.delete gcd_async_socket
end
2021-08-25 10:57:06 +03:00
end
end
end