-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathPodfile
96 lines (86 loc) · 3.04 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
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '13.0'
workspace 'MAGE'
project 'MAGE.xcodeproj'
use_modular_headers!
def common_pods
pod 'UIImage-Categories', '~> 0.0.1'
pod 'HexColors', '~> 4.0.0'
pod 'libPhoneNumber-iOS', '~> 0.9.15'
pod 'zxcvbn-ios'
pod 'DateTools', '~> 2.0.0'
pod 'MaterialComponents'
pod 'MDFInternationalization'
pod 'Kingfisher', '~> 7.0'
pod 'PureLayout'
pod "AFNetworking", "~> 4.0.1"
pod "DateTools", "~> 2.0.0"
pod "MagicalRecord", "~> 2.3.2"
pod 'geopackage-ios', '~> 8.0.6'
pod 'PROJ', :modular_headers => false
pod 'mgrs-ios', '~> 1.1.6'
pod 'gars-ios', '~> 1.1.5'
pod 'SSZipArchive', '~> 2.2.2'
end
target 'MAGE' do
common_pods
target 'MAGETests' do
inherit! :search_paths
common_pods
pod 'OCMock'
pod 'OHHTTPStubs'
pod 'OHHTTPStubs/Swift'
pod 'Quick', :git=> 'https://github.com/Quick/Quick.git', :commit => 'a0a5fc857cea079fbe973e4faa80b6ceaf17bd46'
pod 'Nimble', '~> 9'
# pod 'Nimble-Snapshots', '~> 9'
pod 'KIF'
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'ARCHS'
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
config.build_settings['BITCODE_GENERATION_MODE'] = 'bitcode'
config.build_settings['ENABLE_BITCODE'] = 'YES'
# Fix Xcode 14 bundle code signing issue
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end
end
end
end
# This is a workaround for having tests work without useframeworks set
# it needs more work
# post_install do |installer|
# def merge_and_link_dirs(source, destination)
# system "echo source #{source}"
# system "echo dest #{destination}"
# system "echo source is symlink check"
# if File.symlink?(source) then
# system "echo source is symlink"
# return
# end
# if File.directory?(source) then
# system "echo source is a directory"
# system "echo #{source}/* #{destination}"
# system "mv #{source}/* #{destination}"
# system "rmdir #{source}"
# end
# system "echo ln -s ../#{destination} #{source}"
# # system "echo ln -s ../#{destination} #{source}"
# File.symlink("../#{destination}", source)
# end
# headers_dir = installer.config.project_pods_root + 'Headers/'
# # Work around for FBSnapshotTestCase with static linking.
# # This is needed because of buggy handling of the differing module and project names.
# # NOTE: Uncomment to resolve the build failure
# system "echo headers dir"
# system "echo #{headers_dir}"
# Dir.chdir(headers_dir) do
# merge_and_link_dirs('Public/FBSnapshotTestCase', 'Public/iOSSnapshotTestCase')
# merge_and_link_dirs('Private/FBSnapshotTestCase', 'Private/iOSSnapshotTestCase')
# end
# end