Commit 7b0e8a4b authored by Samuel E. Giddins's avatar Samuel E. Giddins

Merge pull request #2911 from CocoaPods/seg-store-build-headers-in-private

[PodTarget][Migrator] Store private headers in Pod/Headers/Private instead of Build/
parents 38ce1e77 ca8448c0
......@@ -21,6 +21,12 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[Samuel Giddins](https://github.com/segiddins)
[#2639](https://github.com/CocoaPods/CocoaPods/issues/2639)
* Move pods' private headers to `Headers/Private` from `Headers/Build`.
Since some SCM ignore templates include `build` by default, this makes it
easier to check in the `Pods/` directory.
[Samuel Giddins](https://github.com/segiddins)
[#2623](https://github.com/CocoaPods/CocoaPods/issues/2623)
##### Bug Fixes
* Fix updating a pod that has subspec dependencies.
......
......@@ -13,6 +13,7 @@ module Pod
def migrate(sandbox)
if sandbox.manifest
migrate_to_0_34(sandbox) if installation_minor?('0.34', sandbox)
migrate_to_0_36(sandbox) if installation_minor?('0.36', sandbox)
end
end
......@@ -46,6 +47,14 @@ module Pod
delete(Pathname(File.join(ENV['HOME'], 'Library/Caches/CocoaPods/Git')))
end
# Migrates from CocoaPods versions prior to 0.36.
#
def migrate_to_0_36(sandbox)
UI.message('Migrating to CocoaPods 0.36') do
move(sandbox.root + 'Headers/Build', sandbox.root + 'Headers/Private')
end
end
# @!group Private helpers
def installation_minor?(target_version, sandbox)
......
......@@ -19,7 +19,7 @@ module Pod
@specs = specs
@target_definition = target_definition
@sandbox = sandbox
@build_headers = Sandbox::HeadersStore.new(sandbox, 'Build')
@build_headers = Sandbox::HeadersStore.new(sandbox, 'Private')
@file_accessors = []
end
......
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