element-ios/Podfile

106 lines
3.6 KiB
Text
Raw Normal View History

# Uncomment this line to define a global platform for your project
platform :ios, "8.0"
# Use frameforks to allow usage of pod written in Swift (like PiwikTracker)
use_frameworks!
source 'https://github.com/CocoaPods/Specs.git'
# Different flavours of pods to MatrixKit
# The current MatrixKit pod version
2017-12-29 17:01:40 +00:00
$matrixKitVersion = '0.7.4'
# The develop branch version
2017-10-17 08:02:58 +00:00
#$matrixKitVersion = 'develop'
# The one used for developing both MatrixSDK and MatrixKit
# Note that MatrixSDK must be cloned into a folder called matrix-ios-sdk next to the MatrixKit folder
2017-10-17 08:02:58 +00:00
#$matrixKitVersion = 'local'
# Method to import the right MatrixKit flavour
def import_MatrixKit
if $matrixKitVersion == 'local'
pod 'MatrixSDK', :path => '../matrix-ios-sdk/MatrixSDK.podspec'
pod 'MatrixSDK/JingleCallStack', :path => '../matrix-ios-sdk/MatrixSDK.podspec'
2017-10-17 08:02:58 +00:00
pod 'MatrixKit', :path => '../matrix-ios-kit/MatrixKit.podspec'
else
if $matrixKitVersion == 'develop'
pod 'MatrixSDK', :git => 'https://github.com/matrix-org/matrix-ios-sdk.git', :branch => 'develop'
pod 'MatrixSDK/JingleCallStack', :git => 'https://github.com/matrix-org/matrix-ios-sdk.git', :branch => 'develop'
2017-10-17 08:02:58 +00:00
pod 'MatrixKit', :git => 'https://github.com/matrix-org/matrix-ios-kit.git', :branch => 'develop'
else
pod 'MatrixKit', $matrixKitVersion
pod 'MatrixSDK/JingleCallStack'
2017-10-17 08:02:58 +00:00
end
end
end
# Method to import the right MatrixKit/AppExtension flavour
def import_MatrixKitAppExtension
if $matrixKitVersion == 'local'
pod 'MatrixSDK', :path => '../matrix-ios-sdk/MatrixSDK.podspec'
pod 'MatrixSDK/JingleCallStack', :path => '../matrix-ios-sdk/MatrixSDK.podspec'
2017-10-17 08:02:58 +00:00
pod 'MatrixKit/AppExtension', :path => '../matrix-ios-kit/MatrixKit.podspec'
else
if $matrixKitVersion == 'develop'
pod 'MatrixSDK', :git => 'https://github.com/matrix-org/matrix-ios-sdk.git', :branch => 'develop'
pod 'MatrixSDK/JingleCallStack', :git => 'https://github.com/matrix-org/matrix-ios-sdk.git', :branch => 'develop'
2017-10-17 08:02:58 +00:00
pod 'MatrixKit/AppExtension', :git => 'https://github.com/matrix-org/matrix-ios-kit.git', :branch => 'develop'
else
pod 'MatrixKit/AppExtension', $matrixKitVersion
pod 'MatrixSDK/JingleCallStack'
2017-10-17 08:02:58 +00:00
end
end
end
2017-10-12 13:53:02 +00:00
abstract_target 'RiotPods' do
2017-10-12 13:53:02 +00:00
pod 'GBDeviceInfo', '~> 4.4.0'
2015-12-04 16:13:19 +00:00
2018-01-29 14:26:44 +00:00
# Piwik for analytics
# While https://github.com/matomo-org/matomo-sdk-ios/pull/223 is not released, use the PR branch
2018-01-29 14:26:44 +00:00
pod 'PiwikTracker', :git => 'https://github.com/manuroe/matomo-sdk-ios.git', :branch => 'feature/CustomVariables'
#pod 'PiwikTracker', '~> 4.4.2'
2017-10-12 13:53:02 +00:00
# OLMKit for crypto
pod 'OLMKit'
#pod 'OLMKit', :path => '../olm/OLMKit.podspec'
2017-10-27 15:11:47 +00:00
pod 'Realm', '~> 3.0.1'
2017-10-12 13:53:02 +00:00
# Remove warnings from "bad" pods
pod 'OLMKit', :inhibit_warnings => true
pod 'cmark', :inhibit_warnings => true
pod 'DTCoreText', :inhibit_warnings => true
2016-06-03 14:07:34 +00:00
2017-10-12 13:53:02 +00:00
target "Riot" do
2017-10-17 08:02:58 +00:00
import_MatrixKit
2017-10-12 13:53:02 +00:00
end
target "RiotShareExtension" do
2017-10-17 08:02:58 +00:00
import_MatrixKitAppExtension
2017-10-12 13:53:02 +00:00
end
2017-08-26 13:04:31 +00:00
2017-10-12 13:53:02 +00:00
target "SiriIntents" do
2017-10-17 08:02:58 +00:00
import_MatrixKitAppExtension
2017-10-12 13:53:02 +00:00
end
2017-08-26 13:04:31 +00:00
end
# Disable bitcode for each pod framework
# Because the WebRTC pod (included by the JingleCallStack pod) does not support it.
# Plus the app does not enable it
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
2018-01-29 14:26:44 +00:00
config.build_settings['SWIFT_VERSION'] = '4.0' # Required for PiwikTracker. Should be removed
end
end
end