-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPodfile
37 lines (32 loc) · 1.13 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
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'memory-leak-unit-test' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
pod 'RxSwift'
pod 'RxCocoa'
target 'memory-leak-unit-testTests' do
inherit! :search_paths
pod 'SpecLeaks', :git => 'https://github.com/dannysantoso/specleaks.git', :branch => 'master'
pod 'Quick'
pod 'Nimble'
pod 'RxBlocking'
pod 'RxTest'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "Nimble"
target.build_configurations.each do |config|
xcconfig_path = config.base_configuration_reference.real_path
xcconfig = File.read(xcconfig_path)
new_xcconfig = xcconfig.sub('lswiftXCTest', 'lXCTestSwiftSupport')
File.open(xcconfig_path, "w") { |file| file << new_xcconfig }
end
end
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
config.build_settings['SWIFT_VERSION'] = '5.0'
end
end
end
end