2022-06-20 10:12:19 +02:00
platform :ios, '13.0'
2014-05-06 19:41:08 +02:00
2017-11-28 00:17:46 +01:00
use_frameworks!
2022-01-25 02:05:45 +01:00
inhibit_all_warnings!
2017-11-28 00:17:46 +01:00
2023-07-13 07:35:35 +02:00
install! 'cocoapods', :warn_for_unused_master_specs_repo => false
2023-07-13 09:57:08 +02:00
# CI Dependencies
pod 'xcbeautify'
2022-01-25 02:05:45 +01:00
# Dependencies to be included in the app and all extensions/frameworks
abstract_target 'GlobalDependencies' do
2022-02-17 08:33:23 +01:00
# FIXME: If https://github.com/jedisct1/swift-sodium/pull/249 gets resolved then revert this back to the standard pod
2022-02-21 04:59:51 +01:00
pod 'Sodium', :git => 'https://github.com/oxen-io/session-ios-swift-sodium.git', branch: 'session-build'
2022-03-23 04:55:02 +01:00
pod 'GRDB.swift/SQLCipher'
2023-06-29 08:58:23 +02:00
# FIXME: Would be nice to migrate from CocoaPods to SwiftPackageManager (should allow us to speed up build time), haven't gone through all of the dependencies but currently unfortunately SQLCipher doesn't support SPM (for more info see: https://github.com/sqlcipher/sqlcipher/issues/371)
2023-04-04 04:07:06 +02:00
pod 'SQLCipher', '~> 4.5.3'
2022-03-23 04:55:02 +01:00
# FIXME: We want to remove this once it's been long enough since the migration to GRDB
2022-01-25 02:05:45 +01:00
pod 'YapDatabase/SQLCipher', :git => 'https://github.com/oxen-io/session-ios-yap-database.git', branch: 'signal-release'
2022-05-13 03:54:36 +02:00
pod 'WebRTC-lib'
2022-01-25 02:05:45 +01:00
target 'Session' do
pod 'Reachability'
pod 'PureLayout', '~> 3.1.8'
pod 'NVActivityIndicatorView'
2022-07-29 07:26:24 +02:00
pod 'YYImage/libwebp', git: 'https://github.com/signalapp/YYImage'
2022-03-23 04:55:02 +01:00
pod 'DifferenceKit'
2022-09-13 09:57:13 +02:00
target 'SessionTests' do
inherit! :complete
pod 'Quick'
pod 'Nimble'
end
2022-01-25 02:05:45 +01:00
end
# Dependencies to be included only in all extensions/frameworks
abstract_target 'FrameworkAndExtensionDependencies' do
2022-03-01 04:06:37 +01:00
pod 'Curve25519Kit', git: 'https://github.com/oxen-io/session-ios-curve-25519-kit.git', branch: 'session-version'
2022-01-25 02:05:45 +01:00
pod 'SignalCoreKit', git: 'https://github.com/oxen-io/session-ios-core-kit', branch: 'session-version'
target 'SessionNotificationServiceExtension'
target 'SessionSnodeKit'
# Dependencies that are shared across a number of extensions/frameworks but not all
abstract_target 'ExtendedDependencies' do
pod 'PureLayout', '~> 3.1.8'
2022-01-27 05:17:28 +01:00
target 'SessionShareExtension' do
pod 'NVActivityIndicatorView'
2022-05-15 06:39:21 +02:00
pod 'DifferenceKit'
2022-01-27 05:17:28 +01:00
end
2022-01-25 02:05:45 +01:00
target 'SignalUtilitiesKit' do
pod 'NVActivityIndicatorView'
pod 'Reachability'
pod 'SAMKeychain'
pod 'SwiftProtobuf', '~> 1.5.0'
2022-07-29 07:26:24 +02:00
pod 'YYImage/libwebp', git: 'https://github.com/signalapp/YYImage'
2022-04-21 08:42:35 +02:00
pod 'DifferenceKit'
2022-01-25 02:05:45 +01:00
end
target 'SessionMessagingKit' do
pod 'Reachability'
pod 'SAMKeychain'
pod 'SwiftProtobuf', '~> 1.5.0'
2022-05-23 09:16:14 +02:00
pod 'DifferenceKit'
2022-02-15 03:55:59 +01:00
target 'SessionMessagingKitTests' do
inherit! :complete
2022-03-02 07:11:18 +01:00
pod 'Quick'
2022-04-29 03:51:56 +02:00
pod 'Nimble'
2022-08-16 05:56:40 +02:00
# Need to include this for the tests because otherwise it won't actually build
pod 'YYImage/libwebp', git: 'https://github.com/signalapp/YYImage'
2022-02-15 03:55:59 +01:00
end
2022-01-25 02:05:45 +01:00
end
target 'SessionUtilitiesKit' do
pod 'SAMKeychain'
2022-07-29 07:26:24 +02:00
pod 'YYImage/libwebp', git: 'https://github.com/signalapp/YYImage'
2022-10-24 05:52:28 +02:00
pod 'DifferenceKit'
2022-03-02 07:11:18 +01:00
target 'SessionUtilitiesKitTests' do
inherit! :complete
pod 'Quick'
2022-04-29 03:51:56 +02:00
pod 'Nimble'
2022-03-02 07:11:18 +01:00
end
2022-01-25 02:05:45 +01:00
end
end
end
2022-08-12 05:35:17 +02:00
2022-09-28 09:30:31 +02:00
target 'SessionUIKit' do
pod 'GRDB.swift/SQLCipher'
pod 'DifferenceKit'
2023-05-19 06:55:35 +02:00
pod 'YYImage/libwebp', git: 'https://github.com/signalapp/YYImage'
2022-09-28 09:30:31 +02:00
end
2020-11-05 02:07:21 +01:00
end
2022-01-25 02:05:45 +01:00
# Actions to perform post-install
2017-11-28 00:17:46 +01:00
post_install do |installer|
2020-11-05 02:07:21 +01:00
set_minimum_deployment_target(installer)
2020-07-24 03:42:28 +02:00
end
2020-11-05 02:07:21 +01:00
def set_minimum_deployment_target(installer)
2020-11-13 00:22:50 +01:00
installer.pods_project.targets.each do |target|
target.build_configurations.each do |build_configuration|
2022-06-20 10:12:19 +02:00
build_configuration.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
2020-11-05 02:07:21 +01:00
end
2020-11-13 00:22:50 +01:00
end
2020-11-05 02:07:21 +01:00
end