Skip to content

Commit

Permalink
podspec update
Browse files Browse the repository at this point in the history
  • Loading branch information
ypopovych committed Jun 16, 2023
1 parent b5823c6 commit 7a74806
Showing 1 changed file with 14 additions and 47 deletions.
61 changes: 14 additions & 47 deletions Substrate.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/tesseract-one/Substrate.swift.git', :tag => s.version.to_s }

test_platforms = {
:ios => '10.0',
:osx => '10.12',
:tvos => '10.0'
:ios => '13.0',
:osx => '10.15',
:tvos => '13.0'
}

s.platforms = test_platforms.merge({ :watchos => '6.0' })

s.swift_versions = ['5', '5.1', '5.2', '5.3']
s.swift_version = '5.7'

s.module_name = 'Substrate'

s.subspec 'Keychain' do |ss|
ss.source_files = 'Sources/Keychain/**/*.swift'

ss.dependency 'Substrate/Substrate'
ss.dependency 'UncommonCrypto', '~> 0.1'
ss.dependency 'Bip39.swift', '~> 0.1'
ss.dependency 'Sr25519', '~> 0.1'
ss.dependency 'CSecp256k1', '~> 0.1'
ss.dependency 'UncommonCrypto', '~> 0.1.0'
ss.dependency 'Bip39.swift', '~> 0.1.0'
ss.dependency 'Sr25519', '~> 0.1.0'
ss.dependency 'CSecp256k1', '~> 0.1.0'

ss.test_spec 'KeychainTests' do |test_spec|
test_spec.platforms = test_platforms
Expand All @@ -38,51 +38,18 @@ Pod::Spec.new do |s|

s.subspec 'Substrate' do |ss|
ss.source_files = 'Sources/Substrate/**/*.swift'

ss.dependency 'Substrate/Primitives'
ss.dependency 'Substrate/RPC'

ss.dependency 'Blake2', '~> 0.1.0'
ss.dependency 'ScaleCodec', '~> 0.2.0'
ss.dependency 'xxHash-Swift', '~> 1.1.0'
ss.dependency 'JsonRPC.swift/Serializable', '~> 0.2.0'
ss.dependency 'Serializable.swift', '~> 0.2.0'

ss.test_spec 'SubstrateTests' do |test_spec|
test_spec.platforms = test_platforms
test_spec.source_files = 'Tests/SubstrateTests/**/*.swift'
end
end

s.subspec 'Polkadot' do |ss|
ss.source_files = 'Sources/Polkadot/**/*.swift'

ss.dependency 'Substrate/Substrate'

ss.test_spec 'PolkadotTests' do |test_spec|
test_spec.platforms = test_platforms
test_spec.source_files = 'Tests/PolkadotTests/**/*.swift'
end
end

s.subspec 'Primitives' do |ss|
ss.source_files = 'Sources/Primitives/**/*.swift'

ss.dependency 'Blake2', '~> 0.1'
ss.dependency 'ScaleCodec', '~> 0.2'
ss.dependency 'xxHash-Swift', '~> 1.1'

ss.test_spec 'PrimitivesTests' do |test_spec|
test_spec.platforms = test_platforms
test_spec.source_files = 'Tests/PrimitivesTests/**/*.swift'
end
end

s.subspec 'RPC' do |ss|
ss.source_files = 'Sources/RPC/**/*.swift'

ss.dependency 'TesseractWebSocket', '~> 0.2.0'

ss.test_spec 'RPCTests' do |test_spec|
test_spec.platforms = test_platforms
test_spec.dependency 'Serializable.swift', '~> 0.2'
test_spec.source_files = 'Tests/RPCTests/**/*.swift'
end
end

s.default_subspecs = 'Substrate'
end

0 comments on commit 7a74806

Please sign in to comment.