lib/cocoapods-binaryhqp/helper/feature_switches.rb in cocoapods-binaryhqp-0.4.9 vs lib/cocoapods-binaryhqp/helper/feature_switches.rb in cocoapods-binaryhqp-0.5.0
- old
+ new
@@ -26,16 +26,20 @@
old_method.bind(self).(name, *args)
return
end
# patched content
- should_prebuild = Pod::Podfile::DSL.prebuild_all
+ should_prebuild = Pod::Podfile::DSL.prebuild_all || (not Pod::Podfile::DSL.framework_source_all)
local = false
options = args.last
if options.is_a?(Hash) and options[Pod::Prebuild.keyword] != nil
- should_prebuild = options[Pod::Prebuild.keyword]
+ should_prebuild = options[Pod::Prebuild.keyword] && (not Pod::Podfile::DSL.framework_source_all)
local = (options[:path] != nil)
+ end
+
+ if Pod::Command::Install.all_use_source
+ should_prebuild = false
end
if should_prebuild and (not local)
old_method.bind(self).(name, *args)
end
\ No newline at end of file