#
# Be sure to run `pod lib lint IrohaCommunication.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             = 'IrohaCommunication'
  s.version          = '4.0.1'
  s.summary          = 'Helper classes to use for communication with Iroha blockchain.'

  s.homepage         = 'https://github.com/hyperledger/iroha-ios'
  s.license          = { :type => 'Apache-2.0', :file => 'LICENSE' }
  s.author           = { 'Russel' => 'emkil.russel@gmail.com' }
  s.source           = { :git => 'https://github.com/hyperledger/iroha-ios.git', :tag => s.version.to_s }

  s.ios.deployment_target = '9.0'

  s.requires_arc = 'IrohaCommunication/Classes/**/*'
  s.source_files = 'IrohaCommunication/Classes/**/*', 'ProtoGen/*.{h,m}'
  s.public_header_files = 'IrohaCommunication/Classes/Public/**/*.h'
  s.private_header_files = 'IrohaCommunication/Classes/Private/**/*.h', 'ProtoGen/*.h'
  s.preserve_paths = 'ProtoGen/*.{h,m}'

  s.dependency 'IrohaCrypto/Iroha', '~> 0.3.0'
  s.dependency 'gRPC-ProtoRPC'
  s.dependency 'Protobuf'
  s.dependency 'BoringSSL'
  s.dependency 'nanopb'
  s.dependency 'React'

  s.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1' }

  s.test_spec do |ts|
      ts.source_files = 'Tests/**/*.{h,m}', 'ProtoGen/*.{h,m}'
  end

end
