cocoapods-spm 0.1.18 → 0.1.19
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/lib/cocoapods-spm/def/target.rb +13 -0
- data/lib/cocoapods-spm/hooks/helpers/update_script.rb +7 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 390b8c7e38195ff62a087854cda9996df342143f395c2cb9d47b4885e71e952d
|
4
|
+
data.tar.gz: 5d10f327d7371ac4ef872c5fef2a0f6304e5c1b7b180220d179edac2224ef30f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87a3a5ca9dd2f3945d6b1c6c86e75c4a99a6251ae98c650f2fd27f1034959c9bcaf8aa4d62152f88fcde827afe60b11c1f43097024256eda4ef1aa2596ce0841
|
7
|
+
data.tar.gz: 4dd2b1f719cc17e0b0173912f2e0217b30ba23e7fa383ba27378946f539c26d4340a0eb5b6d3ab6f363c50ab7d88173c7ec6c2f0b4e342aeb2ac0157606f6036
|
@@ -27,6 +27,19 @@ module Pod
|
|
27
27
|
variant_prefix = underlying.spec_label(spec).sub("#{underlying.name}-", "")
|
28
28
|
underlying.xcconfig_path("#{variant_prefix}.#{variant}")
|
29
29
|
end
|
30
|
+
|
31
|
+
%w[
|
32
|
+
copy_resources_script_path
|
33
|
+
copy_resources_script_input_files_path
|
34
|
+
copy_resources_script_output_files_path
|
35
|
+
embed_frameworks_script_path
|
36
|
+
embed_frameworks_script_input_files_path
|
37
|
+
embed_frameworks_script_output_files_path
|
38
|
+
].each do |name|
|
39
|
+
define_method(name) do |*_args|
|
40
|
+
underlying.send("#{name}_for_spec", spec)
|
41
|
+
end
|
42
|
+
end
|
30
43
|
end
|
31
44
|
end
|
32
45
|
end
|
@@ -7,8 +7,11 @@ module Pod
|
|
7
7
|
def update_script(options = {})
|
8
8
|
script_name = options[:name]
|
9
9
|
content_by_target = options[:content_by_target]
|
10
|
+
targets = aggregate_targets + pod_targets.flat_map do |t|
|
11
|
+
t.test_specs.map { |s| Target::NonLibrary.new(underlying: t, spec: s) }
|
12
|
+
end
|
10
13
|
|
11
|
-
|
14
|
+
targets.each do |target|
|
12
15
|
lines, input_paths, output_paths = content_by_target.call(target)
|
13
16
|
next if input_paths.empty?
|
14
17
|
|
@@ -21,8 +24,9 @@ module Pod
|
|
21
24
|
# Update input/output files
|
22
25
|
user_build_configurations.each_key do |config|
|
23
26
|
append_contents = lambda do |method_name, contents|
|
24
|
-
target.send(method_name, config).open("
|
25
|
-
|
27
|
+
target.send(method_name, config).open("r+") do |f|
|
28
|
+
existing = f.readlines(chomp: true)
|
29
|
+
contents.each { |p| f << "\n" << p unless existing.include?(p) }
|
26
30
|
end
|
27
31
|
end
|
28
32
|
append_contents.call("#{script_name}_input_files_path", input_paths)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-spm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thuyen Trinh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xcodeproj
|