-
Notifications
You must be signed in to change notification settings - Fork 1
/
Podfile
49 lines (38 loc) · 1.19 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
platform :ios, '12.0'
project '{{NAME}}SampleApp/{{NAME}}SampleApp.xcproj'
source "[email protected]:sumup/cocoapods-specs.git"
source 'https://cdn.cocoapods.org'
load "submodules/ios-tooling/cocoapods/Podfile-Helper.rb"
target '{{NAME}}SampleApp' do
inhibit_all_warnings!
use_frameworks!
pod '{{NAME}}', :path => '.', :inhibit_warnings => false
pod 'SMPIdentity', '~> 0.2.22', :subspecs => ['SampleAppIntegration']
target '{{NAME}}UnitTests' do
inherit! :search_paths
end
target '{{NAME}}SnapshotTests' do
inherit! :search_paths
pod 'SumUpSnapshotTesting'
end
end
post_install do |installer|
remove_mac_catalyst_support(installer)
fix_deployment_target(installer)
fix_last_upgrade_check(installer)
end
def remove_mac_catalyst_support(installer)
apply_settings_to_generated_projects(installer, {
'SUPPORTS_MACCATALYST' => 'NO',
'SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD' => 'NO'
})
end
def apply_settings_to_generated_projects(installer, build_settings)
installer.generated_projects.each do |project|
project.build_configurations.each do |config|
build_settings.each do |key, value|
config.build_settings[key] = value
end
end
end
end