| 1 | # |
| 2 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. |
| 3 | # Run `pod lib lint cw_shared_external.podspec` to validate before publishing. |
| 4 | # |
| 5 | Pod::Spec.new do |s| |
| 6 | s.name = 'cw_shared_external' |
| 7 | s.version = '0.0.1' |
| 8 | s.summary = 'Shared libraries for monero and haven.' |
| 9 | s.description = 'Shared libraries for monero and haven.' |
| 10 | s.homepage = 'http://cakewallet.com' |
| 11 | s.license = { :file => '../LICENSE' } |
| 12 | s.author = { 'Cake Wallet' => 'm@cakewallet.com' } |
| 13 | s.source = { :path => '.' } |
| 14 | s.source_files = 'Classes/**/*' |
| 15 | s.dependency 'Flutter' |
| 16 | s.platform = :ios, '10.0' |
| 17 | |
| 18 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS' => 'arm64', 'ENABLE_BITCODE' => 'NO' } |
| 19 | s.swift_version = '5.0' |
| 20 | |
| 21 | s.subspec 'OpenSSL' do |openssl| |
| 22 | openssl.preserve_paths = 'External/ios/include/*.h' |
| 23 | openssl.vendored_libraries = 'External/ios/lib/libcrypto.a', 'External/ios/lib/libssl.a' |
| 24 | openssl.libraries = 'ssl', 'crypto' |
| 25 | openssl.xcconfig = { 'HEADER_SEARCH_PATHS' => "${PODS_ROOT}/#{s.name}/External/ios/include/**" } |
| 26 | end |
| 27 | |
| 28 | s.subspec 'Boost' do |boost| |
| 29 | boost.preserve_paths = 'External/ios/include/**/*.h' |
| 30 | boost.vendored_libraries = 'External/ios/lib/libboost.a', |
| 31 | boost.libraries = 'boost' |
| 32 | boost.xcconfig = { 'HEADER_SEARCH_PATHS' => "${PODS_ROOT}/#{s.name}/External/ios/include/**" } |
| 33 | end |
| 34 | |
| 35 | s.subspec 'Sodium' do |sodium| |
| 36 | sodium.preserve_paths = 'External/ios/include/**/*.h' |
| 37 | sodium.vendored_libraries = 'External/ios/lib/libsodium.a' |
| 38 | sodium.libraries = 'sodium' |
| 39 | sodium.xcconfig = { 'HEADER_SEARCH_PATHS' => "${PODS_ROOT}/#{s.name}/External/ios/include/**" } |
| 40 | end |
| 41 | end |