-
Notifications
You must be signed in to change notification settings - Fork 30
/
Podfile
67 lines (56 loc) · 1.73 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
platform :ios, '13.5'
post_install do |pi|
# https://github.com/CocoaPods/CocoaPods/issues/7314
fix_deployment_target(pi)
end
def fix_deployment_target(pod_installer)
if !pod_installer
return
end
puts "Make the pods deployment target version the same as our target"
project = pod_installer.pods_project
deploymentMap = {}
project.build_configurations.each do |config|
deploymentMap[config.name] = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET']
end
# p deploymentMap
project.targets.each do |t|
puts " #{t.name}"
t.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
oldTarget = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET']
newTarget = deploymentMap[config.name]
if oldTarget == newTarget
next
end
puts " #{config.name} deployment target: #{oldTarget} => #{newTarget}"
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = newTarget
end
end
# Integration of licenses generation (see https://github.com/devxoul/Carte)
pods_dir = File.dirname(pod_installer.pods_project.path)
at_exit { `ruby #{pods_dir}/Carte/Sources/Carte/carte.rb configure` }
end
# ignore all warnings from all pods
inhibit_all_warnings!
use_frameworks!
target 'CoronaContact' do
# Pods for CoronaContact
pod 'SwiftLint'
pod 'Resolver'
pod 'Moya'
pod 'SwiftRichString'
pod 'Reusable'
pod 'M13Checkbox'
pod 'Carte'
pod 'lottie-ios'
pod 'SwiftyBeaver'
pod 'SQLite.swift'
pod 'SQLiteMigrationManager.swift'
pod 'ZIPFoundation', '~> 0.9'
pod 'GEOSwift', '~> 8.0.2'
target 'CoronaContactTests' do
inherit! :search_paths
end
end