2021-08-27 09:30:01 +00:00
|
|
|
source 'https://cdn.cocoapods.org/'
|
|
|
|
|
2014-10-02 17:15:51 +00:00
|
|
|
# Uncomment this line to define a global platform for your project
|
2022-04-22 10:36:40 +00:00
|
|
|
platform :ios, '14.0'
|
2014-10-02 17:15:51 +00:00
|
|
|
|
2022-05-23 19:43:35 +00:00
|
|
|
# By default, ignore all warnings from any pod
|
|
|
|
inhibit_all_warnings!
|
|
|
|
|
2021-10-27 13:51:46 +00:00
|
|
|
# Use frameworks to allow usage of pods written in Swift
|
2018-01-23 19:18:07 +00:00
|
|
|
use_frameworks!
|
|
|
|
|
2021-11-30 17:17:27 +00:00
|
|
|
# Different flavours of pods to MatrixSDK. Can be one of:
|
|
|
|
# - a String indicating an official MatrixSDK released version number
|
2020-08-03 10:27:48 +00:00
|
|
|
# - `:local` (to use Development Pods)
|
2021-11-30 17:17:27 +00:00
|
|
|
# - `{ :branch => 'sdk branch name'}` to depend on specific branch of MatrixSDK repo
|
|
|
|
# - `{ :specHash => {sdk spec hash}` to depend on specific pod options (:git => …, :podspec => …) for MatrixSDK repo. Used by Fastfile during CI
|
2020-08-03 10:27:48 +00:00
|
|
|
#
|
|
|
|
# Warning: our internal tooling depends on the name of this variable name, so be sure not to change it
|
2022-08-10 14:23:09 +00:00
|
|
|
$matrixSDKVersion = '= 0.23.15'
|
2021-11-30 17:17:27 +00:00
|
|
|
# $matrixSDKVersion = :local
|
|
|
|
# $matrixSDKVersion = { :branch => 'develop'}
|
2021-12-07 08:51:38 +00:00
|
|
|
# $matrixSDKVersion = { :specHash => { git: 'https://git.io/fork123', branch: 'fix' } }
|
2020-08-03 10:27:48 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
|
2021-11-30 17:17:27 +00:00
|
|
|
case $matrixSDKVersion
|
2020-08-03 10:27:48 +00:00
|
|
|
when :local
|
|
|
|
$matrixSDKVersionSpec = { :path => '../matrix-ios-sdk/MatrixSDK.podspec' }
|
2021-12-02 15:30:08 +00:00
|
|
|
when Hash
|
2021-11-30 17:17:27 +00:00
|
|
|
spec_mode, sdk_spec = $matrixSDKVersion.first # extract first and only key/value pair; key is spec_mode, value is sdk_spec
|
|
|
|
|
|
|
|
case spec_mode
|
|
|
|
when :branch
|
2021-12-02 15:30:08 +00:00
|
|
|
# :branch => sdk branch name
|
2021-11-30 17:17:27 +00:00
|
|
|
sdk_spec = { :git => 'https://github.com/matrix-org/matrix-ios-sdk.git', :branch => sdk_spec.to_s } unless sdk_spec.is_a?(Hash)
|
2021-12-02 15:30:08 +00:00
|
|
|
when :specHash
|
|
|
|
# :specHash => {sdk spec Hash}
|
|
|
|
sdk_spec = sdk_spec
|
2021-11-30 17:17:27 +00:00
|
|
|
end
|
|
|
|
|
2020-08-03 10:27:48 +00:00
|
|
|
$matrixSDKVersionSpec = sdk_spec
|
2021-11-30 17:17:27 +00:00
|
|
|
when String # specific MatrixSDK released version
|
|
|
|
$matrixSDKVersionSpec = $matrixSDKVersion
|
2020-08-03 10:27:48 +00:00
|
|
|
end
|
2017-10-17 08:02:58 +00:00
|
|
|
|
2021-11-30 10:43:48 +00:00
|
|
|
# Method to import the MatrixSDK
|
|
|
|
def import_MatrixSDK
|
2022-05-31 08:50:28 +00:00
|
|
|
pod 'MatrixSDK', $matrixSDKVersionSpec, :inhibit_warnings => false
|
|
|
|
pod 'MatrixSDK/JingleCallStack', $matrixSDKVersionSpec, :inhibit_warnings => false
|
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
|
|
|
|
2021-11-30 10:43:48 +00:00
|
|
|
def import_MatrixKit_pods
|
|
|
|
pod 'libPhoneNumber-iOS', '~> 0.9.13'
|
|
|
|
pod 'DTCoreText', '~> 1.6.25'
|
|
|
|
#pod 'DTCoreText/Extension', '~> 1.6.25'
|
|
|
|
pod 'Down', '~> 0.11.0'
|
|
|
|
end
|
|
|
|
|
2021-11-01 14:52:00 +00:00
|
|
|
def import_SwiftUI_pods
|
|
|
|
pod 'Introspect', '~> 0.1'
|
2022-04-05 15:26:24 +00:00
|
|
|
pod 'DSBottomSheet', '~> 0.3'
|
2021-11-01 14:52:00 +00:00
|
|
|
end
|
|
|
|
|
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'
|
2021-10-04 16:25:19 +00:00
|
|
|
pod 'WeakDictionary', '~> 2.0'
|
2021-09-02 09:00:59 +00:00
|
|
|
|
2021-10-27 13:51:46 +00:00
|
|
|
# PostHog for analytics
|
2021-11-22 14:28:09 +00:00
|
|
|
pod 'PostHog', '~> 1.4.4'
|
2022-06-15 16:43:52 +00:00
|
|
|
pod 'Sentry', '~> 7.15.0'
|
2022-05-31 08:50:28 +00:00
|
|
|
pod 'AnalyticsEvents', :git => 'https://github.com/matrix-org/matrix-analytics-events.git', :branch => 'release/swift', :inhibit_warnings => false
|
2021-12-07 15:08:48 +00:00
|
|
|
# pod 'AnalyticsEvents', :path => '../matrix-analytics-events/AnalyticsEvents.podspec'
|
2020-08-03 10:27:48 +00:00
|
|
|
|
2022-05-23 19:44:44 +00:00
|
|
|
pod 'OLMKit'
|
|
|
|
pod 'zxcvbn-ios'
|
2020-08-03 10:27:48 +00:00
|
|
|
|
|
|
|
# Tools
|
2020-10-06 14:55:03 +00:00
|
|
|
pod 'SwiftGen', '~> 6.3'
|
2021-09-30 16:15:11 +00:00
|
|
|
pod 'SwiftLint', '~> 0.44.0'
|
2020-08-03 10:27:48 +00:00
|
|
|
|
|
|
|
target "Riot" do
|
2021-11-30 10:43:48 +00:00
|
|
|
import_MatrixSDK
|
2021-12-01 10:16:44 +00:00
|
|
|
import_MatrixKit_pods
|
2021-11-01 14:52:00 +00:00
|
|
|
|
|
|
|
import_SwiftUI_pods
|
|
|
|
|
2022-01-25 13:51:30 +00:00
|
|
|
pod 'UICollectionViewRightAlignedLayout', '~> 0.0.3'
|
2022-06-15 14:08:43 +00:00
|
|
|
pod 'UICollectionViewLeftAlignedLayout', '~> 1.0.2'
|
2020-08-03 10:27:48 +00:00
|
|
|
pod 'KTCenterFlowLayout', '~> 1.3.1'
|
|
|
|
pod 'ZXingObjC', '~> 3.6.5'
|
2021-09-30 16:15:11 +00:00
|
|
|
pod 'FlowCommoniOS', '~> 1.12.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'
|
2022-01-06 10:46:26 +00:00
|
|
|
pod 'ffmpeg-kit-ios-audio', '4.5.1'
|
2021-11-01 14:52:00 +00:00
|
|
|
|
2022-02-07 12:26:47 +00:00
|
|
|
pod 'FLEX', '~> 4.5.0', :configurations => ['Debug'], :inhibit_warnings => true
|
2021-06-09 06:58:22 +00:00
|
|
|
|
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-11-30 10:43:48 +00:00
|
|
|
import_MatrixSDK
|
|
|
|
import_MatrixKit_pods
|
2020-08-03 10:27:48 +00:00
|
|
|
end
|
|
|
|
|
2021-11-01 14:52:00 +00:00
|
|
|
target "RiotSwiftUI" do
|
|
|
|
import_SwiftUI_pods
|
|
|
|
end
|
|
|
|
|
|
|
|
target "RiotSwiftUITests" do
|
|
|
|
import_SwiftUI_pods
|
|
|
|
end
|
|
|
|
|
2020-08-03 10:27:48 +00:00
|
|
|
target "SiriIntents" do
|
2021-11-30 10:43:48 +00:00
|
|
|
import_MatrixSDK
|
|
|
|
import_MatrixKit_pods
|
2020-08-03 10:27:48 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
target "RiotNSE" do
|
2021-11-30 10:43:48 +00:00
|
|
|
import_MatrixSDK
|
|
|
|
import_MatrixKit_pods
|
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-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
|
|
|
|
2021-09-02 09:00:59 +00:00
|
|
|
# Stop Xcode 12 complaining about old IPHONEOS_DEPLOYMENT_TARGET from pods
|
2021-02-10 08:38:58 +00:00
|
|
|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
|
2022-02-07 12:26:47 +00:00
|
|
|
|
|
|
|
# Disable nullability checks
|
|
|
|
config.build_settings['WARNING_CFLAGS'] ||= ['$(inherited)','-Wno-nullability-completeness']
|
|
|
|
config.build_settings['OTHER_SWIFT_FLAGS'] ||= ['$(inherited)', '-Xcc', '-Wno-nullability-completeness']
|
2018-01-23 19:18:07 +00:00
|
|
|
end
|
2020-08-03 10:27:48 +00:00
|
|
|
end
|
2022-04-05 15:26:24 +00:00
|
|
|
end
|