Commit e3aa45df authored by Samuel Giddins's avatar Samuel Giddins

[Docs] Document new methods for the new Podfile DSL

parent 60cb693f
...@@ -20,9 +20,11 @@ module Pod ...@@ -20,9 +20,11 @@ module Pod
# the location to which this pod should be downloaded. If `nil`, # the location to which this pod should be downloaded. If `nil`,
# then the pod will only be cached. # then the pod will only be cached.
# #
# @param [Boolean] can_cache
# whether caching is allowed.
#
# @param [Pathname,Nil] cache_path # @param [Pathname,Nil] cache_path
# the path used to cache pod downloads. If `nil`, then no caching # the path used to cache pod downloads.
# will be done.
# #
def self.download( def self.download(
request, request,
......
...@@ -17,6 +17,8 @@ module Pod ...@@ -17,6 +17,8 @@ module Pod
# #
attr_reader :podfile_path attr_reader :podfile_path
# @return [Boolean] Whether the source is allowed to touch the cache.
#
attr_accessor :can_cache attr_accessor :can_cache
alias_method :can_cache?, :can_cache alias_method :can_cache?, :can_cache
......
...@@ -89,6 +89,9 @@ module Pod ...@@ -89,6 +89,9 @@ module Pod
protected protected
# @return [Hash<String, String>] the build settings necessary to import
# the pod targets.
#
def settings_to_import_pod_targets def settings_to_import_pod_targets
if target.requires_frameworks? if target.requires_frameworks?
framework_header_search_paths = pod_targets.select(&:should_build?).map do |target| framework_header_search_paths = pod_targets.select(&:should_build?).map do |target|
......
...@@ -104,6 +104,9 @@ module Pod ...@@ -104,6 +104,9 @@ module Pod
# #
attr_accessor :pod_targets attr_accessor :pod_targets
# @return [Array<AggregateTarget>] The aggregate targets whose pods this
# target must be able to import, but will not directly link against.
#
attr_accessor :search_paths_aggregate_targets attr_accessor :search_paths_aggregate_targets
# @param [String] build_configuration The build configuration for which the # @param [String] build_configuration The build configuration for which the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment