forked from mobilecoinofficial/MobileCoin-Swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPodfile
91 lines (79 loc) · 3.68 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
source 'https://cdn.cocoapods.org/'
platform :ios, '12.2'
plugin 'cocoapods-repo-update'
plugin 'cocoapods-keys', {
:project => "MobileCoin",
:keys => [
"devNetworkAuthUsername",
"devNetworkAuthPassword",
"testNetTestAccountMnemonicsCommaSeparated",
"mobileDevTestAccountMnemonicsCommaSeparated",
"dynamicTestAccountSeedEntropiesCommaSeparated",
"dynamicFogAuthoritySpki",
]}
use_frameworks!
ENV['MC_ENABLE_SWIFTLINT_SCRIPT'] = '1'
ENV['MC_ENABLE_WARN_LONG_COMPILE_TIMES'] = '1'
target 'Example' do
pod 'MobileCoin', path: '..', testspecs: ['Tests', 'IntegrationNonTransactingTests', 'IntegrationTransactingTests', 'PerformanceTests']
# pod 'MobileCoin/Core', path: '..', testspecs: ['ProtocolUnitTests']
pod 'MobileCoin/CoreHTTP', path: '..', testspecs: ['HttpProtocolUnitTests']
# pod 'MobileCoin', podspec: '../MobileCoin.podspec'
# pod 'MobileCoin/Core', podspec: '../MobileCoin.podspec', testspecs: ['ProtocolUnitTests']
# pod 'MobileCoin', git: 'https://github.com/mobilecoinofficial/MobileCoin-Swift.git'
# pod 'MobileCoin/Core', git: 'https://github.com/mobilecoinofficial/MobileCoin-Swift.git', testspecs: ['ProtocolUnitTests']
# pod 'LibMobileCoin', path: '../Vendor/libmobilecoin-ios-artifacts'
# pod 'LibMobileCoin/Core', path: '../Vendor/libmobilecoin-ios-artifacts'
pod 'LibMobileCoin/CoreHTTP', path: '../Vendor/libmobilecoin-ios-artifacts'
# pod 'LibMobileCoin', podspec: '../Vendor/libmobilecoin-ios-artifacts/LibMobileCoin.podspec'
# pod 'LibMobileCoin', git: 'https://github.com/the-real-adammork/libmobilecoin-ios-artifacts.git'
pod 'SwiftProtobuf'
pod 'SwiftLint'
end
post_install do |installer|
# Enable building tests using Testable Release build configuration
installer.pods_project.targets.each do |target|
next unless target.name == 'MobileCoin'
target.build_configurations.each do |config|
next unless config.name == 'Testable Release'
config.build_settings['ENABLE_TESTABILITY'] = 'YES'
end
end
# Enable running performance tests on a physical device
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if target.name == 'AppHost-MobileCoin-UI-Tests'
config.build_settings['DEVELOPMENT_TEAM'] = '8JT9JJD9Y5'
elsif target.name.start_with? 'MobileCoin-UI-'
config.build_settings['DEVELOPMENT_TEAM'] = '8JT9JJD9Y5'
config.build_settings.delete('CODE_SIGN_IDENTITY[sdk=iphoneos*]')
end
end
end
# Delete minimum deployment target of example project for Xcode 13
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
end
end
# Add Keys framework to Integration Tests for injecting values using cocoapods-keys
installer.pods_project.targets.each do |target|
next unless ( target.name == 'MobileCoin-Unit-IntegrationTransactingTests' || target.name == 'MobileCoin-Unit-IntegrationNonTransactingTests' )
installer.pods_project.targets.each do |keys_target|
next unless keys_target.name == 'Keys'
target.add_dependency(keys_target)
end
target.build_configurations.each do |config|
config.build_settings["FRAMEWORK_SEARCH_PATHS"] ||= "$(inherited)"
config.build_settings["FRAMEWORK_SEARCH_PATHS"] << ' "${PODS_CONFIGURATION_BUILD_DIR}/Keys"'
config.build_settings["OTHER_LDFLAGS"] ||= "$(inherited)"
config.build_settings["OTHER_LDFLAGS"] << ' -framework "Keys"'
end
end
# Disable bitcode on test targets
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end