-
Notifications
You must be signed in to change notification settings - Fork 592
Expand file tree
/
Copy pathPodfile
More file actions
168 lines (132 loc) · 5.17 KB
/
Copy pathPodfile
File metadata and controls
168 lines (132 loc) · 5.17 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
# frozen_string_literal: true
# Important: Artsy must come first, see here: https://github.com/artsy/eigen/issues/12584
source 'https://github.com/artsy/Specs.git'
source 'https://cdn.cocoapods.org/'
require 'dotenv'
Dotenv.load('../.env.shared')
# for react-native-permissions
def node_require(script)
# Resolve script with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
"require.resolve(
'#{script}',
{paths: [process.argv[1]]},
)", __dir__]).strip
end
node_require('react-native/scripts/react_native_pods.rb')
node_require('react-native-permissions/scripts/setup.rb')
require 'json'
podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties.json'))) rescue {}
project 'Artsy.xcodeproj'
# TODO: Look into these further because they can make our build times faster
# ENV['RCT_USE_RN_DEP'] ||= '1' if podfile_properties['ios.buildReactNativeFromSource'] != 'true'
# ENV['RCT_USE_PREBUILT_RNCORE'] ||= '1' if podfile_properties['ios.buildReactNativeFromSource'] != 'true'
# ENV['RCT_HERMES_V1_ENABLED'] ||= '1' if podfile_properties['expo.useHermesV1'] == 'true'
platform :ios, '16.6'
inhibit_all_warnings! # ignore all warnings from all pods
prepare_react_native_project!
setup_permissions([
'Notifications'
])
plugin 'cocoapods-patch'
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
load File.join(__dir__, 'mapbox_setup.rb')
setup_mapbox_credentials
pre_install do |installer|
$RNMapboxMaps.pre_install(installer)
end
target 'Artsy' do
use_expo_modules!
if ENV['EXPO_USE_COMMUNITY_AUTOLINKING'] == '1'
config_command = ['node', '-e', "process.argv=['', '', 'config'];require('@react-native-community/cli').run()"];
else
config_command = [
'node',
'--no-warnings',
'--eval',
'require(require.resolve(\'expo-modules-autolinking\', { paths: [require.resolve(\'expo/package.json\')] }))(process.argv.slice(1))',
'react-native-config',
'--json',
'--platform',
'ios'
]
end
config = use_native_modules!(config_command)
use_react_native!(
:path => config[:reactNativePath],
:hermes_enabled => podfile_properties['expo.jsEngine'] == nil || podfile_properties['expo.jsEngine'] == 'hermes',
:production => ENV['CIRCLE_BUILD_NUM'],
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/..",
new_arch_enabled: true
)
# Networking
pod 'AFNetworking', '2.7.0', subspecs: %w[NSURLSession NSURLConnection]
pod 'SDWebImage', '5.19.1'
# Core
pod 'FLKAutoLayout', '1.0.1'
pod 'Mantle', '1.5.6'
pod 'MMMarkdown', '0.4'
pod 'UICKeyChainStore'
pod 'MARKRangeSlider'
# Core owned by Artsy
pod 'ORStackView', '2.0.3'
# Language Enhancements
pod 'MultiDelegate'
pod 'ObjectiveSugar'
# Workaround for not using use_frameworks! :linkage => :static globally — see HACKS.md
pod 'FirebaseCore', :modular_headers => true
pod 'FirebaseCoreExtension', :modular_headers => true
pod 'FirebaseInstallations', :modular_headers => true
pod 'GoogleDataTransport', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
pod 'nanopb', :modular_headers => true
# Swift pods 🎉
pod 'Then', '2.3.0'
pod 'Interstellar/Core', git: 'https://github.com/artsy/Interstellar.git', branch: 'observable-unsubscribe' # see HACKS.md
pod 'Starscream', '4.0.8'
pod 'SwiftyJSON', '5.0.2'
# Used in Live Auctions to hold user-state
pod 'JWTDecode', '2.0.0'
# Static linkage required for Expo module compatibility — see HACKS.md
pod 'BrazeKit', :podspec => 'https://raw.githubusercontent.com/braze-inc/braze-swift-sdk-prebuilt-static/13.2.1/BrazeKit.podspec'
pod 'BrazeUI', :podspec => 'https://raw.githubusercontent.com/braze-inc/braze-swift-sdk-prebuilt-static/13.2.1/BrazeUI.podspec'
pod 'BrazeLocation', :podspec => 'https://raw.githubusercontent.com/braze-inc/braze-swift-sdk-prebuilt-static/13.2.1/BrazeLocation.podspec'
target 'ArtsyTests' do
inherit! :search_paths
use_frameworks!
pod 'OHHTTPStubs', '3.1.2'
pod 'XCTest+OHHTTPStubSuiteCleanUp'
pod 'Specta', '~> 2.0'
pod 'Expecta', '1.0.6'
pod 'Expecta+Snapshots', '3.2.0'
pod 'OCMock'
pod 'Forgeries/Mocks'
# Swift pods 🎉
pod 'Quick', '2.0.0'
pod 'Nimble', '~> 13.0'
pod 'Nimble-Snapshots', '9.8.0'
end
post_install do |installer|
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false,
# :ccache_enabled => true
)
$RNMapboxMaps.post_install(installer)
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] = "16.6"
end
end
end
end