This repository has been archived by the owner on Aug 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
/
EosioSwift.podspec
106 lines (85 loc) · 4.1 KB
/
EosioSwift.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
#
# Be sure to run `pod lib lint EosioSwift.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'EosioSwift'
s.version = '1.0.0'
s.summary = 'EOSIO SDK for Swift - API for integrating with EOSIO-based blockchains.'
s.homepage = 'https://github.com/EOSIO/eosio-swift'
s.license = { :type => 'MIT', :text => <<-LICENSE
Copyright (c) 2017-2020 block.one and its contributors. All rights reserved.
LICENSE
}
s.author = { 'Todd Bowden' => 'todd.bowden@block.one',
'Serguei Vinnitskii' => 'serguei.vinnitskii@block.one',
'Farid Rahmani' => 'farid.rahmani@block.one',
'Brandon Fancher' => 'brandon.fancher@block.one',
'Mark Johnson' => 'mark.johnson@block.one',
'Paul Kim' => 'paul.kim@block.one',
'Steve McCoole' => 'steve.mccoole@objectpartners.com',
'Ben Martell' => 'ben.martell@objectpartners.com' }
s.source = { :git => 'https://github.com/EOSIO/eosio-swift.git', :tag => s.version.to_s }
s.swift_version = '5.0'
s.ios.deployment_target = '12.0'
s.subspec 'Core' do |ss|
ss.source_files = 'Sources/EosioSwift/**/*.swift'
ss.pod_target_xcconfig = {
'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
'CLANG_ENABLE_MODULES' => 'YES',
'SWIFT_COMPILATION_MODE' => 'wholemodule',
'ENABLE_BITCODE' => 'YES'
}
ss.ios.dependency 'BigInt', '~> 5.0'
ss.ios.dependency 'PromiseKit', '~> 6.8'
end
s.subspec 'AbieosSerializationProvider' do |ss|
ss.public_header_files = 'Sources/Abieos/include/abieos.h'
ss.source_files = 'Sources/Abieos/**/*.{c,h,m,cpp,hpp}',
'Sources/EosioSwiftAbieosSerializationProvider/**/*.swift'
ss.preserve_paths = 'Sources/EosioSwiftAbieosSerializationProvider/eosio.assert.abi.json',
'Sources/EosioSwiftAbieosSerializationProvider/transaction.abi.json'
ss.ios.resource_bundle = { 'EosioSwift' => 'Sources/EosioSwiftAbieosSerializationProvider/*.abi.json' }
ss.resources = 'Sources/EosioSwiftAbieosSerializationProvider/transaction.abi.json',
'Sources/EosioSwiftAbieosSerializationProvider/eosio.assert.abi.json'
ss.libraries = "c++"
ss.pod_target_xcconfig = {
'CLANG_CXX_LANGUAGE_STANDARD' => 'gnu++17',
'CLANG_CXX_LIBRARY' => 'libc++',
'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
'CLANG_ENABLE_MODULES' => 'YES',
'SWIFT_COMPILATION_MODE' => 'wholemodule',
'ENABLE_BITCODE' => 'YES'
}
ss.ios.dependency 'EosioSwift/Core'
end
s.subspec 'Ecc' do |ss|
ss.source_files = 'Sources/libtom/**/*.{c,h}',
'Sources/EosioSwiftEcc/**/*.swift'
ss.public_header_files = 'Sources/libtom/libtomcrypt/headers/*.h'
ss.pod_target_xcconfig = {
'GCC_C_LANGUAGE_STANDARD' => 'c99',
'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
'CLANG_ENABLE_MODULES' => 'YES',
'OTHER_SWIFT_FLAGS' => '$(inherited) -DMP_NO_DEV_URANDOM -DLTM_DESC -DLTC_SOURCE -DLTC_NO_TEST',
'OTHER_CFLAGS' => '$(inherited) -DMP_NO_DEV_URANDOM -DLTM_DESC -DLTC_SOURCE -DLTC_NO_TEST',
'SWIFT_COMPILATION_MODE' => 'wholemodule',
'ENABLE_BITCODE' => 'YES'
}
ss.ios.dependency 'EosioSwift/Core'
end
s.subspec 'SoftkeySignatureProvider' do |ss|
ss.source_files = 'Sources/EosioSwiftSoftkeySignatureProvider/**/*.swift'
ss.pod_target_xcconfig = {
'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
'CLANG_ENABLE_MODULES' => 'YES',
'SWIFT_COMPILATION_MODE' => 'wholemodule',
'ENABLE_BITCODE' => 'YES'
}
ss.ios.dependency 'EosioSwift/Ecc'
ss.ios.dependency 'EosioSwift/Core'
end
end