YHExplorer.podspec 2 KB
Pod::Spec.new do |s|
  s.name             = "YHExplorer"
  s.version          = "2.0.0"
  s.summary          = "Integrated Cordova for iOS"
  s.description      = <<-DESC
                       Upgrade cordova-iOS version from 3.8.0 to  4.2.1.
                       Upgrade cordova.js version from 3.8.0 to 4.2.1.
                       Add cordova-plugin-wkwebview-engine plugin with version of 1.0.3.
                       DESC
  s.homepage         = "http://git.yoho.cn/yincheng/yhexplorer"
  s.license          = 'MIT'
  s.author           = { "xugaoqiang" => "eric.xu@yoho.cn" }
  s.source           = { :git => "http://git.yoho.cn/yincheng/yhexplorer.git", :tag => s.version.to_s }

  s.platform     = :ios, '7.0'
  s.requires_arc = true

  s.source_files = 'YHExplorer/*.{h,m}'
  s.resources = 'YHExplorer/config.xml', 'YHExplorer/cordova-scripts.bundle'

  s.subspec 'Cache' do |ss|
    ss.source_files = 'YHExplorer/Cache/*.{h,m}'
  end

  s.subspec 'CordovaLib' do |ss|
    ss.source_files = 'YHExplorer/CordovaLib/**/*.{h,m}'
  end

  s.subspec 'CordovaWKWebViewLib' do |ss|
    ss.source_files = 'YHExplorer/cordova-plugin-wkwebview-engine/*.{h,m}'

    ss.subspec 'CordovaWKWebViewLocalServer' do |sss|
      sss.source_files = 'YHExplorer/cordova-wkwebview-localwebserver/*.{h,m}'
    end
  end

  s.subspec 'CordovaPlugins' do |ss|
    ss.source_files = 'YHExplorer/CordovaPlugins/*.{h,m}'

    ss.subspec 'webp' do |sss|
      sss.source_files = 'YHExplorer/CordovaPlugins/webp/*.{h,m}'
    end
  end

  s.subspec 'Extend' do |ss|
    ss.source_files = 'YHExplorer/Extend/*.{h,m}'
  end

  s.subspec 'WebProgressView' do |ss|
    ss.source_files = 'YHExplorer/WebProgressView/*.{h,m}'
    ss.resources = 'YHExplorer/Mask.png'
  end

  s.subspec 'YHLinkParser' do |ss|
    ss.source_files = 'YHExplorer/YHLinkParser/*.{h,m}'
  end

  s.dependency 'GCDWebServer', '~> 3.3'

  s.frameworks = 'Foundation', 'CoreGraphics', 'UIKit', 'WebKit', 'CoreLocation', 'AudioToolbox', 'CoreMotion', 'AssetsLibrary', 'MobileCoreServices'

end