cocoapods-alexandria 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c19c80e81e9b4539ec08ffbdb7396994387f4573489366c6448e7faa47fedef9
4
- data.tar.gz: d0e271ac412f94fd696ed6c5cf804eef6399550ddff808f29afe0da1e622d0c8
3
+ metadata.gz: 16689da9df218088e945e9bd5190c859f4caa49f7c386ccc494f574d457653cf
4
+ data.tar.gz: 8d0bacb4327067501e4f2a34c4dc31922cfed795d33bf3080cf211dde1c45f16
5
5
  SHA512:
6
- metadata.gz: 4833167107e4c4417dbfee798e3586040beded30746a44194a20a4b76c29d887a537063cbdf8a75c7b9dde36f12dd942a5655fb22c0e76d486aad24592155dbd
7
- data.tar.gz: '092626723d276d12c32c7dd739ef19c1357d664b34cb26ef06eeafdce6420999198ee20b6eb634fc4f6ac4cefd18241d4f711b5740b3df2b61fe7237df00a7f9'
6
+ metadata.gz: d1cc5ab209cbfc294c14af092d7bec073c48be29392e40e17e0ff6c3eb39f0f53a5a5f2173f7c4c8dc556e0620d3be675645eafc81501c0b8138a9ff0d97cb58
7
+ data.tar.gz: b92845b7f530a63ef5ec257d7794442353fd15bec10c67db797010a6ddfcd04b3683a8445a8ffd600762aa84a927310e9df3994d560279b7247346b912efae4a
@@ -1,3 +1,3 @@
1
1
  module CocoapodsAlexandria
2
- VERSION = '0.2.8'
2
+ VERSION = '0.2.9'
3
3
  end
@@ -54,15 +54,11 @@ module PodAlexandria
54
54
  end
55
55
 
56
56
  def build_path(target, sdk)
57
- # Note: using target.product_name is wrong in some cases (Cocoapods project generation bug)
58
- # See https://github.com/CocoaPods/CocoaPods/issues/8007
59
- "#{build_dir}/#{configuration}-#{sdk}/#{target.name}/#{target.product_reference.path}"
57
+ "#{build_dir}/#{configuration}-#{sdk}/#{target.name}/#{target.product_path}"
60
58
  end
61
59
 
62
60
  def destination_path(target)
63
- # Note: using target.product_name is wrong in some cases (Cocoapods project generation bug)
64
- # See https://github.com/CocoaPods/CocoaPods/issues/8007
65
- "#{destination}/#{target.product_reference.path}"
61
+ "#{destination}/#{target.product_path}"
66
62
  end
67
63
  end
68
64
  end
@@ -87,6 +83,14 @@ module Xcodeproj
87
83
  .map { |d| [d.target] + d.target.all_dependencies }
88
84
  .flatten.uniq
89
85
  end
86
+
87
+ # Note: using target.product_name is wrong in some cases (Cocoapods project generation bug)
88
+ # See https://github.com/CocoaPods/CocoaPods/issues/8007
89
+ def product_path
90
+ extension = File.extname(product_reference.path)
91
+ module_name = resolved_build_setting('PRODUCT_MODULE_NAME', true).values[0]
92
+ "#{module_name}#{extension}"
93
+ end
90
94
  end
91
95
  end
92
96
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-alexandria
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Jennes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-19 00:00:00.000000000 Z
11
+ date: 2022-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods