2014-10-02 17:15:51 +00:00
|
|
|
# Uncomment this line to define a global platform for your project
|
2017-06-14 14:55:06 +00:00
|
|
|
platform :ios, "8.0"
|
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
|
2017-10-27 15:11:47 +00:00
|
|
|
$matrixKitVersion = '0.7.1'
|
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'
|
|
|
|
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 'MatrixKit', :git => 'https://github.com/matrix-org/matrix-ios-kit.git', :branch => 'develop'
|
|
|
|
else
|
|
|
|
pod 'MatrixKit', $matrixKitVersion
|
|
|
|
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 '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 'MatrixKit/AppExtension', :git => 'https://github.com/matrix-org/matrix-ios-kit.git', :branch => 'develop'
|
|
|
|
else
|
|
|
|
pod 'MatrixKit/AppExtension', $matrixKitVersion
|
|
|
|
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
|
|
|
|
2017-10-12 13:53:02 +00:00
|
|
|
pod 'GBDeviceInfo', '~> 4.4.0'
|
|
|
|
pod 'GoogleAnalytics'
|
2015-12-04 16:13:19 +00:00
|
|
|
|
2017-10-12 13:53:02 +00:00
|
|
|
# The Google WebRTC stack
|
2017-10-18 12:12:09 +00:00
|
|
|
pod 'WebRTC', '61.5.19063'
|
2015-04-03 06:42:12 +00:00
|
|
|
|
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'
|
2015-04-03 06:42:12 +00:00
|
|
|
|
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
|
|
|
|