-
Notifications
You must be signed in to change notification settings - Fork 1
/
ProtonCore-LoginUI.podspec
118 lines (98 loc) · 5.09 KB
/
ProtonCore-LoginUI.podspec
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
require_relative 'pods_configuration'
Pod::Spec.new do |s|
s.name = 'ProtonCore-LoginUI'
s.module_name = 'ProtonCoreLoginUI'
s.version = $version
s.summary = 'shared frameworks'
s.description = <<-DESC
ios shared frameworks for all client apps
DESC
s.homepage = $homepage
s.license = $license
s.author = $author
s.source = $source
s.ios.deployment_target = $ios_deployment_target
s.osx.deployment_target = $macos_deployment_target
s.swift_versions = $swift_versions
s.pod_target_xcconfig = { 'APPLICATION_EXTENSION_API_ONLY' => 'NO' }
s.ios.framework = 'UIKit'
s.osx.framework = 'AppKit'
s.dependency 'ProtonCore-Log', $version
s.dependency 'ProtonCore-Foundations', $version
s.dependency 'ProtonCore-UIFoundations', $version
s.dependency 'ProtonCore-Challenge', $version
s.dependency 'ProtonCore-DataModel', $version
s.dependency 'ProtonCore-TroubleShooting', $version
s.dependency 'ProtonCore-Environment', $version
s.dependency 'ProtonCore-Observability', $version
s.dependency "ProtonCore-Crypto", $version
s.dependency "ProtonCore-CryptoGoInterface", $version
s.dependency "ProtonCore-Authentication", $version
s.dependency "ProtonCore-Authentication-KeyGeneration", $version
s.dependency "ProtonCore-Login", $version
s.dependency "ProtonCore-Payments", $version
s.dependency "ProtonCore-PaymentsUI", $version
s.dependency "ProtonCore-HumanVerification", $version
s.dependency "ProtonCore-Telemetry", $version
s.dependency 'lottie-ios', '4.3.3'
s.dependency 'TrustKit'
s.source_files = "libraries/LoginUI/Sources/**/*.swift"
s.ios.resource_bundles = {
'Resources-LoginUI' => [
"libraries/LoginUI/Resources/**/*.{xib,storyboard,json}"
],
'Translations-LoginUI' => [
"libraries/LoginUI/Sources/Resources/Translations/*"
]
}
s.osx.resource_bundles = {
'Translations-LoginUI' => [
"libraries/LoginUI/Sources/Resources/Translations/*"
]
}
this_pod_does_not_have_subspecs(s)
make_unit_test_subspec = ->(spec, crypto) {
spec.test_spec "Unit#{crypto_test_subspec(crypto)}" do |test_spec|
test_spec.dependency "ProtonCore-Crypto", $version
test_spec.dependency "ProtonCore-CryptoGoInterface", $version
test_spec.dependency "ProtonCore-CryptoGoImplementation/#{crypto_subspec(crypto)}", $version
test_spec.dependency "ProtonCore-Authentication", $version
test_spec.dependency "ProtonCore-Authentication-KeyGeneration", $version
test_spec.dependency "ProtonCore-Login", $version
test_spec.dependency "ProtonCore-Payments", $version
test_spec.dependency "ProtonCore-PaymentsUI", $version
test_spec.dependency "ProtonCore-HumanVerification", $version
test_spec.dependency "ProtonCore-ObfuscatedConstants", $version
test_spec.dependency "ProtonCore-TestingToolkit/UnitTests/Core", $version
test_spec.dependency "ProtonCore-TestingToolkit/TestData", $version
test_spec.dependency "ProtonCore-TestingToolkit/UnitTests/LoginUI", $version
test_spec.dependency "ProtonCore-TestingToolkit/UnitTests/Observability", $version
test_spec.dependency "OHHTTPStubs/Swift"
test_spec.dependency "TrustKit"
test_spec.source_files = 'libraries/LoginUI/Tests/UnitTests/**/*.swift'
test_spec.resources = "libraries/LoginUI/Tests/UnitTests/**/*.json"
end
}
make_all_go_variants(make_unit_test_subspec, s)
make_integration_test_subspec = ->(spec, crypto) {
spec.test_spec "Integration#{crypto_test_subspec(crypto)}" do |test_spec|
test_spec.dependency "ProtonCore-Crypto", $version
test_spec.dependency "ProtonCore-CryptoGoInterface", $version
test_spec.dependency "ProtonCore-CryptoGoImplementation/#{crypto_subspec(crypto)}", $version
test_spec.dependency "ProtonCore-Authentication", $version
test_spec.dependency "ProtonCore-Authentication-KeyGeneration", $version
test_spec.dependency "ProtonCore-Login", $version
test_spec.dependency "ProtonCore-Payments", $version
test_spec.dependency "ProtonCore-PaymentsUI", $version
test_spec.dependency "ProtonCore-HumanVerification", $version
test_spec.dependency "ProtonCore-ObfuscatedConstants", $version
test_spec.dependency "ProtonCore-TestingToolkit/UnitTests/Core", $version
test_spec.dependency "ProtonCore-TestingToolkit/TestData", $version
test_spec.dependency "ProtonCore-TestingToolkit/UnitTests/LoginUI", $version
test_spec.dependency "TrustKit"
test_spec.source_files = 'libraries/LoginUI/Tests/IntegrationTests/**/*.swift'
add_dynamic_domain_to_info_plist(test_spec)
end
}
make_all_go_variants(make_integration_test_subspec, s)
end