
Pod::Spec.new do |s|
  s.name    = 'BSKAppCore'
  s.version = '1.0.0'
  s.summary = 'An APP base Framework to help me start a project quickly.'

  s.description = <<-DESC 
                  BSKAppCore include some tools and frameworks which is required to create an normal APP.
                  * With this，so I can start write a project very quickly.
                  DESC
  
  s.homepage = 'https://www.liuwanlin.cn'
  
  s.license = { :type => "MIT", :file => "LICENSE" }
  s.authors            = { "BlueSky335" => "chinabluesky335@gmail.com" }

  s.swift_version = "5.0"
  
  s.ios.deployment_target = "13.0"

  s.source       = { :git => "https://github.com/bluesky335/BSKAppCore.git", :tag => s.version }
  s.source_files  = [
    "Sources/BSKAppCore/**/*.swift",
    "Sources/BSKAppCore.h"
  ]

  s.resource_bundles = {
    'LocalizationString' => ["Sources/BSKAppCore/**/*.strings"],
    'JsonFiles' => ["Sources/BSKAppCore/**/*.json"]
  }

  s.dependency 'SnapKit', '~> 5.0.0'

  s.public_header_files = ["Sources/BSKAppCore.h"]
  s.requires_arc = true
  
  s.subspec 'BSKLogConsole' do |sub1|
    sub1.source_files  = [
      "Sources/BSKLogConsole/**/*.swift"
    ]
    sub1.dependency 'BSKAppCore/BSKLog'
  end

  s.subspec 'BSKLog' do |sub2|
    sub2.source_files  = [
      "Sources/BSKLog/**/*.swift"
    ]
    sub2.dependency 'BSKAppCore/BSKUtils'
  end

  s.subspec 'BSKUtils' do |sub3|
    sub3.source_files  = [
      "Sources/BSKUtils/**/*.swift"
    ]
  end
end
