/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
shared/ios/Podfile
62 строки
2 KB
chrisnojima-zoom
Version 670 - clean2 (#29122)
08 июн 2026, 19:31
Не верифицирован
08 июн 2026, 19:31
1943197
Код
Авторство
О чём код?
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 'json' podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties.json'))) rescue {} 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.4' prepare_react_native_project! target 'Keybase' do use_expo_modules! config = use_native_modules! use_frameworks! :linkage => :static pod 'KBCommon', :path => '../../rnmodules/kb-common' use_react_native!( :path => config[:reactNativePath], :hermes_enabled => true, # An absolute path to your application root. :app_path => "#{Pod::Config.instance.installation_root}/..", ) post_install do |installer| # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202 react_native_post_install( installer, config[:reactNativePath], :mac_catalyst_enabled => false, :ccache_enabled => false ) end end # Expo sets alwaysOutOfDate on its "Configure project" build phase during # integrate_user_targets (which runs after post_install). Use post_integrate # to clear it afterward. The phase already has proper input/output paths so # Xcode's dependency analysis works fine. post_integrate do |installer| # Clear Expo's alwaysOutOfDate flag — it has proper input/output paths # so Xcode's dependency analysis works fine. project = Xcodeproj::Project.open(File.join(__dir__, 'Keybase.xcodeproj')) project.native_targets.each do |target| target.build_phases.each do |phase| if phase.respond_to?(:name) && phase.name&.include?('[Expo] Configure project') phase.always_out_of_date = '0' end end end project.save end target 'KeybaseShare' do pod 'KBCommon', :path => '../../rnmodules/kb-common' use_frameworks! :linkage => :static end