Files
notesnook/apps/mobile/ios/Podfile

90 lines
3.2 KiB
Plaintext
Raw Permalink Normal View History

# 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
2019-11-15 01:17:59 +05:00
2020-04-09 13:00:08 +05:00
2020-10-12 11:25:23 +05:00
pod 'Base64'
2022-02-14 14:54:15 +05:00
pod 'SexyTooltip',:git => 'https://github.com/ammarahm-ed/SexyTooltip.git'
2021-10-25 13:32:14 +05:00
pod 'MMKV'
2021-01-08 12:31:26 +05:00
rn_path = nil
node_modules_path = nil
2020-04-28 18:12:46 +05:00
target 'Notesnook' do
2024-02-06 23:15:40 +05:00
config = use_native_modules!
rn_path = config[:reactNativePath]
node_modules_path = File.expand_path('../node_modules', File.dirname(rn_path))
2024-02-06 23:15:40 +05:00
2021-04-07 10:49:42 +05:00
use_react_native!(
:path => rn_path,
# Hermes is now enabled by default. Disable by setting this flag to false.
# Upcoming versions of React Native may rely on get_default_flags(), but
# we make it explicit here to aid in the React Native upgrade process.
2024-08-01 15:52:27 +05:00
:hermes_enabled => true,
:fabric_enabled => true,
2022-04-20 02:09:54 +05:00
:app_path => "#{Pod::Config.instance.installation_root}/.."
2021-04-07 10:49:42 +05:00
)
2021-10-25 13:32:14 +05:00
2021-01-08 12:31:26 +05:00
target 'NotesnookTests' do
2024-02-06 23:15:40 +05:00
2019-11-15 01:17:59 +05:00
# Pods for testing
end
target 'Make Note' do
use_react_native!(
:path => rn_path,
# Hermes is now enabled by default. Disable by setting this flag to false.
# Upcoming versions of React Native may rely on get_default_flags(), but
# we make it explicit here to aid in the React Native upgrade process.
2024-08-01 15:52:27 +05:00
:hermes_enabled => true,
:fabric_enabled => true,
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
inherit! :complete
2019-11-15 01:17:59 +05:00
end
end
2021-01-08 12:31:26 +05:00
post_install do |installer|
react_native_post_install(
installer,
react_native_path = rn_path,
# Set `mac_catalyst_enabled` to `true` in order to apply patches
# necessary for Mac Catalyst builds
2024-08-01 15:52:27 +05:00
:mac_catalyst_enabled => false,
# :ccache_enabled => true
)
2021-01-08 12:31:26 +05:00
installer.pods_project.targets.each do |target|
2021-01-11 16:56:31 +05:00
target.build_configurations.each do |config|
2021-01-08 12:31:26 +05:00
config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO'
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
2021-01-08 12:31:26 +05:00
end
end
2023-11-16 08:54:37 +05:00
installer.pods_project.targets.each do |target|
if target.name == "react-native-quick-sqlite" then
target.build_configurations.each do |config|
2025-06-02 08:47:36 +05:00
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = 'SQLITE_CORE=1 SQLITE_ENABLE_FTS5=1 SQLITE3MC_OMIT_AES_HARDWARE_SUPPORT=1 HAVE_CIPHER_AES_128_CBC=0 HAVE_CIPHER_AES_256_CBC=0 HAVE_CIPHER_SQLCIPHER=0 HAVE_CIPHER_RC4=0 HAVE_CIPHER_CHACHA20=1 SQLITE_OMIT_PROGRESS_CALLBACK=1 SQLITE_MAX_EXPR_DEPTH=0 SQLITE_OMIT_DEPRECATED=1 SQLITE_LIKE_DOESNT_MATCH_BLOBS=1 SQLITE_DQS=0 SQLITE_DEFAULT_MEMSTATUS=0 SQLITE_USE_ALLOCA=1 SQLITE_ENABLE_REGEXP=1'
2023-11-16 08:54:37 +05:00
end
end
end
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['CODE_SIGNING_ALLOWED'] = 'NO'
end
end
end
2021-01-08 12:31:26 +05:00
end