2019-09-09 08:30:38 -07:00
|
|
|
Pod::Spec.new do |s|
|
|
|
|
s.name = 'ZcashLightClientKit'
|
2020-08-10 15:19:59 -07:00
|
|
|
s.version = '0.6.0'
|
2019-09-09 08:30:38 -07:00
|
|
|
s.summary = 'Zcash Light Client wallet SDK for iOS'
|
|
|
|
|
|
|
|
s.description = <<-DESC
|
|
|
|
Zcash Light Client wallet SDK for iOS
|
|
|
|
DESC
|
|
|
|
|
|
|
|
s.homepage = 'https://github.com/zcash/ZcashLightClientKit'
|
2020-06-09 19:06:52 -07:00
|
|
|
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
2019-09-09 08:54:21 -07:00
|
|
|
s.author = {
|
|
|
|
'Francisco Gindre' => 'francisco.gindre@gmail.com',
|
|
|
|
'Jack Grigg' => 'str4d@electriccoin.co'
|
|
|
|
}
|
2019-09-09 08:30:38 -07:00
|
|
|
s.source = { :git => 'https://github.com/zcash/ZcashLightClientKit.git', :tag => s.version.to_s }
|
|
|
|
|
|
|
|
s.source_files = 'ZcashLightClientKit/**/*.{swift,h,a}'
|
|
|
|
s.module_map = 'ZcashLightClientKit.modulemap'
|
2019-11-26 14:32:20 -08:00
|
|
|
s.swift_version = '5.1'
|
2020-06-10 06:46:45 -07:00
|
|
|
s.ios.deployment_target = '12.0'
|
2020-08-10 15:19:59 -07:00
|
|
|
s.dependency 'gRPC-Swift', '~> 1.0.0-alpha.17'
|
2020-01-14 19:33:45 -08:00
|
|
|
s.dependency 'SQLite.swift', '~> 0.12.2'
|
2019-09-09 08:30:38 -07:00
|
|
|
s.ios.vendored_libraries = 'lib/libzcashlc.a'
|
2020-01-14 14:25:14 -08:00
|
|
|
s.preserve_paths = ['Scripts', 'rust','docs','Cargo.*','ZcashLightClientKit/Stencil']
|
2019-09-09 08:30:38 -07:00
|
|
|
s.prepare_command = <<-CMD
|
2020-01-14 14:25:14 -08:00
|
|
|
sh Scripts/prepare_zcash_sdk.sh
|
2019-11-14 06:38:54 -08:00
|
|
|
CMD
|
2020-01-14 14:25:14 -08:00
|
|
|
|
|
|
|
s.script_phase = {
|
|
|
|
:name => 'Build generate constants and build librustzcash',
|
|
|
|
:script => 'sh ${PODS_TARGET_SRCROOT}/Scripts/generate_zcashsdk_constants.sh && sh ${PODS_TARGET_SRCROOT}/Scripts/build_librustzcash_xcode.sh',
|
|
|
|
:execution_position => :before_compile
|
|
|
|
}
|
|
|
|
s.test_spec 'Tests' do | test_spec |
|
|
|
|
test_spec.source_files = 'ZcashLightClientKitTests/**/*.{swift}'
|
|
|
|
test_spec.ios.resources = 'ZcashLightClientKitTests/**/*.{db,params}'
|
|
|
|
test_spec.script_phase = {
|
|
|
|
:name => 'Build generate constants and build librustzcash',
|
2020-01-15 10:20:12 -08:00
|
|
|
:script => 'sh ${PODS_TARGET_SRCROOT}/Scripts/generate_test_constants.sh && ${PODS_TARGET_SRCROOT}/Scripts/build_librustzcash_xcode.sh --testing',
|
2020-01-14 14:25:14 -08:00
|
|
|
:execution_position => :before_compile
|
|
|
|
}
|
2020-08-10 16:34:00 -07:00
|
|
|
test_spec.dependency 'gRPC-Swift', '~> 1.0.0-alpha.17'
|
2020-01-14 19:33:45 -08:00
|
|
|
test_spec.dependency 'SQLite.swift', '~> 0.12.2'
|
2019-09-09 08:30:38 -07:00
|
|
|
end
|
2020-01-14 14:25:14 -08:00
|
|
|
end
|