2014-10-02 17:15:51 +00:00
|
|
|
# Uncomment this line to define a global platform for your project
|
2019-04-19 16:17:16 +00:00
|
|
|
platform :ios, '10.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!
|
|
|
|
|
2017-10-17 07:44:54 +00:00
|
|
|
|
|
|
|
# Different flavours of pods to MatrixKit
|
|
|
|
# The current MatrixKit pod version
|
2019-05-03 10:31:49 +00:00
|
|
|
$matrixKitVersion = '0.9.9'
|
2017-10-17 07:44:54 +00:00
|
|
|
|
|
|
|
# The develop branch version
|
2018-08-07 16:23:05 +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'
|
2018-08-09 17:04:53 +00:00
|
|
|
pod 'MatrixSDK', :path => '../matrix-ios-sdk/MatrixSDK.podspec'
|
2018-08-24 13:26:14 +00:00
|
|
|
pod 'MatrixSDK/SwiftSupport', :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
|
2018-08-07 16:23:05 +00:00
|
|
|
if $matrixKitVersion == 'develop'
|
2018-08-09 17:04:53 +00:00
|
|
|
pod 'MatrixSDK', :git => 'https://github.com/matrix-org/matrix-ios-sdk.git', :branch => 'develop'
|
2018-08-27 15:27:22 +00:00
|
|
|
pod 'MatrixSDK/SwiftSupport', :git => 'https://github.com/matrix-org/matrix-ios-sdk.git', :branch => 'develop'
|
2018-08-07 16:23:05 +00:00
|
|
|
pod 'MatrixSDK/JingleCallStack', :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'
|
2017-10-17 08:02:58 +00:00
|
|
|
else
|
|
|
|
pod 'MatrixKit', $matrixKitVersion
|
2018-08-24 13:26:14 +00:00
|
|
|
pod 'MatrixSDK/SwiftSupport'
|
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'
|
2018-08-09 17:04:53 +00:00
|
|
|
pod 'MatrixSDK', :path => '../matrix-ios-sdk/MatrixSDK.podspec'
|
2018-08-24 13:26:14 +00:00
|
|
|
pod 'MatrixSDK/SwiftSupport', :path => '../matrix-ios-sdk/MatrixSDK.podspec'
|
2017-10-17 08:02:58 +00:00
|
|
|
pod 'MatrixKit/AppExtension', :path => '../matrix-ios-kit/MatrixKit.podspec'
|
|
|
|
else
|
2018-08-07 16:23:05 +00:00
|
|
|
if $matrixKitVersion == 'develop'
|
2018-08-09 17:04:53 +00:00
|
|
|
pod 'MatrixSDK', :git => 'https://github.com/matrix-org/matrix-ios-sdk.git', :branch => 'develop'
|
2018-08-24 13:26:14 +00:00
|
|
|
pod 'MatrixSDK/SwiftSupport', :git => 'https://github.com/matrix-org/matrix-ios-sdk.git', :branch => 'develop'
|
2018-08-07 16:23:05 +00:00
|
|
|
pod 'MatrixKit/AppExtension', :git => 'https://github.com/matrix-org/matrix-ios-kit.git', :branch => 'develop'
|
2017-10-17 08:02:58 +00:00
|
|
|
else
|
|
|
|
pod 'MatrixKit/AppExtension', $matrixKitVersion
|
2018-08-24 13:26:14 +00:00
|
|
|
pod 'MatrixSDK/SwiftSupport'
|
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'
|
2019-06-19 13:45:57 +00:00
|
|
|
pod 'Reusable', '~> 4.1'
|
2015-12-04 16:13:19 +00:00
|
|
|
|
2018-01-29 14:26:44 +00:00
|
|
|
# Piwik for analytics
|
2019-05-23 19:57:26 +00:00
|
|
|
pod 'MatomoTracker', '~> 6.0.1'
|
2018-01-29 14:26:44 +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
|
2019-01-21 23:33:12 +00:00
|
|
|
pod 'zxcvbn-ios'
|
2019-01-07 17:42:08 +00:00
|
|
|
|
2019-01-14 16:00:36 +00:00
|
|
|
# Tools
|
2019-02-20 15:43:45 +00:00
|
|
|
pod 'SwiftGen', '~> 6.1'
|
2019-06-19 14:16:30 +00:00
|
|
|
pod 'SwiftLint', '~> 0.33.0'
|
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
|
2019-05-20 22:42:20 +00:00
|
|
|
pod 'DGCollectionViewLeftAlignFlowLayout', '~> 1.0.4'
|
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'
|
|
|
|
end
|
2018-01-23 19:18:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|