mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
145 lines
7.3 KiB
Ruby
145 lines
7.3 KiB
Ruby
platform :ios, '12.0'
|
|
source 'https://github.com/CocoaPods/Specs.git'
|
|
|
|
use_frameworks!
|
|
|
|
target 'Session' do
|
|
pod 'AFNetworking', inhibit_warnings: true
|
|
pod 'CryptoSwift', :inhibit_warnings => true
|
|
pod 'FeedKit', :inhibit_warnings => true
|
|
pod 'Mantle', git: 'https://github.com/signalapp/Mantle', branch: 'signal-master', :inhibit_warnings => true
|
|
pod 'NVActivityIndicatorView', :inhibit_warnings => true
|
|
pod 'PromiseKit', :inhibit_warnings => true
|
|
pod 'PureLayout', '~> 3.1.4', :inhibit_warnings => true
|
|
pod 'Reachability', :inhibit_warnings => true
|
|
pod 'Sodium', :inhibit_warnings => true
|
|
pod 'SSZipArchive', :inhibit_warnings => true
|
|
pod 'Starscream', git: 'https://github.com/signalapp/Starscream.git', branch: 'signal-release', :inhibit_warnings => true
|
|
pod 'YapDatabase/SQLCipher', :git => 'https://github.com/loki-project/session-ios-yap-database.git', branch: 'signal-release', :inhibit_warnings => true
|
|
pod 'YYImage', git: 'https://github.com/signalapp/YYImage', :inhibit_warnings => true
|
|
pod 'ZXingObjC', :inhibit_warnings => true
|
|
end
|
|
|
|
target 'SessionShareExtension' do
|
|
pod 'AFNetworking', inhibit_warnings: true
|
|
pod 'CryptoSwift', :inhibit_warnings => true
|
|
pod 'Curve25519Kit', git: 'https://github.com/signalapp/Curve25519Kit.git', :inhibit_warnings => true
|
|
pod 'Mantle', git: 'https://github.com/signalapp/Mantle', branch: 'signal-master', :inhibit_warnings => true
|
|
pod 'PromiseKit', :inhibit_warnings => true
|
|
pod 'PureLayout', '~> 3.1.4', :inhibit_warnings => true
|
|
pod 'SignalCoreKit', git: 'https://github.com/signalapp/SignalCoreKit.git', :inhibit_warnings => true
|
|
pod 'YapDatabase/SQLCipher', :git => 'https://github.com/loki-project/session-ios-yap-database.git', branch: 'signal-release', :inhibit_warnings => true
|
|
end
|
|
|
|
target 'SessionNotificationServiceExtension' do
|
|
pod 'CryptoSwift', :inhibit_warnings => true
|
|
pod 'Curve25519Kit', git: 'https://github.com/signalapp/Curve25519Kit.git', :inhibit_warnings => true
|
|
pod 'SignalCoreKit', git: 'https://github.com/signalapp/SignalCoreKit.git', :inhibit_warnings => true
|
|
pod 'YapDatabase/SQLCipher', :git => 'https://github.com/loki-project/session-ios-yap-database.git', branch: 'signal-release', :inhibit_warnings => true
|
|
end
|
|
|
|
target 'SignalUtilitiesKit' do
|
|
pod 'AFNetworking', inhibit_warnings: true
|
|
pod 'CryptoSwift', :inhibit_warnings => true
|
|
pod 'Curve25519Kit', git: 'https://github.com/signalapp/Curve25519Kit.git', :inhibit_warnings => true
|
|
pod 'GRKOpenSSLFramework', :inhibit_warnings => true
|
|
pod 'HKDFKit', :inhibit_warnings => true
|
|
pod 'libPhoneNumber-iOS', :inhibit_warnings => true
|
|
pod 'Mantle', git: 'https://github.com/signalapp/Mantle', branch: 'signal-master', :inhibit_warnings => true
|
|
pod 'PromiseKit', :inhibit_warnings => true
|
|
pod 'PureLayout', '~> 3.1.4', :inhibit_warnings => true
|
|
pod 'Reachability', :inhibit_warnings => true
|
|
pod 'SAMKeychain', :inhibit_warnings => true
|
|
pod 'SignalCoreKit', git: 'https://github.com/signalapp/SignalCoreKit.git', :inhibit_warnings => true
|
|
pod 'Starscream', git: 'https://github.com/signalapp/Starscream.git', branch: 'signal-release', :inhibit_warnings => true
|
|
pod 'SwiftProtobuf', '~> 1.5.0', :inhibit_warnings => true
|
|
pod 'YapDatabase/SQLCipher', :git => 'https://github.com/loki-project/session-ios-yap-database.git', branch: 'signal-release', :inhibit_warnings => true
|
|
pod 'YYImage', git: 'https://github.com/signalapp/YYImage', :inhibit_warnings => true
|
|
end
|
|
|
|
target 'SessionUIKit' do
|
|
|
|
end
|
|
|
|
target 'SessionMessagingKit' do
|
|
pod 'AFNetworking', inhibit_warnings: true
|
|
pod 'CryptoSwift', :inhibit_warnings => true
|
|
pod 'Curve25519Kit', git: 'https://github.com/signalapp/Curve25519Kit.git', :inhibit_warnings => true
|
|
pod 'HKDFKit', :inhibit_warnings => true
|
|
pod 'Mantle', git: 'https://github.com/signalapp/Mantle', branch: 'signal-master', :inhibit_warnings => true
|
|
pod 'PromiseKit', :inhibit_warnings => true
|
|
pod 'PureLayout', '~> 3.1.4', :inhibit_warnings => true
|
|
pod 'Reachability', :inhibit_warnings => true
|
|
pod 'SAMKeychain', :inhibit_warnings => true
|
|
pod 'SignalCoreKit', git: 'https://github.com/signalapp/SignalCoreKit.git', :inhibit_warnings => true
|
|
pod 'SwiftProtobuf', '~> 1.5.0', :inhibit_warnings => true
|
|
pod 'YapDatabase/SQLCipher', :git => 'https://github.com/loki-project/session-ios-yap-database.git', branch: 'signal-release', :inhibit_warnings => true
|
|
end
|
|
|
|
target 'SessionProtocolKit' do
|
|
pod 'CocoaLumberjack', :inhibit_warnings => true
|
|
pod 'CryptoSwift', :inhibit_warnings => true
|
|
pod 'Curve25519Kit', git: 'https://github.com/signalapp/Curve25519Kit.git', :inhibit_warnings => true
|
|
pod 'GRKOpenSSLFramework', :inhibit_warnings => true
|
|
pod 'HKDFKit', :inhibit_warnings => true
|
|
pod 'PromiseKit', :inhibit_warnings => true
|
|
pod 'SignalCoreKit', git: 'https://github.com/signalapp/SignalCoreKit.git', :inhibit_warnings => true
|
|
pod 'SwiftProtobuf', '~> 1.5.0', :inhibit_warnings => true
|
|
end
|
|
|
|
target 'SessionSnodeKit' do
|
|
pod 'CryptoSwift', :inhibit_warnings => true
|
|
pod 'Curve25519Kit', git: 'https://github.com/signalapp/Curve25519Kit.git', :inhibit_warnings => true
|
|
pod 'PromiseKit', :inhibit_warnings => true
|
|
pod 'SignalCoreKit', git: 'https://github.com/signalapp/SignalCoreKit.git', :inhibit_warnings => true
|
|
pod 'YapDatabase/SQLCipher', :git => 'https://github.com/loki-project/session-ios-yap-database.git', branch: 'signal-release', :inhibit_warnings => true
|
|
end
|
|
|
|
target 'SessionUtilitiesKit' do
|
|
pod 'AFNetworking', inhibit_warnings: true
|
|
pod 'CryptoSwift', :inhibit_warnings => true
|
|
pod 'Curve25519Kit', git: 'https://github.com/signalapp/Curve25519Kit.git', :inhibit_warnings => true
|
|
pod 'Mantle', git: 'https://github.com/signalapp/Mantle', branch: 'signal-master', :inhibit_warnings => true
|
|
pod 'PromiseKit', :inhibit_warnings => true
|
|
pod 'PureLayout', '~> 3.1.4', :inhibit_warnings => true
|
|
pod 'SAMKeychain', :inhibit_warnings => true
|
|
pod 'SignalCoreKit', git: 'https://github.com/signalapp/SignalCoreKit.git', :inhibit_warnings => true
|
|
pod 'YapDatabase/SQLCipher', :git => 'https://github.com/loki-project/session-ios-yap-database.git', branch: 'signal-release', :inhibit_warnings => true
|
|
end
|
|
|
|
post_install do |installer|
|
|
enable_whole_module_optimization_for_crypto_swift(installer)
|
|
enable_extension_support_for_pure_layout(installer)
|
|
set_minimum_deployment_target(installer)
|
|
end
|
|
|
|
def enable_whole_module_optimization_for_crypto_swift(installer)
|
|
installer.pods_project.targets.each do |target|
|
|
if target.name.end_with? "CryptoSwift"
|
|
target.build_configurations.each do |config|
|
|
config.build_settings['GCC_OPTIMIZATION_LEVEL'] = 'fast'
|
|
config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-O'
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
def enable_extension_support_for_pure_layout(installer)
|
|
installer.pods_project.targets.each do |target|
|
|
if target.name.end_with? "PureLayout"
|
|
target.build_configurations.each do |build_configuration|
|
|
if build_configuration.build_settings['APPLICATION_EXTENSION_API_ONLY'] == 'YES'
|
|
build_configuration.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = [ '$(inherited)', 'PURELAYOUT_APP_EXTENSIONS=1' ]
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
def set_minimum_deployment_target(installer)
|
|
installer.pods_project.targets.each do |target|
|
|
target.build_configurations.each do |build_configuration|
|
|
build_configuration.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
|
|
end
|
|
end
|
|
end
|