-
Notifications
You must be signed in to change notification settings - Fork 36
/
Podfile
134 lines (112 loc) · 4.62 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Uncomment the next line to define a global platform for your project
platform :ios, '15.0'
# Debug Xcode configurations
debug_configuration = 'Debug(production)'
debug_alpha_configuration = 'Debug(alpha)'
debug_beta_configuration = 'Debug(beta)'
# Release Xcode configurations
release_configuration = 'Release(production)'
release_alpha_configuration = 'Release(alpha)'
release_beta_configuration = 'Release(beta)'
project 'TangemApp.xcodeproj',
debug_configuration => :debug,
debug_alpha_configuration => :debug,
debug_beta_configuration => :debug,
release_configuration => :release,
release_alpha_configuration => :release,
release_beta_configuration => :release
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
inhibit_all_warnings!
target 'Tangem' do
# Pods for Tangem
pod 'Kingfisher', '~> 7.11.0'
pod 'BlockiesSwift', '~> 0.1.2'
pod 'CombineExt', '~> 1.8.0'
# Debug and development pods
pod 'GDPerformanceView-Swift', '~> 2.1', :configurations => [
debug_configuration,
debug_alpha_configuration,
debug_beta_configuration,
release_alpha_configuration,
release_beta_configuration,
]
# Support chat
#pod 'SPRMessengerClient', :git => 'https://github.com/tangem/SPRMessengerClient-binaries-ios.git', :tag => 'sprinklr-3.6.2-tangem1'
# Analytics
pod 'AmplitudeSwift', '1.6.2'
pod 'Firebase/Crashlytics', '10.29.0'
pod 'Firebase/Analytics', '10.29.0'
# Push notifications
pod 'Firebase/Messaging', '10.29.0'
target 'TangemTests' do
inherit! :search_paths
# Pods for testing
end
target 'TangemUITests' do
# Pods for testing
end
end
pre_install do |installer|
# workaround for https://github.com/CocoaPods/CocoaPods/issues/3289
Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
if config.name.downcase.include?("debug")
config.build_settings['GCC_OPTIMIZATION_LEVEL'] = '0'
config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Onone'
config.build_settings['ONLY_ACTIVE_ARCH'] = 'YES'
config.build_settings['ENABLE_TESTABILITY'] = 'YES'
config.build_settings['SWIFT_COMPILATION_MODE'] = 'Incremental'
end
# Fix warnings on Xcode 15 https://indiestack.com/2023/10/xcode-15-duplicate-library-linker-warnings/
config.build_settings['OTHER_LDFLAGS'] ||= ['$(inherited)']
config.build_settings['OTHER_LDFLAGS'] << '-Wl,-no_warn_duplicate_libraries'
config.build_settings['DEAD_CODE_STRIPPING'] = 'YES'
end
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0'
end
end
end
# Warning: Deprecated due to the migration to SPM
# Adds given SPM package as a dependency to a specific target in the `Pods` project.
# Valid values for the `requirement` parameter are:
# - `{ :kind => "upToNextMajorVersion", :minimumVersion => "1.0.0" }`
# - `{ :kind => "upToNextMinorVersion", :minimumVersion => "1.0.0" }`
# - `{ :kind => "exactVersion", :version => "1.0.0" }`
# - `{ :kind => "versionRange", :minimumVersion => "1.0.0", :maximumVersion => "2.0.0" }`
# - `{ :kind => "branch", :branch => "some-feature-branch" }`
# - `{ :kind => "revision", :revision => "4a9b230f2b18e1798abbba2488293844bf62b33f" }`
def add_spm_package_to_target(project, target_name, url, product_name, requirement)
project.targets.each do |target|
if target.name == target_name
pkg = project.new(Xcodeproj::Project::Object::XCRemoteSwiftPackageReference)
pkg.repositoryURL = url
pkg.requirement = requirement
ref = project.new(Xcodeproj::Project::Object::XCSwiftPackageProductDependency)
ref.package = pkg
ref.product_name = product_name
target.package_product_dependencies << ref
project_already_has_this_pkg = false
project.root_object.package_references.each do |existing_ref|
if existing_ref.display_name.downcase.eql?(url.downcase)
project_already_has_this_pkg = true
break
end
end
unless project_already_has_this_pkg
project.root_object.package_references << pkg
end
target.build_configurations.each do |config|
config.build_settings['SWIFT_INCLUDE_PATHS'] = '$(inherited) ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)'
end
end
end
project.save
end