Pod::Spec.new do |s|
  s.name             = 'UIComposable'
  s.version          = '0.6.0'
  s.swift_versions    = ['5.0', '5.1', '5.2', '5.3', '5.4']
  s.summary          = 'A protocol of UI rendering for plugins - UIComposable.'

  s.description      = <<-DESC
  Use this protocol to render user interface like plugins
                       DESC

  s.homepage         = 'https://github.com/congncif/UIComposable'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'NGUYEN CHI CONG' => 'congnc.if@gmail.com' }
  s.source           = { :git => 'https://github.com/congncif/UIComposable.git', :tag => s.version.to_s }
   s.social_media_url = 'https://twitter.com/congncif'

  s.ios.deployment_target = '10.0'
  
  s.default_subspec = 'Default'
  
  s.subspec 'Default' do |co|
      co.dependency 'UIComposable/Core'
      co.dependency 'UIComposable/UIKit'
  end
  
  s.subspec 'Core' do |co|
      co.source_files = 'UIComposable/Core/**/*'
  end
  
  s.subspec 'UIKit' do |co|
      co.source_files = 'UIComposable/UIKit/**/*'
      
      co.dependency 'UIComposable/Core'
  end
  
  s.subspec 'RxUI' do |co|
      co.source_files = 'UIComposable/RxUI/**/*'
      
      co.dependency 'UIComposable/Core'
      co.dependency 'RxDataSources'
  end
  
  s.subspec 'DiffUI' do |co|
      co.source_files = 'UIComposable/DiffUI/**/*'
      
      co.dependency 'UIComposable/Core'
      co.dependency 'DiffableDataSources'
  end
end
