2022-01-06 12:48:08 +00:00
|
|
|
require_relative '../node_modules/react-native/scripts/react_native_pods'
|
|
|
|
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
|
|
|
|
|
2021-03-05 11:07:25 +00:00
|
|
|
platform :ios, '12.0'
|
2017-05-08 15:21:30 +00:00
|
|
|
workspace 'jitsi-meet'
|
2022-01-06 12:48:08 +00:00
|
|
|
|
2020-11-18 14:17:00 +00:00
|
|
|
install! 'cocoapods', :deterministic_uuids => false
|
2017-05-08 15:21:30 +00:00
|
|
|
|
2020-12-17 08:40:29 +00:00
|
|
|
target 'JitsiMeet' do
|
2018-12-28 09:38:56 +00:00
|
|
|
project 'app/app.xcodeproj'
|
|
|
|
|
2020-09-29 12:24:44 +00:00
|
|
|
pod 'Firebase/Analytics', '~> 6.33.0'
|
|
|
|
pod 'Firebase/Crashlytics', '~> 6.33.0'
|
|
|
|
pod 'Firebase/DynamicLinks', '~> 6.33.0'
|
2018-12-28 09:38:56 +00:00
|
|
|
end
|
|
|
|
|
2020-12-17 08:40:29 +00:00
|
|
|
target 'JitsiMeetSDK' do
|
2017-06-06 22:43:51 +00:00
|
|
|
project 'sdk/sdk.xcodeproj'
|
|
|
|
|
2019-05-08 12:51:14 +00:00
|
|
|
# React Native and its dependencies
|
|
|
|
#
|
|
|
|
|
2022-01-06 12:48:08 +00:00
|
|
|
config = use_native_modules!
|
2022-01-14 10:44:02 +00:00
|
|
|
use_react_native!(
|
|
|
|
:path => config["reactNativePath"],
|
|
|
|
:hermes_enabled => false
|
|
|
|
)
|
2019-05-08 12:51:14 +00:00
|
|
|
|
|
|
|
# Native pod dependencies
|
|
|
|
#
|
|
|
|
|
2022-02-21 13:44:27 +00:00
|
|
|
pod 'CocoaLumberjack', '3.7.2'
|
|
|
|
pod 'ObjectiveDropboxOfficial', '6.2.3'
|
2017-05-08 15:21:30 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
post_install do |installer|
|
2022-01-14 10:44:02 +00:00
|
|
|
react_native_post_install(installer)
|
2017-05-08 15:21:30 +00:00
|
|
|
installer.pods_project.targets.each do |target|
|
|
|
|
target.build_configurations.each do |config|
|
2019-05-03 13:44:05 +00:00
|
|
|
config.build_settings['ENABLE_BITCODE'] = 'YES'
|
2019-10-03 08:24:00 +00:00
|
|
|
config.build_settings['SUPPORTS_MACCATALYST'] = 'NO'
|
2021-03-05 11:07:25 +00:00
|
|
|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
|
2022-02-21 13:44:27 +00:00
|
|
|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = ""
|
2017-05-08 15:21:30 +00:00
|
|
|
end
|
|
|
|
end
|
2022-02-21 10:30:10 +00:00
|
|
|
# https://github.com/facebook/react-native/blob/d7f748a944a9a9324e485ccbe214098e6c8645fc/scripts/react_native_pods.rb#L630
|
|
|
|
time_header = "#{Pod::Config.instance.installation_root.to_s}/Pods/RCT-Folly/folly/portability/Time.h"
|
|
|
|
`sed -i -e $'s/ && (__IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_10_0)//' #{time_header}`
|
2017-05-08 15:21:30 +00:00
|
|
|
end
|