forked from Ddv0623/expo
/
Podfile
92 lines (75 loc) · 3.16 KB
/
Podfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
install! 'cocoapods',
:generate_multiple_pod_projects => true,
:incremental_installation => true,
:deterministic_uuids => false
source 'https://cdn.cocoapods.org/'
platform :ios, '13.0'
inhibit_all_warnings!
# Import the auto-linking packages
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")
require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
require 'json'
podfile_properties = JSON.parse(File.read('./Podfile.properties.json')) rescue {}
abstract_target 'BareExpoMain' do
pod 'expo-dev-menu', path: '../../../packages/expo-dev-menu', :testspecs => ['Tests', 'UITests']
# Required by latest firebase versions
# See https://github.com/invertase/react-native-firebase/issues/6332#issuecomment-1189734581
pod 'FirebaseCore', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
use_expo_modules!(
tests: [
'expo-dev-menu-interface',
'expo-dev-launcher',
],
)
# Flags change depending on the env values.
flags = get_default_flags()
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
: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}/.."
)
# Fix Google Sign-in and Flipper
post_install do |installer|
# `installer.pods_project` might be nil for `incremental_installation: true` and no new project generated
react_native_post_install(installer) if installer.pods_project
__apply_Xcode_12_5_M1_post_install_workaround(installer) if installer.pods_project
installer.target_installation_results.pod_target_installation_results.each do |pod_name, target_installation_result|
target_installation_result.native_target.build_configurations.each do |config|
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
if (pod_name == 'Flipper') || (pod_name == 'Flipper-Folly') || (pod_name == 'Flipper-RSocket')
# Fix `Typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t')`
# See https://github.com/react-native-community/upgrade-support/issues/91 and https://github.com/facebook/flipper/issues/834
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
else
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end
end
end
post_integrate do |installer|
begin
expo_patch_react_imports!(installer)
rescue => e
Pod::UI.warn e
end
end
target 'BareExpo' do
# Enables Flipper.
# Uncomment to opt-in to using Flipper
#
# if !ENV['CI']
# use_flipper!()
# end
end
target 'BareExpoDetox' do
end
target 'BareExpoTests' do
inherit! :search_paths
pod 'Nimble', :podspec => './../../../ios/Nimble.podspec'
end
end