mirror of
https://github.com/selfxyz/self.git
synced 2026-02-21 03:00:36 -05:00
72 lines
2.2 KiB
Ruby
72 lines
2.2 KiB
Ruby
use_frameworks!
|
|
|
|
# Resolve react_native_pods.rb with node to allow for hoisting
|
|
require Pod::Executable.execute_command('node', ['-p',
|
|
'require.resolve(
|
|
"react-native/scripts/react_native_pods.rb",
|
|
{paths: [process.argv[1]]},
|
|
)', __dir__]).strip
|
|
|
|
project 'OpenPassport.xcodeproj'
|
|
|
|
platform :ios, '14.0'
|
|
prepare_react_native_project!
|
|
|
|
|
|
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
|
|
|
|
target 'OpenPassport' do
|
|
|
|
config = use_native_modules!
|
|
|
|
use_frameworks!
|
|
pod 'NFCPassportReader', git: 'https://github.com/0xturboblitz/NFCPassportReader.git', commit: '0a8e26d56f5f85f698b67c5df5ea9ecbb53cbc45'
|
|
pod 'QKMRZScanner'
|
|
pod 'RNFS', :path => '../node_modules/react-native-fs'
|
|
pod 'lottie-ios'
|
|
pod 'SwiftQRScanner', :git => 'https://github.com/vinodiOS/SwiftQRScanner'
|
|
|
|
use_react_native!(
|
|
:path => config[:reactNativePath],
|
|
|
|
:hermes_enabled => false,
|
|
# :fabric_enabled => flags[:fabric_enabled],
|
|
# An absolute path to your application root.
|
|
:app_path => "#{Pod::Config.instance.installation_root}/.."
|
|
)
|
|
|
|
# target 'OpenPassport App Clip' do
|
|
# inherit! :search_paths
|
|
# inherit! :complete
|
|
# end
|
|
|
|
post_install do |installer|
|
|
installer.generated_projects.each do |project|
|
|
project.targets.each do |target|
|
|
if target.name == 'RNZipArchive'
|
|
target.source_build_phase.files.each do |file|
|
|
if file.settings && file.settings['COMPILER_FLAGS']
|
|
file.settings['COMPILER_FLAGS'] = ''
|
|
end
|
|
end
|
|
end
|
|
target.build_configurations.each do |config|
|
|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
|
|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
|
|
end
|
|
end
|
|
end
|
|
|
|
# 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 => true
|
|
)
|
|
end
|
|
end |