lib/cocoapods-jxedt/binary/helper/target_definition.rb in cocoapods-jxedt-0.0.16 vs lib/cocoapods-jxedt/binary/helper/target_definition.rb in cocoapods-jxedt-0.0.17
- old
+ new
@@ -5,11 +5,21 @@
options = requirements.last || {}
# prebuild
@explicit_prebuild_pod_names ||= []
@reject_prebuild_pod_names ||= []
- @explicit_prebuild_pod_names << Specification.root_name(name) if options.is_a?(Hash) && options[:binary]
- @reject_prebuild_pod_names << Specification.root_name(name) if options.is_a?(Hash) && options.include?(:binary) && !options[:binary]
+ if options.is_a?(Hash) && options.include?(:binary)
+ @explicit_prebuild_pod_names << Specification.root_name(name) if options[:binary]
+ @reject_prebuild_pod_names << Specification.root_name(name) unless options[:binary]
+ else
+ settings = Jxedt.config.binary_settings
+ symbol_name = Specification.root_name(name).to_sym
+ if settings.include?(symbol_name) && [true, false].include?(settings[symbol_name])
+ @explicit_prebuild_pod_names << Specification.root_name(name) if settings[symbol_name]
+ @reject_prebuild_pod_names << Specification.root_name(name) unless settings[symbol_name]
+ end
+ end
+
# header search path
@explicit_header_search_pod_names ||= []
@reject_header_search_pod_names ||= []
@explicit_header_search_pod_names << Specification.root_name(name) if options.is_a?(Hash) && options[:framework_header_search]
\ No newline at end of file