2014-10-02 17:15:51 +00:00
|
|
|
# Uncomment this line to define a global platform for your project
|
2018-04-03 09:22:47 +00:00
|
|
|
platform :ios, "9.0"
|
2014-10-02 17:15:51 +00:00
|
|
|
|
2018-01-23 19:18:07 +00:00
|
|
|
# Use frameforks to allow usage of pod written in Swift (like PiwikTracker)
|
|
|
|
use_frameworks!
|
|
|
|
|
2014-10-02 17:15:51 +00:00
|
|
|
source 'https://github.com/CocoaPods/Specs.git'
|
|
|
|
|
2017-10-17 07:44:54 +00:00
|
|
|
|
|
|
|
# Different flavours of pods to MatrixKit
|
|
|
|
# The current MatrixKit pod version
|
2018-07-03 14:04:11 +00:00
|
|
|
$matrixKitVersion = '0.7.15'
|
2017-10-17 07:44:54 +00:00
|
|
|
|
|
|
|
# The develop branch version
|
2017-10-17 08:02:58 +00:00
|
|
|
#$matrixKitVersion = 'develop'
|
2017-10-17 07:44:54 +00:00
|
|
|
|
|
|
|
# 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'
|
2017-11-24 15:28:48 +00:00
|
|
|
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'
|
2017-11-24 15:28:48 +00:00
|
|
|
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
|
2017-12-06 14:57:48 +00:00
|
|
|
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'
|
2017-11-24 15:28:48 +00:00
|
|
|
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'
|
2017-11-24 15:28:48 +00:00
|
|
|
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
|
2017-12-06 14:57:48 +00:00
|
|
|
pod 'MatrixSDK/JingleCallStack'
|
2017-10-17 08:02:58 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2017-10-17 07:44:54 +00:00
|
|
|
|
|
|
|
|
2017-10-12 13:53:02 +00:00
|
|
|
abstract_target 'RiotPods' do
|
2014-10-02 17:15:51 +00:00
|
|
|
|
2018-06-04 12:47:36 +00:00
|
|
|
pod 'GBDeviceInfo', '~> 5.2.0'
|
2015-12-04 16:13:19 +00:00
|
|
|
|
2018-01-29 14:26:44 +00:00
|
|
|
# Piwik for analytics
|
2018-01-30 07:36:52 +00:00
|
|
|
# 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
|
|
|
# Remove warnings from "bad" pods
|
|
|
|
pod 'OLMKit', :inhibit_warnings => true
|
|
|
|
pod 'cmark', :inhibit_warnings => true
|
|
|
|
pod 'DTCoreText', :inhibit_warnings => true
|
2015-05-11 19:05:58 +00:00
|
|
|
|
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
|
2017-07-10 05:23:55 +00:00
|
|
|
|
2018-01-23 19:18:07 +00:00
|
|
|
|
|
|
|
post_install do |installer|
|
2018-01-31 08:46:24 +00:00
|
|
|
installer.pods_project.targets.each do |target|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
target.build_configurations.each do |config|
|
|
|
|
config.build_settings['ENABLE_BITCODE'] = 'NO'
|
|
|
|
config.build_settings['SWIFT_VERSION'] = '4.0' # Required for PiwikTracker. Should be removed
|
|
|
|
end
|
|
|
|
|
|
|
|
# Set the right identity to build pods frameworks to be able to make release builds
|
|
|
|
# See https://github.com/CocoaPods/CocoaPods/issues/3156#issuecomment-102022787
|
|
|
|
if target.to_s.include? 'Pods'
|
|
|
|
target.build_configurations.each do |config|
|
|
|
|
if !config.to_s.include? 'Debug'
|
|
|
|
config.build_settings['CODE_SIGN_IDENTITY[sdk=iphoneos*]'] = 'iPhone Distribution'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2018-01-23 19:18:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|