bigbluebutton-tablet/ios/Podfile
2022-08-30 15:42:04 -03:00

71 lines
2.7 KiB
Ruby

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '14.7'
install! 'cocoapods', :deterministic_uuids => false
production = ENV["PRODUCTION"] == "1"
target 'BigBlueButton Broadcast' do
pod 'bigbluebutton-tablet-sdk-common', :path => '../node_modules/bigbluebutton-tablet-sdk/ios-common'
pod 'bigbluebutton-tablet-sdk-broadcast-upload-extension', :path => '../node_modules/bigbluebutton-tablet-sdk/ios-broadcast-upload-extension'
end
target 'BigBlueButton TabletTests' do
inherit! :complete
# Pods for testing
end
target 'BigBlueButton Tablet' do
pod 'bigbluebutton-tablet-sdk-common', :path => '../node_modules/bigbluebutton-tablet-sdk/ios-common'
config = use_native_modules!
# Flags change depending on the env values.
flags = get_default_flags()
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:production => production,
:hermes_enabled => flags[:hermes_enabled],
:fabric_enabled => flags[:fabric_enabled],
:flipper_configuration => FlipperConfiguration.enabled,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
# https://github.com/CocoaPods/CocoaPods/issues/11402#issuecomment-1188774894
# Get main project development team id
dev_team = ""
project = installer.aggregate_targets[0].user_project
project.targets.each do |target|
target.build_configurations.each do |config|
if dev_team.empty? and !config.build_settings['DEVELOPMENT_TEAM'].nil?
dev_team = config.build_settings['DEVELOPMENT_TEAM']
end
end
end
# Fix bundle targets' 'Signing Certificate' to 'Sign to Run Locally'
installer.pods_project.targets.each do |target|
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
target.build_configurations.each do |config|
config.build_settings['DEVELOPMENT_TEAM'] = dev_team
end
end
end
#end of https://github.com/CocoaPods/CocoaPods/issues/11402#issuecomment-1188774894
# https://stackoverflow.com/a/32685434
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
# end of https://stackoverflow.com/a/32685434
end
end