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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18ebba2af193586dd3ab51895ac5142432388c4d7eab1bf5212b192ccfebfbbb
4
- data.tar.gz: 04e37f5fdd1a9822b6759202d351af855e7047767f02c5a170cf3203ac13b499
3
+ metadata.gz: 390b8c7e38195ff62a087854cda9996df342143f395c2cb9d47b4885e71e952d
4
+ data.tar.gz: 5d10f327d7371ac4ef872c5fef2a0f6304e5c1b7b180220d179edac2224ef30f
5
5
  SHA512:
6
- metadata.gz: 7c1049403a328d3365e2841e2091d6967129f75f0d835b19029861f893738306d2540c7f7cbaca75b45044ee5885d28b6070dd132d9295bc9a4b91abc10e1d75
7
- data.tar.gz: d1cab52bf70efda3a8c965193a792405ee155a636a80502afcdab623ebb3925b74ec31ec078605188250ee64985abad565bb844fc5558f71b6312dae6582c0f9
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
- aggregate_targets.each do |target|
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("a") do |f|
25
- contents.each { |p| f << "\n" << p }
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.18
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-08-10 00:00:00.000000000 Z
11
+ date: 2025-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xcodeproj