YHEventReport.podspec 3.66 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      = "0.7.4"
  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(' ') 
    }
  end

  s.subspec "AOP" do |ss|
    ss.dependency             "YHEventReport/Core"
    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.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
end