this repo has no description
1require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
2require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods")
3
4require 'json'
5podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties.json'))) rescue {}
6
7ENV['RCT_NEW_ARCH_ENABLED'] = '0' if podfile_properties['newArchEnabled'] == 'false'
8ENV['EX_DEV_CLIENT_NETWORK_INSPECTOR'] = podfile_properties['EX_DEV_CLIENT_NETWORK_INSPECTOR']
9
10platform :ios, podfile_properties['ios.deploymentTarget'] || '15.1'
11install! 'cocoapods',
12 :deterministic_uuids => false
13
14prepare_react_native_project!
15
16target 'expoatprotoauthexample' do
17 use_expo_modules!
18
19 if ENV['EXPO_USE_COMMUNITY_AUTOLINKING'] == '1'
20 config_command = ['node', '-e', "process.argv=['', '', 'config'];require('@react-native-community/cli').run()"];
21 else
22 config_command = [
23 'npx',
24 'expo-modules-autolinking',
25 'react-native-config',
26 '--json',
27 '--platform',
28 'ios'
29 ]
30 end
31
32 config = use_native_modules!(config_command)
33
34 use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']
35 use_frameworks! :linkage => ENV['USE_FRAMEWORKS'].to_sym if ENV['USE_FRAMEWORKS']
36
37 use_react_native!(
38 :path => config[:reactNativePath],
39 :hermes_enabled => podfile_properties['expo.jsEngine'] == nil || podfile_properties['expo.jsEngine'] == 'hermes',
40 # An absolute path to your application root.
41 :app_path => "#{Pod::Config.instance.installation_root}/..",
42 :privacy_file_aggregation_enabled => podfile_properties['apple.privacyManifestAggregationEnabled'] != 'false',
43 )
44
45 post_install do |installer|
46 react_native_post_install(
47 installer,
48 config[:reactNativePath],
49 :mac_catalyst_enabled => false,
50 :ccache_enabled => podfile_properties['apple.ccacheEnabled'] == 'true',
51 )
52
53 # This is necessary for Xcode 14, because it signs resource bundles by default
54 # when building for devices.
55 installer.target_installation_results.pod_target_installation_results
56 .each do |pod_name, target_installation_result|
57 target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
58 resource_bundle_target.build_configurations.each do |config|
59 config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
60 end
61 end
62 end
63 end
64end