Bjarne Knutzen 95b6bd0793
Some checks are pending
CI / lint (push) Waiting to run
CI / test (push) Waiting to run
CI / build-library (push) Waiting to run
CI / build-android (push) Waiting to run
CI / build-ios (push) Waiting to run
first commit
2026-01-16 08:33:15 +01:00

64 lines
1.7 KiB
Ruby

source 'https://api.webid-solutions.de/releases/ios/spm/Cocoa/ExternalSpecs.git'
source 'https://api.webid-solutions.de/releases/ios/spm/Cocoa/InternalSpecs.git'
source 'https://cdn.cocoapods.org/'
# 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
platform :ios, min_ios_version_supported
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
pre_install do |installer|
dynamic_frameworks = %w[
XS2AiOS
SwiftyJSON
NVActivityIndicatorView
KeychainAccess
]
installer.pod_targets.each do |pod|
if dynamic_frameworks.include?(pod.name)
Pod::UI.puts "Forcing dynamic framework for #{pod.name}".green
def pod.build_type
Pod::BuildType.dynamic_framework
end
end
end
end
target 'WebIdMetaPluginExample' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
target 'WebIdMetaPluginExampleTests' do
inherit! :complete
# Pods for testing
end
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 => true
)
end
end