mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-30 08:12:40 +00:00
82 lines
2.4 KiB
Ruby
82 lines
2.4 KiB
Ruby
# Uncomment this line to define a global platform for your project
|
|
platform :ios, "8.0"
|
|
|
|
source 'https://github.com/CocoaPods/Specs.git'
|
|
|
|
|
|
# Different flavours of pods to MatrixKit
|
|
# The current MatrixKit pod version
|
|
$matrixKitVersion = '0.7.3'
|
|
|
|
# The develop branch version
|
|
#$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
|
|
#$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
|
|
|
|
|
|
abstract_target 'RiotPods' do
|
|
|
|
pod 'GBDeviceInfo', '~> 4.4.0'
|
|
pod 'GoogleAnalytics'
|
|
|
|
# The Google WebRTC stack
|
|
pod 'WebRTC', '61.5.19063'
|
|
|
|
# OLMKit for crypto
|
|
pod 'OLMKit'
|
|
#pod 'OLMKit', :path => '../olm/OLMKit.podspec'
|
|
pod 'Realm', '~> 3.0.1'
|
|
|
|
# Remove warnings from "bad" pods
|
|
pod 'OLMKit', :inhibit_warnings => true
|
|
pod 'cmark', :inhibit_warnings => true
|
|
pod 'DTCoreText', :inhibit_warnings => true
|
|
|
|
|
|
target "Riot" do
|
|
import_MatrixKit
|
|
end
|
|
|
|
target "RiotShareExtension" do
|
|
import_MatrixKitAppExtension
|
|
end
|
|
|
|
target "SiriIntents" do
|
|
import_MatrixKitAppExtension
|
|
end
|
|
|
|
end
|
|
|