2020-10-16 16:26:19 +01:00
|
|
|
require_relative '../node_modules/react-native/scripts/react_native_pods'
|
2020-02-09 14:51:12 +00:00
|
|
|
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
|
2020-10-16 16:26:19 +01:00
|
|
|
|
2021-11-04 16:43:34 +00:00
|
|
|
# Note: it was 13.4 to get @react-native-community/datetimepicker to work but
|
|
|
|
# it's probably not necessary actually. Just needed to upgrade XCode.
|
|
|
|
#
|
|
|
|
# 2021-11-04: Set to 13.0 because it crashes with 12.x
|
|
|
|
# https://github.com/laurent22/joplin/issues/5671
|
2021-12-17 10:59:07 +01:00
|
|
|
#
|
|
|
|
# 2021-12-17: Changed back to 11.0 because after the fix it works with at least
|
|
|
|
# 12.x, and probably 11.0 too, which is the version supported by React Native.
|
2023-01-08 13:39:27 +00:00
|
|
|
platform :ios, '12.4'
|
2022-12-27 19:37:15 +00:00
|
|
|
install! 'cocoapods', :deterministic_uuids => false
|
2020-10-16 16:26:19 +01:00
|
|
|
|
2023-01-08 13:39:27 +00:00
|
|
|
production = ENV["PRODUCTION"] == "1"
|
|
|
|
|
2020-02-09 14:51:12 +00:00
|
|
|
target 'Joplin' do
|
2020-10-16 16:26:19 +01:00
|
|
|
config = use_native_modules!
|
2020-02-09 14:51:12 +00:00
|
|
|
|
2022-12-27 19:37:15 +00:00
|
|
|
# Flags change depending on the env values.
|
|
|
|
flags = get_default_flags()
|
|
|
|
|
2021-08-09 21:45:41 +01:00
|
|
|
use_react_native!(
|
|
|
|
:path => config[:reactNativePath],
|
2023-01-08 13:39:27 +00:00
|
|
|
# to enable hermes on iOS, change `false` to `true` and then install pods*
|
|
|
|
:production => production,
|
2022-12-27 19:37:15 +00:00
|
|
|
:hermes_enabled => flags[:hermes_enabled],
|
|
|
|
:fabric_enabled => flags[:fabric_enabled],
|
2023-01-08 13:39:27 +00:00
|
|
|
:flipper_configuration => FlipperConfiguration.enabled,
|
2022-12-27 19:37:15 +00:00
|
|
|
# An absolute path to your application root.
|
|
|
|
:app_path => "#{Pod::Config.instance.installation_root}/.."
|
2021-08-09 21:45:41 +01:00
|
|
|
)
|
2020-10-16 16:26:19 +01:00
|
|
|
|
|
|
|
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
|
2021-04-24 10:22:11 +02:00
|
|
|
pod 'JoplinRNShareExtension', :path => 'ShareExtension'
|
2020-10-16 16:26:19 +01:00
|
|
|
|
2021-08-09 21:45:41 +01:00
|
|
|
# post_install do |installer|
|
|
|
|
# react_native_post_install(installer)
|
2021-11-02 16:33:53 +00:00
|
|
|
# __apply_Xcode_12_5_M1_post_install_workaround(installer)
|
2021-08-09 21:45:41 +01:00
|
|
|
# end
|
2021-07-12 13:51:23 +01:00
|
|
|
|
2021-08-09 21:45:41 +01:00
|
|
|
# RN 0.63:
|
|
|
|
# use_flipper!({ 'Flipper-Folly' => '2.5.3', 'Flipper' => '0.87.0', 'Flipper-RSocket' => '1.3.1' })
|
|
|
|
# post_install do |installer|
|
|
|
|
# flipper_post_install(installer)
|
|
|
|
# end
|
2020-10-16 16:26:19 +01:00
|
|
|
end
|
2021-04-24 10:22:11 +02:00
|
|
|
|
|
|
|
target 'ShareExtension' do
|
|
|
|
pod 'JoplinCommonShareExtension', :path => 'ShareExtension'
|
|
|
|
end
|