YHEventReport.podspec 3.13 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.4.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, "9.0"

  s.frameworks = 'Foundation', 'UIKit'
  # s.default_subspec = 'classes'
  s.source_files = 'YHEventReport/Source/*.{h,m}'

  s.subspec 'Core' do |ss|
    ss.source_files = 'YHEventReport/Source/YH_Core/*.{h,m}', 'YHEventReport/Source/Utils/*', 'YHEventReport/Source/Utils/YH_EventData/*'
    ss.dependency             "YH_FoundationKit"
  end

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

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

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

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

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

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

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

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