-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathPodfile
117 lines (100 loc) · 4.1 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
source 'https://cdn.cocoapods.org/'
source 'https://github.com/appodeal/CocoaPods.git'
platform :ios, deployment_target: '13.0'
use_frameworks! :linkage => :static
install! 'cocoapods',
share_schemes_for_development_pods: true,
incremental_installation: true,
generate_multiple_pod_projects: true
def aviasales_kit_dependencies
pod 'AviasalesKit', podspec: 'https://ios.aviasales.ru/cocoapods/AviasalesKit_6.7.podspec'
pod 'EasyTipView', git: 'https://github.com/KosyanMedia/EasyTipView.git', commit: 'ab95be17ce90ff163569e50e2e2b659f003d80a4'
pod "CollectionSwipableCellExtension", git: 'https://github.com/KosyanMedia/CollectionSwipableCellExtension.git', commit: 'd3d7c9ee8721562174cbd2c89f88b1d05bbc5fc0'
pod 'Neon', git: 'https://github.com/KosyanMedia/Neon.git', commit: '3770df30ee072a728becb8f1f6b7c29276a3dab4'
end
def google_utilites
pod 'GoogleUtilities'
end
# Generated by https://wiki.appodeal.com/en/ios/get-started page for interstitials
def appodeal
pod 'APDBidMachineAdapter', '3.0.2.1' # Required
pod 'APDIABAdapter', '3.0.2.1' # Required
pod 'APDStackAnalyticsAdapter', '3.0.2.1' # Required
# Uncomment following pods to use all available Interstitial ads
# pod 'APDAdjustAdapter', '3.0.2.1'
# pod 'APDAppLovinAdapter', '3.0.2.1'
# pod 'APDAppsFlyerAdapter', '3.0.2.1'
# pod 'BidMachineAmazonAdapter', '~> 2.0.0.0'
# pod 'BidMachineCriteoAdapter', '~> 2.0.0.0'
# pod 'BidMachineSmaatoAdapter', '~> 2.0.0.0'
# pod 'BidMachineTapjoyAdapter', '~> 2.0.0.0'
# pod 'BidMachinePangleAdapter', '~> 2.0.0.0'
# pod 'BidMachineNotsyAdapter', '~> 2.0.0.4'
# pod 'APDGoogleAdMobAdapter', '3.0.2.1'
# pod 'APDIronSourceAdapter', '3.0.2.1'
# pod 'APDFacebookAdapter', '3.0.2.1'
# pod 'APDMetaAudienceNetworkAdapter', '3.0.2.1'
# pod 'BidMachineMetaAudienceAdapter', '~> 2.0.0.0'
# pod 'APDMyTargetAdapter', '3.0.2.1'
# pod 'BidMachineMyTargetAdapter', '~> 2.0.0.2'
# pod 'APDYandexAdapter', '3.0.2.1'
end
target 'TravelpayoutsTravelApp' do
google_utilites
aviasales_kit_dependencies
appodeal
target 'TravelpayoutsTravelAppTests' do
inherit! :search_paths
end
end
target 'SampleFlightsApp' do
google_utilites
aviasales_kit_dependencies
target 'SampleFlightsAppTests' do
inherit! :search_paths
end
end
inhibit_warnings_pods = Set.new [
'Neon',
'CollectionSwipableCellExtension',
'BZipCompression',
'PromiseKit',
'SnowplowTracker',
'lottie-ios',
'PhoneNumberKit',
'Apollo',
]
pre_install do |installer|
installer.analysis_result.pod_targets.each do |target|
# suppress warnings
if inhibit_warnings_pods.include? target.pod_name
target.instance_variable_set(:@inhibit_warnings, true)
end
end
end
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
# workaround for xcode warnings
if Gem::Version.new(config.build_settings['IPHONEOS_DEPLOYMENT_TARGET']) < Gem::Version.new('11.0')
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
# workaround for build errors when using a Pod with BUILD_LIBRARY_FOR_DISTRIBUTION
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
end
project.build_configurations.each do |config|
# workaround for M1. remove when all pods support M1
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = %w(arm64)
end
# set we checked Xcode 13 recommended settings
# how it works: https://lapcatsoftware.com/articles/validate-project-settings-never.html
project.root_object.attributes['LastUpgradeCheck'] = '1420'
Dir.glob("#{project.path}/**/*\.xcscheme").each do |scheme_path|
scheme = Xcodeproj::XCScheme.new(scheme_path)
scheme.doc.root.attributes['LastUpgradeVersion'] = '1420'
scheme.save!
end
end
end