-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPodfile
98 lines (82 loc) · 1.92 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
inhibit_all_warnings!
use_frameworks!
platform :ios, '13.0'
# Architecture
pod 'ReactorKit'
# DI
pod 'Pure'
pod 'Pure/Stub'
pod 'Swinject'
# Networking
pod 'Moya', '14.0.0'
pod 'Moya/RxSwift'
pod 'MoyaSugar', '1.3.3'
pod 'MoyaSugar/RxSwift', '1.3.3'
# Rx
pod 'RxSwift'
pod 'RxCocoa'
pod 'RxTexture2'
pod 'RxDataSources'
pod 'RxDataSources-Texture'
pod 'RxViewController'
# UI
pod 'Texture'
pod 'BonMot'
# Misc.
pod 'SwiftyJSON'
pod 'Then'
pod 'Testables'
#Logging
pod 'CocoaLumberjack/Swift'
# Lint
pod 'SwiftLint'
def testable_target(name)
target name do
if name == 'SoundMuseum'
#Firebase
pod 'Firebase/Analytics'
pod 'RxFirebase/Firestore'
pod 'Firebase/Firestore'
pod 'Firebase/Messaging'
pod 'RxFirebase/Firestore'
pod 'Google-Mobile-Ads-SDK'
pod 'FacebookCore'
end
yield if block_given?
target "#{name}Tests" do
pod 'Quick', :binary => true
pod 'Nimble', :binary => true
pod 'Stubber', :binary => true
pod 'RxTest', :binary => true
pod 'RxBlocking', :binary => true
end
end
end
testable_target 'SoundMuseum'
testable_target 'DndUI'
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'YES'
if config.name == 'Debug'
config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Onone'
end
if config.name == 'Release'
config.build_settings['SWIFT_COMPILATION_MODE'] = 'wholemodule'
end
if target.name == 'RxSwift' and config.name == 'Debug'
config.build_settings['OTHER_SWIFT_FLAGS'] ||= ['-D', 'TRACE_RESOURCES']
end
end
end
at_exit {
# carte(File.dirname(installer.pods_project.path))
sort_project()
}
end
# def carte(pods_dir)
# `ruby #{pods_dir}/_Prebuild/Carte/Sources/Carte/carte.rb configure`
# end
def sort_project()
`make sort`
end