-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCardano.swift.podspec
66 lines (50 loc) · 2.02 KB
/
Cardano.swift.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
Pod::Spec.new do |s|
s.name = 'Cardano.swift'
s.version = '0.1.4'
s.summary = 'Swift APIs for Cardano network.'
s.homepage = 'https://github.com/tesseract-one/Cardano.swift'
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
s.author = { 'Tesseract Systems, Inc.' => 'info@tesseract.one' }
s.source = { :git => 'https://github.com/tesseract-one/Cardano.swift.git', :tag => s.version.to_s }
s.ios.deployment_target = '13.0'
s.osx.deployment_target = '10.15'
# s.tvos.deployment_target = '13.0'
s.swift_version = '5.4'
s.module_name = 'Cardano'
s.subspec 'Cardano' do |ss|
ss.dependency 'OrderedCollections', '~> 1.0.2'
ss.dependency 'BigInt', '~> 5.2'
ss.dependency 'Bip39.swift', '~> 0.1.1'
ss.source_files = 'Sources/Cardano/**/*.swift', 'Sources/Core/**/*.swift'
ss.pod_target_xcconfig = {
'ENABLE_BITCODE' => 'NO'
}
ss.subspec 'Binary' do |sss|
sss.dependency 'Cardano-Binaries', '~> 0.1.4'
sss.pod_target_xcconfig = {
'LIBRARY_SEARCH_PATHS' => '$(inherited) "${PODS_XCFRAMEWORKS_BUILD_DIR}/Cardano-Binaries"',
'CARDANO_USES_BINARY_RUST_XCFRAMEWORK' => 'YES'
}
end
ss.subspec 'Build' do |sss|
sss.preserve_paths = "rust/**/*"
sss.script_phase = {
:name => "Build Rust Binary",
:script => 'bash "${PODS_TARGET_SRCROOT}/rust/scripts/xcode_build_step.sh"',
:execution_position => :before_compile
}
end
ss.test_spec 'CoreTests' do |test_spec|
test_spec.source_files = 'Tests/CoreTests/**/*.swift'
end
ss.test_spec 'CardanoTests' do |test_spec|
test_spec.source_files = 'Tests/CardanoTests/**/*.swift'
end
end
s.subspec 'Blockfrost' do |ss|
ss.source_files = 'Sources/Blockfrost/**/*.swift'
ss.dependency 'BlockfrostSwiftSDK', '~> 0.0.7'
ss.dependency 'Cardano.swift/Cardano'
end
s.default_subspecs = 'Cardano/Binary', 'Blockfrost'
end