YHEventReport.podspec 4 KB
#
#  Be sure to run `pod spec lint YHEventReport.podspec' to ensure this is a
#  valid spec and to remove all comments including this before submitting the spec.
#
#  To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
#  To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#

Pod::Spec.new do |s|

  s.name         = "YHEventReport"
  s.version      = "1.2.1"
  s.summary      = "YHEventReport."
  s.description  = "无埋点SDK"
  s.homepage     = "http://git.yoho.cn/mobile/YH_EventReport"
  s.license      = "MIT"
  s.author       = { "John Tai" => "john_tai@hotmail.com" }
  s.source       = { :git => "http://git.yoho.cn/mobile/YH_EventReport.git", :tag => "#{s.version}" }
  s.framework    = "UIKit"
  s.requires_arc = true
  s.platform     = :ios
  s.platform     = :ios, "8.0"
  s.subspec 'OpenUDID' do |ss|
    ss.source_files = 'YHEventReport/YHEventReport/Utils/OpenUDID/*.{h,m}'
    ss.requires_arc = 'YHEventReport/YHEventReport/Utils/OpenUDID/YH_KeychainStore.m'
    ss.framework = 'Security'
  end

  s.subspec 'JTSHardwareInfo' do |ss|
    ss.source_files = 'YHEventReport/YHEventReport/Utils/JTSHardwareInfo/*.{h,m}'
  end

  s.frameworks = 'Foundation', 'UIKit'
  s.default_subspec = 'classes'

  s.subspec 'Core' do |ss|
    ss.source_files = 'YHEventReport/YHEventReport/YHEventReport/YH_Core/*.{h,m}', 'YHEventReport/YHEventReport/YHEventReport/Utils/*', 'YHEventReport/YHEventReport/YHEventReport/Utils/YH_EventData/*'
    ss.xcconfig = { "HEADER_SEARCH_PATHS" => [
        "${PODS_ROOT}/../YH_Mall/Dependences/PowerfulBannerView",
      ].join(' ') 
    }
    ss.dependency             "YH_FoundationKit"
  end

  s.subspec "AOP" do |ss|
    ss.dependency             "YHEventReport/Core"
    ss.dependency             "SDWebImage"
    ss.source_files = 'YHEventReport/YHEventReport/YHEventReport/YH_AOP/*.{h,m}'
  end

  s.subspec "EventCollector" do |ss|
    ss.dependency             "YHEventReport/Core"
    ss.dependency             "YHEventReport/AOP"
    ss.source_files = 'YHEventReport/YHEventReport/YHEventReport/YH_EventCollector/*.{h,m}'
  end

  s.subspec "EventCache" do |ss|
    ss.dependency             "YHEventReport/Core"
    ss.dependency             "YHEventReport/AOP"
    ss.dependency             "YHEventReport/EventCollector"
    ss.dependency             "YH_FoundationKit"
    ss.source_files = 'YHEventReport/YHEventReport/YHEventReport/YH_EventCache/*.{h,m}'
  end

  s.subspec "EventDataSession" do |ss|
    ss.dependency             "YHEventReport/Core"
    ss.dependency             "YHEventReport/AOP"
    ss.dependency             "YHEventReport/EventCollector"
    ss.dependency             "YHEventReport/EventCache"
    ss.source_files = 'YHEventReport/YHEventReport/YHEventReport/YH_EventDataSession/*.{h,m}'
  end

  s.subspec "CrashReporter" do |ss|
    ss.dependency             "YHEventReport/Core"
    ss.dependency             "YHEventReport/AOP"
    ss.dependency             "YHEventReport/EventCollector"
    ss.dependency             "YHEventReport/EventCache"
    ss.dependency             "YHEventReport/EventDataSession"
    ss.source_files = 'YHEventReport/YHEventReport/YHEventReport/YH_CrashReporter/*.{h,m}'
  end

  s.subspec "LagHunter" do |ss|
    ss.dependency             "YHEventReport/Core"
    ss.dependency             "YHEventReport/AOP"
    ss.dependency             "YHEventReport/EventCollector"
    ss.dependency             "YHEventReport/EventCache"
    ss.dependency             "YHEventReport/EventDataSession"
    ss.source_files = 'YHEventReport/YHEventReport/YHEventReport/YH_LagHunter/*.{h,m}'
  end

  s.subspec "DeviceInfo" do |ss|
    ss.dependency             "YHEventReport/Core"
    s.framework    = "UIKit"
    ss.source_files = 'YHEventReport/YHEventReport/YHEventReport/YH_DeviceInfo/*.{h,m}'
  end

  s.subspec "CrashProtector" do |ss|
    ss.dependency             "YHEventReport/Core"
    s.framework    = "UIKit"
    ss.source_files = 'YHEventReport/YHEventReport/YHEventReport/YH_CrashProtector/*.{h,m}'
  end
end