2014-10-02 17:15:51 +00:00
|
|
|
|
# Uncomment this line to define a global platform for your project
|
2021-07-16 10:32:19 +00:00
|
|
|
|
platform :ios, '11.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!
|
|
|
|
|
|
2020-08-03 10:27:48 +00:00
|
|
|
|
# Different flavours of pods to MatrixKit. Can be one of:
|
|
|
|
|
# - a String indicating an official MatrixKit released version number
|
|
|
|
|
# - `:local` (to use Development Pods)
|
|
|
|
|
# - `{'kit branch name' => 'sdk branch name'}` to depend on specific branches of each repo
|
|
|
|
|
# - `{ {kit spec hash} => {sdk spec hash}` to depend on specific pod options (:git => …, :podspec => …) for each repo. Used by Fastfile during CI
|
|
|
|
|
#
|
|
|
|
|
# Warning: our internal tooling depends on the name of this variable name, so be sure not to change it
|
2021-08-11 12:48:25 +00:00
|
|
|
|
$matrixKitVersion = '= 0.15.7'
|
2020-08-03 10:27:48 +00:00
|
|
|
|
# $matrixKitVersion = :local
|
2020-12-21 06:37:54 +00:00
|
|
|
|
# $matrixKitVersion = {'develop' => 'develop'}
|
2020-08-03 10:27:48 +00:00
|
|
|
|
|
|
|
|
|
########################################
|
|
|
|
|
|
|
|
|
|
case $matrixKitVersion
|
|
|
|
|
when :local
|
|
|
|
|
$matrixKitVersionSpec = { :path => '../matrix-ios-kit/MatrixKit.podspec' }
|
|
|
|
|
$matrixSDKVersionSpec = { :path => '../matrix-ios-sdk/MatrixSDK.podspec' }
|
|
|
|
|
when Hash # kit branch name => sdk branch name – or {kit spec Hash} => {sdk spec Hash}
|
|
|
|
|
kit_spec, sdk_spec = $matrixKitVersion.first # extract first and only key/value pair; key is kit_spec, value is sdk_spec
|
|
|
|
|
kit_spec = { :git => 'https://github.com/matrix-org/matrix-ios-kit.git', :branch => kit_spec.to_s } unless kit_spec.is_a?(Hash)
|
|
|
|
|
sdk_spec = { :git => 'https://github.com/matrix-org/matrix-ios-sdk.git', :branch => sdk_spec.to_s } unless sdk_spec.is_a?(Hash)
|
|
|
|
|
$matrixKitVersionSpec = kit_spec
|
|
|
|
|
$matrixSDKVersionSpec = sdk_spec
|
|
|
|
|
when String # specific MatrixKit released version
|
|
|
|
|
$matrixKitVersionSpec = $matrixKitVersion
|
|
|
|
|
$matrixSDKVersionSpec = {}
|
|
|
|
|
end
|
2017-10-17 08:02:58 +00:00
|
|
|
|
|
2021-02-12 11:06:02 +00:00
|
|
|
|
# Method to import the MatrixKit
|
2017-10-17 08:02:58 +00:00
|
|
|
|
def import_MatrixKit
|
2020-08-03 10:27:48 +00:00
|
|
|
|
pod 'MatrixSDK', $matrixSDKVersionSpec
|
|
|
|
|
pod 'MatrixSDK/JingleCallStack', $matrixSDKVersionSpec
|
|
|
|
|
pod 'MatrixKit', $matrixKitVersionSpec
|
2017-10-17 08:02:58 +00:00
|
|
|
|
end
|
|
|
|
|
|
2020-08-03 10:27:48 +00:00
|
|
|
|
########################################
|
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
|
|
|
|
|
2021-03-15 11:01:48 +00:00
|
|
|
|
pod 'GBDeviceInfo', '~> 6.6.0'
|
2020-08-03 10:27:48 +00:00
|
|
|
|
pod 'Reusable', '~> 4.1'
|
2021-03-15 11:01:48 +00:00
|
|
|
|
pod 'KeychainAccess', '~> 4.2.2'
|
2020-04-09 12:31:26 +00:00
|
|
|
|
|
2020-08-03 10:27:48 +00:00
|
|
|
|
# Piwik for analytics
|
2021-03-15 11:01:48 +00:00
|
|
|
|
pod 'MatomoTracker', '~> 7.4.1'
|
2020-08-03 10:27:48 +00:00
|
|
|
|
|
|
|
|
|
# Remove warnings from "bad" pods
|
|
|
|
|
pod 'OLMKit', :inhibit_warnings => true
|
2020-09-01 09:33:52 +00:00
|
|
|
|
pod 'zxcvbn-ios', :inhibit_warnings => true
|
|
|
|
|
pod 'HPGrowingTextView', :inhibit_warnings => true
|
2020-08-03 10:27:48 +00:00
|
|
|
|
|
|
|
|
|
# Tools
|
2020-10-06 14:55:03 +00:00
|
|
|
|
pod 'SwiftGen', '~> 6.3'
|
2021-03-15 11:01:48 +00:00
|
|
|
|
pod 'SwiftLint', '~> 0.43.0'
|
2020-08-03 10:27:48 +00:00
|
|
|
|
|
|
|
|
|
target "Riot" do
|
|
|
|
|
import_MatrixKit
|
|
|
|
|
pod 'DGCollectionViewLeftAlignFlowLayout', '~> 1.0.4'
|
|
|
|
|
pod 'KTCenterFlowLayout', '~> 1.3.1'
|
|
|
|
|
pod 'ZXingObjC', '~> 3.6.5'
|
2021-03-15 11:01:48 +00:00
|
|
|
|
pod 'FlowCommoniOS', '~> 1.10.0'
|
2020-10-06 14:27:23 +00:00
|
|
|
|
pod 'ReadMoreTextView', '~> 3.0.1'
|
2020-10-27 23:24:19 +00:00
|
|
|
|
pod 'SwiftBase32', '~> 0.9.0'
|
2021-03-15 11:01:48 +00:00
|
|
|
|
pod 'SwiftJWT', '~> 3.6.200'
|
2021-06-07 16:42:16 +00:00
|
|
|
|
pod 'SideMenu', '~> 6.5'
|
2021-06-14 14:47:59 +00:00
|
|
|
|
pod 'DSWaveformImage', '~> 6.1.1'
|
2021-07-16 10:32:19 +00:00
|
|
|
|
pod 'ffmpeg-kit-ios-audio', '~> 4.4.LTS'
|
2020-08-03 10:27:48 +00:00
|
|
|
|
|
2021-06-09 06:58:22 +00:00
|
|
|
|
pod 'FLEX', '~> 4.4.1', :configurations => ['Debug']
|
|
|
|
|
|
2020-08-03 10:27:48 +00:00
|
|
|
|
target 'RiotTests' do
|
|
|
|
|
inherit! :search_paths
|
2017-10-12 13:53:02 +00:00
|
|
|
|
end
|
2020-08-03 10:27:48 +00:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
target "RiotShareExtension" do
|
2021-02-12 11:06:02 +00:00
|
|
|
|
import_MatrixKit
|
2020-08-03 10:27:48 +00:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
target "SiriIntents" do
|
2021-02-12 11:06:02 +00:00
|
|
|
|
import_MatrixKit
|
2020-08-03 10:27:48 +00:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
target "RiotNSE" do
|
2021-02-12 11:06:02 +00:00
|
|
|
|
import_MatrixKit
|
2020-08-03 10:27:48 +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|
|
2020-08-03 10:27:48 +00:00
|
|
|
|
installer.pods_project.targets.each do |target|
|
|
|
|
|
|
|
|
|
|
target.build_configurations.each do |config|
|
2020-10-23 11:58:53 +00:00
|
|
|
|
# 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
|
2020-10-06 14:27:23 +00:00
|
|
|
|
config.build_settings['ENABLE_BITCODE'] = 'NO'
|
2020-10-23 11:58:53 +00:00
|
|
|
|
|
2020-11-16 21:37:47 +00:00
|
|
|
|
# Make fastlane(xcodebuild) happy by preventing it from building for arm64 simulator
|
|
|
|
|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
|
|
|
|
|
|
2020-10-06 14:27:23 +00:00
|
|
|
|
# Force ReadMoreTextView to use Swift 5.2 version (as there is no code changes to perform)
|
|
|
|
|
if target.name.include? 'ReadMoreTextView'
|
|
|
|
|
config.build_settings['SWIFT_VERSION'] = '5.2'
|
|
|
|
|
end
|
2021-02-10 08:38:58 +00:00
|
|
|
|
|
|
|
|
|
# Stop Xcode 12 complaining about old IPHONEOS_DEPLOYMENT_TARGET from pods
|
|
|
|
|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
|
2018-01-23 19:18:07 +00:00
|
|
|
|
end
|
2020-08-03 10:27:48 +00:00
|
|
|
|
end
|
2018-01-23 19:18:07 +00:00
|
|
|
|
end
|