Skip to content

Instantly share code, notes, and snippets.

@hewigovens
Last active May 14, 2021 07:05
Show Gist options
  • Save hewigovens/f717de6b85ec072a5ae30f1ec2064f9d to your computer and use it in GitHub Desktop.
Save hewigovens/f717de6b85ec072a5ae30f1ec2064f9d to your computer and use it in GitHub Desktop.
TrustWalletCore podspec
Pod::Spec.new do |s|
s.name = 'TrustWalletCore'
s.version = '2.6.7'
s.summary = 'Trust Wallet core data structures and algorithms.'
s.homepage = 'https://github.com/trustwallet/wallet-core'
s.license = 'MIT'
s.authors = { 'Alejandro Isaza' => '[email protected]' }
s.module_name = 'WalletCore'
s.ios.deployment_target = '12.0'
s.osx.deployment_target = '10.14'
s.swift_version = '5.1'
s.source = {
http: 'https://github.com/hewigovens/wallet-core-spm/releases/download/0.0.1/TrustWalletCore-2.6.7_bitcode.tar.xz'
}
s.default_subspec = 'Core'
s.subspec 'Types' do |ss|
ss.source_files =
'Sources/Types/*.swift',
'Sources/Generated/Enums/*.swift',
'Sources/Generated/Protobuf/*.swift'
ss.dependency 'SwiftProtobuf'
end
s.subspec 'Core' do |ss|
ss.vendored_frameworks = '*.xcframework'
ss.exclude_files = 'Sources/Generated/WalletCore.h'
ss.source_files =
'include/**/*.h',
'Sources/*.{swift,h,m,cpp}',
'Sources/Extensions/*.swift',
'Sources/Generated/*.{swift,h}'
ss.public_header_files =
'include/**/*.h',
'Sources/*.h'
ss.libraries = 'c++'
ss.dependency 'TrustWalletCore/Types'
end
end
Pod::Spec.new do |s|
s.name = 'WalletCore'
s.version = '2.6.4'
s.summary = 'Trust Wallet core data structures and algorithms.'
s.homepage = 'https://github.com/trustwallet/wallet-core'
s.license = 'MIT'
s.authors = { 'Alejandro Isaza' => '[email protected]' }
s.ios.deployment_target = '12.0'
s.swift_version = '5.1'
s.source = {
http: "https://github.com/hewigovens/wallet-core-spm/releases/download/0.0.1/core+protobuf.tar.xz"
}
s.vendored_frameworks = 'WalletCore.xcframework', 'SwiftProtobuf.xcframework'
s.libraries = 'c++'
s.xcconfig = {
'OTHER_LDFLAGS' => '$(inherited) -fprofile-instr-generate'
}
end
@hewigovens
Copy link
Author

hewigovens commented Apr 23, 2021

how to use:

# fully pre-built dynamic xcframework
pod 'WalletCore', :podspec => 'https://path/to/WalletCore.podspec'
# swift code + pre-built static common xcframework
pod 'TrustWalletCore', :podspec => 'https://path/to/TrustWalletCore.podspec'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment