cocoapods 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +61 -0
- data/lib/cocoapods/gem_version.rb +1 -1
- data/lib/cocoapods/generator/copy_resources_script.rb +1 -1
- data/lib/cocoapods/generator/module_map.rb +1 -4
- data/lib/cocoapods/generator/xcconfig/pod_xcconfig.rb +1 -1
- data/lib/cocoapods/generator/xcconfig/xcconfig_helper.rb +2 -2
- data/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb +1 -1
- data/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_integrator.rb +9 -2
- data/lib/cocoapods/target/pod_target.rb +4 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0538f666ff652a383411cd5c3448e0ce028dc830ed2a159c008f6dacac3eb4d6'
|
4
|
+
data.tar.gz: afc9d2c684bff3ca4b3a4b49d18a84f3ad8c8b45a72a01fdd62e883465f9dac2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f7792c323359d4ac642397c39f1834bcac25271510a706e79bc148a492bf4afe81b6e1e13c6581baae9afe42939838adcd340b002670cd4865b59939468ecff
|
7
|
+
data.tar.gz: 4c11e434c9d003eb26e339d44e8733314977d00c2637c3dcfbfd132836d3aaf6044aa0abae6f5fe3bc5a15daa272a54ba1b88db5d46b00fd9cfc2ce73d575703
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,67 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
|
|
4
4
|
|
5
5
|
To install release candidates run `[sudo] gem install cocoapods --pre`
|
6
6
|
|
7
|
+
## 1.5.2 (2018-05-09)
|
8
|
+
|
9
|
+
##### Enhancements
|
10
|
+
|
11
|
+
* None.
|
12
|
+
|
13
|
+
##### Bug Fixes
|
14
|
+
|
15
|
+
* None.
|
16
|
+
|
17
|
+
|
18
|
+
## 1.5.1 (2018-05-07)
|
19
|
+
|
20
|
+
##### Enhancements
|
21
|
+
|
22
|
+
* Improve performance of the dependency resolver by removing duplicates for dependency nodes.
|
23
|
+
[Jacek Suliga](https://github.com/jmkk)
|
24
|
+
|
25
|
+
##### Bug Fixes
|
26
|
+
|
27
|
+
* Do not include test dependencies input and output paths.
|
28
|
+
[Dimitris Koutsogiorgas](https://github.com/dnkoutso)
|
29
|
+
[#7688](https://github.com/CocoaPods/CocoaPods/pull/7688)
|
30
|
+
|
31
|
+
* Remove [system] declaration attribute from generated module maps.
|
32
|
+
[Dimitris Koutsogiorgas](https://github.com/dnkoutso)
|
33
|
+
[#7589](https://github.com/CocoaPods/CocoaPods/issues/7589)
|
34
|
+
|
35
|
+
* Properly namespace Info.plist names during target installation.
|
36
|
+
[Dimitris Koutsogiorgas](https://github.com/dnkoutso)
|
37
|
+
[#7611](https://github.com/CocoaPods/CocoaPods/pull/7611)
|
38
|
+
|
39
|
+
* Always generate FRAMEWORK_SEARCH_PATHS for vendored_frameworks.
|
40
|
+
[Paul Beusterien](https://github.com/paulb777)
|
41
|
+
[#7591](https://github.com/CocoaPods/CocoaPods/issues/7591)
|
42
|
+
|
43
|
+
* Fix modular header access to header_dir's.
|
44
|
+
[Paul Beusterien](https://github.com/paulb777)
|
45
|
+
[#7597](https://github.com/CocoaPods/CocoaPods/issues/7597)
|
46
|
+
|
47
|
+
* Fix static framework dependent target double linking without `use_frameworks`.
|
48
|
+
[Paul Beusterien](https://github.com/paulb777)
|
49
|
+
[#7592](https://github.com/CocoaPods/CocoaPods/issues/7592)
|
50
|
+
|
51
|
+
* Make modular header private header access consistent with frameworks and static libraries.
|
52
|
+
[Paul Beusterien](https://github.com/paulb777)
|
53
|
+
[#7596](https://github.com/CocoaPods/CocoaPods/issues/7596)
|
54
|
+
|
55
|
+
* Inhibit warnings for all dependencies during validation except for the one being validated.
|
56
|
+
[Dimitris Koutsogiorgas](https://github.com/dnkoutso)
|
57
|
+
[#7434](https://github.com/CocoaPods/CocoaPods/issues/7434)
|
58
|
+
|
59
|
+
* Prevent duplicated targets from being stripped out from the framework search paths.
|
60
|
+
[Liquidsoul](https://github.com/liquidsoul)
|
61
|
+
[#7644](https://github.com/CocoaPods/CocoaPods/pull/7644)
|
62
|
+
|
63
|
+
* Fix `assetcatalog_generated_info.plist` path in copy resources phase.
|
64
|
+
[Maxime Le Moine](https://github.com/MaximeLM)
|
65
|
+
[#7590](https://github.com/CocoaPods/CocoaPods/issues/7590)
|
66
|
+
|
67
|
+
|
7
68
|
## 1.5.0 (2018-04-04)
|
8
69
|
|
9
70
|
##### Enhancements
|
@@ -215,7 +215,7 @@ then
|
|
215
215
|
if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then
|
216
216
|
printf "%s\\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
|
217
217
|
else
|
218
|
-
printf "%s\\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${
|
218
|
+
printf "%s\\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist"
|
219
219
|
fi
|
220
220
|
fi
|
221
221
|
EOS
|
@@ -90,12 +90,9 @@ module Pod
|
|
90
90
|
end
|
91
91
|
|
92
92
|
# The suffix attributes to `module`.
|
93
|
-
# Ensures that library module maps are treated as `system` modules,
|
94
|
-
# supressing warnings when imported, as is done for header imports given via `-isystem`.
|
95
93
|
#
|
96
94
|
def module_declaration_attributes
|
97
|
-
|
98
|
-
' [system]'
|
95
|
+
''
|
99
96
|
end
|
100
97
|
end
|
101
98
|
end
|
@@ -69,7 +69,7 @@ module Pod
|
|
69
69
|
XCConfigHelper.add_target_specific_settings(target, @xcconfig)
|
70
70
|
recursive_dependent_targets = target.recursive_dependent_targets
|
71
71
|
@xcconfig.merge! XCConfigHelper.search_paths_for_dependent_targets(target, recursive_dependent_targets, @test_xcconfig)
|
72
|
-
XCConfigHelper.generate_vendored_build_settings(target, recursive_dependent_targets, @xcconfig, false, @test_xcconfig)
|
72
|
+
XCConfigHelper.generate_vendored_build_settings(target, recursive_dependent_targets, @xcconfig, false, @test_xcconfig)
|
73
73
|
if @test_xcconfig
|
74
74
|
test_dependent_targets = [target, *target.recursive_test_dependent_targets].uniq
|
75
75
|
@xcconfig.merge! XCConfigHelper.search_paths_for_dependent_targets(target, test_dependent_targets - recursive_dependent_targets, @test_xcconfig)
|
@@ -307,7 +307,7 @@ module Pod
|
|
307
307
|
|
308
308
|
# Filter out dependent targets that are subsets of another target.
|
309
309
|
subset_targets = []
|
310
|
-
dependent_targets.combination(2) do |a, b|
|
310
|
+
dependent_targets.uniq.combination(2) do |a, b|
|
311
311
|
if (a.specs - b.specs).empty?
|
312
312
|
subset_targets << a
|
313
313
|
elsif (b.specs - a.specs).empty?
|
@@ -489,7 +489,7 @@ module Pod
|
|
489
489
|
unless aggregate_target.nil?
|
490
490
|
dependent_targets = aggregate_target.search_paths_aggregate_targets
|
491
491
|
dependent_targets.each do |dependent_target|
|
492
|
-
if dependent_target.pod_targets.any?(&:static_framework?)
|
492
|
+
if aggregate_target.requires_frameworks? && dependent_target.pod_targets.any?(&:static_framework?)
|
493
493
|
generate_other_ld_flags(dependent_target, dependent_target.pod_targets, xcconfig)
|
494
494
|
end
|
495
495
|
end
|
@@ -594,7 +594,7 @@ module Pod
|
|
594
594
|
UI.message "- Copying module map file to #{UI.path(path)}" do
|
595
595
|
contents = custom_module_map.read
|
596
596
|
unless target.requires_frameworks?
|
597
|
-
contents.gsub!(/^(\s*)framework\s+(module[^{}]+){/, '\1\2
|
597
|
+
contents.gsub!(/^(\s*)framework\s+(module[^{}]+){/, '\1\2{')
|
598
598
|
end
|
599
599
|
generator = Generator::Constant.new(contents)
|
600
600
|
update_changed_file(generator, path)
|
@@ -52,7 +52,10 @@ module Pod
|
|
52
52
|
def add_copy_resources_script_phase(native_target)
|
53
53
|
test_type = target.test_type_for_product_type(native_target.symbol_type)
|
54
54
|
script_path = "${PODS_ROOT}/#{target.copy_resources_script_path_for_test_type(test_type).relative_path_from(target.sandbox.root)}"
|
55
|
-
resource_paths = target.all_dependent_targets.flat_map
|
55
|
+
resource_paths = target.all_dependent_targets.flat_map do |dependent_target|
|
56
|
+
include_test_spec_paths = dependent_target == target
|
57
|
+
dependent_target.resource_paths(include_test_spec_paths)
|
58
|
+
end
|
56
59
|
input_paths = []
|
57
60
|
output_paths = []
|
58
61
|
unless resource_paths.empty?
|
@@ -71,7 +74,11 @@ module Pod
|
|
71
74
|
def add_embed_frameworks_script_phase(native_target)
|
72
75
|
test_type = target.test_type_for_product_type(native_target.symbol_type)
|
73
76
|
script_path = "${PODS_ROOT}/#{target.embed_frameworks_script_path_for_test_type(test_type).relative_path_from(target.sandbox.root)}"
|
74
|
-
|
77
|
+
all_dependent_targets = target.all_dependent_targets
|
78
|
+
framework_paths = all_dependent_targets.flat_map do |dependent_target|
|
79
|
+
include_test_spec_paths = dependent_target == target
|
80
|
+
dependent_target.framework_paths(include_test_spec_paths)
|
81
|
+
end
|
75
82
|
input_paths = []
|
76
83
|
output_paths = []
|
77
84
|
unless framework_paths.empty?
|
@@ -607,7 +607,7 @@ module Pod
|
|
607
607
|
#
|
608
608
|
def header_search_paths(include_test_dependent_targets = false)
|
609
609
|
header_search_paths = []
|
610
|
-
header_search_paths.concat(build_headers.search_paths(platform, nil,
|
610
|
+
header_search_paths.concat(build_headers.search_paths(platform, nil, false))
|
611
611
|
header_search_paths.concat(sandbox.public_headers.search_paths(platform, pod_name, uses_modular_headers?))
|
612
612
|
dependent_targets = recursive_dependent_targets
|
613
613
|
dependent_targets += recursive_test_dependent_targets if include_test_dependent_targets
|
@@ -624,14 +624,14 @@ module Pod
|
|
624
624
|
# @param [Boolean] only_if_defines_modules
|
625
625
|
# whether the use of modular headers should require the target to define a module
|
626
626
|
#
|
627
|
-
# @note This must return false when a pod has a `header_mappings_dir`,
|
628
|
-
# as that allows the spec to
|
627
|
+
# @note This must return false when a pod has a `header_mappings_dir` or `header_dir`,
|
628
|
+
# as that allows the spec to customize the header structure, and
|
629
629
|
# therefore it might not be expecting the module name to be prepended
|
630
630
|
# to imports at all.
|
631
631
|
#
|
632
632
|
def uses_modular_headers?(only_if_defines_modules = true)
|
633
633
|
return false if only_if_defines_modules && !defines_module?
|
634
|
-
spec_consumers.none?(&:header_mappings_dir)
|
634
|
+
spec_consumers.none?(&:header_mappings_dir) && spec_consumers.none?(&:header_dir)
|
635
635
|
end
|
636
636
|
|
637
637
|
private
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Duran
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2018-
|
14
|
+
date: 2018-05-09 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: cocoapods-core
|
@@ -19,14 +19,14 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - '='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.5.
|
22
|
+
version: 1.5.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.5.
|
29
|
+
version: 1.5.2
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: claide
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|