#
# Be sure to run `pod lib lint SendBirdCombine.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             = 'SendBirdCombine'
  s.version          = '1.1.0'
  s.summary          = 'Provides Combine extensions for the SendBird chat service SDK'

  s.description      = <<-DESC
                        This pod provides Combine extensions for the SendBird chat service SDK
                       DESC

  s.homepage         = 'https://github.com/velos/SendBirdCombine'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'David Rajan' => 'david@velosmobile.com' }
  s.source           = { :git => 'https://github.com/velos/SendbirdCombine.git', :tag => s.version.to_s }

  s.platform = :ios, '13.0'
  s.ios.deployment_target = '13.0'
  s.swift_version = '5.0'

  # This line is necessary until the SendBird SDK adds support for arm64 on macOS.
  s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

  s.subspec 'Messages' do |m|
      m.source_files = 'SendBirdCombine/Classes/Messages/**/*'
  end

  s.subspec 'Calls' do |c|
    c.dependency 'SendBirdCombine/Messages'
    c.dependency 'SendBirdCalls', '~> 1.5.4'
    c.source_files = 'SendBirdCombine/Classes/Calls/**/*'
  end

  s.default_subspec = 'Messages'

  s.frameworks = 'Combine'
  s.dependency 'SendBirdSDK', '~> 3.0.218'
end
