2018-02-23 18:33:39 +01:00
|
|
|
platform :ios, '9.0'
|
2014-10-02 00:32:35 +02:00
|
|
|
source 'https://github.com/CocoaPods/Specs.git'
|
2014-05-06 19:41:08 +02:00
|
|
|
|
2017-11-28 00:17:46 +01:00
|
|
|
use_frameworks!
|
|
|
|
|
2017-11-24 19:20:34 +01:00
|
|
|
def shared_pods
|
2018-12-19 23:31:19 +01:00
|
|
|
|
|
|
|
###
|
2017-11-28 00:17:46 +01:00
|
|
|
# OWS Pods
|
2018-12-19 23:31:19 +01:00
|
|
|
###
|
|
|
|
|
2018-09-28 16:03:06 +02:00
|
|
|
pod 'SignalCoreKit', git: 'https://github.com/signalapp/SignalCoreKit.git', testspecs: ["Tests"]
|
2018-09-21 21:41:10 +02:00
|
|
|
# pod 'SignalCoreKit', path: '../SignalCoreKit', testspecs: ["Tests"]
|
2018-12-19 23:31:19 +01:00
|
|
|
|
2018-11-12 16:40:28 +01:00
|
|
|
pod 'AxolotlKit', git: 'https://github.com/signalapp/SignalProtocolKit.git', branch: 'master', testspecs: ["Tests"]
|
2018-09-25 19:56:31 +02:00
|
|
|
# pod 'AxolotlKit', path: '../SignalProtocolKit', testspecs: ["Tests"]
|
2018-12-19 23:31:19 +01:00
|
|
|
|
2018-09-28 16:03:06 +02:00
|
|
|
pod 'HKDFKit', git: 'https://github.com/signalapp/HKDFKit.git', testspecs: ["Tests"]
|
2018-09-25 19:58:20 +02:00
|
|
|
# pod 'HKDFKit', path: '../HKDFKit', testspecs: ["Tests"]
|
2018-12-19 23:31:19 +01:00
|
|
|
|
2018-09-28 16:03:06 +02:00
|
|
|
pod 'Curve25519Kit', git: 'https://github.com/signalapp/Curve25519Kit', testspecs: ["Tests"]
|
2018-09-25 19:58:20 +02:00
|
|
|
# pod 'Curve25519Kit', path: '../Curve25519Kit', testspecs: ["Tests"]
|
2018-12-19 23:31:19 +01:00
|
|
|
|
2018-10-01 15:12:38 +02:00
|
|
|
pod 'SignalMetadataKit', git: 'https://github.com/signalapp/SignalMetadataKit', testspecs: ["Tests"]
|
2018-09-25 19:58:20 +02:00
|
|
|
# pod 'SignalMetadataKit', path: '../SignalMetadataKit', testspecs: ["Tests"]
|
2018-12-19 23:31:19 +01:00
|
|
|
|
2018-09-20 18:53:03 +02:00
|
|
|
pod 'SignalServiceKit', path: '.', testspecs: ["Tests"]
|
2018-12-19 23:31:19 +01:00
|
|
|
|
|
|
|
###
|
|
|
|
# forked third party pods
|
|
|
|
###
|
|
|
|
|
|
|
|
# Includes some soon to be released "unencrypted header" changes required for the Share Extension
|
|
|
|
pod 'SQLCipher', :git => 'https://github.com/sqlcipher/sqlcipher.git', :commit => 'd5c2bec'
|
|
|
|
# pod 'SQLCipher', path: '../sqlcipher'
|
|
|
|
|
|
|
|
# Forked for performance optimizations that are not likely to be upstreamed as they are specific
|
|
|
|
# to our limited use of Mantle
|
|
|
|
pod 'Mantle', git: 'https://github.com/signalapp/Mantle', branch: 'signal-master'
|
|
|
|
# pod 'Mantle', path: '../Mantle'
|
|
|
|
|
|
|
|
# SocketRocket has some critical crash fixes on Github, but have published an official release to cocoapods in ages, so
|
|
|
|
# we were following master
|
|
|
|
# Forked and have an open PR with our changes, but they have not been merged.
|
|
|
|
# pod 'SocketRocket', :git => 'https://github.com/facebook/SocketRocket.git', inhibit_warnings: true
|
|
|
|
pod 'SocketRocket', :git => 'https://github.com/signalapp/SocketRocket.git', branch: 'mkirk/handle-sec-err', inhibit_warnings: true
|
|
|
|
|
|
|
|
# Forked for compatibily with the ShareExtension, changes have an open PR, but have not been merged.
|
|
|
|
pod 'YapDatabase/SQLCipher', :git => 'https://github.com/signalapp/YapDatabase.git', branch: 'signal-release'
|
|
|
|
# pod 'YapDatabase/SQLCipher', path: '../YapDatabase'
|
|
|
|
|
|
|
|
# Forked to incorporate our self-built binary artifact.
|
2018-02-07 23:00:45 +01:00
|
|
|
pod 'GRKOpenSSLFramework', git: 'https://github.com/signalapp/GRKOpenSSLFramework'
|
2017-11-28 22:46:53 +01:00
|
|
|
#pod 'GRKOpenSSLFramework', path: '../GRKOpenSSLFramework'
|
2017-11-28 00:17:46 +01:00
|
|
|
|
2018-12-19 23:31:19 +01:00
|
|
|
###
|
2017-11-28 00:17:46 +01:00
|
|
|
# third party pods
|
2018-12-19 23:31:19 +01:00
|
|
|
####
|
|
|
|
|
2017-12-05 01:11:24 +01:00
|
|
|
pod 'AFNetworking', inhibit_warnings: true
|
2017-11-24 19:20:34 +01:00
|
|
|
pod 'PureLayout', :inhibit_warnings => true
|
|
|
|
pod 'Reachability', :inhibit_warnings => true
|
2018-04-03 22:26:07 +02:00
|
|
|
pod 'YYImage', :inhibit_warnings => true
|
2017-11-24 19:20:34 +01:00
|
|
|
end
|
|
|
|
|
2016-06-14 20:58:56 +02:00
|
|
|
target 'Signal' do
|
2017-11-24 19:20:34 +01:00
|
|
|
shared_pods
|
2018-01-04 21:16:24 +01:00
|
|
|
pod 'SSZipArchive', :inhibit_warnings => true
|
2017-07-11 19:00:16 +02:00
|
|
|
|
2017-11-24 19:20:34 +01:00
|
|
|
target 'SignalTests' do
|
|
|
|
inherit! :search_paths
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
target 'SignalShareExtension' do
|
|
|
|
shared_pods
|
2017-07-11 19:00:16 +02:00
|
|
|
end
|
|
|
|
|
2017-11-30 22:19:36 +01:00
|
|
|
target 'SignalMessaging' do
|
|
|
|
shared_pods
|
|
|
|
end
|
|
|
|
|
2017-11-28 00:17:46 +01:00
|
|
|
post_install do |installer|
|
|
|
|
enable_extension_support_for_purelayout(installer)
|
|
|
|
end
|
|
|
|
|
|
|
|
# PureLayout by default makes use of UIApplication, and must be configured to be built for an extension.
|
2017-11-24 19:20:34 +01:00
|
|
|
def enable_extension_support_for_purelayout(installer)
|
2017-11-28 00:17:46 +01:00
|
|
|
installer.pods_project.targets.each do |target|
|
2017-11-24 19:20:34 +01:00
|
|
|
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
|
|
|
|
|