2016-06-14 04:09:37 +02:00
|
|
|
platform :ios, '8.0'
|
|
|
|
source 'https://github.com/CocoaPods/Specs.git'
|
2015-12-07 03:31:43 +01:00
|
|
|
|
|
|
|
target 'TSKitiOSTestApp' do
|
2017-02-16 00:31:07 +01:00
|
|
|
pod 'SocketRocket', git: 'https://github.com/facebook/SocketRocket.git'
|
|
|
|
pod 'AxolotlKit', git: 'https://github.com/WhisperSystems/SignalProtocolKit.git'
|
2017-07-21 15:42:58 +02:00
|
|
|
pod 'SignalServiceKit', :path => '../../../SignalServiceKit.podspec'
|
2017-08-21 17:21:23 +02:00
|
|
|
pod 'OpenSSL', git: 'https://github.com/charlesmchen/OpenSSL-Pod', branch: '1.0.2l'
|
2015-12-07 03:31:43 +01:00
|
|
|
|
2016-06-14 04:09:37 +02:00
|
|
|
target 'TSKitiOSTestAppTests' do
|
|
|
|
inherit! :search_paths
|
|
|
|
end
|
2015-12-07 03:31:43 +01:00
|
|
|
end
|
2016-06-14 21:19:19 +02:00
|
|
|
|
2017-06-04 03:40:55 +02:00
|
|
|
post_install do |installer|
|
|
|
|
installer.pods_project.targets.each do |target|
|
|
|
|
if target.to_s == "SignalServiceKit"
|
|
|
|
puts "--[!] Disabling singleton enforcement for SSK."
|
|
|
|
target.build_configurations.each do |config|
|
|
|
|
existing_definitions = config.build_settings['GCC_PREPROCESSOR_DEFINITIONS']
|
|
|
|
if existing_definitions == nil || existing.length == 0
|
|
|
|
existing_definitions = "$(inheritied)"
|
|
|
|
end
|
|
|
|
|
2017-07-07 17:00:52 +02:00
|
|
|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = "#{existing_definitions} SSK_BUILDING_FOR_TESTS=1"
|
|
|
|
config.build_settings['OTHER_SWIFT_FLAGS'] = ['$(inherited)', '-DSSK_BUILDING_FOR_TESTS']
|
2017-06-04 03:40:55 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|