Sha256: ee430e815829e807ae7ad44250beeff968142f57b44282c9a5b48cadcf3ec739
Contents?: true
Size: 825 Bytes
Versions: 1
Compression:
Stored size: 825 Bytes
Contents
require 'cocoapods' module CocoaPodsExpert Pod::HooksManager.register('cocoapods-expert-difficulty', :pre_install) do |context, _| Pod::UI.titled_section 'Supporting all platforms in CocoaPods' do end end end module Pod class Specification alias_method :tvos_supported_platform_names, :supported_platform_names def supported_platform_names # if there's no Podfile config do default return tvos_supported_platform_names unless validates_for_expert # Otherwise return all platforms for all pods names = PLATFORMS names.map { |name| Platform.new(name, deployment_target(name)) } end def validates_for_expert podfile = Pod::Config.instance.podfile podfile && podfile.plugins && !podfile.plugins['cocoapods-expert-difficulty'].nil? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-expert-difficulty-1.0.0 | lib/cocoapods_plugin.rb |