-
Notifications
You must be signed in to change notification settings - Fork 0
/
Podfile
79 lines (68 loc) · 2.73 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
require_relative './podfile_helpers.rb'
require_relative '../packages/react-native-unimodules/cocoapods.rb'
require_relative '../react-native-lab/react-native/scripts/react_native_pods'
install! 'cocoapods',
:generate_multiple_pod_projects => true,
:incremental_installation => true
platform :ios, '10.0'
inhibit_all_warnings!
target 'Exponent' do
# Expo Client dependencies
pod 'Amplitude-iOS'
pod 'CocoaLumberjack', '~> 3.5.3'
pod 'GoogleMaps', '~> 3.6'
pod 'Google-Maps-iOS-Utils', '~> 2.1.0'
pod 'lottie-ios', '~> 2.5.0'
pod 'JKBigInteger2', '0.0.5'
# Unimodules
use_unimodules!({
modules_paths: ['../packages'],
exclude: [
'expo-module-template',
'expo-bluetooth',
'expo-in-app-purchases',
'expo-payments-stripe',
'expo-splash-screen',
],
flags: {
:inhibit_warnings => false
}
})
# Unversioned React Native
use_react_native! path: '../react-native-lab/react-native'
# Evaluate all files matching `versioned-react-native/ABI*/dependencies.rb` glob pattern
# and install ReactABIXX_0_0 pods with all versioned unimodules.
use_versioned_abis!
# Build React Native with RCT_DEV enabled and RCT_ENABLE_INSPECTOR and
# RCT_ENABLE_PACKAGER_CONNECTION disabled
post_install do |installer|
# Disabled as of CocoaPods 1.8.0.beta1 since pods_project seems to be nil
# installer.pods_project.main_group.tab_width = '2';
# installer.pods_project.main_group.indent_width = '2';
installer.target_installation_results.pod_target_installation_results
.each do |pod_name, target_installation_result|
# Run postinstalls actions for versioned dependencies.
# These actions are specified in `versioned-react-native/ABI*/postinstalls.rb` files.
run_versioned_postinstalls!(pod_name, target_installation_result)
target_installation_result.native_target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
end
# Build React Native with RCT_DEV enabled and RCT_ENABLE_INSPECTOR and
# RCT_ENABLE_PACKAGER_CONNECTION disabled
next unless pod_name.start_with?('React')
target_installation_result.native_target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'RCT_DEV=1'
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'RCT_ENABLE_INSPECTOR=0'
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'ENABLE_PACKAGER_CONNECTION=0'
end
end
end
# Test targets
target 'ExponentIntegrationTests' do
inherit! :search_paths
end
target 'Tests' do
inherit! :search_paths
end
end