2022-11-07 18:29:19 +00:00
|
|
|
$RNFirebaseAsStaticFramework = true
|
2022-09-06 21:38:53 +00:00
|
|
|
require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
|
|
|
|
require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods")
|
|
|
|
require File.join(File.dirname(`node --print "require.resolve('@react-native-community/cli-platform-ios/package.json')"`), "native_modules")
|
2022-01-14 07:59:53 +00:00
|
|
|
|
2022-09-06 21:38:53 +00:00
|
|
|
require 'json'
|
|
|
|
podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties.json'))) rescue {}
|
2022-01-14 07:59:53 +00:00
|
|
|
|
2022-09-06 21:38:53 +00:00
|
|
|
platform :ios, podfile_properties['ios.deploymentTarget'] || '12.4'
|
|
|
|
install! 'cocoapods',
|
|
|
|
:deterministic_uuids => false
|
|
|
|
|
|
|
|
target 'Databag' do
|
2022-11-07 18:29:19 +00:00
|
|
|
use_frameworks!
|
2022-09-06 21:38:53 +00:00
|
|
|
use_expo_modules!
|
2022-01-14 07:59:53 +00:00
|
|
|
config = use_native_modules!
|
|
|
|
|
2022-09-06 21:38:53 +00:00
|
|
|
use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']
|
|
|
|
|
|
|
|
# Flags change depending on the env values.
|
|
|
|
flags = get_default_flags()
|
|
|
|
|
2022-01-14 07:59:53 +00:00
|
|
|
use_react_native!(
|
|
|
|
:path => config[:reactNativePath],
|
2022-09-06 21:38:53 +00:00
|
|
|
:hermes_enabled => flags[:hermes_enabled] || podfile_properties['expo.jsEngine'] == 'hermes',
|
|
|
|
:fabric_enabled => flags[:fabric_enabled],
|
|
|
|
# An absolute path to your application root.
|
|
|
|
:app_path => "#{Dir.pwd}/.."
|
2022-01-14 07:59:53 +00:00
|
|
|
)
|
|
|
|
|
2022-09-06 21:38:53 +00:00
|
|
|
# Uncomment to opt-in to using Flipper
|
|
|
|
# Note that if you have use_frameworks! enabled, Flipper will not work
|
2022-01-14 07:59:53 +00:00
|
|
|
#
|
2022-09-06 21:38:53 +00:00
|
|
|
# if !ENV['CI']
|
|
|
|
# use_flipper!()
|
|
|
|
# end
|
2022-01-14 07:59:53 +00:00
|
|
|
|
|
|
|
post_install do |installer|
|
|
|
|
react_native_post_install(installer)
|
|
|
|
__apply_Xcode_12_5_M1_post_install_workaround(installer)
|
2023-01-02 19:14:22 +00:00
|
|
|
|
|
|
|
installer.pods_project.targets.each do |target|
|
|
|
|
if target.respond_to?(:product_type) and target.product_type != "com.apple.product-type.bundle"
|
|
|
|
target.build_configurations.each do |config|
|
|
|
|
config.build_settings['GENERATE_INFOPLIST_FILE'] = 'YES'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2022-01-14 07:59:53 +00:00
|
|
|
end
|
2022-09-06 21:38:53 +00:00
|
|
|
|
|
|
|
post_integrate do |installer|
|
|
|
|
begin
|
|
|
|
expo_patch_react_imports!(installer)
|
|
|
|
rescue => e
|
|
|
|
Pod::UI.warn e
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2022-01-14 07:59:53 +00:00
|
|
|
end
|