-
Notifications
You must be signed in to change notification settings - Fork 1
/
Podfile
66 lines (46 loc) · 1.39 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
source 'https://github.com/CocoaPods/Specs.git'
project './DemoTableView/DemoTableView.xcodeproj'
use_frameworks!
# Pods shared across all targets
def shared_pods
# Core
pod 'RealmSwift', '~> 3.13'
pod 'SwiftyUserDefaults', '~> 3.0.0'
pod 'SwiftDate', '~> 5.1'
# Utilities
pod 'SwiftyBeaver', '~> 1.6'
pod 'SwiftGen', '~> 6.1'
pod 'SwiftLint', '~> 0.30'
end
inhibit_all_warnings!
abstract_target 'AppCommon' do
platform :ios, '11.0'
shared_pods
target 'DemoTableViewCore' do
# Core
pod 'Extra/Foundation', '~> 1.2'
pod 'Extra/Realm', '~> 1.2'
end
target 'DemoTableView' do
# UI
pod 'Extra/UIKit', '~> 1.2'
pod 'Reusable', '~> 4.0.5'
pod 'Kingfisher', '~> 5.1'
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.2'
puts "Disabling code signing for #{target.name} for configuration #{config.name}"
config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ''
config.build_settings['CODE_SIGNING_REQUIRED'] = 'NO'
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
if config.name == 'Release'
config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Owholemodule'
else
config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Onone'
end
end
end
end