-
Notifications
You must be signed in to change notification settings - Fork 7
/
Podfile
58 lines (48 loc) · 1.44 KB
/
Podfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Uncomment the next line to define a global platform for your project
platform :ios, '12.0'
# Ignore all warnings from all pods
inhibit_all_warnings!
# Basic
def basic_pods
pod 'Alamofire', '~> 4.4'
pod 'CodableAlamofire'
pod 'ColorCompatibility'
# pod 'SwiftyBeaver'
pod 'RxSwift', '~> 5.0'
pod 'RxCocoa', '~> 5.0'
pod 'RxSwiftExt', '~> 5.0'
pod 'RxDataSources', '~> 4.0'
end
# Testing
def test_pods
pod 'RxBlocking', '~> 5.0'
pod 'RxTest', '~> 5.0'
end
target 'MVVMC-SplitViewController' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for MVVMC-SplitViewController
basic_pods
target 'MVVMC-SplitViewControllerTests' do
inherit! :search_paths
# Pods for testing
# test_pods
end
post_install do |installer|
installer.pods_project.targets.each do |target|
# Fix RxSwift error
# https://stackoverflow.com/a/75729977/4472195
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
# Enable RxSwift.Resources for debugging
if target.name == 'RxSwift'
target.build_configurations.each do |config|
if config.name == 'Debug'
config.build_settings['OTHER_SWIFT_FLAGS'] ||= ['-D', 'TRACE_RESOURCES']
end
end
end
end
end
end