mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			68 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Ruby
		
	
			
		
		
	
	
			68 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Ruby
		
	
platform :ios, '9.0'
 | 
						|
source 'https://github.com/CocoaPods/Specs.git'
 | 
						|
 | 
						|
use_frameworks!
 | 
						|
 | 
						|
def shared_pods
 | 
						|
  # OWS Pods
 | 
						|
  # pod 'SQLCipher', path: '../sqlcipher2'
 | 
						|
  pod 'SQLCipher', :git => 'https://github.com/sqlcipher/sqlcipher.git', :commit => 'd5c2bec'
 | 
						|
  # pod 'YapDatabase/SQLCipher', path: '../YapDatabase'
 | 
						|
  pod 'YapDatabase/SQLCipher', :git => 'https://github.com/signalapp/YapDatabase.git', branch: 'signal-release'
 | 
						|
  pod 'AxolotlKit', git: 'https://github.com/signalapp/SignalProtocolKit.git'
 | 
						|
  # pod 'AxolotlKit', path: '../SignalProtocolKit'
 | 
						|
  pod 'SignalServiceKit', path: '.'
 | 
						|
  pod 'HKDFKit', git: 'https://github.com/signalapp/HKDFKit.git'
 | 
						|
  # pod 'HKDFKit', path: '../HKDFKit'
 | 
						|
  pod 'Curve25519Kit', git: 'https://github.com/signalapp/Curve25519Kit'
 | 
						|
  # pod 'Curve25519Kit', path: '../Curve25519Kit'
 | 
						|
  pod 'GRKOpenSSLFramework', git: 'https://github.com/signalapp/GRKOpenSSLFramework'
 | 
						|
  #pod 'GRKOpenSSLFramework', path: '../GRKOpenSSLFramework'
 | 
						|
 | 
						|
  # third party pods
 | 
						|
  pod 'AFNetworking', inhibit_warnings: true
 | 
						|
  pod 'Mantle', :inhibit_warnings => true
 | 
						|
  # pod 'YapDatabase/SQLCipher', :inhibit_warnings => true
 | 
						|
  pod 'PureLayout', :inhibit_warnings => true
 | 
						|
  pod 'Reachability', :inhibit_warnings => true
 | 
						|
  # 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
 | 
						|
  pod 'YYImage', :inhibit_warnings => true
 | 
						|
end
 | 
						|
 | 
						|
target 'Signal' do
 | 
						|
  shared_pods
 | 
						|
  pod 'ATAppUpdater', :inhibit_warnings => true
 | 
						|
  pod 'SSZipArchive', :inhibit_warnings => true
 | 
						|
 | 
						|
  target 'SignalTests' do
 | 
						|
    inherit! :search_paths
 | 
						|
  end
 | 
						|
end
 | 
						|
 | 
						|
target 'SignalShareExtension' do
 | 
						|
  shared_pods
 | 
						|
end
 | 
						|
 | 
						|
target 'SignalMessaging' do
 | 
						|
  shared_pods
 | 
						|
end
 | 
						|
 | 
						|
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.
 | 
						|
def enable_extension_support_for_purelayout(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
 | 
						|
 |